|
| 28 Apr 2014 07:35 PM |
wait() local items={} local player=game.Players.LocalPlayer tool=script.Parent script.Parent.Equipped:connect(function(mouse) local Screen=script.ScreenGui Screen.Parent=player.PlayerGui script.Parent.Unequipped:connect(function() Screen=tool.LocalScript end) end) |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2014 07:39 PM |
just end the first event then write code for the second event |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 28 Apr 2014 07:41 PM |
--Localscript, I don't see the point in the nil table, 'items'.
local items = {} local Player = game.Players.LocalPlayer script.Parent.Equipped:connect(function(mouse) local Screen = script.ScreenGui screen = Screen:Clone() screen.Parent = Player.PlayerGui script.Parent.Unequipped:connect(function() screen:Destroy() end) end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Apr 2014 07:47 PM |
| If I remove the local from the first local, it doesn't work for some stupid reason. |
|
|
| Report Abuse |
|
|
| |
|