Good day to all who see this, I'm trying to make a fun private server where I can morph into characters to have fun with friends, so I'm not exactly very into lua yet.
I've been trying to make a morph thing where you click on a model and morph into it, so far it has worked on almost everything except for the animations. The script is the following
local clickdetector = model.ClickDetector
function onClick(player)
local char = player.Character
local morph = model:Clone()
morph.HumanoidRootPart.Anchored = false
morph:SetPrimaryPartCFrame(char.PrimaryPart.CFrame)
player.Character = morph
morph.Parent = workspace
end
clickdetector.MouseClick:Connect(onClick)print("Hello world!")```
After this script, I would click on the character and morph into it, but I would not have the original r15 animations. I found out that to solve this I could copy and paste the "Animate" script that spawns with the player and put it on my model, and it worked for the client side, but not for the server / when other people are looking at me. How can I then put the default animate script to the server so other people can see it?
Here in the script you can see me doing a /e dance emote on one client and on the other you can see the other player would just see a t pose.
** You are now Level 1! **