so basically i have a gui button and a first person script - how do I make it so you go into first person - from a fixed camera - after you press the button?
they are in seperate scripts
You can do it in 2 steps. 1. Check if the button is clicked 2. Change the camera to first person This is how it looks like in code Put this in a localscript in starterGui
local button = path to the button local Player = game.Players.Localplayer button.Activated:Connect(function() -- checks if the button is touched, if it is, it runs anything inside of the function Player.CameraMode = Enum.CameraMode.LockFirstPerson -- change the camera to first person end)
That should be it!
Reply if there is anything you need more explanation on.
Yield it with something like
Button.MouseButton1Down:Wait()