Hello I've made this camera script, after editing the camera's posistion
01 | cam = workspace.CurrentCamera |
02 | plr = script.Parent.Parent.Parent.Parent.Parent |
03 | chr = plr.Character |
04 |
05 | script.Parent.MouseButton 1 Click:Connect( function () |
06 | repeat wait() |
07 | cam.CameraType = Enum.CameraType.Custom |
08 | until cam.CameraType = = Enum.CameraType.Custom |
09 |
10 | repeat wait() |
11 | cam.CameraSubject = chr |
12 | until cam.CameraSubject = = chr |
13 |
14 | end ) |
(Local Script[StarterGui])
Now I have another script in the game(Global Script) That makes the player's Face.Transparency = 1 but this script keeps making the face.transparency = 0!
I've fixed this already, It was the repeat value on the CameraSubject
01 | cam = workspace.CurrentCamera |
02 | plr = script.Parent.Parent.Parent.Parent.Parent |
03 | chr = plr.Character |
04 |
05 | script.Parent.MouseButton 1 Click:Connect( function () |
06 | repeat wait() |
07 | cam.CameraType = Enum.CameraType.Custom |
08 | until cam.CameraType = = Enum.CameraType.Custom |
09 |
10 | cam.CameraSubject = chr |
11 |
12 | end ) |
The values that affected the head where in other scripts in the gui, as they set the position to a Hat's handle