my Code:
local Camera = game.Workspace.CurrentCamera
local ContextActionService = game:GetService("ContextActionService")
local RunService = game:GetService("RunService")
local Character = script.Parent
local RootPart = Character:WaitForChild("HumanoidRootPart")
RunService.RenderStepped:Connect(function()
ContextActionService:UnbindAction("moveForwardAction")
ContextActionService:UnbindAction("moveBackwardAction")
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(RootPart.Position.X, RootPart.Position.Y + 1, RootPart.Postition.z +15)
end)
The Error:
17:19:43.452 Stack Begin - Studio
17:19:43.452 Script 'Workspace.Roblox123456Cente.CameraScript', Line 15 - Studio - CameraScript:15
17:19:43.452 Stack End - Studio