Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isnt this camera script working?

Asked by 9 years ago
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

Log in to vote
-1
Answered by 9 years ago
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
0
I don't think that is right... But I'll try it. BosswalrusTheCoder 88 — 9y
0
If it works, tell me :D If it doesn't still tell me, maybe we can figure it out together LastTimeLord12 5 — 9y
Ad

Answer this question