menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Trying to make a scrolling pitch GUI
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Trying to make a scrolling pitch GUI
LimitedLogic
Join Date: 2015-06-26
Post Count: 53
#228366823
Sunday, December 03, 2017 6:15 AM GMT
Not sure how to do it though.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Soybeen
Join Date: 2010-02-17
Post Count: 21462
#228371421
Sunday, December 03, 2017 9:24 AM GMT
function lerp(a, b, t) return a * (1-t) + (b*t) end local minPitch,maxPitch = 0.5,5 gui.Changed:connect(function() sound.Pitch = lerp(minPitch,maxPitch,gui.AbsoluteWindowSize.X/gui.CanvasPosition.X) -- switch X or Y depending on your scrollbar end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right