What do you want to achieve? I’m trying to make the camera go on the player once he presses a certain button
What is the issue? its not making the camera on the player but just keeping it on the main menu
What solutions have you tried so far? everything i know
Here is the script
tm.Defenders.MouseButton1Click:Connect(function()
cam.CameraSubject = starterclone -- the code that makes the camera on the part
cam.CameraType = Enum.CameraType.Custom -- the code that makes the camera on the player which is the one not functioning
cam.CameraSubject = game.Players.LocalPlayer.Character -- same here
end)
The serversided team changer has a loadcharacter() in it when you press a certain button, may that be the thing interferring with the local script? (thats another thing that may be causing the issue)
Possibly, Change it when you set the camera subject to the character to cam.CameraSubject = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:WaitForChild("Humanoid") or game.Players.LocalPlayer.CharacterAdded:Wait():WaitForChild("Humanoid")