Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to make a button that makes you dance!
ChannelYasmina AlTuborDescription 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"
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.
- Channel
- Yasmina AlTubor
- Category
- People & Blogs
- Duration
- 5:10
- Published
- October 5, 2020
- Views
- 39
- Likes
- 3
Share
This tutorial in other languages
- FRComment faire un bouton qui vous fait danser!
- ESCómo hacer un botón que te hace bailar!
- PTComo fazer um botão que faz você dançar!
- ITCome creare un pulsante che ti fa ballare!
- DEWie eine Schaltfläche, die Sie tanzen macht!
- NLHoe maak je een knop die je kunt dansen maken!
- RUКак сделать кнопку, которая заставляет вас танцевать!
- PLJak zrobić przycisk, który sprawia, że można tańczyć!
- JAどのようにあなたが踊りになり、ボタンを作ります!
- ARكيفية جعل الزر الذي يجعلك الرقص!
- HIकैसे एक बटन आप नृत्य करता है कि बनाने के लिए!
- IDCara membuat tombol yang membuat Anda menari!