local camera = game.Workspace.CurrentCamera local player = game.Players.LocalPlayer
camera.CameraType = Enum.CameraType.Scriptable
local targetDistance = 0 local cameraDistance = 0 local cameraDirection = Vector3.new(-1,0,0)
local currentTarget = cameraDirectiontargetDistance local currentPosition = cameraDirectioncameraDistance
game:GetService("RunService").RenderStepped:connect(function() local character = player.Character if character and character:FindFirstChild("Humanoid") and character:FindFirstChild("Torso") then local torso = character.Torso camera.Focus = torso.CFrame if torso:FindFirstChild("FastStart") == nil then camera.CoordinateFrame = CFrame.new(Vector3.new(torso.Position.X, torso.Position.Y + 20, torso.Position.Z - 0) + currentPosition, Vector3.new(torso.Position.X, torso.Position.Y, torso.Position.Z - 0) + currentTarget) else --Lower camera for fast start camera.CoordinateFrame = CFrame.new(Vector3.new(torso.Position.X, torso.Position.Y - 15, torso.Position.Z - 20) + currentPosition, Vector3.new(torso.Position.X, torso.Position.Y - 15, torso.Position.Z - 20) + currentTarget) end end end)
I have this script in player scripts, but my character wont move, help?