My Trail Script wont work

This is the script:

And the trail’s properties:

Any help will be appreciated : )

It works for me when I am on R6

This is awkward, I think they’ve changed something , I remember it used to be working with r15 exactly like this, they prob changed the method

this is cause FaceCamera is off turn that on then tell me what the result is

Doesn’t work either, what is happening here, so much have changed…

by that what do you mean? i dont understand

I remember you could easily make trails work until all these recent changes, something has occurred

hmm i dont think so trails work fine for me

Still wont work… : ((character)

They work perfectly for R6, but for R15 there is possibly a new method

Maybe I’ll try and reset Roblox Studio tomorrow and try it…Thanks for the help : )

1 Like

maybe instead of making a new attachment use an attachment that already exist in the character?

Try using WaitForChild or even add a task.wait() before running the code. For example:

-- Events here
task.wait() -- Could be RunService.Heartbeat:Wait()
local Attachment = Instance.new("Attachment", char:WaitForChild("Head"))

Try this :

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local trail = game.ServerStorage:WaitForChild("Trail"):Clone()
		
		repeat task.wait() until char
		trail.Parent = char.Head
		local attachment0 = Instance.new("Attachment",char.Head)
		attachment0.Name = "TrailAttachment0"
		local attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
		attachment1.Name = "TrailAttachment1"

		trail.Attachment0 = attachment0
		trail.Attachment1 = attachment1
		
	end)
end)

It worked!! Thank you so much : )