Answers for "is it possible to play an animation on the server roblox"

Lua
7

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
Posted by: Guest on June-12-2021
0

roblox can I have player animations on the server

Yes you can!
Posted by: Guest on October-30-2020

Code answers related to "is it possible to play an animation on the server roblox"

Browse Popular Code Answers by Language