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: Does anyone have an idea for something I can make?

Previous Thread :: Next Thread 
MarvinTheMelon is not online. MarvinTheMelon
Joined: 14 Jan 2012
Total Posts: 1850
19 Oct 2014 07:46 AM
I need a small challenge for my scripting level. I currently know Events, Instances, Functions, and Variables. Any ideas?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
19 Oct 2014 07:50 AM
Eh
Make a circle of bricks, that are anchored, but once you touch them they become unanchored, fade over 5 seconds and disappear

Knowledge needed:
Instances (instantiation),
For loops,
Properties,
Events,
Waiting,
Logic,
Math,
CFraming

(You don't really need all those (Yes you do))
Report Abuse
MarvinTheMelon is not online. MarvinTheMelon
Joined: 14 Jan 2012
Total Posts: 1850
19 Oct 2014 07:50 AM
Okay, thanks! That seems easy for me to do.
Report Abuse
MarvinTheMelon is not online. MarvinTheMelon
Joined: 14 Jan 2012
Total Posts: 1850
19 Oct 2014 08:08 AM
I made it! I made it a little different, so instead of it staying unanchored and invisible, it goes back to being visible and anchored.

script:

function onTouched()
part = script.Parent
script.Parent.Anchored = false
script.Parent.Transparency = .1
wait(.5)
script.Parent.Transparency = .2
wait(.5)
script.Parent.Transparency = .3
wait(.5)
script.Parent.Transparency = .4
wait(.5)
script.Parent.Transparency = .5
wait(.5)
script.Parent.Transparency = 1
wait(.5)
script.Parent.Transparency = .5
wait(.5)
script.Parent.Transparency = .4
wait(.5)
script.Parent.Transparency = .3
wait(.5)
script.Parent.Transparency = .2
wait(.5)
script.Parent.Transparency = .1
wait(.5)
script.Parent.Anchored = true

end
script.Parent.Touched:connect(onTouched)
Report Abuse
MarvinTheMelon is not online. MarvinTheMelon
Joined: 14 Jan 2012
Total Posts: 1850
19 Oct 2014 08:28 AM
Does anyone else have an idea of what I could make?
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
19 Oct 2014 08:30 AM
eLunate meant to make a circle of bricks using a script.

Also, learn for loops pls. You can cut that script down to like 6 lines
Report Abuse
Barcado is not online. Barcado
Joined: 04 Oct 2014
Total Posts: 1278
19 Oct 2014 08:31 AM
Since you apparently can't loop, try this:

Touch a part

Activates a falling rock (unanchors)

Weld a part to the part that falls (C0) and use local variables to make sure it can't kill people who touch it while the rock has already fallen
Report Abuse
MarvinTheMelon is not online. MarvinTheMelon
Joined: 14 Jan 2012
Total Posts: 1850
19 Oct 2014 08:48 AM
I made it, but I couldn't make it so when it hit the ground, it didn't kill people. Here's the link to my scripting place. Walk on the red button, and boulders that kill you will fall down.

http://www.roblox.com/Scripting-place?id=169613251
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
19 Oct 2014 08:50 AM
make a random graph with lines to the last point
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
19 Oct 2014 08:51 AM
Use a modification on the Touched.
Have a local variable, that if the first Touched is not a player, it changes and disallows the touched function from running (Or explicitly disconnect the Touched event if the first touched was not a player)
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