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
 

Re: tycoon

Previous Thread :: Next Thread 
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 10:06 AM
i have a tycoon here who wont do what hes told >_<
so i have 2 upgrades for my brick drop thingymajig ,it starts a 5,upgrade 1 is 10,upgrade 2 is 20.
guess which partly works? 2 yes 2. i can buy it but it wont change the tycoon bricks value
script: (there are a bunch of other scripts ye need,this is the one i *think* has a problem)
money = script.Parent.Parent.Money

function onTouched(hit)
if hit.Name == "TycoonBrick" then
hit:remove()
money.Value = money.Value + 5
elseif hit.Name == "UTB" then
hit:remove()
money.Value = money.Value + 10
elseif hit.Name == "UTB2" then
hit:remove ()
money.Value = money.value + 20
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:08 AM
Is it giving an Error, and Are you sure the names of the bricks are changing?
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 10:13 AM
are you asking to see the output?
well i dont care if not. :P
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Regener"
Fri Nov 04 15:12:04 2011 - Factory is not a valid member of Model
Fri Nov 04 15:12:04 2011 - Script "Workspace.tycoon.Regener", Line 1
Fri Nov 04 15:12:04 2011 - stack end
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.ObjectScript"
Fri Nov 04 15:12:04 2011 - RigBackUp is not a valid member of Workspace
Fri Nov 04 15:12:04 2011 - Script "Workspace.tycoon.ObjectScript", Line 2
Fri Nov 04 15:12:04 2011 - stack end
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Buy upgrade 1- 100.Head.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Start Making $-0.Head.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Drop1.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Upgrader1.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Cash to collect :0.Collect.GetCash"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Cash to collect :0.Get.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Cash to collect :0.Display"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Leader board"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Buy upgrade 2- 750.Head.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Upgrader2.Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Become tycoon Owner.Head.Owner Script"
Fri Nov 04 15:12:04 2011 - Running Script "Workspace.tycoon.Nobody's tycoon.Owner Bar Script"
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:28 AM
Not knowing where this script is or what its name is isnt helping, Output FOR THIS script please.
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 10:33 AM
dont know how to make a output for a certain object X_X
its name is " script " in workspace,tycoon,Cash to collect:0,get
ye..the scripts a child of "Get"
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:35 AM
Ok, there is no output, so can you post your name changer?
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
04 Nov 2011 10:37 AM
Why don't you try my tycoon kit?
http://www.roblox.com/AbdallahBakri1234s-Tycoon-Kit-item?id=63295426
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 10:41 AM
im not sure what you mean about name changer,i probbaly dont have one
or i just dont remember it,
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 10:47 AM
Well theres your problem, if your upgrader doesnt change the name then it wont add different/More money XD
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
04 Nov 2011 10:53 AM
Just use this :

http://www.roblox.com/AbdallahBakri1234s-Tycoon-Kit-item?id=63295426
It works
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 10:54 AM
so how am i meant to change the name..? do you mean the script of the upgrader?
function onTouched(hit)
if hit.Name == "TycoonBrick" then
hit.Name = "UTB2"
end
end

script.Parent.Touched:connect(onTouched)
on other thing is...the starter kit i learned to make tycoons from is over 1 year old,so i might need to change some things
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 11:09 AM
help....?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 11:10 AM
That should do it.
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 12:36 PM
do what,,,? you didnt even explain what to do,you just said chaanging names
Report Abuse
pokelord910 is not online. pokelord910
Joined: 26 May 2009
Total Posts: 1045
04 Nov 2011 12:40 PM
if your just using free models, then learn to script before we help you
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
04 Nov 2011 12:42 PM
Well look at your scripts, the name changes for the "Upgrade"

function onTouched(hit)
if hit.Name == "TycoonBrick" then --[[but this isnt counting that by this time it would be UTB]]
hit.Name = "UTB2"
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
swordfish12 is not online. swordfish12
Joined: 04 Mar 2011
Total Posts: 84
04 Nov 2011 12:45 PM
no im not using freebies im just a *starting* to script and you expect me to know everything?
Report Abuse
pokelord910 is not online. pokelord910
Joined: 26 May 2009
Total Posts: 1045
04 Nov 2011 12:51 PM
oh, sorry, i was looking at someone elses post...
Report Abuse
07lchris is not online. 07lchris
Joined: 28 Feb 2010
Total Posts: 1603
04 Nov 2011 01:12 PM
function onTouched(hit)
if hit.Name == "TycoonBrick" then
hit:Remove()
money.Value = money.Value + 5
elseif hit.Name == "UTB" then
hit:Remove()
money.Value = money.Value + 10
elseif hit.Name == "UTB2" then
hit:Remove ()
money.Value = money.Value + 20 -- A non capitalized V
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
AbdallahBakri1234 is not online. AbdallahBakri1234
Joined: 19 Apr 2011
Total Posts: 715
07 Nov 2011 06:03 AM
It should work now.
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