generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Parent-Removing Acid Script

Previous Thread :: Next Thread 
AquaRaider1 is not online. AquaRaider1
Joined: 22 Nov 2009
Total Posts: 3399
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
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
23 Sep 2011 05:17 PM
is that the whole script?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
23 Sep 2011 05:17 PM
oh wait nvm.
Report Abuse
AquaRaider1 is not online. AquaRaider1
Joined: 22 Nov 2009
Total Posts: 3399
23 Sep 2011 05:19 PM
Can you help? I've tried everything. I'm stuck.
:\
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
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
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
23 Sep 2011 05:20 PM
oh wait, ignore my post...
Report Abuse
AquaRaider1 is not online. AquaRaider1
Joined: 22 Nov 2009
Total Posts: 3399
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
AquaRaider1 is not online. AquaRaider1
Joined: 22 Nov 2009
Total Posts: 3399
23 Sep 2011 05:25 PM
Nope, still doesn't work.
Report Abuse
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
AquaRaider1 is not online. AquaRaider1
Joined: 22 Nov 2009
Total Posts: 3399
23 Sep 2011 05:38 PM
Nice, it works! Thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image