Hello i have a script where im changing the players idle animation i show up perfectly for the player thats doing it


but then it looks horrible to the rest of the people in the server, and when changing it back, it changesfor the player who did it but not for the server
Is the script local script? If it is, I advise you to use Remote functions to a Server Script, unless its a touched script then use Server Script instead of local script. May I See your script?
I used remote events to do this
So if i get this, when the players idle animation changes to a new idle animation, the new idle animation looks good to the Player but not the server? Also show scripts with class names
Yes, you are correct
script.Parent.ChangeIdle.OnServerEvent:Connect(function(Player)
Player.Character.Animate.idle.Animation1.AnimationId = "rbxassetid://11874021223"
Player.Character.Animate.idle.Animation2.AnimationId = "rbxassetid://11874021223"
end)
script.Parent.ChangeIdleBack.OnServerEvent:Connect(function(Player)
Player.Character.Animate.idle.Animation1.AnimationId = "rbxassetid://11835080635"
Player.Character.Animate.idle.Animation2.AnimationId = "rbxassetid://11835080635"
end)
UIS.InputBegan:Connect(function(input, gameProccessed)
if input.KeyCode == Enum.KeyCode.Q and not gameProccessed then
if Player.Name == "Distorterist" or "DistrustDexv" or "geuiol" then
if script.BasicCombatOn.Value == false then
local HumanoidRootPart = Character.HumanoidRootPart
local AirEffect2 = game.ReplicatedStorage.Effects.ChangeGear:Clone()
AirEffect2.Parent = workspace
AirEffect2.Position = HumanoidRootPart.Position
AirEffect2.ShockWaveEffect:Emit(1)
Debris:AddItem(AirEffect2, 1)
script.BasicCombatOn.Value = true
script.ChangeIdle:FireServer()
wait(0.1)
Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 1
elseif script.BasicCombatOn.Value == true then
local HumanoidRootPart = Character.HumanoidRootPart
local AirEffect2 = game.ReplicatedStorage.Effects.ChangeGear:Clone()
AirEffect2.Parent = workspace
AirEffect2.Position = HumanoidRootPart.Position
AirEffect2.ShockWaveEffect:Emit(1)
Debris:AddItem(AirEffect2, 1)
script.BasicCombatOn.Value = false
script.ChangeIdleBack:FireServer()
wait(0.1)
Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 1
end
end
end
end)
Just to be sure, for the first script, is it in localscript or server script?
Seems like they stopped responding, can someone else help me?
I think its because of the animation bending issue.
What do you mean? Whatever it is i need to fix it
There is AnimationBlendFix, which if the animations have the same priority, they blend together.
well i dont think theres 2 anims playing at the same time
Try making the animation priority higher, this probably can fix the issue
I already tried this, and if this was the problem, would it also show up for the local player?
if you’re setting the priority through a script it will not replicate, you need to update the animation
Im not setting the priority through the script
I need to fix this can someone please help me
Maybe change priority through server script.