|
| 12 Jun 2014 11:43 AM |
local light = script.Parent.SpotLight
while true do if script.Parent.Parent.AlarmOnOff.Value == 1 then repeat wait(.1) light.Enabled = false wait(.75) light.Enabled = true until script.Parent.Parent.AlarmOnOff.Value == 0 end end
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 11:47 AM |
Anyones?
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 12 Jun 2014 11:49 AM |
its false > while true do end |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 11:50 AM |
What? What false? Where shall I put the false?
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 12 Jun 2014 11:52 AM |
while true do if script.Parent.Parent.AlarmOnOff.Value == 1 then repeat wait(.1) light.Enabled = false wait(.75) light.Enabled = true until script.Parent.Parent.AlarmOnOff.Value == 0 end end
Removed the things you want to do in it
while true do if script.Parent.Parent.AlarmOnOff.Value == 1 then wait() end end
Lets say if returns false.
while true do end |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 11:54 AM |
So can you add it to my script so I can learn and understand how to do this?
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 11:59 AM |
HOW DO I ADD THIS TO MY SCRIPT?!
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:04 PM |
...
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:06 PM |
| Maybe instead of Enabled use, Visible there |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:07 PM |
It worked fine before I added the "If" part. Sorry for not saying that :(
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:09 PM |
| Are you trying to make custom stamper objects? |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:09 PM |
No. I have like 4 other scripts all working together, do you want them?
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:10 PM |
And also, I am making a fire alarm.
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:13 PM |
Hello? Where did u go?
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:18 PM |
while wait() do if script.Parent.Parent.AlarmOnOff.Value == 1 then repeat wait(.1) light.Enabled = false wait(.75) light.Enabled = true elseif script.Parent.Parent.AlarmOnOff.Value == 0 --Do whatever end end |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2014 12:18 PM |
It will error becuause there is no Until
-Its just roblox... Deal with it- |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2014 07:38 PM |
local light = script.Parent.SpotLight
while true do if script.Parent.Parent.AlarmOnOff.Value == 1 then repeat wait(.1) light.Enabled = false wait(.75) light.Enabled = true until script.Parent.Parent.AlarmOnOff.Value == 0 end end
Stop saying: -Its just roblox... Deal with it-
local light = script.Parent.SpotLight
while true do if script.Parent.Parent.AlarmOnOff.Value == 1 then repeat wait() wait(.1) light.Enabled = false wait(.75) light.Enabled = true until script.Parent.Parent.AlarmOnOff.Value == 0 end end
Try that ^ |
|
|
| Report Abuse |
|
|