|
| 23 Sep 2011 05:11 PM |
I need help wit the following script:
wait(5) hit = Script.Parent if hit.Anchored == false then for i=0,1,.1 do hit.Transparency = i wait(0.05) end hit:Remove() end
It's supposed to make the script's parent fade into nothing after 5 seconds. I can't seem to get it to work though. Any help? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Sep 2011 05:19 PM |
Can you help? I've tried everything. I'm stuck. :\ |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 05:19 PM |
try it now.
wait(5) hit = Script.Parent if hit.Anchored == false then --do you need to really check that? your removing the whole model for i=0,1,.1 do hit.Transparency = i wait(0.05) hit:Remove() -- see? end end |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 05:20 PM |
| oh wait, ignore my post... |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 05:22 PM |
| Yes. I need the Anchor check. This script is going into a bullet in a special custom flamethrower that I'm making. I'll try the script you gave me though. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Sep 2011 05:31 PM |
wait(5) hit = script.Parent if hit.Anchored == false then for f = 0,1,.1 do wait(0.05) i = script.Parent:GetChildren() for a = 1, i# do i[a].Transparency = f end end hit:Remove() end
something like this correct me if im wrong though
P.S. hit wouldnt add up to be the thing that the acid hit it would be the acid drop itself |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 05:33 PM |
oops once agian misunderstood boy am i slot *facepalm* here it is i think:
wait(5) hit = script.Parent --u capatilazied script here if hit.Anchored == false then --do you need to really check that? your removing the whole model for i=0,1,.1 do hit.Transparency = i wait(0.05) hit:Remove() end end |
|
|
| Report Abuse |
|
|
| |
|