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

My animations load in studio, but not in a live game server?

I don't know why but my gun animations (I made them) load fine into studio and run fine on objects. But in the game, they dont load at all. I am also grabbing the anims from a modulescript located in ReplicatedStorage

self.animc = ins("AnimationController")
self.animc.Parent = self.model
self.loadedanims = {}
local function loadanim(animationid)
	local animation = ins("Animation")
	animation.Parent = self.animc 
	animation.AnimationId = animationid
	return self.animc:LoadAnimation(animation)
end
if self.anims then
	for i, v in next, self.animations, nil do
		if self.anims[i] then
			local OOFUS = loadanim(self.anims[i])
			self.loadedanims[i] = OOFUS 
			self.animations[i] = OOFUS 
		end
	end
end

7 comments

0

Are you working in team create or in a group game?

0

Group game.

0

what is self?

0

self is the gun.

0

Is this script a LocalScript? What is it's parent?

0

This is in a localscript, this is in startercharacter scripts, its for my FPS Framework.

0

probably a filtering enabled

1 answer

To disable filtering enabled feature go to Workspace and in the property list find Filtering Enabled and if it is set to True please turn it off by clicking the check box to the right of its name. Thank you.

1 comment

0

Why would you disable filtering enabled? Not only can animations be played from the client with filtering enabled but disabling the feature would be a terrible solution anyways. Filtering Enabled should be used for all games, and problems because of it should be solved by using server-client communication like RemoteEvents, not disabling it.

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