Hello! Having a major bug happening with animations. No idea what the root cause is, there’s no errors. Let demonstrate here and show you a video. There’s two players, player on and player two. Player one is holding an item with a custom animation, player two sees this animation perfectly fine. If Player one decides to walk and then stop, Player two doesn’t see any animations, but Player one still sees it.
Here is the video
How I think this could be fixed. This potentially could be caused by a script, I can show script later for the item, I use this script for all of the items in the game currently. I am currently trying to find an alternate way to write the line with task.wait(2)
local tool = script.Parent
local didOpen = false
local interval = 2
local RemoteEvent = game.ReplicatedStorage.RemoteEvents:WaitForChild("DeathNoteOpen")
local Player = game.Players.LocalPlayer
repeat task.wait() until Player.Character
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Humanoid.Animator:LoadAnimation(script.Animation)
tool.Activated:Connect(function()
if not didOpen then
didOpen = true
Animation:Play()
RemoteEvent:FireServer(script.Parent)
Player.PlayerGui.DeathNoteGui.Enabled = true
if tool.Opened.Value == true then
Animation:Stop()
Player.PlayerGui.DeathNoteGui.Enabled = false
end
task.wait(interval)
didOpen = false
end
end)
Sorry for messy script, revamping this script later on.