Jack1278
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5943 |
|
|
| 15 Sep 2015 09:45 PM |
| I'm trying to make a brick that automatically disappears (not when touched) every five minutes, but I'm not quite sure HOW I'll do that. I try to look in free models to learn from them but all of them are bricks that disappear when you touch them. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 09:48 PM |
while wait(1) do brick = urbrick brick.Transparency = 0 wait(5 minutes in seconds) brick.Transparency = 1 wait() end
nursing a baby pinecone back to health |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 09:48 PM |
While true do script.Parent.Parent.(PART NAME HERE).Transparency = 1 wait (300) script.Parent.Parent.(PART NAME HERE).Transparency = 0
end |
|
|
| Report Abuse |
|
|
Jack1278
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5943 |
|
|
| 15 Sep 2015 09:54 PM |
| Doesn't work for me. Maybe because many other things in my Workspace are named ''Part'' |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 10:15 PM |
brick = script.Parent
while true do brick.Transparency = 0 wait(300) brick.Transparency = 1 end
Put this script INSIDE of the part you want to turn invisible. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 10:17 PM |
| Then rename the part to something like ''part1337'' and then name it into the script. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 10:19 PM |
Put this script inside the brick.
while wait(300) do script.Parent.Transparency = script.Parent.Transparency == 1 and 0 or 1 end |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 10:21 PM |
| All the code on this post will just return the brick to 0 transparency after it is made invisible. I'm disappointed. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 10:24 PM |
| @Long, Considering he never specified how long he wanted it to disappear, I blame the OP. |
|
|
| Report Abuse |
|
|
Jack1278
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5943 |
|
|
| 16 Sep 2015 04:46 PM |
| oh, i forgot to say the brick will be invisible for 5 seconds. oopsies |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 05:17 PM |
| u forgot to tell us how many seconds it will be invisible |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 05:19 PM |
#code while wait(5) do script.Parent.Transparency = -script.Parent.Transparency end
#code return |
|
|
| Report Abuse |
|
|
OakBerry
|
  |
| Joined: 18 May 2015 |
| Total Posts: 407 |
|
|
| 16 Sep 2015 05:29 PM |
-- Put this script inside of your part.
while true do wait(300) script.Parent.Transparency = 1 wait(5) script.Parent.Transparency = 0 end
|
|
|
| Report Abuse |
|
|