what i am trying to do is when you hold m the Gui begins to increase in size. the problem is that instead of holding this starts to work when i click it, how can i make it into a hold script and if i let go it reverts back to original size and has to start over? nothing in output
if key == "m" and db == false then
db = true
mining = true
while b < 100 do
wait(.1)
b = b+1
player.PlayerGui.ScreenGui.Frame.Hold.Completion.Size = player.PlayerGui.ScreenGui.Frame.Hold.Completion.Size + UDim2.new(0.01,0,0.0,0)
end
db = false
end
eventmouse.KeyUp:connect(function(key)
if key == "m" and mining == true then
mining = false
player.PlayerGui.ScreenGui.Frame.Hold.Completion.Size = UDim2.new(.05,0,1,0)
end
end)
end)
