Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- FE infinite huge
- How does it work?
- It gets other player's backpacks when they respawn and uses their potions :P,
- so the more people join, reset, rejoin, etc.
- The more you grow!
- ]]
- local players = game:GetService("Players") -- get players
- local robBag = function(bag) -- function
- for _, tool in next, bag:GetChildren() do -- get all tools in the players backpack. (I just like naming the backpack 'bag' for short. :P)
- if tool:IsA("Tool") and tool:FindFirstChild("LocalScript") then -- simple way of knowing if its a potion
- if tool.LocalScript:FindFirstChild("RemoteEvent") then
- local remote = tool.LocalScript:FindFirstChild("RemoteEvent")
- remote:FireServer("funni goofy ahh :P, this is useless text lol") -- we already know that the localscript exists, no need to re-findfirstchild, now to fire the remote event !
- end
- end
- end
- end
- for _, plr in next, players:GetPlayers() do -- look through all the players that are in the game
- local bag = plr:WaitForChild("Backpack") -- waitforchild for their backpack
- robBag(bag) -- fire the function with the following backpack
- plr.CharacterAdded:Connect(function() -- run it when they respawn, this is because they get new tools
- local bag = plr:WaitForChild("Backpack")
- robBag(bag)
- end)
- end
- players.PlayerAdded:Connect(function(plr) -- get all players that are joining and do the same thing
- local bag = plr:WaitForChild("Backpack")
- robBag(bag)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement