So, I am making a like super power type thing so where I say the certain phrase it changes my clothing and does an animation. When I do the animation is not playing(I’m in r6 and I animated an r6 rig)
local anim = script.Animation
game.ReplicatedStorage.Anim.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
local Character = player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(anim)
Animation:Play()
end)
The animation is inside the script and a serverscript that detects when they chat fires the client event.
game.ReplicatedStorage.Anim.OnClientEvent:Connect(function()
local Remote = your remote here
Remote:FireServer()
end)
And on the server side :
game.ReplicatedStorage.YourREMOTE.OnServerEvent:Connect(function(Player)
local anim = your anim here
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(anim)
Animation:Play()
end)
So, the real problem was that it was not in r6 after all i realize that I am eternally stupid ty for your time and you may L on me or whatever lol i am gonna die now