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: Fix please...

Previous Thread :: Next Thread 
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:07 PM
I get no output.

local a = game.Workspace.ExplodeModel
cap = script.Parent.Parent.beam
b1 = script.Parent.Parent.b1
b2 = script.Parent.Parent.b2

repeat
wait(5)
until (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) or
(b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow"))

if (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) then
cap.BrickColor = BrickColor.new("Bright red")
a.b1.BrickColor = BrickColor.new ("Bright red")
a.b2.BrickColor = BrickColor.new ("Bright red")
a.b3.BrickColor = BrickColor.new ("Bright red")
a.b4.BrickColor = BrickColor.new ("Bright red")
a.b5.BrickColor = BrickColor.new ("Bright red")
a.b6.BrickColor = BrickColor.new ("Bright red")
a.b7.BrickColor = BrickColor.new ("Bright red")
a.b8.BrickColor = BrickColor.new ("Bright red")
a.b9.BrickColor = BrickColor.new ("Bright red")
a.b10.BrickColor = BrickColor.new ("Bright red")
a.b11.BrickColor = BrickColor.new ("Bright red")
a.b12.BrickColor = BrickColor.new ("Bright red")
a.b13.BrickColor = BrickColor.new ("Bright red")
a.b14.BrickColor = BrickColor.new ("Bright red")
a.b15.BrickColor = BrickColor.new ("Bright red")
a.b16.BrickColor = BrickColor.new ("Bright red")
a.b17.BrickColor = BrickColor.new ("Bright red")
a.b18.BrickColor = BrickColor.new ("Bright red")
end
if (b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow"))
then
cap.BrickColor = BrickColor.new("Bright yellow")
a.b1.BrickColor = BrickColor.new ("Bright yellow")
a.b2.BrickColor = BrickColor.new ("Bright yellow")
a.b3.BrickColor = BrickColor.new ("Bright yellow")
a.b4.BrickColor = BrickColor.new ("Bright yellow")
a.b5.BrickColor = BrickColor.new ("Bright yellow")
a.b6.BrickColor = BrickColor.new ("Bright yellow")
a.b7.BrickColor = BrickColor.new ("Bright yellow")
a.b8.BrickColor = BrickColor.new ("Bright yellow")
a.b9.BrickColor = BrickColor.new ("Bright yellow")
a.b10.BrickColor = BrickColor.new ("Bright yellow")
a.b11.BrickColor = BrickColor.new ("Bright yellow")
a.b12.BrickColor = BrickColor.new ("Bright yellow")
a.b13.BrickColor = BrickColor.new ("Bright yellow")
a.b14.BrickColor = BrickColor.new ("Bright yellow")
a.b15.BrickColor = BrickColor.new ("Bright yellow")
a.b16.BrickColor = BrickColor.new ("Bright yellow")
a.b17.BrickColor = BrickColor.new ("Bright yellow")
a.b18.BrickColor = BrickColor.new ("Bright yellow")
end
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Oct 2012 07:12 PM
So inefficient, D:.

http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information.
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:13 PM
local a = game.Workspace.ExplodeModel
cap = script.Parent.Parent.beam
b1 = script.Parent.Parent.b1
b2 = script.Parent.Parent.b2

repeat
wait(5)
until (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) or
(b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow"))

if (b1.BrickColor==BrickColor.new("Bright red")) then
cap.BrickColor = BrickColor.new("Bright red")
for i = 1,18 do
a["b"..i].BrickColor = BrickColor.new ("Bright red")
end
else
for i = 1,18 do
a["b"..i].BrickColor = BrickColor.new("Bright yellow")
end
end
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:28 PM
@Careless

I know, I tried it the what Blaboblox did it before, it wouldn't work.


@Bla

Does not work with no output.
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:30 PM
local a = game.Workspace.ExplodeModel
cap = script.Parent.Parent.beam
b1 = script.Parent.Parent.b1
b2 = script.Parent.Parent.b2

repeat
wait(5)
print("Beep")
until (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) or
(b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow"))

if (b1.BrickColor==BrickColor.new("Bright red")) then
cap.BrickColor = BrickColor.new("Bright red")
for i = 1,18 do
a["b"..i].BrickColor = BrickColor.new ("Bright red")
end
else
for i = 1,18 do
a["b"..i].BrickColor = BrickColor.new("Bright yellow")
end
end

-- Does it print beep every 5 seconds?
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:34 PM
No.
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:34 PM
Wait, nevermind. It just did.
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:35 PM
Then you're not running it right or your output quit working. Try restarting your test window?
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:35 PM
Whoops. Does it stop at any point or does it keep beeping?
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:36 PM
As I said, it just did. It only print it once though, after I restarted studio.
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:38 PM
local a = game.Workspace.ExplodeModel
cap = script.Parent.Parent.beam
b1 = script.Parent.Parent.b1
b2 = script.Parent.Parent.b2

repeat
wait(5)
print("Beep")
until (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) or
(b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow"))

print("Moving on")

local xColor = b1.BrickColor
cap.BrickColor = xColor
for i = 1,18 do
a["b"..i].BrickColor = xColor
end

-- Now what's it say?
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:39 PM
I got one beep, then "Moving on".
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:40 PM
And still no error message?
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:43 PM
No error, but the script is supposed to change b1 and b2 to bright red if they are touched by the team of teamcolor "Bright red". The colors change for b1 and b2 correctly, but the a.b1-a.b18 does not change to bright red. By default, b1-b18 are colored bright yellow. The reason the script exists is so it listens for the color of b1-b2 to change to bright red, and then after that waits for it to be changed back to bright yellow again.
Report Abuse
Blaboblox is not online. Blaboblox
Joined: 12 Sep 2008
Total Posts: 8945
13 Oct 2012 07:46 PM
local a = game.Workspace.ExplodeModel
cap = script.Parent.Parent.beam
b1 = script.Parent.Parent.b1
b2 = script.Parent.Parent.b2

repeat
wait(5)
if (b1.BrickColor==BrickColor.new("Bright red") and b2.BrickColor==BrickColor.new("Bright red")) or
(b1.BrickColor==BrickColor.new("Bright yellow") and b2.BrickColor==BrickColor.new("Bright yellow")) then
local xColor = b1.BrickColor
cap.BrickColor = xColor
for i = 1,18 do
a["b"..i].BrickColor = xColor
end
end
until false

-- Is this what you want?
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
13 Oct 2012 07:49 PM
Thanks, that one worked.
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