The game is on FE btw
Local script
local player = game.Players.LocalPlayer
local char = player.Character
if not char or not char.Parent then
char = player.CharacterAdded:wait()
end
local cam = game.Workspace.Camera
local newGameButton = script.Parent.Parent:WaitForChild('StartScreen'):WaitForChild'Frame':WaitForChild'NewGameButton'
local newGameButtonWhite = script.Parent.Parent:WaitForChild('StartScreen'):WaitForChild'Frame':WaitForChild'NewGameBorderWhite'
local characterScreen = script.Parent.Parent:WaitForChild('CaCScreen'):WaitForChild'Frame'
local rotateDummyRemote = game:GetService('ReplicatedStorage'):WaitForChild('Remotes'):WaitForChild'RotateDummyRemote'
local dummy = workspace:WaitForChild(player.Name..'-'..'Dummy')
local torso = dummy:WaitForChild'Torso'
local function RotateCamera()
end
newGameButton.MouseButton1Down:connect(function()
cam.CameraSubject = torso
cam.CameraType = "Follow"
rotateDummyRemote:FireServer({dummy })
end)
Server Script
local replicatedStorage = game:GetService('ReplicatedStorage')
local rotateDummyRemote = Instance.new('RemoteEvent')
rotateDummyRemote.Parent = replicatedStorage:WaitForChild'Remotes'
rotateDummyRemote.Name = 'RotateDummyRemote'
rotateDummyRemote.OnServerEvent:connect(function(player, arguments)
arguments[1]:WaitForChild'Torso'.CFrame = arguments[1]:WaitForChild'Torso'.CFrame * CFrame.new(0,.01,0) * CFrame.Angles(0,.6,0)
end)
It works only in studio but not in game, and no errors show up on output

2 comments
thank you, before i tried scripting it locally, but thanks. now i know i need to use currentCamera
:) No problem