Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

So why isn't it working to change cameratype?

So how would i change the cameraType cause it won't work when i play the game after i uploaded it on the website it works fine in studio but not when you upload and play the game why?

Heres the script: located in serverscriptstorage / server script

local camera = workspace.CurrentCamera
camera.CameraType = "Fixed"
game.Players.PlayerAdded:connect(function(p)
	p.CharacterAdded:wait()
	wait(0.1)
	camera.CameraType = "Fixed"
	p.Character = nil
end)

1 answer

✓ Accepted answer

Camera needs to be obtained locally.

Put this in StarterCharacterScripts

local player = game.Players.LocalPlayer
local char = player.Character
local cam = workspace.CurrentCamera
cam.CameraType = "Fixed"

This discussion is preserved as it was. New answers, comments, and votes are closed.