hyyt8Join Date: 2007-05-02 Post Count: 1760 |
Will someone help me script with my lemonade tycoon so the buy button works and tools you can make or sell lemonade with i will pay 750 tix and if you help with my question course you get free super admin shirt from me or 30 tix |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
bump D: :D |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
actually make the 200 tix |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
or 70 bux |
|
Hbakid2Join Date: 2008-02-12 Post Count: 8 |
Ok here is the script (don't forget the money)
Introduction
Easy way to get started with shop scripts! This will go over everything you need to know to get a money system working! Before you start this I suggest reading a previous article, that starts with the basics: Basic Scripting. If you didn't understand that, you probably will have a hard time with this tutorial, so slow down!
[edit]Needed from Toolbox
My first rule is: never make anything that has already been made (unless your learning). So, this tutorial isn't about leaderboards, so search toolbox for "Cash leaderboard" and pick one out! For now, I'm going to access everything using the name "Cash", so if you change it in the leaderboard, remember to change the script(s).
[edit]Basic onTouch Money Checker
This will be used for pretty much anything that you only want to happen to people if they have enough cash. So, the basic frame work of everything onTouch will start us off.
function onTouched(hit)
end
script.Parent.Touched:connect(onTouched)Now, lets add an 'if' line to make sure its a human!
if hit.Parent.Humanoid~= nil thenwith every 'if' line you need another end, so we will count those up a little later. Now, we need to define where the money is.
cash= game.Players:findFirstChild(hit.Parent.Name).leaderstats.CashAlright! Now we only want this to work if the player has enough cash, so here is that line:
if cash.Value>= 100 then Then to take away the money!
cash.Value= cash.Value- 100Lets look at what we have so far!
function onTouched(hit)
if hit.Parent.Humanoid~= nil then
cash= game.Players:findFirstChild(hit.Parent.Name).leaderstats.Cash
if cash.Value>= 100 then
cash.Value= cash.Value- 100
--What you want to happen goes here.
end
end
end
script.Parent.Touched:connect(onTouched)What does that do? It will check and make sure what is hitting it is a human. Then it will check to make sure it has enough cash. Finally it will take away that cash. :P That's boring! You can pretty much choose what you want to happen after that, imagination is key!
[edit]That's all for now!
|
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
well i have the cash leaderboard but go there and check see what need to be there |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
new reward = 1k tix and 100 bux just fo lemonade tycoon nvm about question course |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
talking to myself D: |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
still talking to myself D: |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
still... |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
somebody :'( |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
omg!!!!!! |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
................................................. |
|
ganswishJoin Date: 2007-09-21 Post Count: 658 |
hyyt, go take a look at my palce and tell me if that is what your kind of looking for..:
http://www.roblox.com/Place.aspx?ID=145647 |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
yeah kinda except you make and sell stuff to make money to buy stuff instead of killing to make money |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
bumb XD ...... |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
bumb #2 XD ...... |
|
|
i need help instead how do u start a thread? |
|
samnabbaJoin Date: 2008-02-17 Post Count: 5 |
ok i don't know how to make a thread either and i just joined on the 16th so i don;t know how to get tix either - i'm guessing its a type of money used on here -
|
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
to start a thread you go to a forum and click new thread and to get money you need to log in everyday for a login reward or get peple to visit your place |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
:P XD |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
bumb :P :P :P :P :P :P |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
now im talking to myself again *cries* |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
*sighs* :( |
|
hyyt8Join Date: 2007-05-02 Post Count: 1760 |
bumb #infinity |
|