Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a script, where when you spawn you are automatically unFF?

Asked by 10 years ago

While building an obby in ROBLOX Studio, I have discovered I need a script to unFF people.

3 answers

Log in to vote
1
Answered by
neoG457 315 Moderation Voter
10 years ago

Insert a Spawn and Change the properties to your liking.

Ad
Log in to vote
0
Answered by 10 years ago

On player login remove the "ForceField" instance like this:

game.Players.PlayerAdded:connect(function(p)
    p.Character:connect(function(c) -- On character loaded
        local ff = c:FindFirstChild("ForceField")
        while not ff do wait() end -- While it doesn't exists the game just waits for it to be loaded
        ff:Destroy()
    end)
end)
Log in to vote
0
Answered by
Nickoakz 231 Moderation Voter
10 years ago

You do not need to have a script to remove your FF. Inside the spawn, there are properties to set how long your FF is going to last, you can set that to zero and no ff.

Answer this question