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.
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.
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.
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.
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
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
Thank you again! Youre amazing