hello, I want to use the Roblox’s asset- the pistol, but I only want the camera when I equip it, not when I join the game. need some help
the tool:
https://www.roblox.com/library/3932996124/Pistol
Find where in the script it manages the camera, and add the following:
script.Parent.Equipped:Connect(function() --This waits until the tool is activated
--Where it changes the camera to the custom one
end)
PS; change script.Parent to whatever the tool is.
hmm… can you tell me which script controls the camera? dosn’t find any
I’ll have to check in studio myself. It will take a moment.
I believe it is under Tool > WeaponsSystem(Folder) > WeaponsSystem(Module Script)
PS; You can press CTRL(PC) Command(Mac) + F to find specific words in the script.
and where would i add the script?
Put the camera script in between this script.
in between? like in the middle of the script?
Yes, put the camera script in between where it says in the script;
--Where it changes the camera to the custom one
is it the shoulder camera? im relly dumb
Oh, I was wrong. Go to the tool, to Libraries, and to SholderCamera. It should be there.
holy… that is long
do i put all that in between the script?
That might work. Try it, and repeat for all of the tools, cause the camera script is most likely in all of the tools.
uhh the gun’s not showing up and the camera is the basic one