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

Can I use ButtonDown without a HopperBin?

Asked by
neoG457 315 Moderation Voter
9 years ago
local Player = game.Players.LocalPlayer
local bin = script.Parent 
bin.Selected:connect(function(Mouse)
    Mouse.Button1Down:connect(function()
    local TestAttack = Instance.new("Animation")
TestAttack.AnimationId = "http://www.roblox.com/Asset?ID=277328828"
local animTrack = Player.Character.Humanoid:LoadAnimation(TestAttack)
animTrack:Play()

    end)
end)

Is it possible to use this without a HopperBin?

1 answer

Log in to vote
1
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

Hi..(I already answered his question in comments)

U would need to use the dragger event http://wiki.roblox.com/index.php/User:Memory_Address/Using_Dragger Its used for GUIs

Glad this worked!

Ad

Answer this question