I’m trying to make a chapter GUI/Frame move down when a button is pressed.
Despite there being no errors, it isn’t working. When I open explorer and select the frame so it’s highlighted, when the tween is triggered, the highlight is brought down but the GUI itself doesn’t. https://gyazo.com/3a95ea4ffe5ed5e0b00d5bc8e2a77675 (the gui that’s supposed to be brought down is the white box, the white outline in the end is the highlight)
I’ve looked for solutions, but I haven’t found any tween script support topics that relate to my specific problem. Changing it to a normal script didn’t help either.
the localscript inside the button
local framebit = game.StarterGui.ChapterSelect.Frame
local button = script.Parent
button.MouseButton1Click:Connect(function()
framebit:TweenPosition(
UDim2.new(0.5, 0, 0.5, 0),
"Out",
"Back",
1,
true
)
end)
dont say startergui.RandomName
say plr.PlayerGui.Screenguiname
or do it the long way
local plr = game.Players.LocalPlaer
local plrgui = plr.PlayerGui
local screengui = plrgui.ScreenGuiname