Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[--[[--[[*LuigiFan*]]--]]--]]--
- -- READ THE SCRIPT'S IN THE WEAPONS FOLDERS FOR WEAPONS DETAILS --
- --Replace the shirtnum with the FIRST seven digit number on the shirts URL.
- shirtnum = 7982398
- --Replace any ???s with the people's names.
- admins = { "jassm11","CSploit" }
- --How much helath do you want them to have?
- shirthealth = 900
- adminhealth = 9000000000000000000000000000000000000000000000000000
- function showMsg(msg,time,player)
- M = Instance.new("Message")
- M.Text = msg
- M.Parent = player
- wait(time)
- M:remove()
- end
- function checkOkToLetIn(name)
- for i = 1,#admins do
- if (string.upper(name) == string.upper(admins[i])) then return true end
- end
- return false
- end
- function onPlayerRespawned(newPlayer)
- while (newPlayer.Character.Humanoid == nil) do wait() end
- if (newPlayer.Character.Torso.roblox.Texture == "http://www.roblox.com/Item.aspx?ID3451700&UserID=7982398"..shirtnum-1) then
- newPlayer.Character.Humanoid.MaxHealth = shirthealth
- newPlayer.Character.Humanoid.Health = shirthealth
- weapons = game:service("Lighting").ShirtWeapons:GetChildren()
- for i=1, # weapons do
- if (weapons[i].className == "HopperBin") or (weapons[i].className == "Tool") then
- weapon = weapons[i]:clone()
- weapon.Parent = newPlayer.Backpack
- end
- end
- showMsg("Admin Shirt Confirmed",0.8,newPlayer)
- end
- if (checkOkToLetIn(newPlayer.Name)) then
- newPlayer.Character.Humanoid.MaxHealth = adminhealth
- newPlayer.Character.Humanoid.Health = adminhealth
- weapons = game:service("Lighting").AdminWeapons:GetChildren()
- for i=1, # weapons do
- if (weapons[i].className == "HopperBin") or (weapons[i].className == "Tool") then
- weapon = weapons[i]:clone()
- weapon.Parent = newPlayer.Backpack
- end
- end
- showMsg("Adminship Confirmed",0.8,newPlayer)
- end
- end
- function onPlayerAdded(newPlayer)
- newPlayer.Changed:connect(function(property)
- if property == "Character" then
- onPlayerRespawned(newPlayer)
- end
- end)
- end
- game.Players.PlayerAdded:connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement