Hey there! I am currently scripting a music system, and I am trying to set the octave to what the player enters. Using a remote event, I send the pitch and change it on the server script.
--creation script
local pitchsound = Instance.new("PitchShiftSoundEffect")
pitchsound.Parent = sound
pitchsound.Name = "Pitchvalue"
pitchsound.Octave = pitch
the pitch, which I set pitchsound.octave to, was in the not working case, 0.7. (It worked when I set 0.5 or 1)
When I printed the numbers however, this is what I got
The first one is the pitch value I sent with the remote event. The second one is the value of pitch.Octave.
Can someone tell me why this happens?
Thanks 