generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Please Help me Fix This -- No OutPut

Previous Thread :: Next Thread 
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
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
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 11:47 AM
Anyones?

-Its just roblox... Deal with it-
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
12 Jun 2014 11:49 AM
its false >
while true do end
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 11:50 AM
What? What false? Where shall I put the false?

-Its just roblox... Deal with it-
Report Abuse
vlekje513 is not online. 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
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
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
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 11:59 AM
HOW DO I ADD THIS TO MY SCRIPT?!

-Its just roblox... Deal with it-
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 12:04 PM
...

-Its just roblox... Deal with it-
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
12 Jun 2014 12:06 PM
Maybe instead of Enabled use, Visible there
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
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
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
12 Jun 2014 12:09 PM
Are you trying to make custom stamper objects?
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
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
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 12:10 PM
And also, I am making a fire alarm.

-Its just roblox... Deal with it-
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 12:13 PM
Hello? Where did u go?

-Its just roblox... Deal with it-
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
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
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Jun 2014 12:18 PM
It will error becuause there is no Until

-Its just roblox... Deal with it-
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image