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: Help with a disco floor.

Previous Thread :: Next Thread 
Pokemon4Ever78 is not online. Pokemon4Ever78
Joined: 22 Jan 2009
Total Posts: 422
18 Feb 2012 05:01 AM
I am just learning to script and I tried to make a disco floor, here is my script.

local S1 = Workspace.Dance.2.Script1
while true do
wait(0.5)
script.Parent.BrickColor3.new = S1.Parent.Parent.Color1
wait(0.5)
script.Parent.BrickColor3.new = S1.Parent.Parent.Color2
end

and here is my game

-workspace
(next line)
-Dance (Model)
(next line)
-Color1 (BrickColorValue)
-Color2 (BrickColorValue)
-2 (Brick)
(next line)
-Script1


Please help me, I am just learning to script.
Report Abuse
Pokemon4Ever78 is not online. Pokemon4Ever78
Joined: 22 Jan 2009
Total Posts: 422
18 Feb 2012 05:02 AM
I got this error in output,
Workspace.Dance.2.Script1:1: malformed number near '.2.Script1'
Report Abuse
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
18 Feb 2012 05:13 AM
That is not how BrickColor works

c = BrickColor.Random()
script.Parent.BrickColor = c
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
18 Feb 2012 05:39 AM
Try this(i changed the '1' with 'one'):

    local S1 = Workspace.Dance.2.Scriptone
    while true do
    wait(0.5)
    script.Parent.BrickColor3.new = S1.Parent.Parent.Color1
    wait(0.5)
    script.Parent.BrickColor3.new = S1.Parent.Parent.Color2
    end
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