|
| 03 Sep 2011 11:40 PM |
local user = "TacoConsumer" local shirt = "http://www.roblox.com/asset/?id=52152756"
function givetool(char) sgraphic = char:findFirstChild("ShirtGraphic") if sgraphic then if char.Name:lower() == user:lower() or sgraphic.Graphic == shirt then viptool = game.Lighting:findFirstChild("HopperBin") if viptool then vipclone = viptool:clone() vipclone = player.Backpack end end end end
function PlayerEntered(player) player.CharacterAdded:connect(givetool) end
game.Players.PlayerAdded:connect(PlayerEntered) game.Players.PlayerAdded:connect(givetool)
I've tried different variations, but the script still won't work. There is no output. Could somebody help? What's wrong with this script? |
|
|
| Report Abuse |
|
|
| |
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 04 Sep 2011 01:56 AM |
sgraphic.Graphic == shirt
I think that's the problem. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|