Forcing everyone to view

Greetings! I am wondering if anyone would know how to force view everyone. I have made a script for the camera but it only views for the player who clicked it. Here is the code! `–> this is a local script, in a ScreenGUI
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local button = script.Parent.Button
local looking = false
local endCFrame = CFrame.new(-33.283, 12.651, 57.335)
local tweentime = 3
local debouncetime = 0.5
local active = false
button.MouseButton1Click:Connect(function()
if active then return end active = true
looking = not looking
if looking then
camera.CameraType = Enum.CameraType.Scriptable
game.TweenService:Create(camera, TweenInfo.new(tweentime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out,0,false,0), {CFrame = endCFrame}):Play()
wait(tweentime+debouncetime)
else
camera.CameraType = Enum.CameraType.Custom
wait(debouncetime)
end
active = false
end)

Much help would be appreciated!`

For it to work, you would have to move the code to a server script and then FireClient all the players and make them tween their own camera to the endCFrame. To do this you’d need to use:

If you understand how that works you should be able to make it work.

1 Like