|
| 18 Jan 2015 01:05 PM |
| and make the decal respawn after like however many seconds? |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 18 Jan 2015 01:14 PM |
| goul that didnt work the decal doesn't fade. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 18 Jan 2015 01:32 PM |
| But if you told me and explained it too me I would be very appreciative. |
|
|
| Report Abuse |
|
|