yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 16 Jul 2011 12:11 PM |
Sorry for te caps, i really need dees
function onHit(Hit) script.Parent.Transparent=1 script.Parent.Cancollide=true wait(60) script.Parent.Transparent=0 script.Parent.Cancollide=false end script.Parent.Hit:connect
The problem (I think) I sthe connection line Im new to scripting :-) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2011 12:12 PM |
script.Parent.Touched:connect(function() script.Parent.Transparency=1 script.Parent.CanCollide=true wait(60) script.Parent.Transparency=0 script.Parent.CanCollide=false end) |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 16 Jul 2011 12:12 PM |
function onHit(Hit) script.Parent.Transparent=1 script.Parent.CanCollide=true wait(60) --This will wait a minute. Are you sure you want it that long? script.Parent.Transparent=0 script.Parent.CanCollide=false end script.Parent.Touched:connect(onHit) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2011 12:12 PM |
| @Zeke, Transparent, line 2 and 5 |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 16 Jul 2011 12:12 PM |
Crap. I forgot to change Transparent to Transparency. lol
**[[FLOODCHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEECK]]** |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 16 Jul 2011 12:16 PM |
| If you could add this, It should check if the object wich hit the object is named Katana otherwise it wouldnt work. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2011 12:17 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent.Name == "Kantana" then script.Parent.Transparency=1 script.Parent.CanCollide=true wait(60) script.Parent.Transparency=0 script.Parent.CanCollide=false end end) |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 16 Jul 2011 12:25 PM |
| Wait..It doesnt works with tools, Even when i chenge Katana to Handle. |
|
|
| Report Abuse |
|
|