What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Can’t find somthing similar
Explaination
The code is in Local Script and i placed the local script in StarterGUI,
i try using fromEulerAngles, Angles, fromEulerAnglesXYZ nothing changed
Entire Code:
local Camera = workspace.CurrentCamera
local ScreenGUI = script.Parent
local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local TeamBlue = script.Parent.Blue
local TeamRed = script.Parent.Red
TeamRed.MouseButton1Click:Connect(function()
local Red = Color3.fromRGB(255,0,0)
RemoteEvent:FireServer(Red, Character)
Camera.CFrame = Camera.CFrame * CFrame.fromEulerAngles(math.rad(-20), math.rad(90), 0)
ScreenGUI:Destroy()
end)
TeamBlue.MouseButton1Click:Connect(function()
local Blue = Color3.fromRGB(0,0,255)
RemoteEvent:FireServer(Blue, Character)
ScreenGUI:Destroy()
end)
The default camera script is likely causing the angles to be slightly off, you could try using different math.rad values in order to get closer to the desired angles.