Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Teleporting the player Y+5?

Why isn't his line working as I added the '.Y+5'?

player.Character.Torso.CFrame = CFrame.new(game.Workspace:FindFirstChild("Position"..(player.PlayerGui.Position.Value+1)).Position.Y+5)

2 comments

0

You need 3 numbers? As far as I can see, you only have 2?

0

player.Character.Torso.CFrame = CFrame.new(game.Workspace:FindFirstChild("Position"..(player.PlayerGui.Position.Value+1)).Position.X,Position.Y+5,Position.Z) Still won't work :/

1 answer

✓ Accepted answer

You can't bruteforce an individual property like that. You have to manipulate this with a Vector3 or CFrame.

player.Character.Torso.CFrame = CFrame.new(workspace:FindFirstChild("Position"..(player.PlayerGui.Position.Value+1)).Position + Vector3.new(0,5,0))

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.