generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: why is it not working?

Previous Thread :: Next Thread 
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
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
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
26 Jul 2015 09:24 AM
b
Report Abuse
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
26 Jul 2015 02:48 PM
b2
Report Abuse
TimeTicks is not online. 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
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
26 Jul 2015 03:46 PM
It's not working
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
26 Jul 2015 03:47 PM
Trying to access ServerStorage from a localscript
Report Abuse
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
26 Jul 2015 03:55 PM
I am using localscript
Report Abuse
AviatorJake is not online. AviatorJake
Joined: 30 Jan 2014
Total Posts: 1528
26 Jul 2015 03:56 PM
I'm using surfacegui buttons for this
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image