Gunatic
|
  |
| Joined: 26 Jan 2014 |
| Total Posts: 201 |
|
|
| 28 Feb 2014 10:54 AM |
| Make a place where when you walk on a plate and it disappears? |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 28 Feb 2014 10:58 AM |
function nob() script.Parent.Transparency=1 end
script.Parent.Touched:connect(nob) |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 28 Feb 2014 11:09 AM |
script.Parent.Touched:connect(function() script.Parent.Transparency=1 end) |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
| |
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 28 Feb 2014 11:24 AM |
| no it's not, it's the EXACT SAME THING |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 28 Feb 2014 11:27 AM |
You have much to learn. It't not the same. And I thought about it, and yours is better because it can be used for more things. But for in this case I would use mine.
--- Don't add this in your script.
function nob() script.Parent.Transparency=1 end
script.Parent.Touched:connect(nob) game.Players.PlayerAdded:connect(nob) and so on. |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 28 Feb 2014 11:33 AM |
| King just shut up I don't need that crap |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 28 Feb 2014 11:34 AM |
You can do that with yours too wtf
game.player.PlayerAdded:connect(function(idiot)
--stuff
end) |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2014 11:37 AM |
Why say they aren't the same and not explain how? One is an anonymous function, the other is not. Neither is better, just can be used for different things. http://wiki.roblox.com/index.php?title=Anonymous_function |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 28 Feb 2014 11:54 AM |
| One is better for certain cases when you need to active a block of code at multiple times.. |
|
|
| Report Abuse |
|
|
Cykon
|
  |
| Joined: 05 Jan 2014 |
| Total Posts: 272 |
|
|
| 28 Feb 2014 11:57 AM |
Don't listen to these guys :) You want it to regen over time and to make it so you can walk through it as if it's really gone.
print("Unanchor Loaded")
LandMine = script.Parent
function onTouched(hit) wait(4) LandMine.CanCollide = false LandMine.Transparency = 1 wait(10) LandMine.CanCollide = true LandMine.Transparency = 0 end
connection = LandMine.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|