What’s the original idea you want to do? A dummy that plays an animation while imitating his avatar? A dummy that represents the highest on the leaderboard?
The first one, a dummy that plays an animation while imitating his avatar. For an inf live gamepass purchase
Okay, I just did a bit of quick research and you can only call ApplyDescription() on instances that were created on the client, so you just have to create the dummy in the Local Script.
my brain is too small to understand this, can u explain it to me?
You must create the dummy on the client, basically.
Humanoid:LoadAnimation() is deprecated. Use the humanoids animator instead.
How to do that? make like instance.new?
No, you can just clone the dummy and delete the original one from the client.
Ahhhh, got it. Thank you!
so it will be like,
local dummy = workspace:WaitForChild("Dummy")
dummy:Clone()
dummy:Destroy()
In that case, you are deleting your clone. Instead of doing dummy:Destroy()
, you could have a variable to define the original one.
local original = workspace:WaitForChild("Dummy")
local dummy = original:Clone()
original:Destroy()
Uh Oh, no npc?
script:
local original = workspace:WaitForChild("Dummy")
local dummy = original:Clone()
original:Destroy()
local humanoid = dummy.Humanoid
humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(game.Players.LocalPlayer.UserId))
local animation = Instance.new("Animation", dummy)
local animations = {
"http://www.roblox.com/asset/?id=3337994105",
"http://www.roblox.com/asset/?id=5938365243",
"http://www.roblox.com/asset/?id=5938394742"
}
while true do
local randomVar = animations[math.random(1, #animations)]
animation.AnimationId = randomVar
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
animationTrack.Stopped:Wait()
animationTrack:Stop()
end