So I have this texture ID from a sword trail that I want to implement in a script.
And I have everything else from the trail inside the script but I don’t know how to include the texture with the ID in here. Any help would be appreciated.
local attachment1 = Instance.new("Attachment")
attachment1.Name = "attach_1"
attachment1.Position = Vector3.new(0.308,2.592,0)
local attachment2 = Instance.new("Attachment")
attachment2.Name = "attach_2"
attachment2.Position = Vector3.new(0.181,-1.028,0)
local trail = Instance.new("Trail")
trail.Name = "BladeTrail"
trail.TextureMode = Enum.TextureMode.Stretch
trail.TextureLength = 1
trail.Transparency = NumberSequence.new(0.5)
trail.Lifetime = 0.1
trail.MaxLength = 0
trail.MinLength = 0.1
trail.WidthScale = NumberSequence.new(1)
return {
["attachment1"] = attachment1;
["attachment2"] = attachment2;
["trail"] = trail
}