-- Script
game.ReplicatedStorage.ChangeCam.OnServerEvent:Connect(function(player) game.Workspace.CurrentCamera.CameraType = "Custom" end)
-- LocalScript
playframe.ep1.TextButton.MouseButton1Click:Connect(function() game.ReplicatedStorage.ChangeCam:FireServer() end)
CameraType value won't change.
You cant change the camera on the server like that, heres what you should do from a local script, since youre clicking on a GUI Object.
--Local script repeat workspace.Camera.CameraType = Enum.CameraType.Scriptable; wait() until workspace.Camera.CameraType == Enum.CameraType.Scriptable script.Parent.MouseButton1Click:Connect(function() --an image button workspace.Camera.CameraType = Enum.CameraType.Custom end)
Hers a gif of what happens: https://gyazo.com/c5398b59c7f8e29024f7ca90f226bd62