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

How to make it so my script occurs when the tool is equipped? [closed]

Asked by 7 years ago

This question already has an answer here:

Help fix this script to only occur when the tool is equipped?

player = game.Players.LocalPlayer

mouse = player:GetMouse()

animation = script:WaitForChild("Animation")

enabled = true

mouse.Button1Down:connect(function() if enabled then enabled = false

    local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
    animationTrack:Play()

    wait(3)
    enabled = true

    animation:Stop()

end

end)

(Sorry it cut off) :((

0
Do i put .Equipped somewhere?? wolfbarrier123 -25 — 7y
0
I saw this, but where do I put it RobloxianDestroy? wolfbarrier123 -25 — 7y
0
before what you want to run when it selected RobloxianDestory 262 — 7y
View all comments (5 more)
0
Can you show me by taking my script and pasting in where it should be? RobloxianDestroy? wolfbarrier123 -25 — 7y
0
if you can post it right, yea. RobloxianDestory 262 — 7y
0
I copied it all and pasted it but idk why it came out like this.RobloxianDestroy wolfbarrier123 -25 — 7y
0
U can just copy and paste ur thing in. I'll know what is not supposed to be there. RobloxianDestroy wolfbarrier123 -25 — 7y
0
Why did you re-post your question 3 separate times w/in a time span of 4 hours? Give your post some time before re-posting, otherwise it's (may be) considered as spamming your question/ duplication of the same question. TheeDeathCaster 2368 — 7y

Marked as Duplicate by TheeDeathCaster and User#5423

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?