generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Tool help

Previous Thread :: Next Thread 
GUESTHAXX is not online. 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 is not online. HuntHello
Joined: 19 Jan 2011
Total Posts: 577
16 Aug 2012 01:11 PM
You can parent the tool in starterpack.
Report Abuse
GUESTHAXX is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image