Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I enable the forcefield?

For instance, let's say I want to do this:

When the player equips a tool, the forcefield is enabled. And then when the player unequips the tool, it disables.

** Just to be clear, I'm talking about the blue sparkling forcefield that shows up when you initially spawn.

1 answer

This?

Tool.Equipped:connect(function()
    local forcefield = Instance.new("ForceField", game.Players.LocalPlayer.Character)
end)

Tool.Unequipped:connect(function()
    game.Players.LocalPlayer.Character.ForceField:Destroy()
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.