How to make a trail

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

I called it as a lava-trail.

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

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

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

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

Adding 2 attachments

If you done that add trail to the part.

Add trail to part.

Then make 2 attachments distacing each other like this:

Make 2 attachments distacing each other.

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”

Attachment

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

Attaching the attachment0

Attaching the attachment1

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
Appearance

Emission

Customized trail

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

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:FindFirstChildWinchIsA("Trail"):Clone()
		trail.Parent = c:WaitForChild("HumanoidRootPart")
		trail.Attachment0 = att0
		trail.Attachment1 = att1
	end)
end)

Now this works on r15/r6 characters.

37 Likes

you have a typo in findfirstchildwhichisa

1 Like