Roblox remove forcefield on equipping a tool and walking

I wanna be able to remove a player’s forcefield if they either move their character at all OR if they equip a tool.

I’m not a scripter, nor do I know how to script so if you’re able to lead me in the right direction or help out with this at all that would be amazing. I looked up on google to see if there was anyone who made a tutorial or made this feature before and there wasn’t.

You can use the “Humanoid.Running” event to detect if it moved and delete the ForceField object from the character

The same with the equipping. You have to detect when the character equips a weapon with “Character.ChildAdded” and then delete the forceField

This is an example:

Humanoid.Running:Connect(function(speed)
    if speed > 0.01 then
        Character.ForceField:Destroy()
    end
end)
2 Likes

Alright, thank you! Also, If I am adding this feature in my game would it be a normal “Script” or would it be a “LocalScript” and where do I put it in the properties?

You could do it in a normal script and put it in ServerScriptService, so it’s only one script that handles the forceFields of all the players