I am trying to make a camping game on roblox and I am trying to make a gui that shows the player because the camera is following the player and this is all i got for a camera block
local camera = workspace.CurrentCamera -- which is the camera
local realcamera = workspace.Camerablock -- which is the camera block
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = realcamera.CFrame
But i need help because i don't know what i do to make it go in front of the player pls help me smart people

6 comments
THANK YOU
Np
wait but how do i put it into the gui?
you know, you can make it work with R15 and R6 (or any rig type) just by using "HumanoidRootPart" instead of "UpperTorso", and reposition if it's too low.
wait but what type of script do i use? because the one i am using is a normal script also why is it not showing in the gui
If it's for a GUI or it's client sided, it's a local script, if it's a server sided script it's a normal script