of     1   

NintendoZACHERY
#1995162Saturday, July 26, 2008 12:07 AM GMT

I want to make a script to where it gives you a tool when you enter if your wearing a Serten T-shirt. I tryed to do it but it won't work and it so annoying >_< and there was nothing in the output
jojoshshuaua
#1995267Saturday, July 26, 2008 12:17 AM GMT

admins = {"","","???"} -- Names of admins. shirts = {"#######",""} -- Replace ####### with shirt's ID#. Just the ID#. ForceField = false -- Enable/disable ForceField. Health = false -- Enable/disbale infinite health. Tools = true -- Enable/disable admin tools. Team = false -- Enable/disable admin team. teamName = "Admins" -- Name of admin team. teamColor = "Bright yellow" -- Use color name, number, Color3, etc... local team = nil if Team then local teams = game:GetService("Teams") team = game.Teams:FindFirstChild(teamName) if team == nil then team = Instance.new("Team") team.Name = teamName team.TeamColor = BrickColor.new(teamColor) team.Parent = game.Teams end team.AutoAssignable = false end function check(player) if #admins == 0 then return true end for i = 1,#admins do if string.lower(player.Name)==string.lower(admins[i]) then return true end end return false end function checkShirt(player) if #shirts == 0 then return true end local h = player.Character.Humanoid for i = 1,#shirts do print(h.Parent.Torso.roblox.Texture,"http://www.roblox.com/asset/?version=1&id="..shirts[i]) if h.Parent.Torso.roblox.Texture == ("http://www.roblox.com/asset/?version=1&id="..shirts[i]) then return true end end return false end function onPlayerRespawned(newPlayer) if newPlayer == nil then return end if check(newPlayer) or checkShirt(newPlayer) then -- Tools if Tools then local w = game.Lighting:GetChildren() for i = 1,#w do if w[i].className == "Tool" or w[i].className == "HopperBin" then w[i]:Clone().Parent = newPlayer.Backpack end end end -- Team if Team then if team ~= nil then newPlayer.Neutral = false newPlayer.TeamColor = team.TeamColor end end -- Force Field if ForceField then Instance.new("ForceField").Parent = newPlayer.Character end -- Health if Health then local h = newPlayer.Character.Humanoid h.MaxHealth = 9e+900 h.Health = 9e+900 end end end function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onPlayerRespawned(newPlayer) end end) end game.Players.PlayerAdded:connect(onPlayerEntered)
jojoshshuaua
#1995282Saturday, July 26, 2008 12:18 AM GMT

put any tools u want to give to them in lighting

    of     1