Reset script won't work

I’m trying to make it so when you press a button (UI) it will reset your character (really just put it to 0 health)
and it did not work for some reason, there aren’t any errors oddly.


I do not now why it wont work :confused:

plz plz plzp lzzzlpzlzllp help meh pls

Try this instead:

local Players = game:GetService("Players")

local LocalPlayer = Players.LocalPlayer
local Button = script.Parent

	LocalPlayer.Character.Humanoid.Health = 0