Hello. I tried to make a part that gives you an antigravity effect when you touch it; but it prints out an error: "Torso is not a valid member of model".
enabled = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') and enabled then
enabled = false
local bodyForce = Instance.new("BodyForce", hit.Parent.Torso)
bodyForce.Force = Vector3.new(0,1000,0)
end
end)

2 comments
If it is R6, then there's a problem, but if it is R15 then you must put: "UpperTorso" instead of "Torso"
my game is in R6? Is there a way to fix it?