|
| 25 Feb 2014 03:47 PM |
i have this :
script.Parent.Touched:connect(function(hit) --Touched Event if hit.Parent:FindFirstChild("Humanoid") ~= nil then --Seeing if touch is a humanoid for i = 1, 10, 1 do --For loop script.Parent.Transparency = i/10 --Setting the part's property to the fo loop variable end end end) --end for for loop, end for if statement, end) for function
But I want the brick to come back after 5 seconds, can somebody modify this for me?
im under your bed |
|
|
| Report Abuse |
|
|
Avorable
|
  |
| Joined: 05 Jan 2014 |
| Total Posts: 847 |
|
|
| 25 Feb 2014 03:48 PM |
script.Parent.Touched:connect(function(hit) --Touched Event if hit.Parent:FindFirstChild("Humanoid") ~= nil then --Seeing if touch is a humanoid for i = 1, 10, 1 do --For loop script.Parent.Transparency = i/10 --Setting the part's property to the fo loop variable end end
wait(5) script.Parent.Transparency = 0
end) --end for for loop, end for if statement, end) for function
|
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 03:49 PM |
thank you!
im under your bed |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 03:54 PM |
Actually that broke the script completely
im under your bed |
|
|
| Report Abuse |
|
|
Avorable
|
  |
| Joined: 05 Jan 2014 |
| Total Posts: 847 |
|
|
| 25 Feb 2014 04:03 PM |
The script wasn't going to work to begin with. You don't have a blocker so it'll rapidly fire when it's touched. |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 04:26 PM |
Then why'd you reply and not tell me the problem?
im under your bed |
|
|
| Report Abuse |
|
|
| |
|