01 | game.Players.PlayerAdded:connect( function (plr) |
02 | plr.CharacterAdded:connect( function (chr) |
03 | while true do |
04 | if chr.ForceField ~ = nil then |
05 | chr.Humanoid:UnequipTools() |
06 | end |
07 | end |
08 | end ) |
09 | end ) |
10 |
11 | --need to fix |
the script above does not work and i am wondering how to make one.
Hey Elixcore, Your problem is very simple to fix, I will just show it below rather than explaining it up here because it's easier that way.
01 | game.Players.PlayerAdded:Connect( function (plr) |
02 | plr.CharacterAdded:Connect( function (char) |
03 | while wait() do -- You should have a wait for a while loop just in-case it runs too long. |
04 | if char:FindFirstChild( "ForceField" ) then -- Checks if Force Field exists in the character |
05 | local hum = char:WaitForChild( "Humanoid" ); |
06 | hum:UnequipTools(); |
07 | end |
08 | end |
09 | end ) |
10 | end ) |
Well, I hope I helped and have a nice day!
~~ KingLoneCat