Im sorry I need to stop asking question so quickly. I solved it, my bad guys.
I know the title is weird and this is really hard to explain and that is why I made a YouTube video, Its really short like 15 seconds. It just shows the bug in detail that I cannot explain.
https://www.youtube.com/watch?v=QjQeHsK6vHE&feature=youtu.be
Thats a link the the YouTube video its like a minute long it just shows you what happening.
Its like after I click the GUI more than once after hovering the mouse over it, it doesnt go away, And I want it too.
Heres the code shown in the video.
local ClassChose = false
local ClassAlreadyChose = false
script.Parent.Parent.HeavyClass.HeavyClassButton.MouseButton1Click:connect(function()
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 0
end)
script.Parent.Parent.OfficerClass.OfficerClassButton.MouseButton1Click:connect(function()
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 0
end)
script.Parent.Parent.SpecialistClass.SpecialistClassButton.MouseButton1Click:connect(function()
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 0
end)
script.Parent.AssaultClassButton.MouseButton1Click:connect(function()
ClassChose = true
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 5
end)
script.Parent.MouseEnter:connect(function()
ClassAlreadyChose = false
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 5
end)
script.Parent.MouseLeave:connect(function()
if ClassChose == true then
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 5
else
ClassChose = false
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 0
if ClassAlreadyChose == false then
script.Parent.BorderColor3 = Color3.new(255/255, 255/255, 0/255)
script.Parent.BorderSizePixel = 0
end
end
end)
