|
| 29 Oct 2017 09:54 PM |
So, i have an item in my backpack that i would like to select. But, the catch is, i want to select it through a script. Any ideas how to do it? Thanks :D
\\ not sure if this would be considered a attempt but
if game.Players.strangemansgar356.Backpack.RocketLauncher then wait(0.1) end |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 10:02 PM |
| More or less, i want to be able to select a certain item in my backpack to where i can use it in game through a script |
|
|
| Report Abuse |
|
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 29 Oct 2017 10:05 PM |
Are you trying to force equip an item, or have it trigger when you touch something?
Just trying to get some context as to what you want to do to cause the backpack item to equip with the script. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 10:06 PM |
.Humanoid:EquipTool(pathway)
Programmer, DevForum Member, RDC Attendee, Roblox QA Tester, and Roblox Beta Tester. |
|
|
| Report Abuse |
|
|
| |
|
royaltoe
|
  |
| Joined: 14 Sep 2011 |
| Total Posts: 36834 |
|
|
| 30 Oct 2017 08:49 PM |
the if statement would go like so:
if ________ then game.Workspace.Player1.Humanoid:EquipTool(Workspace.Tool) end
____ is what you want to do that triggers the player to select the tool
|
|
|
| Report Abuse |
|
|
royaltoe
|
  |
| Joined: 14 Sep 2011 |
| Total Posts: 36834 |
|
|
| 30 Oct 2017 08:51 PM |
| "workspace.tool" is also interchangeable. it can equip any tool anywhere. |
|
|
| Report Abuse |
|
|