ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
|
| 02 Nov 2013 11:24 PM |
I am learning how to script now and I need help with a simple script that will make a brick transparent 0.25 2 seconds then transparent 0 another 2 seconds.
Don't make fun of my bad script skills. lol.
print 'Hello world!'
function onTouch game.workspace.brick.script Transparent - 0.25 wait(2) Transparent = 0 wait(2) Transparent = 0.25 wait(2) Transparent = 0 end
----
I know it's wrong. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2013 11:38 PM |
first get rid of print 'Hello world!' and second, you have the function on touch delete that too if you dont want it on touch |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2013 11:57 PM |
Hope this helps:
brick = game.workspace.brick
function onTouch(p) brick.Transparency = 0.25 wait(2) brick.Transparency = 0 wait(2) brick.Transparency = 0.25 wait(2) brick.Transparency = 0 end
script.Parent.Touched:connect(onTouch)
~secretidagent |
|
|
| Report Abuse |
|
|
ZombieT2
|
  |
| Joined: 06 May 2012 |
| Total Posts: 6000 |
|
| |
|