I've got two scripts and I want to mix them (Premium Benefit Trails), but I'm not sure how.
Trail Script
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local trail = game.ServerStorage.Trail:Clone()
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)
Premium Script
local Players = game:GetService("Players")
Players.PlayerAdded:connect(function(player)
if player.membership == Enum.MembershipType.premium then
player.CharacterAdded:connect(function(char)
local humanoid = char:findFirstChild("Humanoid")
if humanoid then
humanoid. --Put what you want the premium users to have here
end
end)
end
end)
