All pastes #703921 Raw Edit

Admin Weapon

public lua v1 · immutable
#703921 ·published 2007-09-19 22:16 UTC
rendered paste body
--Anaminuspermission = {"Anaminus"}function check(player)	if table.maxn(permission)==0 then return true end--Remove all names from permission to allow all players to use.	for i = 1,#permission do		if string.lower(player.Name)==string.lower(permission[i]) then return true end	end	return falseendfunction onPlayerRespawned(newPlayer)	if (newPlayer == nil) then return end	if not check(newPlayer) then return end	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	endendfunction onPlayerEntered(newPlayer)	newPlayer.Changed:connect(function (property)		if (property == "Character") then			onPlayerRespawned(newPlayer)		end	end)endgame.Players.PlayerAdded:connect(onPlayerEntered)