|
| 25 Jul 2012 09:47 PM |
print("Shop Script Loaded")
Door = script.Parent local debounce = false
function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end return nil end function onTouched(hit) if debounce == false then local human = hit.Parent:findFirstChild("Humanoid") if (human == nil) then return end local player = getPlayer(human) debounce = true if (player == nil) then return end local stats = player:findFirstChild("leaderstats") local sp = stats:findFirstChild("Team") if sp == nil then return false end if (sp.Value >=200) then sp.Value = sp.Value - 200 print("Enough Money") game.Lighting.NoobTube:clone().Parent = player.Backpack Door.BrickColor = BrickColor.new(37) wait(2) Door.BrickColor = BrickColor.new(21) debounce = false else debounce = false end end
end
connection = Door.Touched:connect(onTouched) --
Heres some things to change for yourself. Where it says("Team"), put what your leaderboard is. Where the two sp.value's are, put how much you want the item to cost. Where it says game.Lighting.NoobTube: put what you want in lighting first then put the exact name on where it says "NoobTube" (You don't need to use NoobTube. Well thats about it :)
|
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 09:48 PM |
What's the point of posting this here...?
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 09:50 PM |
I find GUIs more simple but if you don't like big boxes and letters on your screen then use this! Thanks for teh script |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Jul 2012 09:53 PM |
They can look in Free Models themselves...
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 09:56 PM |
| Ok..i'm just trying to help... :/ |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 09:57 PM |
No it's OK... You helped, I guess...
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 09:59 PM |
I'm helping someone with a shop right now (Gui) (Party) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Jul 2012 02:00 AM |
| I need personal help with making a shop. I am making a mideval time kinda thing and i need a general store where people can buy armor and swords. |
|
|
| Report Abuse |
|
|
| |
|
iAdobe
|
  |
| Joined: 22 May 2011 |
| Total Posts: 367 |
|
|
| 15 Aug 2012 11:52 PM |
| All these scripts are so sloopy... |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 12:07 AM |
| Ain't that the truth Adobe. Just like Game.Lighting :P |
|
|
| Report Abuse |
|
|
iAdobe
|
  |
| Joined: 22 May 2011 |
| Total Posts: 367 |
|
|
| 16 Aug 2012 12:11 AM |
Game.Lighting isn't sloopy...
|
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 12:12 AM |
| I know, I'm just jokin'. Remember, I was playing around and you took it all serious on that one thread? You were like "Java SHUT UP". And I lol'd. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 12:34 AM |
@OP, so you're making someone a model out of free models?
~2.9k posts/20k posts |
|
|
| Report Abuse |
|
|