|
| 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 |
|
|
|
| 15 Oct 2014 03:15 PM |
"-1"
Pitch is a number, not a string.
-1 or 1 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 15 Oct 2014 03:17 PM |
speech marks? That's not their name.
They are quotation marks. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 15 Oct 2014 03:23 PM |
Oh, really?
Perhaps a shortened work, quotes... " ... or even %22... |
|
|
| Report Abuse |
|
|