MrHistory
|
  |
| Joined: 30 Aug 2010 |
| Total Posts: 5291 |
|
|
| 21 Aug 2011 05:41 PM |
I want to make a tool that is automatically selected when the player joins my game. After it is selected, it is removed from the player's backpack so it can't be deselected. Kinda like what nds did with his Counter Strike game. Anyways, here's what I came up with:
Hierarchy: []StarterPack [][]Tool [][][]LocalScript
Tool = script.Parent Player = game.Players.LocalPlayer Mouse = nil
--AutoSelect repeat wait() until Player.Character
Tool.Equipped:connect(function(m) print("Equipped") Mouse = m Tool:remove() end)
Tool.Parent = Player.Character
The tool appears to be selected, but the Equipped event doesn't fire. Halp?
|
|
|
| Report Abuse |
|
|
|
| 21 Aug 2011 06:28 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=53356767 |
|
|
| Report Abuse |
|
|
MrHistory
|
  |
| Joined: 30 Aug 2010 |
| Total Posts: 5291 |
|
|
| 21 Aug 2011 06:31 PM |
| I want the tool, not just the mouse |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2011 06:45 PM |
Do you have any bricks in the tool?
That's how I fixed mine.... |
|
|
| Report Abuse |
|
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 21 Aug 2011 06:49 PM |
| It needs a part called Handle. |
|
|
| Report Abuse |
|
|
| |
|
MrHistory
|
  |
| Joined: 30 Aug 2010 |
| Total Posts: 5291 |
|
| |
|