|
| 05 Jul 2012 01:35 PM |
im trying to make this make the brick's transparency into 1 and the brick when you touch it you fall through. Should it work? while true do script.Parent.Transparency = 0.1 wait(5) script.Parent.Transparency = 0.3 wait(1) script.Parent.Transparency = 0.5 wait(1) script.Parent.Transparency = 0.7 wait(1) script.Parent.Transparency = 0.9 wait(1) script.Parent.Transparency = 1 wait(1) script.Parent.CanCollide = true wait(5) script.Parent.Transparency = 0 wait(1) script.Parent.CanCollide = false wait(1) end
|
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 01:39 PM |
that will...
while true do -- loop script.Parent.Transparency = 0.1 10% invis. wait(5) 5 sec later script.Parent.Transparency = 0.3 30 wait(1) 1 sec script.Parent.Transparency = 0.5 50 wait(1) 1 script.Parent.Transparency = 0.7 70 wait(1) 1 script.Parent.Transparency = 0.9 90 wait(1) 1 script.Parent.Transparency = 1 100 wait(1) 1 script.Parent.CanCollide = true make it able to be hit wait(5) 1 script.Parent.Transparency = 0 make it 100% visible wait(1) 1 script.Parent.CanCollide = false make it walkthrough wait(1) 1 end |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 01:40 PM |
It will not work the way he wants it to.
> † KMXD † |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 01:40 PM |
| CanCollide is "Is this able to be hit?" (true yes false no) |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 05 Jul 2012 01:41 PM |
| That is so messy. Use a for loop for the transparency change. |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 01:59 PM |
| white, i dont know how to do that |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 02:28 PM |
| That will work but it's messy. |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 02:30 PM |
...It will not work the way he wants it to.
> † KMXD † |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 02:40 PM |
script.Parent.CanCollide = true
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then for i = 1,10 do wait() script.Parent.Transparency = script.Parent.Transparency + .1 end script.Parent.CanCollide = false wait(5) script.Parent.Transparency = 0 script.Parent.CanCollide = true end end) |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 02:40 PM |
oh look sword actually read the OP's post
> † KMXD † |
|
|
| Report Abuse |
|
|
| |
|