I’m trying to make it so when you click a part you get teleported in a specific angle and position, and your controls are disabled aswell.
But when i try to teleport it only changes the position and not the orientation
local Click = game.Workspace.Map.Barn.SliceTrigger.ClickDetector
Click.MouseClick:Connect(function()
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
local player = game.Players.LocalPlayer
local characterplayer = player.Character
local humming = characterplayer:FindFirstChild("HumanoidRootPart")
controls:Disable()
wait(0.1)
humming.CFrame = CFrame.new(-157.298, 9.5, -81.961) and CFrame.Angles(0,math.rad(90), 0)
wait(.2)
end)