Title is self explanatory. I would like the camera to follow this pie. It is already animated and etc, i just want the camera to follow the pie temporarily. Can anyone help?
Hi I have some guides that might help you
but please do not ask others to write entire scripts for you.
Just tamper with the .CameraSubject property in a Camera object and you are done.
For example -
--this is a LocalScript
local camera = workspace.CurrentCamera
--whenever you want to change the subject of the camera to the pie, do this
camera.CameraSubject = workspace.Pie --just named it Pie for example, rename it to whatever is the name of pie
Just adding to what he said, this needs to be inside of a local script for it to work properly.
This helps, but it doesn’t work at all. I want it only to follow when the proximityprompt is activated. Any suggestions or…?
Yeah, just use a localsript and set the camera when its activated and set it back to the humanoid when deactived.
and how do i do tthat? im just really confused lol
What are you stuck on? (extra characters)
local Whateveristheproxmityprompt = -- set it to your ProximityPromt
Whateveristheproxmityprompt.Triggered:Connect(function(plrwhotriggerd)
local cam = game.Workspace.CurrentCamera
cam.Focus = game.Workspace.pie.CFrame
cam.CameraType = Enum.CameraType.Fixedcam.CameraType = Enum.CameraType.Fixed
end)
It must be in a localscript, and localscripts work when parented to certain things. The parents are A player’s backpack (can by accessed by StarterPack or plr.Backpack), A players character model (Can be accessed by plr.Character), A players PlayerGui (Can be accessed by PlayerGui, or plr.PlayerGui), A player’s playerscripts (idk how it can be accessed), and finally the ReplicatedFirst service. and I d