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: for loop

Previous Thread :: Next Thread 
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
15 Oct 2014 03:14 PM
problem: lines 8-12, the pitch would get to -1 but it won't go back to 1

welp


local x = game.Workspace.DJBoardPRO

script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Parent.SongPlayNoter.Visible == true then
for s = 1, -1, -.1 do
wait(.04)
x.Sound.Pitch = s
if x.Sound.Pitch == "-1" then
wait(.3)
x.Sound.Pitch = "1"
break
end
end
end
end)
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Oct 2014 03:15 PM
"-1"

Pitch is a number, not a string.

-1 or 1
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
15 Oct 2014 03:16 PM
Remove the speech marks, since that casts it from a number into a string which is wrong
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Oct 2014 03:17 PM
speech marks? That's not their name.

They are quotation marks.
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
15 Oct 2014 03:19 PM
argharghgah


Thanks guys.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
15 Oct 2014 03:21 PM
"speech marks? That's not their name.

They are quotation marks."


There's multiple names for "Quotation Marks".
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Oct 2014 03:23 PM
Oh, really?

Perhaps a shortened work, quotes... " ... or even %22...
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