Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Trail Is Not Working At All With No Errors. Any Ideas?

Asked by 5 years ago
Edited 5 years ago

Everytime I Play Solo Or Online The Trail Is Not Their Even Though My Trail is In The ServerStorage And The Script Is In ServerScriptServce. Please Help

game:GetService("Players").PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        local trail = game:GetService("ServerStorage").Trail:Clone()
        trail.Parent = char.Head
        local A0 = Instance.new("Attachment",char.Head)
        A0.Name = "TrailAttachment0"
        local A1 = Instance.new("Attachment",char.Head)
        A1.Name = "TrailAttachment1"
        trail.Attachment0 = A0
        trail.Attachment1 = A1
    end)
end)
0
Is it disabled User#19524 175 — 5y
0
what jakebball2014 84 — 5y
0
can you please explain more jakebball2014 84 — 5y
0
bump jakebball2014 84 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The trail does not work because it only shows a trail between two attachments and those attachments are at the exact same position. You will have to change the position of one of the attachments and it will work just fine.

You can for instance do A0.Position = Vector3.new(10,0,0)

0
Wouldn't you have to do like A0.Position = A0.Position + Vector3.new(0,10,0)? Knineteen19 307 — 5y
0
You could but there is no reason to. All you would is to add Vector(0,10,0) to Vector3(0,0,0) 1TheNoobestNoob 717 — 5y
0
The position is the offset of its original place. 1TheNoobestNoob 717 — 5y
Ad

Answer this question