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: How do you make a tool to show more tools?

Previous Thread :: Next Thread 
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:15 PM
Please tell me.

Like one of those tools where when you click while it's selected, the tool removes itself and shows other tools.


print("testing")
Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:16 PM
Use the .Equipped function.

Depending on how the tools are setup, on .Equipped, add all the tools you want to the player's backpack. Then, remove the tool that is equipped.


Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:17 PM
Oh, you want click.

Well, it's about the same. Just detect if it's equipped and then get the player's mouse. Use the .Button1Down event


Report Abuse
Stormersoul is not online. Stormersoul
Joined: 24 Jan 2012
Total Posts: 2410
21 Jun 2017 04:17 PM
Tool.Equipped:connect(function()
--Give Tools
Tool:Destroy()
end)
Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:17 PM
Thank you.


print("testing")
Report Abuse
Stormersoul is not online. Stormersoul
Joined: 24 Jan 2012
Total Posts: 2410
21 Jun 2017 04:18 PM
For when the user clicks, use Tool.Activated.
Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:18 PM
Oh yeah, forgot about tool.Activated :)


Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:19 PM
Would I use LocalScript?


print("testing")
Report Abuse
Stormersoul is not online. Stormersoul
Joined: 24 Jan 2012
Total Posts: 2410
21 Jun 2017 04:20 PM
You could. If this is FilteringEnabled, I'd use a Script.
Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:20 PM
What would I use to actually give the tools?


print("testing")
Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:21 PM
You could create a folder with all the tools you want to give. Then iterate them and clone them. Or set parent.


Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:22 PM
I want to use admin commands to give myself the tools, then just use the tool I gave myself to expand into all the other tools.


print("testing")
Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:23 PM
Parse the text, find the tool, and add it to the player.


Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:23 PM
Ok.


print("testing")
Report Abuse
MrBigMac1234 is not online. MrBigMac1234
Joined: 12 Sep 2014
Total Posts: 1799
21 Jun 2017 04:24 PM
Wait, I can just upload all the tools as one model, and it would still give me all the tools if I used commands. :/


print("testing")
Report Abuse
ScripterTutorials is not online. ScripterTutorials
Joined: 01 Sep 2013
Total Posts: 284
21 Jun 2017 04:25 PM
LocalScript inside the tool: Tool = script.Parent ToolsEvent = Tool:WaitForChild("AddToolsEvent", 3) local Clicked = false Tool.Activated:connect(function() if not Clicked then Clicked = true ToolsEvent:FireServer() end end) Script inside the tool: Tool = script.Parent Storage = game:GetService("ServerStorage") Players = game:GetService("Players") ToolsEvent = Instance.new("RemoteEvent", Tool) ToolsEvent.Name = "AddToolsEvent" local Tools = ################## ################# -- Change this ToolsEvent.onServerEvent:connect(function(plr) if plr then if plr.Character == Tool.Parent then for _, v in pairs(Tools) do v:Clone().Parent = plr.Backpack end Tool:Destroy() end end end) -- roblox chat syst##
Report Abuse
Scriptacity is not online. Scriptacity
Joined: 01 Mar 2011
Total Posts: 855
21 Jun 2017 04:26 PM
Okay..?


Report Abuse
ScripterTutorials is not online. ScripterTutorials
Joined: 01 Sep 2013
Total Posts: 284
21 Jun 2017 04:37 PM
nevermind, i'm disabled sorry
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