Log in to vote

Upon joining my game, your character will appear sideways visually. How do I fix this?

Asked by 16 days ago

You can still move around normally, but the character is at a 90° angle. It fixes once you die. Here is the script I believe is the problem. My game is an obby, and this script helps run the checkpoint system:

    local stage = plr:WaitForChild("leaderstats").Stage
        repeat wait() until plr.Character ~= nil
        local checkpoint = game.Workspace.Stages:FindFirstChild(stage.Value)
        char:FindFirstChild("HumanoidRootPart").CFrame = +,5,0), checkpoint.Position)
        char:FindFirstChild("HumanoidRootPart").Orientation =,0,0)

1 answer

Log in to vote
Answered by 16 days ago
Edited 16 days ago

I see the problem. It is a bit difficult to understand, but I will show you what is wrong. Starting on Line 7, it says +,5,0)Also, don't put anything inside of here like you did.)

Problem 1)

On line 7 you did + This is wrong, you need to do this:

 char:FindFirstChild("HumanoidRootPart").CFrame = 
 * TO FIX LATER), checkpoint.Position)

2) You need to change the way your CFrame is:

char:FindFirstChild("HumanoidRootPart").CFrame ="HumanoidRootPart").Position * checkpoint.Position)

You may also find when you are using CFrame and editing a Vector3 Value that it isn't working with straight numbers. That is because CFrame works in Radiants. Follow this example to convert Radiants to degrees in your code:,math.rad(5), 0)

If something is still wrong, remove line 8.

Good job with your script! Keep believing you can make a big thing out of this, and you will!

If I answered the question, please mark me as "answered".

Thanks, -fiddyfiddler

Worked! Tysm BunjiBloxxer 12 — 16d
Wow! I'm surprised! Good job! fiddyfiddler 18 — 16d

Answer this question