HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to make a button that makes you dance!

39 views October 5, 2020 5:10

Watch on YouTube
ChannelYasmina AlTubor

Description from the creator

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://ID here"

local trackanimation = nil
local playability = true

function playAnimation (animationSource)
if playability == true then
local plr = game.Players.LocalPlayer
trackanimation = plr.Character.Humanoid:LoadAnimation (animation)

trackanimation.KeyframeReached:connect (function()
print('hi')

end)
trackanimation:Play()
end
end
script.Parent.MouseButton1Click:Connect(playAnimation)

Put Id where it says ID here "rbxassetid://ID here"

About this tutorial

Yasmina AlTubor published this 5:10 video tutorial on October 5, 2020. It has been watched 39 times on YouTube.

Duration
5:10
Published
October 5, 2020
Views
39
Likes
3

Share

This tutorial in other languages