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: this script wont work

Previous Thread :: Next Thread 
LegoseedMother is not online. LegoseedMother
Joined: 08 Oct 2017
Total Posts: 40
10 Nov 2017 08:18 PM
tell me a reason why it might not work


Part2 = workspace.Part2


function onTouch()
Part2:Destroy()

end
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
10 Nov 2017 08:20 PM
You need to connect your function.

Right now onTouch is only the name of the function, so it's not actually being called or triggered anywhere.

Try this:


Part2 = workspace.Part2


function onTouch()
Part2:Destroy()
end

Part2.Touched:Connect(onTouch)
Report Abuse
Chrounum is not online. Chrounum
Joined: 04 Apr 2015
Total Posts: 2911
10 Nov 2017 08:21 PM
Part2 = workspace.Part2


script.Parent.Touched:Connect(function()
Part2:Destroy()
end)


#code print("Thats how you lua u silly goose")
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