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: Need help making this script

Previous Thread :: Next Thread 
ARandomBabby is not online. ARandomBabby
Joined: 11 Feb 2017
Total Posts: 2
09 Jun 2017 10:22 AM
How do I make an onTouch function that will activate a certain script?


Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
09 Jun 2017 10:25 AM
part.OnTouched:connect(function(otherpart)
--script that does stuff
end)

I have no clue what else you could possibly mean...
Report Abuse
ARandomBabby is not online. ARandomBabby
Joined: 11 Feb 2017
Total Posts: 2
09 Jun 2017 10:41 AM
Thanks!


Report Abuse
FancyPig19 is not online. FancyPig19
Joined: 23 Sep 2014
Total Posts: 269
09 Jun 2017 10:43 AM
Put this in the part:

script.Parent.Touched:connect(function()
print("Part touched") ---- replace that with your script that does stuff
end)
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