How to anchor specific objects based on if they were previously anchored?
Hello everybody, this is my first post so I am sorry if the formatting is wrong.
I am trying to make a "Time Stop" script, basically it would freeze(just anchor) eveything except the player who press F and called the RemoteEvent. What I am trying to do is to anchor everything except the player, and then unanchor ONLY the objects that were previously unanchored(don't want the baseplate falling off). I am relatively new to coding so any help would be appreciated.
My code so far:
01 | local StopTimeEvent = game:GetService( "ReplicatedStorage" ):WaitForChild( "StopTime" ) |
02 | game.Lighting.TimeStopScreen.Saturation = 0 |
03 | local TimeStopStartSound = game.Workspace.TimeStopStartSound |
04 | local TimeStopEndSound = game.Workspace.TimeStopEndSound |
06 | StopTimeEvent.OnServerEvent:connect( function (player) |
07 | TimeStopStartSound:Play() |
09 | game.Lighting.TimeStopScreen.Saturation = game.Lighting.TimeStopScreen.Saturation - 0.2 |
13 | TimeStopEndSound:Play() |
15 | game.Lighting.TimeStopScreen.Saturation = game.Lighting.TimeStopScreen.Saturation + 0.2 |
Basically the player presses F on a LocalScript, which calls a RemoteEvent that makes some fancy effects using sound and color, and then would freeze everybody for 5 seconds.