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: Wth? ')' expected near 'stone'

Previous Thread :: Next Thread 
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 01:56 PM
I don't know why, but this script is messed up somehow.
s = script.Parent
s.BrickColor.new(Dark stone grey)
wait(3)
s.BrickColor = Brickcolor.new(Really blue)
wait(3)
s.BrickColor = Brickcolor.new(Bright blue)
wait(3)
end
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 01:58 PM
s = script.Parent
s.BrickColor.new("Dark stone grey")
wait(3)
s.BrickColor = Brickcolor.new("Really blue")
wait(3)
s.BrickColor = Brickcolor.new("Bright blue")
wait(3)
end

colors must be in quotations.
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 01:59 PM
OH! TY!
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:02 PM
no worries
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 02:03 PM
Wait: Still broken
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:05 PM
oh wait im sorry i wasnt really paying attention

s = script.Parent
s.BrickColor = BrickColor.new.new("Dark stone grey")
wait(3)
s.BrickColor = BrickColor.new("Really blue")
wait(3)
s.BrickColor = BrickColor.new("Bright blue")
wait(3)
end
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 02:08 PM
Still broken.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:10 PM
It shouldn't be. Post the whole script for me. and the error.
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
06 Sep 2014 02:11 PM
s = script.Parent
s.BrickColor = BrickColor.new("Dark stone grey")
wait(3)
s.BrickColor = BrickColor.new("Really blue")
wait(3)
s.BrickColor = BrickColor.new("Bright blue")
wait(3)
end

Tell me if this fixes it.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:14 PM
Yeah his should work. I had to stop and look at what I did. I accidentally placed BrickColor.new.new

I'm very sorry. I'm trying to help so many people all at once.
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 02:17 PM
Still no
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
06 Sep 2014 02:17 PM
Post the whole script, and if the error changed.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:19 PM
Here, this DOES work

s = script.Parent
s.BrickColor = BrickColor.new("Dark stone grey")
wait(3)
s.BrickColor = BrickColor.new("Really blue")
wait(3)
s.BrickColor = BrickColor.new("Bright blue")
wait(3)


You did not need the "end" on the end (lol) since there was no function to begin with.
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
06 Sep 2014 02:21 PM
Hold on, I think I know.

function whatever()
s = script.Parent
s.BrickColor = BrickColor.new("Dark stone grey")
wait(3)
s.BrickColor = BrickColor.new("Really blue")
wait(3)
s.BrickColor = BrickColor.new("Bright blue")
wait(3)
end)

It was probably nested in a function.
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 02:21 PM
Thanks guys! Here you go:
function onClicked()
s = script.Parent
s.BrickColor = BrickColor.new("Dark stone grey")
wait(3)
s.BrickColor = BrickColor.new("Really blue")
wait(3)
s.BrickColor = BrickColor.new("Bright blue")
wait(3)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:22 PM
Now that we've identified the source of the problem, allow me to make up for my mistakes by making it more efficient.
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:26 PM
Part = script.Parent; DB = false
Part.ClickDetector.MouseClick:connect(function()
if DB == false then DB = true
local Colors = {"Dark stone grey", "Really blue", "Bright blue"}
for i = 1, 3, 1 do Part.BrickColor = BrickColor.new(Colors[i])
wait(3) end DB = false end end)


:D
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
06 Sep 2014 02:39 PM
http://www.roblox.com/my/Item.aspx?id=176585198
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