Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Local Script In StarterCharacterScripts
- local Workspace = game:GetService('Workspace');
- local Players = game:GetService('Players');
- local player = Players.LocalPlayer;
- local character = player.Character or player.CharacterAdded:Wait();
- local humanoidRootPart = character:WaitForChild('HumanoidRootPart');
- local currentCamera = Workspace.CurrentCamera;
- local gyro = Instance.new("BodyGyro");
- gyro.MaxTorque = Vector3.new(0,math.huge,0);
- gyro.P = 999999;
- gyro.Parent = humanoidRootPart;
- currentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
- gyro.CFrame = currentCamera.CFrame;
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement