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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

how would I make a on touched fading decal script

Previous Thread :: Next Thread 
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:05 PM
and make the decal respawn after like however many seconds?
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
18 Jan 2015 01:09 PM
BEHOLD

THE TOUCHED EVENT
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
18 Jan 2015 01:10 PM
local regen = 5 --seconds before it regens
local db = false

function fade(obj,start,endd,incr,float)
for i = start,endd,incr do
obj.Transparency = i
wait(float)
end
end

script.Parent.Touched:connect(function(hit)
if db == false then db = true
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
fade(script.Parent.Parent.Decal,0,1,.1,.1)
wait(regen)
fade(script.Parent.Parent.Decal,1,0,-.1,.1)
end
wait(.5)
db = false
end
end)
Report Abuse
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:14 PM
goul that didnt work the decal doesn't fade.
Report Abuse
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:18 PM
and btw as soon as I created that script I was infected so you were succsessful.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
18 Jan 2015 01:18 PM
You're probably indexing the decal wrong, change the fade functio arguments when you call it.

And before any scrubs say 'OGM TRARNSPAECY ARE N0T A PR0P3RTY 0F D3C@L Pl0x@!!!!@11!!!'

http://wiki.roblox.com/index.php?title=API:Class/Decal/Transparency
Report Abuse
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:21 PM
btw how do I get rid of an infection that was in your script it keeps appearing after I delete.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
18 Jan 2015 01:24 PM
I didn't create the infection you ungrateful little scrub. It's because you're a dumb free modeler that can't do his own work that you got an infection. My script would work if you had the slightest knowledge of lua to change 2 lines.
Report Abuse
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:29 PM
Oh ok btw my place is very few free models I actually just inserted the script and received the infection but are you mad because i'm not I just simply asked you how to remove it, either its in your script or someone has access to my computer.
Report Abuse
Unanalyzed is not online. Unanalyzed
Joined: 29 Dec 2014
Total Posts: 2556
18 Jan 2015 01:32 PM
But if you told me and explained it too me I would be very appreciative.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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