• SetHealth not working
    2 replies, posted
hello, I've written the following code in order to get a hold of the SetHealth function. function console(p,text,t,d)         if(p!=LocalPlayer()) then             return end         text = string.lower(text)         if(text=="/hello") then             p:ChatPrint(p:SteamID())             return true         elseif(text=="/heal") then             p:SetHealth(42)             return true         end     end     hook.Add("OnPlayerChat","console",console) and yet, when I type /heal, nothing happens. I'm running the script client-side, if that changes anything.
thank you!
Sorry, you need to Log In to post a reply to this thread.