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)