Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make Premium Benefit Trails?

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

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!

This discussion is preserved as it was. New answers, comments, and votes are closed.