WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 31 Jul 2013 09:31 AM |
for i,v in ipairs(movelist:GetChildren()) do if v:IsA("TextButton") then num = num + 1 getfenv()["Enter"..num] = v.MouseEnter:connect(function() print(num) end) getfenv()["blah"..num] = v.MouseButton1Down:connect(function() print(num) for happy = 1, 4 do if getfenv()["Enter"..happy] ~= nil then getfenv()["Enter"..happy]:disconnect() end if getfenv()["blah"..happy] ~= nil then getfenv()["blah"..happy]:disconnect() end end end end
this script works fine except it won't disconnect the events |
|
|
| Report Abuse |
|