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

CFrame teleport script not working, Any Ideas To Solve It?

Asked by 5 years ago

prints everything but does not teleport, ideas?

game.ServerStorage.Enough.OnServerEvent:Connect(function(X)
     print("Enough Players! Starting Round...")
     local char = Player.Character or Player.CharacterAdded:Wait()
print("A")
     local hrp = char:WaitForChild("HumanoidRootPart")
print("F")
     hrp.CFrame = CFrame.new(PositionXX, 8.1 , -922.8)
print("D")

end)
end)
0
Are there any errors? ProjectJager 62 — 5y
0
nope, just not teleporting SuperBeeperman 30 — 5y
0
Put the whole script in Hypoxic1 8 — 5y

1 answer

Log in to vote
0
Answered by
royee354 129
5 years ago

Try to do this:

hrp.CFrame = hrp.CFrame * CFrame.new(PositionXX, 8.1 , -922.8)
0
If this doesn't work that is because your script is not explained fully and I couldn't understand what is positionxx. royee354 129 — 5y
Ad

Answer this question