|
| 26 Jul 2015 09:10 AM |
local itemname = "FMenu"
local item = game.ServerStorage:findFirstChild(tostring(itemname)) local trigger = script.Parent
enabled = true
script.Parent.Reset.MouseButton1Down:connect(function()
if game.Players.LocalPlayer.Backpack:findFirstChild(tostring(itemname)) == nil and enabled == true then
enabled = false
local itemclone = item:clone() itemclone.Parent = game.Players.LocalPlayer.Backpack wait(2)
enabled = true
end end)
No output nor red/blue lines. Any solutions? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Jul 2015 02:53 PM |
local player = game.Players.LocalPlayer local menu = game.ServerStorage.FMenu local trigger = script.Parent local debounce = false
script.Parent.Reset.MouseButton1Click:connect(function() if not debounce and not player.Backpack:FindFirstChild(menu.Name) then debounce = true local clone = menu:Clone() clone.Parent = player.Backpack wait(2) debounce = false end end)
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
| |
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 26 Jul 2015 03:47 PM |
| Trying to access ServerStorage from a localscript |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2015 03:56 PM |
| I'm using surfacegui buttons for this |
|
|
| Report Abuse |
|
|