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: ###!!! [NEED HELP] !!!###

Previous Thread :: Next Thread 
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 03:17 PM
Im making my own tycoon machine and im using this script for where the bricks on the conyaer belt will hit the dump

function onTouched(hit)

if hit.Name == "Sapphire" then
Money.Value = Money.Value + 10
hit:remove()
end

for some reson it doesnt work, why? please help
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Oct 2008 03:19 PM
What is money? And you don't have a connection.


--Defining Money
Money = script.Parent.Money

function onTouched(hit)

if hit.Name == "Sapphire" then
Money.Value = Money.Value + 10
hit:remove()
end
end --You need an end for the if statement as well.

script.Parent.Touched:connect(onTouched) --This is the conneciton.
Report Abuse
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 03:22 PM
The Money isant the problem but the extra end and the listening I forgot so thankyou
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Oct 2008 03:22 PM
The money was a problem. You never defined it.
Report Abuse
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 03:23 PM
Wait im wrong, it proberly is the money
Report Abuse
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 03:26 PM
UGHHH, I did what you said but it still wont work
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Oct 2008 03:28 PM
What is Money?

Report Abuse
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 03:32 PM
Its a stat on the leaderboard
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Oct 2008 03:39 PM
There is your problem.

Do you have an Owner value in the machine?
Report Abuse
Harris6310 is not online. Harris6310
Joined: 16 Sep 2008
Total Posts: 27
23 Oct 2008 04:24 PM
Nope, I have one at the door to the factory tho
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Oct 2008 04:30 PM
Ok. I will help you in a little bit.
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