i made an animation wheere a player does something how do i make it if key 'r' is presset then the character does that animation
local player = game.Players.LocalPlayer local m = player:GetMouse() m.KeyDown:Connect(function(key) if key == "q" then --Edit this local anim=Instance.new("Animation",workspace) anim.AnimationId = "http://www.roblox.com/Asset?ID=0000" -- Put id here local animTrack = player.Character.Humanoid:LoadAnimation(anim) animTrack:Play() end end)
Marked as Duplicate by Goulstem
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?