Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a hopperbin with a script?

Asked by 9 years ago

What i ment last time i asked this is i want to know how to make a hopperbin tool useing a script. I do not want to affect the mouse cruser in any way.

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
9 years ago

This is possible, if you want the hopperbin to follow a script then you will need LoadString functionality through a local script.

But keeping it basic, say you only wanted the delete tool for your character, you would use this script.

local hb = Instance.new("Hopperbin", game.Players.superj223alt.Backpack) --The script now calls the Hopperbin hb, then when it sees Instance.new() it knows it's going to have to create something. It creates the Hopperbin which is in the first argument, and now it's placing it in your backpack with the second argument.
hb.BinType = "Hammer" --We changed it's BinType.

You can find other bin types here, but like I said this is just the basic way. ROBLOX already did the scripting for all the bin types other than script.

Ad

Answer this question