so i know you can increase a numerical value using small increments but is there any way to do it fully smoothly
so something like this but instead of the wait at "HERE" then something to smoothly transition between the values
01 | part = game.Workspace.Part |
02 | touchpad = script.Parent |
03 |
04 | cd = false |
05 |
06 | touchpad.Touched:Connect( function (p) |
07 | if p.Parent:FindFirstChild( "HumanoidRootPart" ) then |
08 | if cd = = false then |
09 | cd = true |
10 | part.Transparency = 1 |
11 | wait( 1 ) -- HERE |
12 | part.Transparency = 0 |
13 | cd = false |
14 | end |
15 | end |
Changing properties values over time can be done using TweenService. Links that can help :https://developer.roblox.com/en-us/api-reference/class/TweenService , https://www.youtube.com/watch?v=pKbQbCf9i90