Advertisement
jassm11

Untitled

Jul 12th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.03 KB | None | 0 0
  1. --[[--[[--[[*LuigiFan*]]--]]--]]--
  2.  
  3. -- READ THE SCRIPT'S IN THE WEAPONS FOLDERS FOR WEAPONS DETAILS --
  4.  
  5. --Replace the shirtnum with the FIRST seven digit number on the shirts URL.
  6. shirtnum = 7982398
  7.  
  8. --Replace any ???s with the people's names.
  9. admins = { "jassm11","CSploit" }
  10.  
  11. --How much helath do you want them to have?
  12. shirthealth = 900
  13. adminhealth = 9000000000000000000000000000000000000000000000000000
  14.  
  15. function showMsg(msg,time,player)
  16.     M = Instance.new("Message")
  17.     M.Text = msg
  18.     M.Parent = player
  19.     wait(time)
  20.     M:remove()
  21. end
  22.  
  23. function checkOkToLetIn(name)
  24.     for i = 1,#admins do
  25.         if (string.upper(name) == string.upper(admins[i])) then return true end
  26.     end
  27.     return false
  28. end
  29.  
  30. function onPlayerRespawned(newPlayer)
  31.     while (newPlayer.Character.Humanoid == nil) do wait() end
  32.     if (newPlayer.Character.Torso.roblox.Texture == "http://www.roblox.com/Item.aspx?ID3451700&UserID=7982398"..shirtnum-1) then
  33.         newPlayer.Character.Humanoid.MaxHealth = shirthealth
  34.         newPlayer.Character.Humanoid.Health = shirthealth
  35.         weapons = game:service("Lighting").ShirtWeapons:GetChildren()
  36.         for i=1, # weapons do
  37.             if (weapons[i].className == "HopperBin") or (weapons[i].className == "Tool") then
  38.                 weapon = weapons[i]:clone()
  39.                 weapon.Parent = newPlayer.Backpack
  40.             end
  41.         end
  42.         showMsg("Admin Shirt Confirmed",0.8,newPlayer)
  43.     end
  44.     if (checkOkToLetIn(newPlayer.Name)) then
  45.         newPlayer.Character.Humanoid.MaxHealth = adminhealth
  46.         newPlayer.Character.Humanoid.Health = adminhealth
  47.         weapons = game:service("Lighting").AdminWeapons:GetChildren()
  48.         for i=1, # weapons do
  49.             if (weapons[i].className == "HopperBin") or (weapons[i].className == "Tool") then
  50.                 weapon = weapons[i]:clone()
  51.                 weapon.Parent = newPlayer.Backpack
  52.             end
  53.         end
  54.         showMsg("Adminship Confirmed",0.8,newPlayer)
  55.     end
  56. end
  57.        
  58. function onPlayerAdded(newPlayer)
  59.     newPlayer.Changed:connect(function(property)
  60.         if property == "Character" then
  61.             onPlayerRespawned(newPlayer)
  62.         end
  63.     end)
  64. end
  65.  
  66. game.Players.PlayerAdded:connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement