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
 

GUI and Tool help!!!!!!!!

Previous Thread :: Next Thread 
45CamDaMan is not online. 45CamDaMan
Joined: 01 Aug 2014
Total Posts: 210
09 Jul 2016 08:51 PM
Hello! I have made a GUI that is in a tool. Im wanting the GUI to pop up when the player selects the tool. I have tried:

script.Parent.Equipped:connect(function(player)
local gui = script.Parent.ScreenGui:Clone()
gui.Parent = player.PlayerGui
end)

script.Parent.Unequipped:connect(function(player)
player.PlayerGui.ScreenGui:Destroy()
end)

Probably all wrong so please help!!!!
Report Abuse
45CamDaMan is not online. 45CamDaMan
Joined: 01 Aug 2014
Total Posts: 210
09 Jul 2016 09:02 PM
Please help I dont want to bump...
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 09:16 PM
Check the output.

http://wiki.roblox.com/index.php?title=API:Class/Tool/Equipped

http://wiki.roblox.com/index.php?title=API:Class/Tool/Unequipped
You're using the wrong parameters. You need to define player as game.Players.LocalPlayer and this should be in a localscript. Remove those parameters.


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
45CamDaMan is not online. 45CamDaMan
Joined: 01 Aug 2014
Total Posts: 210
09 Jul 2016 09:43 PM
I know this is kinda rude :D but can someone give me an idea on how to write this script as i'm wanting to learn.
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 09:45 PM
I just gave you an idea on how to write the script...in fact, I gave you instructions..


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
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