KarII_GG
(Karl)
April 3, 2022, 3:06pm
#1
local btn = script.Parent
local isHovering = false
btn.MouseButton1Down:Connect(function()
btn:TweenSize(UDim2.new(1.273, 0,1.134, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Up:Connect(function()
if not isHovering then
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
else
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end
btn.MouseButton1Up:Connect(function(clicked)
script.Parent.menuicon.Frame.Visible = true
if not clicked then
script.Parent.menuicon.Frame.Visible = false
end
end)
what the problem
(Characters limit)
KarII_GG
(Karl)
April 3, 2022, 3:12pm
#3
did you forget to close the then in 21?
KarII_GG
(Karl)
April 3, 2022, 3:13pm
#4
if not clicked then
that line
add one more end
(character limit)
KarII_GG
(Karl)
April 3, 2022, 3:14pm
#6
i added
before adaadadadadadadadadadada
KarII_GG
(Karl)
April 3, 2022, 3:15pm
#7
same didnt work bro any other idea
I alr tried that one
u didnt close the function() thing so add one more end()
edit: nvm
KarII_GG
(Karl)
April 3, 2022, 3:16pm
#9
maybe it’ll work
character limit
local btn = script.Parent
local isHovering = false
btn.MouseButton1Down:Connect(function()
btn:TweenSize(UDim2.new(1.273, 0,1.134, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Up:Connect(function()
if not isHovering then
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
else
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end
end)
btn.MouseButton1Up:Connect(function(clicked)
script.Parent.menuicon.Frame.Visible = true
if not clicked then
script.Parent.menuicon.Frame.Visible = false
end
end)
KarII_GG
(Karl)
April 3, 2022, 3:19pm
#11
also, how can I make it close when clicked again? if you help you’re the best
KarII_GG
(Karl)
April 3, 2022, 3:22pm
#13
help then it would be cool
(character limit)
KarII_GG
(Karl)
April 3, 2022, 3:24pm
#15
TurtlesUnknown:
local btn = script.Parent
local isHovering = false
btn.MouseButton1Down:Connect(function()
btn:TweenSize(UDim2.new(1.273, 0,1.134, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Up:Connect(function()
if not isHovering then
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
else
btn:TweenSize(UDim2.new(2.358, 0,0.271, 0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end
end)
-- I've only changed the last function here
btn.MouseButton1Up:Connect(function(clicked)
script.Parent.menuicon.Frame.Visible = not script.Parent.menuicon.Frame.Visible
-- This sets the visibility to the opposite of what it was
end)
you helped ty
ill test (character limit)
KarII_GG
(Karl)
April 3, 2022, 3:25pm
#16
i asked alr for that bro but didn’t work
KarII_GG
(Karl)
April 3, 2022, 3:25pm
#17
other question has solved
(character limit)