Hello, thank you for looking at my question. :)
I need to make a Trail (which I've already done) but make it so that only premium owners get it. Is it possible to make this script work?
--Script--
if game.Players.LocalPlayer.MembershipType == Enum.MembershipType.Premium then do
function Join(p)
local function Char(c)
local trail = script.Trail:Clone()
trail.Parent = c.Head
local A0 = Instance.new("Attachment",c.Head)
local A1 = Instance.new("Attachment",c.HumanoidRootPart)
A0.Name = "Attachment0"
A1.Name = "Attachment1"
trail.Attachment0 = A0
trail.Attachment1 = A1
end
p.CharacterAdded:connect(Char)
end
game.Players.PlayerAdded:connect(Join)
end
I've tried to edit it but I get given a error In my output tab saying:
Workspace.RainbowTrail:15: Expected 'end' (to close 'then' at line 1), got
Any help is appreciated,
Thank you!

2 comments
Please indent your code....
Your code is VERY messy without tabbing it. Please do, then we might be able to help you.