So, i have been working on a falling script that when falling between two distances, and planning on having it kill the person on impact if they don't activate the parachute between the distances. The error is "attempt to compare two userdata values"
plr = game.Players.LocalPlayer
local warn = false
plr.Character.Torso.Changed:connect(function()
print("Torso Prop has changed!")
print(plr.Character.Torso.Position)
6.) if plr.Character.Torso.Position > Vector3.FromAxis(Enum.Axis.Y, 134) and plr.Character.Torso.Position < Vector3.FromAxis(Enum.Axis.Y, 1180)and plr.Backpack.Parachute ~= nil then
print("Falling")
warn = true
while warn == true do
plr.PlayerGui.Fallwarn.warning.Visible = true
wait(2)
plr.PlayerGui.Fallwarn.warning.Visible = false
wait(2)
end
else
warn = false
plr.PlayerGui.Fallwarn.warning.Visible = false
end
end)
any help with this? (The error is at line 6.)

1 comment
okay, that explains it. Now, can you tell me a way to fix this?