#Animate show not to all clients or server

1 messages · Page 1 of 1 (latest)

glacial pendant
#

Hi I need Help with my Script I make a Battleground game and my Animate wont show to other Clients can someone help me

glacial pendant
#

local function applyAnimations(player: Player, character)
task.defer(function()
if not player.Character then return end

    local characterInstance = CharactersFolder:FindFirstChild(character)
    if not characterInstance then return end

    local charAnimate = characterInstance:FindFirstChild("Animate")
    if not charAnimate then
        warn("Kein Animate Script in: " .. character)
        return
    end

    -- Alle alten Animate Scripts entfernen
    for _, v in ipairs(player.Character:GetChildren()) do
        if v.Name == "Animate" then
            v:Destroy()
        end
    end

    task.wait() -- Warten bis destroy durch ist

    if not player.Character then return end

    local clone = charAnimate:Clone()
    clone.Disabled = false
    clone.Parent = player.Character
end)

end

#

Here is how I apply the Anims

#

And here is the Animate script

trail quarry
#

The script above, is it a local script or script and where does it sit ?

dim briarBOT
#

studio** You are now Level 3! **studio

trail quarry
#

Also be sure you have Granted Experience Access: In the Creator Hub, go to the animation's Permissions tab and add the Universe ID of their game to allow it to load the asset permission to be used.

glacial pendant
#

what

glacial pendant
ocean ember
#

so you need some sort of server interaction to send animations

#

just like an event that u send information about who and what animation, -- currently you dont tell them what animation which is my next point

dim briarBOT
#

studio** You are now Level 4! **studio

ocean ember
#

Without having saying what animation (as far as i can tell with your script and structure)
Only the client knows what animations are where (for other clients they dont know what animations are there for other users)
As such it will display no animation or maybe the wrong animations, instead send the specific animation (through name or key or something) in your function and play it.

median jacinth
#

also animations played on the client are automatically replicated to the server/other clients if its not sanitized

#

im not really sure whats the issue here is

#

@glacial pendant have you disabled the animate scripts?

#

maybe its because of that

glacial pendant
dim briarBOT
#

studio** You are now Level 1! **studio

median jacinth
glacial pendant
median jacinth
glacial pendant
median jacinth
glacial pendant
median jacinth
#

disabled scripts should look like this

glacial pendant
#

je Uhmm Idk but the animation dont show to the client now

median jacinth
#

idrk then

#

you can enable it again

glacial pendant
#

when Its Enable it dont work also

median jacinth
#

revert your changes

#

accept your fate

glacial pendant