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 » Scripting Helpers
Home Search
 

Re: Why wont this work?

Previous Thread :: Next Thread 
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
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
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 07:39 PM
just end the first event
then write code for the second event
Report Abuse
Goulstem is not online. 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
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
28 Apr 2014 07:46 PM
I removed my code.
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
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
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
28 Apr 2014 07:49 PM
fixed it
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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