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: What's wrong with this script?

Previous Thread :: Next Thread 
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
06 Dec 2011 02:55 PM
while true do
wait(0.05)
game.Lighting.Ambient = Vector3.new(-12; -12; -12)
wait(0.05)
game.Lighting.Ambient = Vector3.new(-13; -13; -13)
end

I think it should work...
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
06 Dec 2011 03:04 PM
Everything looks fine, I'm not much of a scripter but it shouldn't have any problems.


Try

while true do
wait(0.1)
game.Lighting.Ambient = Vector3.new(-12; -12; -12)
wait(0.1)
game.Lighting.Ambient = Vector3.new(-13; -13; -13)
end

Doubt that would be the problem though.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
06 Dec 2011 03:08 PM
This will work, I tested it:

while true do
wait(0.05)
game.Lighting.Ambient = Color3.new(-12, -12, -12)
wait(0.05)
game.Lighting.Ambient = Color3.new(-13, -13, -13)
end



~How munched it that birdy in the window? ~
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
06 Dec 2011 03:12 PM
@TheWisest

Awesome, it works thanks!

but can you tell me what I did wrong? I saw that "end" changed colors despite already being spelled correctly
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
06 Dec 2011 03:18 PM
Sure.

'Vector3' is most commonly used for positioning, and Color3 is used for, well, coloring on the RBG scale. All you had to do is switch 'Vector3' to 'Color3' and you'd been fine. :)

~How munched it that birdy in the window? ~
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
06 Dec 2011 03:20 PM
Ok thanks, that was usefull information I'll use later on :D
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
06 Dec 2011 03:24 PM
Not a problem. :D

Oh by the way, The 'SwordQuest' thing you're working looks AWESOME! Can't wait for it to come out, I even joined the group. :D

~How munched it that birdy in the window? ~
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
06 Dec 2011 03:36 PM
Thanks for helping me Prince, not sure if the ascript works though. But, sorry I couldn't help you out, I mean, I'm not a scripter, it looked proper though.

*currently learning scripting*
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