In my local script found in the PlayerGui how do I affect the humanoid, I want hurt it yet I think it is read only with local scripts.
local player = game.Players.LocalPlayer
local Stats = player:WaitForChild("leaderstats")
local Temp = Stats:WaitForChild("TEMPERATURE")
local character = player.Character
if not character or not character.Parent then
character = player.CharacterAdded:wait()
end
local human = character:findFirstChild("Humanoid")
This is only part of my script but for some reason with my whole script everything works but the damaging Humanoid and the ouput gives me no reason.
Hope someone can asnwer this question.

2 comments
You would want to find the humanoid located inside of the character and call the :TakeDamage() function on it. TakeDamage will not work if the player has a forcefield. If you're using FilterinEnabled, then you will need to use the function in a ServerScript, otherwise it will appear as though you died for no reason to other clients.
Alright thank you.