|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Jun 2017 04:17 PM |
Tool.Equipped:connect(function() --Give Tools Tool:Destroy() end)
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:17 PM |
Thank you.
print("testing") |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:18 PM |
| For when the user clicks, use Tool.Activated. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:18 PM |
Oh yeah, forgot about tool.Activated :)
|
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:19 PM |
Would I use LocalScript?
print("testing") |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:20 PM |
| You could. If this is FilteringEnabled, I'd use a Script. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2017 04:20 PM |
What would I use to actually give the tools?
print("testing") |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Jun 2017 04:23 PM |
Parse the text, find the tool, and add it to the player.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 21 Jun 2017 04:37 PM |
| nevermind, i'm disabled sorry |
|
|
| Report Abuse |
|
|