how to play an animation roblox

local function PlayAnimation(character, animation)
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	if humanoid then
		-- need to use animation object for server access
		local animator = humanoid:FindFirstChildOfClass("Animator")
		if animator then
			local animationTrack = animator:LoadAnimation(animation)
			animationTrack:Play()
			return animationTrack
		end
	end
end

4.29
7
Phil_ish 80 points

                                    --Made by Rigby#9052
--Put The "Animation" in This Script & Then.
--Insert this into your character.
local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()

4.29 (7 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
official roblox animation script how to make roblox player animations roblox where to put animations roblox play animation on model roblox how to create animation and use how to load animation roblox how to use animations in roblox roblox how to run an animation roblox how to make animations roblox how to play an animation how to import animations roblox roblox how to play animation in studio how to make animations in roblox studio roblox how to make and play animation roblox how to do animation roblox how to use animations roblox animation play can You use your own animations on roblox code to run an animation roblox how to play animations in roblox how to play animation roblox scripting how to make custom animations roblox Roblox animation and custom animation play at same time animation in script roblox create animation roblox how do you make animation ROBLOX roblox how to create your own animations how to play animation roblox studio how to load animation roblox studio roblox how to play an animation on load how to run your own animations roblox roblox animation playing over my animation how to play an animation on a player roblox roblox how to play animations new way to load animations roblox animation play script roblox how to use animation editor roblox animations script roblox what is an animation roblox roblox how to create animation how to play animation with script roblox how to use and make animations in roblox how to make animation in roblox how to play animation roblox how to play animations roblox how to put a animation on ROBLOX UI how to use an animation in your roblox game roblox play animation how to play animations roblox studio how to play animations roblox srudio how to play animation api roblox roblox making animations in script how to play a roblox animation roblox studio animation:Play how to make an animation in roblox use animations roblox play animation roblox animations roblox animation:play() roblox roblox play animations roblox how to play animation using script roblox animations script roblox animation roblox character animation state use an animation roblox how to play animation on humanoid animation script roblox roblox animate script reference roblox "default" animation script reference roblox default animation script reference how to play an animation on a character roblox roblox playing animations roblox play animation on player roblox trigger animation how to play an animation roblox play animation roblox script play roblox animations roblox how to make an animation script scripting animation roblox player animation roblox how to make animation script in roblox studi how to play animation roblo;x roblox force animator outside humanoid roblox play animation script animations for roblox how to run a roblox animation roblox studio roblox studio play animation roblox studio play animations roblox script play animation how to play an animation in roblox studio custom animation script roblox roblox studio play animation script how to make an animation script roblox new way to play animations in roblox animate id player script animation scripts roblox animate player script roblox how to animate player in roblox script how to animate player in roblox how to make an object play an animatipn in roblox studi how to make animations play in roblox studio on certain objects roblox animation script how to make an animation play roblox roblox animate script roblox animations how to play an animation in roblox how to play a animation in obox how to get abd animations roblox studio how to make youself do an animation in rblx roblox how to script animations roblox animation to script roblox eusy insert animations how to play animations on characters in roblox roblox connect animation how to amke a Playanimation script for roblox stuio
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source