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: Brick Color Changing

Previous Thread :: Next Thread 
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
06 Apr 2014 01:38 PM
Ok so i have this UFO script, islandmaker2012 made me, i added walkspeed and color, it works but listen closely

it works like this :

m = Workspace.McChicken72
dist = m.Torso.Size.Y/2
dist = dist+m["Right Leg"].Size.Y

p = Instance.new("Part",m)
p.Size = Vector3.new(7,1,7)
p.Anchored = true
Instance.new("CylinderMesh",p)
while wait() do
p.CFrame = m.Torso.CFrame*CFrame.new(0,-dist-0.7,0)
p.BrickColor = BrickColor.new ("Really red")
m.Humanoid.WalKSpeed = 24
end


but then when i change it to this :


m = Workspace.McChicken72
dist = m.Torso.Size.Y/2
dist = dist+m["Right Leg"].Size.Y

p = Instance.new("Part",m)
p.Size = Vector3.new(7,1,7)
p.Anchored = true
Instance.new("CylinderMesh",p)
while wait() do
p.CFrame = m.Torso.CFrame*CFrame.new(0,-dist-0.7,0)
while true do
p.BrickColor = BrickColor.new ("Really red")
wait(4)
p.BrickColor = BrickColor.new ("Toothpaste")
end
m.Humanoid.WalKSpeed = 24
end



It breaks...
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
06 Apr 2014 01:39 PM
bumpidity
Report Abuse
DrMathematica is not online. DrMathematica
Joined: 29 Aug 2008
Total Posts: 27268
06 Apr 2014 01:40 PM
There's an additional 'end' that wasn't there before.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
06 Apr 2014 01:41 PM
yes thats for the while do loop. im shure i need one :/ it looks fine to me :/
Report Abuse
DrMathematica is not online. DrMathematica
Joined: 29 Aug 2008
Total Posts: 27268
06 Apr 2014 01:42 PM
Yes, you have one fore the 'do' block, but there's another one. You only need one, and you have two.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
06 Apr 2014 01:45 PM
oh lemme try dat :/
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
06 Apr 2014 01:49 PM
Still breaks with color changing plz fix


i want to fly and float downwards with colr changing :O

it wiorks with 1 color only
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