Skreench
|
  |
| Joined: 29 May 2009 |
| Total Posts: 1050 |
|
|
| 08 Oct 2015 01:35 PM |
| So I have a game that requires a marble tool, but currently you have to click to enable it. How do I make it become equipped on spawn? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 01:37 PM |
| Try inserting it into the character model. I've heard that's supposed to work. |
|
|
| Report Abuse |
|
|
Skreench
|
  |
| Joined: 29 May 2009 |
| Total Posts: 1050 |
|
|
| 08 Oct 2015 02:10 PM |
| How exactly would I do that? |
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
|
| 08 Oct 2015 02:13 PM |
I use this function in my tools, it is a beauty.
game.Players.LocalPlayer.Character:findFirstChild("Humanoid"):EquipTool(script.Parent) |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2015 02:21 PM |
Garfanzo is correct,however I tested it and it did not work. So I added this to the top:
repeat wait() until game.Players.LocalPlayer.Character
so do this:
repeat wait() until game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character:findFirstChild("Humanoid"):EquipTool(script.Parent)
And it works 100%
http://www.roblox.com/Coon-left-item?id=296811217 http://www.roblox.com/Coon-right-item?id=296811237 |
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
|
| 08 Oct 2015 02:25 PM |
repeat wait()
I haven't seen that one before, is it kind of like a WaitForChild() ? |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 08 Oct 2015 02:32 PM |
| Yeah but waitforchild doesn't work for me XD |
|
|
| Report Abuse |
|
|
Skreench
|
  |
| Joined: 29 May 2009 |
| Total Posts: 1050 |
|
|
| 08 Oct 2015 02:33 PM |
| Thanks guys I'll try it out later |
|
|
| Report Abuse |
|
|