of     1   

MrStuffedTiger
#140895583Sunday, July 20, 2014 12:24 AM GMT

Hi, I'm new to scripting and would like to know how to remove all the players forcefields with a script. Thanks :)
Ripull
#140895827Sunday, July 20, 2014 12:26 AM GMT

Click on a spawn, and edit the forcefield time length.
MrStuffedTiger
#140896070Sunday, July 20, 2014 12:29 AM GMT

Oops, forgot to specify, I'm making a game where it teleports you to a place and I want it to remove all forcefields from players when they get teleported there. Sorry for not specifying.
Ripull
#140896282Sunday, July 20, 2014 12:31 AM GMT

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if( character:FindFirstChild("ForceField") )then character.ForceField:Destroy(); end; end); end);
MrStuffedTiger
#140896415Sunday, July 20, 2014 12:32 AM GMT

Thank you very much! :D
MrStuffedTiger
#140896514Sunday, July 20, 2014 12:33 AM GMT

Wait, I need a line of script that removes all forcefields when the script goes to a specific line and not on player added. Sorry for the misunderstanding
RainbowStarImpact
#140896613Sunday, July 20, 2014 12:34 AM GMT

"I need help with a script." you never posted a script this forum is for helping people with existing scripts.
MrStuffedTiger
#140896700Sunday, July 20, 2014 12:35 AM GMT

Oh oops, another mistake. I'm so sorry for all the misunderstandings >.<
RainbowStarImpact
#140896991Sunday, July 20, 2014 12:37 AM GMT

awh now I feel bad shtap dat :c
MrStuffedTiger
#140897355Sunday, July 20, 2014 12:41 AM GMT

No no no, don't feel bad. It's my fault for not specifying exactly lol, Thanks anyways XD
MrStuffedTiger
#140898523Sunday, July 20, 2014 12:53 AM GMT

So anyone got an idea?
PalmToFace
#140898999Sunday, July 20, 2014 12:57 AM GMT

use a fer lewp
MrStuffedTiger
#140899350Sunday, July 20, 2014 1:01 AM GMT

Ahh ok, thanks. I think I got it now! Thanks alot! :P
Ripull
#140901775Sunday, July 20, 2014 1:26 AM GMT

local RemoveForceFields = function() for i,v in pairs(game.Players:GetPlayers()) do if( v.Character )then if( v.Character:FindFirstChild("ForceField") )then v.Character.ForceField:Destroy(); end; end; end; end; --Put this function at the beginning of your script. --Now, when you want to use this, simply say RemoveForceFields() on your desired line.

    of     1