Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a hopperbin in a script?

I cant figure out how to make a local hopperbin only useing a script.

2 comments

0

Explain? ROBLOX has disabled server side scripts (unless this changed) from running in hopperbins due to a exploit that allowed place theft.

0

oh

1 answer

To access features of a Player, such as mouse and playerGui, you have to use a LocalScript.

Really, it makes things easier, because LocalScripts run off the Player's computer, instead of ROBLOX's Server - which makes the script respond Faster.

Events are still the same:

HopperBin = script.Parent
HopperBin.Selected:connect(function( mouse ) -- returns mouse once selected
end)



Tool= script.Parent
Tool.Equippedconnect(function( mouse )
end)

You don't even need a Tool / HopperBin to access the Mouse:

player = game.Players.LocalPlayer	-- You
mouse = player:GetMouse()		-- Your Mouse

This discussion is preserved as it was. New answers, comments, and votes are closed.