|
| 29 Nov 2014 11:31 PM |
Hi, i'm just learning to script and so far i'm doing better than ever! I've just started to mess around with scripts and bricks, so far its going great. One problem i have is that this script for some reason isn't working. Would anyone tell me why?
local part = Instance.new('Part',game.Workspace) part.Anchored = true part.Transparency = .3 part.BrickColor = BrickColor.new('Bright red') part.Touched:connect(function() part.Transparency = 0 wait(2) part.Transparency = .3 wait(2) part.Transparency = .6 wait(2) part.Transparency = .9 wait (2) if part.Transparency ~= .9 then part = nil end)
|
|
|
| Report Abuse |
|
|
Qivr
|
  |
| Joined: 22 Aug 2014 |
| Total Posts: 5407 |
|
|
| 29 Nov 2014 11:33 PM |
is the problem that the part doesn't disappear? if so, you'd need to make the transparency something other .9 because you didn't change it after part.Transparency = .9 if something else is wrong, I'd need to know where it stop working
[Qivr] Hail Greenland! |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2014 11:35 PM |
| I was hoping for it to go from 0, to 6, to 9, wait 2 then go nil. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2014 11:36 PM |
| All it does is dissappear when i enter the game. |
|
|
| Report Abuse |
|
|
Qivr
|
  |
| Joined: 22 Aug 2014 |
| Total Posts: 5407 |
|
|
| 29 Nov 2014 11:37 PM |
local part = Instance.new('Part',game.Workspace) part.Anchored = true part.Transparency = .3 part.BrickColor = BrickColor.new('Bright red') part.Touched:connect(function() part.Transparency = 0 wait(2) part.Transparency = .3 wait(2) part.Transparency = .6 wait(2) part.Transparency = .9 wait (2) part = nil end)
[Qivr] Hail Greenland! |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2014 11:37 PM |
| sorry go from 0 to 6 then when it reached 9 it disappeared. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Nov 2014 11:42 PM |
| It didn't work. So i put part:destroy() end) |
|
|
| Report Abuse |
|
|