Error trying to make viewstage command

Hello! So I am making a viewstage command so everyone on the server sees a stage. But it’s giving me the error ActivatedCameraController did not select a module. Here is the server script:

local MinimumRankToUseCommand = 1

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        Player.Chatted:Connect(function(Message)
            if Message == "Viewstage" or "viewstage" then
                if Player:GetRankInGroup(GroupId) >= MinimumRankToUseCommand then
                
                    game:GetService("ReplicatedStorage").Viewstage:FireAllClients()
                    
                end
            end
        end)
    end)
end)

And here is the local script:

local Camera = game.Workspace.CurrentCamera
local CameraPart = game.Workspace.CardboardStage.Speakers.Middle.TopDiaphragm.CameraPart

game.ReplicatedStorage.Viewstage.OnClientEvent:Connect(function()
    Camera.CameraType = "Scriptable"
    Camera.CameraSubject = CameraPart
end)

There was I typo when I pasted the server script I put forgot to put local GroupId = (my group ID) at the line one.

Can you show a picture of where your “CameraPart” is actually located?

1 Like

By that I mean inside the workspace alogn with all the other parts.

1 Like