#Error with Camera Script for 2D Game.

11 messages · Page 1 of 1 (latest)

inland ocean
#

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
tacit gale
#

You spelled Position wrong

inland ocean
#

oh..

#

wow thank you

tacit gale
#

💀

#

you're welcome

timber arrow
#

@inland ocean i advice you to use chatgpt to check for spelling mistakes in your code

#

that usually helps me

#

don't ask it to write it for you tho, that never works

inland ocean