Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ROBLOX Default Animations Interupts My Animation?

I set the AnimationTrack priority to action, but the ROBLOX animation still over rides it. (only works for the client, not for other players)

Filtering Enabled is on.

local Animation = script:WaitForChild('Animation')
local AnimationTrack = nil 
local ActiveTracks = nil 

local State = nil 

function AF_LOADANIM(name, id, speed, state)
	Animation.AnimationId = id
	State = state
	
	if AnimationTrack then 
		AnimationTrack = nil 
	end
	
	--SET TRACK--
	AnimationTrack = Humanoid:LoadAnimation(Animation)
	
	AnimationTrack.Name = name
	AnimationTrack.Priority = Enum.AnimationPriority.Action
	print(AnimationTrack.Priority)
	
	--PLAY--
	AnimationTrack:Play()
	
	--ADJUST SPEED--
	AnimationTrack:AdjustSpeed(speed)
end

5 comments

1

Did you make the priority Action when you were making the animation?

0

Yes I checked the arms and unchecked the legs, torso and head.

0

Everything runs fine for only the local player, but for other players the animation keeps getting interupted by the ROBLOX default animations

0

Never mind, was able to fix it

1

make sure to set priority

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.