I have a Part with a SurfaceGui that’s supposed to be a screen displaying match stats, however I’d like to create an effect for it to appear as if it’s hovering up and down very slightly, since it’s floating in midair.
I’d appreciate any suggestions or examples on how I could do this, as I tried it with TweenService and it didn’t work out too well.
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(--[[time it takes to complete a bob]], Enum.EasingStyle.Quart/Quint`, Enum.EasingDirection.Out, --[[repeat count]], --reverses - true/false]], --[[delay for each repeat]])
local bob = TweenService:Create(--[[part to bob]], tweenInfo, --[[new position for the part]])
bob:Play()