Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make a button that has a push down animation but Im not sure what to do?

Trying to make some button that has a push down animation when mousebutton1down, I got the click part working, just not the animation kind of thing. Just trying to move the pos, and size, not actual animation, unless that is needed

script.Parent.MouseButton1Down:Connect(function()
	game.StarterGui.ScreenGui.Frame.MenuBUTTON.Position = UDim2.new({-0.065, 0},{-0.436, 0})
	game.StarterGui.ScreenGui.Frame.Main.Position = UDim2.new({0.538, 0},{0.37, 0})
	game.StarterGui.ScreenGui.Frame.Outline.Position = UDim2.new({0.538, 0},{0.484, 0})
	print("3")
end)

1 answer

Change all game.StarterGuis to game.Players.LocalPlayer.PlayerGui. This will refer to the Guis inside the players.

This discussion is preserved as it was. New answers, comments, and votes are closed.