With dummies you cant just do it with a default roblox script, I believe its only for players, if you want it to have a run animation then just create a local script and paste this inside:
local humanoid = script.Parent.Humanoid
local RunAnimation = humanoid:LoadAnimation(your animation)
humanoid.Running:Connect(function(speed)
if speed > 0 then
RunAnimation:Play()
else
RunAnimation:Stop()
end
end)
Yeah but why, with the same exact script. The one is working and the other one isn’t? It just doesn’t make any sense. It’s the same model, same animation ids, same scripts!
Hey! I’ve grabbed your model and just added a script that constantly makes him move and jump.
The animations correctly worked for me. Can you try to publish the game and test it in the Roblox itself?
Yeah well the problem is, that the dummy that I add in studio, animates. The one created by the client itself does not animate so if you use the same dummy and create it from the client side, will it work or not?
Oh, is it client side? You must use localscripts to animate client side.
Because server-side scripts cannot see client-side
So on you must use RemoteEvents to fire event from client and create a dummy from the server.
For sure if you do that everyone will be able to see the dummy, do you want it to be?
What I was trying to achieve was to create a client sided dummy to optimize everything. Basically the server controls where the dummy goes and other things but the dummy’s model itself is in the client, every client and it moves there, not in the server, in the server I only have 1 part, SMover (ServerMover) which tells the client dummy where to go.
What you are suggesting is to create them in the server and change their animate script to a client script, or to keep them as is and change their animate script to a client script?
I actually put an part called Mover and it worked. Now I have to solve this animation thing.
So on to my guess. You are setting the module to _G so it will be accessible from everywhere. As I know if you call the module in a localscript then it will treated like a localscript. So we will also treat it like a localscript.
Hey? You did say that the Default2 in the workspace was working right? Because it is not in mine.