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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Anyone need a shop in their game?

Previous Thread :: Next Thread 
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Jul 2012 09:48 PM
What's the point of posting this here...?

† KMXD †
Report Abuse
nightmare3o is not online. nightmare3o
Joined: 21 Jun 2008
Total Posts: 956
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
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
25 Jul 2012 09:52 PM
@knight
People like shops.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Jul 2012 09:53 PM
They can look in Free Models themselves...

† KMXD †
Report Abuse
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
25 Jul 2012 09:56 PM
Ok..i'm just trying to help... :/
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Jul 2012 09:57 PM
No it's OK... You helped, I guess...

† KMXD †
Report Abuse
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
25 Jul 2012 09:59 PM
I'm helping someone with a shop right now
(Gui)
(Party)
Report Abuse
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
25 Jul 2012 10:51 PM
Anyone else?
Report Abuse
milotheorangecat is not online. milotheorangecat
Joined: 24 Jan 2012
Total Posts: 802
26 Jul 2012 12:04 AM
?
Report Abuse
ZombeeSnaxx is online. ZombeeSnaxx
Joined: 21 Jun 2012
Total Posts: 9
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
ZombeeSnaxx is online. ZombeeSnaxx
Joined: 21 Jun 2012
Total Posts: 9
15 Aug 2012 11:30 PM
--bump--
Report Abuse
iAdobe is not online. iAdobe
Joined: 22 May 2011
Total Posts: 367
15 Aug 2012 11:52 PM
All these scripts are so sloopy...
Report Abuse
iJavaScript is not online. iJavaScript
Joined: 13 Aug 2012
Total Posts: 47
16 Aug 2012 12:07 AM
Ain't that the truth Adobe. Just like Game.Lighting :P
Report Abuse
iAdobe is not online. iAdobe
Joined: 22 May 2011
Total Posts: 367
16 Aug 2012 12:11 AM
Game.Lighting isn't sloopy...

Report Abuse
iJavaScript is not online. iJavaScript
Joined: 13 Aug 2012
Total Posts: 47
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
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