generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

VIP script

Previous Thread :: Next Thread 
1MangoMan0 is not online. 1MangoMan0
Joined: 28 Sep 2010
Total Posts: 1596
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
1MangoMan0 is not online. 1MangoMan0
Joined: 28 Sep 2010
Total Posts: 1596
04 Sep 2011 01:43 AM
bump
Report Abuse
RoAnt is not online. 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 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
04 Sep 2011 04:54 AM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image