|
| 26 May 2014 09:01 PM |
I'm trying to get this GUI of mine to work and I edited it out from a friend that gave it to me. But, I tested it out and the click Close it's broke.
print("Close button loaded")
button = script.Parent window = script.Parent.Parent.Parent.Parent
function onClicked(GUI) window:remove() end script.Parent.MouseButton1Click:connect(onClicked)
That's the script. |
|
|
| Report Abuse |
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 26 May 2014 09:03 PM |
ok here ya go, good as new
print('swag button loaded')
local window = script.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:connect(function() window:Destroy() end)
ˢᶦᵈᵉ ᵉᶠᶠᵉᶜᵗˢ ᵐᵃʸ ᶦᶰᶜᶫᵘᵈᵉ﹕ ᶫᵃᶜᵗᵃᵗᶦᶰᵍ, ʰᵉᵃᵈ ᵉˣᵖᶫᵒᵈᶦᶰᵍ ˢʸᶰᵈʳᵒᵐᵉ, ᵃᶰᵈ ᶫᵒˢˢ ᵒᶠ ᵍᵉᶰiᵗᵃᶫˢ |
|
|
| Report Abuse |
|