I want it so that the player walks, and a trail of the player’s clones spawn, how would i do this? please and thank you
It can probably done by creating a ParticleEmitter inside of player’s character. The Texture should be set to a link that gets user’s Appearance.
can’t i just like clone the player?
heres what i tried:
local Player = game.Players.LocalPlayer
local frequency = 0.1 --delay between spawning clones
local killtime = 1 --how long to keep clones alive
while wait(frequency) do
spawn(function()
local myClone = Player.Character:Clone()
--ancor the parts so they dont move
for _,des in ipairs(myClone:GetDescendants()) do
if des:IsA("BasePart") then
des.Anchored = true
end
end
myClone.Parent = workspace
delay(killtime,function()
myClone:Destroy()
end)
end)
end
but it have a error somehow
Here is my code. Place it inside of a Script
in Workspace
or ServerScriptService
:
game:GetService("Players").PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local ParticleEmitter = Instance.new("ParticleEmitter")
ParticleEmitter.Texture = game:GetService("Players"):GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.AvatarThumbnail, Enum.ThumbnailSize.Size420x420)
ParticleEmitter.Rate = 15 -- Particles per second
ParticleEmitter.Lifetime = NumberRange.new(2, 4) -- How long the particles should be alive (min, max)
ParticleEmitter.Size = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0); NumberSequenceKeypoint.new(1, 1); }) -- The second value of the second NumberSequenceKeypoint is size
ParticleEmitter.EmissionDirection = Enum.NormalId.Back
ParticleEmitter.Parent = character:WaitForChild("HumanoidRootPart")
end)
end)
Ask more questions if you have any.
how would i make it not moving like a normal trail?
Can you explain what you want more?
I understand what he want, he dont want particle emitter he want the character to clone as an statue then copies the animation of the player but the animation is just freeze then delete in 1 sec so it will look like a trail of characters
I will work on it and post my example in few hours.
Edit: since I can’t make it today, here’s a little tip @foxnoobkite: browse cloning character topics, loop through character clone, make everything not collide - able and (maybe) a little transparent. Also remove some character Scripts in the character clone.
Here is a note its super hard to make it goodluck
hello i found something very useful for what you want here it is:
literally clonning the character wont work as motor6D will reset