|
| 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
|
  |
| 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 |
|
|
|
| 19 Oct 2014 07:50 AM |
| Okay, thanks! That seems easy for me to do. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 Oct 2014 08:28 AM |
Does anyone else have an idea of what I could make?
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|