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
 

Stupid

Previous Thread :: Next Thread 
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
24 Nov 2013 06:15 PM
local spawn = game.Workspace.Spawn

function onTouch(touch)

wait(4)
spawn.CanCollide = false
wait(2)
spawn.CanCollide = true
end

spawn.onTouch:connect(touch)

Wrote this myself, I read Lua and this is how it said to do it... What went wrong.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
24 Nov 2013 06:18 PM
local spawn = game.Workspace.Spawn

function onTouch(
wait(4)
spawn.CanCollide = false
wait(2)
spawn.CanCollide = true
end


spawn.Touched:connect(onTouch)
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
24 Nov 2013 06:21 PM
Dat connection line...

function NAME(uknowat)
end
script.Parent.Touched:connect(NAME)
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
24 Nov 2013 06:21 PM
SO CLOSE!

Thx
Report Abuse
Exobyte is not online. Exobyte
Joined: 26 Jul 2011
Total Posts: 386
24 Nov 2013 06:21 PM
In your connection line (the very last line you have in your code) you need to write the name of the function. Instead, you wrote the argument.
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