How to make a trail

Trail effects are popular, you might seeing commonly in games like tower of hell, tower of misery, etc.

But you want to make it your own?, On roblox studio go to the workpace add an part

If the part are selected, go to the part properties then go to transform and set the size however you want

(Here i set the size to 4x4 studs.)

Bring the part to ground, add a 2 attachments by clicking the plus sign.

If you done that add trail to the part.

Then make 2 attachments distacing each other like this:

If you move the part it does not come out.
Select the trail object then go to data properties then you see “Attachment0” and “Attachment1”

Attaching the attachment by clicking the “Attachment0” and “Attachment1” to the added atachment near the part:

Move the part and now it should come out like this:

Easy, it’s a nice effect but boring to see the color, Right?
These are the customize-able properties

To apply it to the player, add script to the ServerScriptService

then put the customized trail to the script:
image

Inside the script put this:

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		local root = c:WaitForChild("HumanoidRootPart")
		local att0 = Instance.new("Attachment", root)
		local att1 = Instance.new("Attachment", root)
		att0.Position = Vector3.new(0, root.Size.Y/1.5, 0)
		att1.Position = Vector3.new(0, -root.Size.Y/1.5, 0)
		local trail = script:FindFirstChildWhichIsA("Trail"):Clone()
		trail.Parent = c:WaitForChild("HumanoidRootPart")
		trail.Attachment0 = att0
		trail.Attachment1 = att1
	end)
end)

Now this works on r15/r6 characters.

46 Likes

you have a typo in findfirstchildwhichisa

3 Likes

thanks for pointing this out! i just updated it today.