Zerkonian
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1668 |
|
|
| 06 Sep 2013 10:16 PM |
Ok, so I thought the "while" loop Made it so while something is happening Another something is happening due to that action so why isnt this working?
while function OnTouched(hit) do
While Someone is touching the brick It will change transparency. Why isnt this right? |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Sep 2013 10:40 PM |
| He asked for a script to make, So I gave him 1 |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2013 10:41 PM |
Add this;
door.CanCollide = false door.Transparency = 0.7 |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 06 Sep 2013 10:43 PM |
The while loop goes while something is true, which is why "while true do" works. You can also do "if true do" but that is horribly redundant, since why would you need to see if true is true. True is always true... at least i hope. |
|
|
| Report Abuse |
|
|
Zerkonian
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1668 |
|
|
| 07 Sep 2013 08:33 AM |
| Its not a door, And alright |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:37 AM |
function onTouched(part)
script.Parent.Transparency = 1 wait(seconds) script.Parent.Transparency = 0
end
script.Parent.Touched:connect(onTouched)
:) |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:38 AM |
UMG ITS SUPEROMAR, Get out. Stop making other people getting more stupid than they already are. AND STOP GIVIN OUT FREE MODELS. Jk I do too. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:42 AM |
| How about you be more mature? |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:45 AM |
| Ok, scripters sometimes tend to go crazy. Maybe not you. I just don't like people who encourage slavery of scripters. Like FreeToTake himself. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:46 AM |
local brick = script.Parent
brick.Touched:connect(function(part) brick.Transparency = 0.5 while (brick.TouchEnded:wait() ~= part) do end brick.Transparency = 0 end) |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 08:50 AM |
| @DragonODeath, I'm just trying to help or so. |
|
|
| Report Abuse |
|
|