Part = script.Parent
BodyVelocity = Part.BodyVelocity
L = 'Touchpart'
Part.Touched:Connect(function(hit)
if hit:FindFirstChild('StringValue').Value == 'RevertValue' then
Neg = hit:FindFirstChild('Negative')
Pos = hit:FindFirstChild('Positive')
if BodyVelocity.Velocity < Pos.Value then
BodyVelocity.Velocity = Neg.Value
elseif
BodyVelocity.Velocity > Neg.Value then
BodyVelocity.Velocity = Pos.Value
end
end
end)
it keeps saying 14:22:46.050 - Workspace.Part.Script:9: attempt to compare userdata with number
14:22:46.050 - Workspace.Part.Script:9: attempt to compare userdata with number
14:22:46.050 - Workspace.Part.Script:9: attempt to compare userdata with number
I don't get why and what a user data is and why its erroring any fix
