Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
0
Answered by
DesertusX 435 Moderation Voter
4 years ago

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

Ad

Answer this question