DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
|
| 07 Aug 2012 03:02 PM |
im a beginner in scripting i know a bit but not that much, i just want to know whats wrong with this script:
while true do function(onTocuh) for i=1,10 do wait(1) game.Workspace.Part1.Transparency=i/10 end end game.Workspace.Part1.Touched:connect(ontouch) |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 07 Aug 2012 03:05 PM |
-- Recoded with Sublime Text 2
local brick = game.Workspace.Part1
function onTouched() wait(1) game.Workspace.Part1.Transparency = 10 end end brick:connect(ontouch) |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 07 Aug 2012 03:05 PM |
*edit
-- Recoded with Sublime Text 2
local brick = game.Workspace.Part1
function onTouched() wait(1) brick.Transparency = 10 end brick:connect(ontouch) |
|
|
| Report Abuse |
|
|
DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
|
| 07 Aug 2012 03:05 PM |
@xNite515 thats not what i meant... |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 07 Aug 2012 03:06 PM |
*edit oh my god
-- Recoded with Sublime Text 2
local brick = game.Workspace.Part1
function onTouched() wait(1) brick.Transparency = 10 end brick.onTouched:connect(ontouch) |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 07 Aug 2012 03:07 PM |
What did you mean?
You script wouldn't even work. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:07 PM |
while true do function onTouch() for i=1,10 do wait(1) game.Workspace.Part1.Transparency = i end end game.Workspace.Part1.Touched:connect(ontouch)
-- @ColdRBLX on Twitter! |
|
|
| Report Abuse |
|
|
DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
| |
|
DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
| |
|
DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 07 Aug 2012 03:09 PM |
-- Recoded with Sublime Text 2
local brick = game.Workspace.Part1
function onTouched() wait(1) i = 1 brick.Transparency = i/10 end brick.Touched:connect(ontouch) |
|
|
| Report Abuse |
|
|
DjBadyBoy
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 681 |
|
| |
|