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.

image

I do not now why it wont work :confused:

plz plz plzp lzzzlpzlzllp help meh pls

Try this instead:

--//Services
local Players = game:GetService("Players")

--//Variables
local LocalPlayer = Players.LocalPlayer
local Button = script.Parent

--//Functions
Button.MouseButton1Click:Connect(function()
	LocalPlayer.Character.Humanoid.Health = 0
end)