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

This script works but teleport's the player sideways any idea why this is happening?

Asked by 7 years ago
function touch(hit)
    if hit.Parent:FindFirstChild("Humanoid") ~= nil then
        local char = hit.Parent
        char.Torso.Anchored = true
        wait(3)
        char.Torso.CFrame = script.Parent.Parent.Tele2.CFrame * CFrame.new(5, 0, 0)
        wait(3)
        char.Torso.Anchored = false
        else return
    end
end
script.Parent.Touched:connect(touch)

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago

Your Tele2 part is rotated -90 or 90, you can fix it by rotating that.

Ad

Answer this question