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

How to make a hopperbin in a script?

Asked by 9 years ago

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

0
Explain? ROBLOX has disabled server side scripts (unless this changed) from running in hopperbins due to a exploit that allowed place theft. M39a9am3R 3210 — 9y
0
oh superj223alt 0 — 9y

1 answer

Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
9 years ago

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
Ad

Answer this question