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
 

Re: HOW DO I...

Previous Thread :: Next Thread 
Gunatic is not online. 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 is not online. 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 is not online. 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 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
28 Feb 2014 11:09 AM
Mine is better. Hehehe
Report Abuse
YumERAGON is not online. 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 is not online. 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 is not online. 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 is not online. 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
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
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 is not online. 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 is not online. 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
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