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
 

Help

Previous Thread :: Next Thread 
colinrules10 is not online. colinrules10
Joined: 04 May 2013
Total Posts: 878
03 Feb 2016 08:07 PM
This doesn't work, its something that is clearnly named 'Containers' in the workspace, but it still doesn't function:

function onTouched(part)

c = game.Workspace.Containers

c:Destroy()

script.Parent.Touched:connect(onTouched)

Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
03 Feb 2016 08:12 PM
not sure, maybe the part isn't spelled right? also you should try anonymous functions it makes you code a little more complex like this,

script.Parent.Touched:connect(function(part)
c = game.Workspace.Containers
c:Destroy()
end)
Report Abuse
colinrules10 is not online. colinrules10
Joined: 04 May 2013
Total Posts: 878
03 Feb 2016 08:14 PM
I dont know how, I dont know why, but that worked.
Report Abuse
yurhomi10 is not online. yurhomi10
Joined: 10 Dec 2008
Total Posts: 13886
03 Feb 2016 08:16 PM
oh you forgot an end
Report Abuse
cur3nton is not online. cur3nton
Joined: 11 Dec 2015
Total Posts: 33
03 Feb 2016 08:18 PM
lmao was just about to type that ^

don't worry, it takes me days to find simple mistakes lel.


~lool~
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