Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I make Premium Benefit Trails?

Asked by 2 days ago

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)

1 answer

Log in to vote
0
Answered by 2 days ago
game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(char)
if player.membership == Enum.MembershipType.premium then
player.CharacterAdded:connect(function(char)
local humanoid = char:findFirstChild("Humanoid")
if humanoid then
        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
    end)
end)

I mixed them. I hope i was able to help! Good day!

Ad

Answer this question