Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- local player = game.Players.LocalPlayer
- local hum = player.Character.HumanoidRootPart
- local cam = workspace.CurrentCamera
- RunService.RenderStepped:Connect(function()
- local _, yRot, _ = cam.CFrame:ToEulerAnglesYXZ()
- hum.CFrame = CFrame.new(hum.Position) * CFrame.Angles(0, yRot, 0)
- -- Notice that this is an almost identical snippet of code as used in the Dash script
- -- This CFrame.new() constructor just takes a position and orientation is default.
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement