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

8 comments
u sure?
did it even worse
ye i risked it a bit
blindly answering ur question
however
no offense but after scrutinizing ur answer such a fall script although compact might not be so functionable
so instead of resolving it i will attempt to make a better script to suit such a purpose
when i have the time..