I've altered it multiple times, I've made sure that it should run almost entirely client sided so it doesn't bug when I try using ss scripts to help it I'm not getting any errors in console.
local button = script.Parent local freddy = game.ReplicatedStorage.Freddy local camera = game.Workspace.CurrentCamera local changeCharacterEvent = game:GetService("ReplicatedStorage").ChangeCharacter
repeat wait() camera.CameraType = Enum.CameraType.Scriptable until camera.CameraType == Enum.CameraType.Scriptable camera.CFrame = workspace.CameraPart.CFrame
button.Activated:Connect(function(player) changeCharacterEvent:FireServer(player) script.Parent.Parent.Visible = false player.Character:MoveTo(Vector3.new(100,0,100)) camera.CameraType = Enum.CameraType.Custom local character = freddy:Clone() character.Parent = player.Character or player if player.Character then player.Character.visible = false end player.Character = character end)
Thanks