What's is wrong with my script?

Back
dogemin
Join Date:
Posts:
Apr 2023
415
11 months ago | 21 • By dogemin

local Part = script.Parent


script.Parent.Touched:Connect(function(player)
player.Health = 0
if player.Health = 0 then
script["Sound"]:Play()
end
end)



DM

dogemin OP
Join Date:
Posts:
Apr 2023
415
11 months ago • By dogemin OP

Fixed it



DM

DodgerNuke
Join Date:
Posts:
Apr 2019
432
11 months ago • By DodgerNuke

there is no glitch



Dodge a nuke