How to make chat animation?

This game only owned by me.
But how this is can influence script?

If you do not own the animation you cannot play the animation in game. You can only play animations that you exported to roblox yourself, thus you can only play animations that you are the owner of.

In the command bar in studio, you can use this command to get the AnimationKeyframes of the animation to put into the animation editor in studio. Look up how to use the animation editor.

game:GetObjects(“rbxassetid://your animation id here”)[1].Parent = workspace

2 Likes

Okay, but anyway script still don’t work.

I really tried to do everything.
or i am just dumb

It is working. The animation that you don’t own is not playing because you don’t own the animation.

And also this is my animation
Here: BlocklandChatAnimation - Roblox


You forgot to do it for sale

Still everything is the same as it was.

If you have 1 account, and you use that 1 account to get an animation, and try to use another account that you own to use that animation from your other account, it won’t work because it’s another account.

Why do people use Alts for the developer forum? In no way is RareDude01 correlated to your current developer forum account (or you signed in with a previous name then name changed and discourse didn’t update it)

You have to use the animation on the same account you’re developing on.

I just changed Scpecific on RareDude01 name.
And this is not my alt

Oh, yeah doing some further checking you haven’t relogged into the forum in a long time. I recommend doing that so people don’t get confused like I just did, so profile picture, name and everything would update.

Anyways back on topic, did you even make the animation the correct AnimationType?

And also i just don’t know how to change profile name

About AnimationType yes.
I just don’t understand why script don’t work

Roblox has different Animation Types, usually in Priority. If you’re not getting any errors in the output, then it might not even be the script that is the issue.

I think it has something to do with AnimationType.

You can read more about that here: AnimationPriority

I accidently called it AnimationType, mb.

Edit: Reason why this matters

If core animations are playing, they can override current playing animations causing you to not be able to see them. This was a common issue for me, and when I animated the animation but didn’t set it to Action it would glitch out, or not play the animation at all, even though no script errors were there.

1 Like


These are all errors in my game.

Can I have a screenshot of your explorer? I need you to show me whats inside ServerScriptService.

If you can, please send the script you’re currently using without making any adjustments to it. I’d like to throughly read it. Others have posted different scripts here, so I need to determine what script you’re using atm.

error2
And both of them have the same script:
local plrs = game:GetService(“Players”)
local anim = Instance.new(“Animation”)
anim.AnimationId = “rbxassetid://7330128544”

plrs.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local humanoid = char:WaitForChild(“Humanoid”)
local loadedAnim = humanoid.Animator:LoadAnimation(anim)
local charRemoved

	local chatted = plr.Chatted:Connect(function(msg)
		loadedAnim:Play()
	end)

	charRemoved = plr.CharacterRemoving:Connect(function() 
		charRemoved:Disconnect()
		chatted:Disconnect()
	end)
end)

end)

LocalScripts can’t ever run on the server, so you can go ahead and delete that.

What you’re trying to achieve is completely possible when only doing it on the server.

Also just made a tiny discovery that I don’t think is the culprit but why are you using awkward UTF Characters such as "?

Yours looks like this: and mine looks like this, which is the proper one ".

Might want to switch out any of those quotations with the one I posted. Studio will error because it doesn’t know what that character is.

image

Anyways back on topic:

I’m currently making edits to the script to see if I can find a working solution for you. I’ll note the things that you need to keep in mind.

I know, i am sorry about confusing you and other people with my 2 iq like that.
next time i will try to do something without helping.

Thank you.

2 Likes

I got this instead… Unsure why everyone wrote so much confusing stuff just to get this to work but here you go:

-- We need Players Service so we can call our function for chatting and elsewhat.
local plrs = game:GetService("Players")

-- We don't need to construct an animation for the client to use. The server is the server, and already knows everything that exists.
local anim = script:WaitForChild("ChatAnimation")

plrs.PlayerAdded:Connect(function(Player) -- When a player joins the game, we get their Player object by doing this
	Player.Chatted:Connect(function(msg) -- we'll never be using msg, but I specify it anyways. We need this to properly play the animation when someone chats.
		
		-- Player already comes with character, so you don't necessarily need to make a function for it.
		local Humanoid = Player.Character:WaitForChild("Humanoid")
		
		-- Animator is the proper way to load animations. Not the Humanoid.
		local Animator = Humanoid:WaitForChild("Animator")
		
		-- Now load the Animation so we can use it. --
		local LoadedAnimation = Animator:LoadAnimation(anim)
		
		-- Now we can play it. Make sure the animation is not looped, and that the AnimationPriority when you exported it was set to "Action"
		LoadedAnimation:Play()
		
	end)
end)

Please do let me know if any issues occur with that. You’ll need to setup your explorer like this:

Make sure this script has an Animation object under it, and make sure you put your animation ID in the AnimationID property field

image

image

p.s You don’t have 2 IQ, I think you just got confused, it’s pretty easy to get confused when you do something you’re not familiar with. I was like that too :smiley:

3 Likes