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

how to freeze player when playing a animation?

i edited the fe gun kit heavily, but i cant freeze a player while playing the animation and anything i do just kinda breaks the gun here is the part im trying to edit

if Module.FireAnimationID ~= nil then local FireAnim = Instance.new("Animation",Tool) FireAnim.Name = "FireAnim" FireAnim.AnimationId = "rbxassetid://"..Module.FireAnimationID

end

1 answer

Your best bet is to freeze the HumanoidRootPart. That way the animation will still play but the player themselves cannot move.

if Module.FireAnimationID ~= nil then
	Player.Character.HumanoidRootPart.Anchored = true
	local FireAnim = Instance.new("Animation",Tool) 
	FireAnim.Name = "FireAnim" 
	FireAnim.AnimationId = "rbxassetid://"..Module.FireAnimationID
end

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