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 » Scripters
Home Search
 

Re: Help "OnTouch"

Previous Thread :: Next Thread 
spottik is not online. spottik
Joined: 01 Aug 2009
Total Posts: 495
06 Jan 2015 03:08 PM
I am trying to create a script for my mining game and i dont know how to make a script that can read if the pick has hit the "Ore" yet, i dont know what i should use to detect if the "Pick" has touch the "Ore " yet. Please help.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
06 Jan 2015 03:10 PM
Put this in the pick

script.Parent.Touched:connect(function(object)
if (object.Name == "Ore") then
print("OMG A ORE")
end
end)
Report Abuse
spottik is not online. spottik
Joined: 01 Aug 2009
Total Posts: 495
06 Jan 2015 03:17 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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