Hello! I’ve been working on a VIP gamepass where I want the players to have a billboard GUI above their name and give them a lot of jump. I’ve achieved this properly, but I’ve ran into a problem. The jump power and the name tag goes away when the player dies. How would I fix this?
Here is my current script
Blockquote
local billboardgui = game:GetService(“ServerStorage”):WaitForChild(“BillboardGui”)
local id = [myid]
game:GetService(“MarketplaceService”).PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
if purchased and ido == id then
while true do
plr.Character.Humanoid.WalkSpeed = 25
wait(0.01)
end
end
end)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:connect(function(char)
if game:GetService(“MarketplaceService”):UserOwnsGamePassAsync(game.Players[char.Name].UserId, id) then
char.Humanoid.NameDisplayDistance = 60
local clonedgui = billboardgui:Clone()
clonedgui.Parent = game.Workspace[player.Name].Head
clonedgui.TextLabel.Text = “VIP”
clonedgui.TextVip.Text = player.Name
while true do
char.Humanoid.JumpPower = 60
wait()
end
end
end)
end)
Blockquote