So I have this script that removes the player's character and, sets it to a sphere. Then, it sets the camera follows the sphere, which works fine in Studio no errors. However, when I play online the camera does nothing and there is still no errors. I checked with the console and it did change the Subject and Type. Here's the script:
local Event = game.Workspace.Events
local Sphr = script.Player:Clone()
Event.NewChar.OnServerEvent:connect(function(Player)
Player.Character:Destroy()
Sphr.Parent = game.Workspace
Sphr.Name = Player.Name
Player.Character = Sphr
game.Workspace.CurrentCamera.CameraSubject = Sphr.Player
game.Workspace.CurrentCamera.CameraType = "Follow"
end)
Hierarchy of the sphere prntscr.com/9ypm9n |