hers is the script.I want the text lable to say the character's health I srsly need help with remote functions.................;,
---Local Script local remotef = game.ReplicatedStorage.ReturnHealth remotef:InvokeServer()
then the script...
---Script located in workspace local remotef = game.ReplicatedStorage.ReturnHealth--this is a remote function in replecated storage... function remotef.OnServerInvoke(plr) local char = plr.Character or plr.CharacterAdded:wait() return script.Parent.Text == char.Humanoid.Health--i want it to return the health end
Simple Solution
---Script located in workspace local remotef = game.ReplicatedStorage.ReturnHealth--this is a remote function in replecated storage... function remotef.OnServerInvoke(plr) local char = plr.Character --retrieves the character from the player model script.Parent.Text = tostring(char.Humanoid.Health) --sets the textlabel's text to the player's health end
What that script does is set the textlabel's text to the player's health.