Why is my camera still at "camera manipulation" with this?
1 | local p = script.Parent.Parent.Parent.Parent.Parent.Name |
2 | local Camera = game.Workspace.Camera |
4 | script.Parent.MouseButton 1 Click:Connect( function () |
5 | game.Players [ p ] .TeamColor = BrickColor.new( "Really red" ) |
6 | game.Workspace [ p ] .Humanoid.Health = 0 |
7 | script.Parent.Parent.Parent.Enabled = false |
8 | Camera.CameraType = "Custom" |
What's wrong with my script? I make this script so when I click for example red team I will change to red team and spawn at the red team with the camera on custom.( camera like we usually play ) But I'm still stuck at the camera manipulation. And I also "change to red team and spawn at the red team" because I have ( red,blue,neutral ) neutral is the assigned team when joining the game so we pick the team later after main menu. By the way the camera manipulation is for the main menu.