How do I add extra animatable stuff while keeping the player's avatar?

Hello Devs!

I have a simple question.

How do I add extra stuff while still keeping the player’s avatar?

Basically, if I wanted to add a spinning orb around the player that can be animated while still having the player’s avatar, how do I do that?

A more understandable example is basically how do I show the stand while having the player’s avatar still shown in JoJo Games.

Any solutions to this are appreciated, thanks!

-VeilStrife

3 Likes

You could use Motor6D for attaching the object to the player

local m6d = Instance.new("Motor6D")
m6d.Parent = --character's torso (depends on which type of character you're using [r6 or r15])
m6d.Part0 = --character's torso (depends on which type of character you're using [r6 or r15])
m6d.Part1 = -- object

Example for when the player joins to automatically add the object to the player’s character:

game:GetService("Players").PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local m6d = Instance.new("Motor6D")
		local object = Instance.new("Part")
		object.Shape = Enum.PartType.Ball
		object.Size = Vector3.new(1.5,1.5,1.5)
		m6d.Parent = object
		m6d.Part0 = character.Torso -- MAKE SURE THAT IF YOU USE R6, USE TORSO AND IF YOU USE R15 USE UPPER TORSO
		m6d.Part1 = object
		object.Parent = character
	end)
end)

Hope this helps!

1 Like