Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local Character = Player.Character
- local id = "507776043"--This is the Default R15 Dance animation id it will work on everygame that supports R15
- local Anim = Instance.new("Animation")
- local Mouse = Player:GetMouse()
- local ResetKey = "F"
- local UseKey = "E"
- Anim.AnimationId = "rbxassetid://"..id
- local Hum = Character:FindFirstChild("Humanoid")
- local Animation_To_Play = Hum:LoadAnimation(Anim)
- Animation_To_Play.Priority = Enum.AnimationPriority.Action
- Animation_To_Play:Play(1)
- Mouse.KeyDown:Connect(function(kd)
- print(kd)
- if kd == ResetKey:lower() then
- Animation_To_Play:Stop(1)
- elseif kd == UseKey:lower() then
- Animation_To_Play:Play(1)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment