Why does my script keep killing the player when they spawn?
This is a local script in StarterCharacterScripts.
It is supposed to kill the player when they hit the ground at over 10 Velocity.Y.
local Char = script.Parent for _,v in pairs(Char:GetChildren())do if v:IsA("BasePart") then v.Touched:Connect(function() if Char.UpperTorso.Velocity.Y >= 10 then Char:FindFirstChild("Humanoid").Health = 0 end end) end end
u should use
<=
instead of
>=
cus what its doing right now is that its killing u if u r not travelling at a Y velocity of over or equal to 10.