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: GUI Tool script

Previous Thread :: Next Thread 
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
20 Aug 2017 03:23 PM
I tried making my first ever homemade script (by that i mean just not using free models) and it has a small issue, I don't know what it is but can someone tell me how to fix this script so that when the tool is equipped it will show a GUI.
Script:
Tool = script. parent
Tool. Equipped :connect (on Equipped)

if Tool. equipped = true
then Tool. Pokemon. Pokemon. visible = true
else
Tool. Pokemon. Pokemon. visible = false
Report Abuse
AlexTheCreator is not online. AlexTheCreator
Joined: 10 Jun 2012
Total Posts: 144
20 Aug 2017 03:29 PM
end

also you'll need to make it a function and call it everytime a player equips the tool otherwise it will only happen (at most) once
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
20 Aug 2017 03:33 PM
how do i do that?
Report Abuse
hokyboy is not online. hokyboy
Joined: 31 Jan 2014
Total Posts: 115
20 Aug 2017 03:37 PM
lol this script is a mess
Report Abuse
AlexTheCreator is not online. AlexTheCreator
Joined: 10 Jun 2012
Total Posts: 144
20 Aug 2017 03:39 PM
Tool = script. parent

local function on Equipped()
if Tool. equipped == true
then Tool. Pokemon. Pokemon. visible = true
else
Tool. Pokemon. Pokemon. visible = false
end
end

Tool. Equipped :connect (on Equipped)



I have a basic knowledge of scripts and haven't worked with tool yet so you'll have to make sure .equipped and stuff is actually a thing. unless you already know it is :P

and i'm guessing you know there shouldn't be spaces after the .'s and:'s or between "on" and "Equipped" :)

I'm going to bed now so sorry if it doesn't work :/
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
20 Aug 2017 03:39 PM
if you don't have anything helpful to say just don't bother
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
20 Aug 2017 03:41 PM
yeah i know about the spaces, its because the roblox hashtags stuff but yeah thanks!
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
21 Aug 2017 06:30 AM
actually it doesn't work.
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
21 Aug 2017 06:45 AM
bump
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
21 Aug 2017 07:11 AM
another bump
Report Abuse
Iron_Creeper is not online. Iron_Creeper
Joined: 11 Jun 2016
Total Posts: 41
21 Aug 2017 07:14 AM
well actually i found a script right here; local GUI = ### script. Parent. Equipped: connect (function() GUI = script. Pokemon: Clone() -- copy the GUI GUI. Parent = game. Players. Local Player. Player GUI -- place the GUI to player's player GUI end) all i need now is how to use the on un-equipped function
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