Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my character start to spin/fall/go crazy after a few seconds of walking?

Asked by 9 years ago

When the player walks, they start to shake and go crazy, is there anything I can do to fix that?

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid;
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable;
workspace.CurrentCamera.FieldOfView = 50; 

local Gyro = Instance.new("BodyGyro",game.Players.LocalPlayer.Character.Torso);
Gyro.maxTorque = Vector3.new(0,100000,0);
Gyro.P = 10000
Gyro.D = 250
local Mouse = game.Players.LocalPlayer:GetMouse();

while true do
workspace.CurrentCamera:Interpolate(CFrame.new(game.Players.LocalPlayer.Character.Head.Position.X-25,10,game.Players.LocalPlayer.Character.Head.Position.Z),script.Parent.Parent.Character.Head.CFrame,0.5);
Gyro.cframe = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Mouse.Hit.p);
wait();
end

Answer this question