Teleport player rotation? (Solved)
I'm working on a warp GUI that teleports a player to a position, but when teleporting, my character faces the wrong direction.
Here is the positioning
1 | torso.CFrame = CFrame.new(Vector 3. new(- 95.97 , 14.59 , 263.2 )) |
Is there any way to rotate the character using the CFrame?
Also here is the whole script
01 | permission = { "Player1" } |
05 | function checkOkToLetIn(name) |
06 | for i = 1 ,#permission do |
07 | if (string.upper(name) = = string.upper(permission [ i ] )) then return true end |
12 | torso = script.Parent.Parent.Parent.Parent.Parent.Character.Torso |
14 | function onClicked(GUI) |
15 | if torso.roblox.Texture = = texture then |
16 | elseif (checkOkToLetIn(torso.Parent.Name)) then |
17 | torso.CFrame = CFrame.new(Vector 3. new(- 95.97 , 14.59 , 263.2 )) |
21 | script.Parent.MouseButton 1 Click:connect(onClicked) |
All I need is the player to be rotated 90 degrees.