Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local on = false
- local plr = game.Players:WaitForChild("LocalPlayer")
- local char = plr:WaitForChild("Character")
- local Humanoid = char:FindFirstChild("Humanoid")
- script.Parent.MouseButton1Down:connect(function()
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://711386113"
- if on == false then
- animTrack = Humanoid:LoadAnimation(animation)
- animTrack:Play()
- on = true
- else
- animTrack:Stop()
- on = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement