BumpyPlayz

PlayerLoadedListener

Feb 5th, 2020
3,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. game.ReplicatedStorage.Remotes.PlayerLoaded.OnServerEvent:Connect(function(player)
  2.     print("Player Loaded")
  3.     local thereis = 0
  4.     local inplace = 0
  5.    
  6.     repeat
  7.         thereis = 0
  8.         inplace = 0
  9.         for i, tool in pairs(game.ServerStorage.Tools:GetChildren()) do
  10.             thereis = thereis+1
  11.         end
  12.         for i, image in pairs(game.ReplicatedStorage.ToolsImage:GetChildren()) do
  13.             inplace = inplace+1
  14.         end
  15.         print(thereis)
  16.         wait(0.1)
  17.     until thereis == inplace
  18.     print(thereis)
  19.     print("GoingTofire")
  20.     wait(3)
  21.     print("Fires")
  22.     game.ReplicatedStorage.Remotes.BeginArrangement:FireClient(player)
  23. end)
Add Comment
Please, Sign In to add comment