Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

If my part falls into a collider it does teleport but its buggy how do fix this?

Asked by
hokyboy 270 Moderation Voter
3 years ago
script.Parent.Touched:Connect(function(v)
    if v.Name == "Box" then
        v.Position = Vector3.new(77, 173, -10)
    end
end)

This is a pushbox its massless and anchored false if i teleport it back it does all weird stuff like teleport to random loctions if u push it and it laggs the box out how can i fix this?

1 answer

Log in to vote
1
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

Consider using CFrame and make the Z axis higher than 4 studs. Example:

v.CFrame = CFrame.new(77, 173, -6) 
Ad

Answer this question