GUESTHAXX
|
  |
| Joined: 16 Apr 2012 |
| Total Posts: 3370 |
|
|
| 16 Aug 2012 12:16 PM |
local tool = script.Parent --need to be local local handle = tool.Handle --again local
function Drop() handle:Destroy() tool.Parent = game.Workspace end
function onEquipped(mouse) -- why local here?
if mouse == nil then print("Mouse not found") return end mouse.Button1Down:connect(Drop) end tool.Equipped:connect(onEquipped)
This script will lag your sever up so badly due to the "tool.Parent = game.Workspace" part. According to a scripter who told me, he said that if you parent a tool to the workspace it will shutdown your game. I on the other hand, don't know where else to parent the tool.
So where else do I parent the tool?
Need to see the error for yourself, take this model:
http://www.roblox.com/Can-Bomb-High-Yield-item?id=88845168
You will see that this tool is a lag bomb :( |
|
|
| Report Abuse |
|
|
HuntHello
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 577 |
|
|
| 16 Aug 2012 01:11 PM |
| You can parent the tool in starterpack. |
|
|
| Report Abuse |
|
|
GUESTHAXX
|
  |
| Joined: 16 Apr 2012 |
| Total Posts: 3370 |
|
|
| 16 Aug 2012 01:42 PM |
| Wouldn't that show up in the starterpack when you respawn? |
|
|
| Report Abuse |
|
|
HuntHello
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 577 |
|
|
| 16 Aug 2012 02:00 PM |
Hmm, in that case, place it in lighting.
I do not know where you want your tool to be. Do you want it hidden or do you want it shown in workspace? |
|
|
| Report Abuse |
|
|