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

Why isnt this camera script working?

local Cam = Workspace.CurrentCamera

Cam.CameraSubject = Workspace.InfoBlock
Cam.CameraType = "Attach"
Cam.CoordinateFrame = CFrame.new(10, 0, 10)
Cam.Focus = CFrame.new(0, 0, 0)
wait(3)
Cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
Cam.CameraType = "Fixed"

There is another script that ads the local script into the Character:

game.Players.PlayerAdded:connect(function(player)
    Clone = script.MenuCam:Clone()
	Clone.Parent = player.CharacterAdded:wait()
end)

1 answer

local Cam = Workspace.CurrentCamera

The problem I believe lies within this first variable. When naming an object within workspace, it must be game.Workspace.

Try to fix the problem by making the variable

local Cam=game.Workspace.CurrentCamera

2 comments

0

I don't think that is right... But I'll try it.

0

If it works, tell me :D If it doesn't still tell me, maybe we can figure it out together

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