For the past hour or so I’ve been trying to find a way to disable the popper functionality of the camera for a certain player and for a certain period of time. Does anybody have any solutions to this?
open studio, open your game, go to play mode, make sure you’re on client side, open explorer, go to starterplayerscripts and copy “PlayerModule” to your clipboard. Close test mode, paste the playermodule into starterplayerscripts, then go: PlayerModule > CameraModule > ZoomController > Popper, then open that script, scroll down to line 132, replace the 0.25 with a 0 and it should work.
This will make the popper cam always disabled, If you’d like to disable/re-enable the popper cam throughout gameplay, you can use a remote event, which can be done by doing the following:
Add a remote event to replicated storage called ChangePopper or whatever
Instead of replacing the 0.25 with 0, replace it with a variable, minTransparency
add this to the top of the popper script:
mintransparency = .25
game.ReplicatedStorage.ChangePopper.OnClientEvent:Connect(function(bool)
if bool == true then
mintransparency = 0.25
else
mintransparency = 0
end
end)
then whenever you need it to be enabled or disabled, just call it in a global script:
game.ReplicatedStorage:FireAllClients(false) ← disables popper for all players
game.ReplicatedStroage:FireClient(player,false) ← disables popper for one player
Hope this helps