Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Changing Camera CoordinateFrame disables character movement?

As soon as CoordinateFrame is changed, the player stops being able to move, but can still jump in place, any reason as to why, or can anyone suggest a fix?

Current Script:

local RS = game:getService('RunService')
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Cam = workspace.CurrentCamera
repeat wait() until Player.Character
Player.Character:WaitForChild('Head')
Player.Character:WaitForChild('Torso')
local Character = Player.Character

wait(2)
Cam.CameraType = 'Scriptable'
wait(2)
local CamPart = Instance.new("Part",workspace)
CamPart.Anchored = true
CamPart.CanCollide = false
CamPart.Transparency = 1
CamPart.CFrame = CFrame.new(Character.Head.Position + Vector3.new(0,20,0),Character.Head.Position)
wait(2)

	Cam.CoordinateFrame = CamPart.CFrame
	wait(3)
	Cam.focus = CamPart.CFrame * CFrame.new(0,-1,0)
	wait(1)
	CamPart.CFrame = CFrame.new(Character.Head.Position + Vector3.new(0,20,0),Character.Head.Position)

3 comments

0

What's the point in CamPart? Focus doesn't work with a Scriptable camera type. Cam.CoordinateFrame = CFrame.new(Start, LookAt)

0

I realised that, but I've found that with a few camera types, it allows me to move. Really confused right now

0

It's just a glitch where if the camera is directly above and focused directly on your character, your controls will be useless

1 answer

I've run into this with CameraType set to scriptable, but I wanted the player to not be able to move, and changed his walkspeed, and anchored him. I'm now finding I didn't need to do all of that.

Try changing CameraType to "Custom" if you don't desire this effect.

This discussion is preserved as it was. New answers, comments, and votes are closed.