Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MPS = game:GetService("MarketplaceService")
- local ID = 4828207
- MPS.PromptGamePassPurchaseFinished:Connect(function(Player, GPID, Purchased)
- if GPID == ID and Purchased == true then
- local Char = Player.Character or Player.CharacterAdded:Wait()
- local ChosenTrail = game.ReplicatedStorage:WaitForChild(Player.Name):WaitForChild("ChosenTrail")
- ChosenTrail.Value = "GoldTrail"
- spawn(function()
- for _,v in pairs(Char:WaitForChild("Head"):GetChildren()) do
- if v:IsA("Trail") and v.Name ~= "GoldTrail" then
- v:Destroy()
- end
- end
- end)
- local Trail = game.ReplicatedStorage:WaitForChild("GoldTrail"):Clone()
- Trail.Parent = Char.Head
- local Attachment0 = Instance.new("Attachment")
- Attachment0.Parent = Char.Head
- Attachment0.Name = "TrailAttachment0"
- local Attachment1 = Instance.new("Attachment")
- Attachment1.Parent = Char.HumanoidRootPart
- Attachment1.Name = "TrailAttachment1"
- Trail.Attachment0 = Attachment0
- Trail.Attachment1 = Attachment1
- local Taco = game.ServerStorage.VIPTaco:Clone()
- Taco.Parent = Player.Backpack
- Player:WaitForChild("Tags"):WaitForChild(Player:GetRoleInGroup(4240806)).Name = "Ultra VIP"
- Player:WaitForChild("Tags"):WaitForChild("Ultra VIP").ChatColor.Value = Color3.fromRGB(255, 255, 0)
- Player:WaitForChild("Tags"):WaitForChild("Ultra VIP").TagColor.Value = Color3.fromRGB(255, 255, 0)
- end
- end)
- game.Players.PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Char)
- if MPS:UserOwnsGamePassAsync(Player.UserId, ID) then
- local Taco = game.ServerStorage.VIPTaco:Clone()
- Taco.Parent = Player.Backpack
- Player:WaitForChild("Tags"):WaitForChild(Player:GetRoleInGroup(4240806)).Name = "Ultra VIP"
- Player:WaitForChild("Tags"):WaitForChild("Ultra VIP").ChatColor.Value = Color3.fromRGB(255, 255, 0)
- Player:WaitForChild("Tags"):WaitForChild("Ultra VIP").TagColor.Value = Color3.fromRGB(255, 255, 0)
- local ChosenTrail = game.ReplicatedStorage:WaitForChild(Player.Name):WaitForChild("ChosenTrail")
- if ChosenTrail.Value == "GoldTrail" then
- local Trail = game.ReplicatedStorage:WaitForChild("GoldTrail"):Clone()
- Trail.Parent = Char.Head
- local Attachment0 = Instance.new("Attachment")
- Attachment0.Parent = Char.Head
- Attachment0.Name = "TrailAttachment0"
- local Attachment1 = Instance.new("Attachment")
- Attachment1.Parent = Char.HumanoidRootPart
- Attachment1.Name = "TrailAttachment1"
- Trail.Attachment0 = Attachment0
- Trail.Attachment1 = Attachment1
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement