How to get UI to smoothly follow

This actually gave me an error saying “ButtonsFrame isn’t a valid member of Frame”; even after changing it to script.Parent and script.Parent.MenuButtons

Oops forgot to change that…

I cant test anything when I dont have your gui… can you upload it as a studio file

GUI.rbxl (27.6 KB)

It works fine, you just changed it to script.Parent.Highlight but you dont have Highlight, your “Highlight” aka your “slider”, is actually just script.Parent

I’ve modified my first script to work with your setup, try this:

local CurrentTween = nil
for i,v in pairs(script.Parent.Parent.MenuButtons:GetChildren()) do
	if v:IsA("TextButton") then
			if CurrentTween ~= nil then CurrentTween:Destroy() end
			local goal = {}
			goal.Position = UDim2.fromScale(script.Parent.Position.X.Scale, v.Position.Y.Scale)
			CurrentTween = game:GetService("TweenService"):Create(script.Parent,, goal)

Menu.rbxm (7.2 KB)


Thank you so much! Works like a charm :slight_smile:

I was messing with your scripts guys, and I managed to do this result

MenuUpgraded.rbxm (1000.1 MB) (jk, just 8 KB)

Not so upgraded tho, Just when your Mouse leaves the transparency sets to 0, and when it enters to 1, And also added an Selected Sound, and yes i know i am late