My script:
script.Parent.Visible = true
player = game.Players.LocalPlayer
mouse = player:GetMouse()
down = false
top = false
bottom = false
script.Parent.Changed:connect(function(value)
if value == "Position" then
while down == true and wait() do
local posY = script.Parent.Position.Y.Offset
print("DownLoop "..posY)
if posY < -400 then
top = true
print("Top = true")
elseif posY > 200 then
down = true
print("Down = true")
end
if top == true and down == true then
print("Both = true")
script.Parent.Visible = false
script.Disabled = false
end
end
end
end)
mouse.Button1Down:connect(function()
down = true
print("Down")
end)
mouse.Button1Up:connect(function()
print("Up")
down = false
top = false
bottom = false
end)
When I click the frame the Button1Down event is not fired.

1 comment
You could use the script in conjunction with the Mouse Button1Down event.