What's is wrong with my script?

Back
dogemin
Join Date:
Posts:
Apr 2023
404
4 months ago | 20 • 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
404
4 months ago • By dogemin OP

Fixed it



DM

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

there is no glitch



Dodge a nuke