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 add a vip overhead gui on roblox?

I watched tons of YouTubers to make an overhead GUI but none of them worked.

1 answer

You basically just need to check if the player has a game pass and if so clone a Billboard GUI and put it on their head. Make a bill board GUI in Replicated storage and put a text label in it and customize it to whatever you want. Make sure you put studs offset in Billboard GUI to 0,3,0. Then put this script in workspace:

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local ms = game:GetService(“MarketplaceService”)
local id = PUT YOUR GAMEPASS ID HERE
if ms:UserOwnsGamePassAsync(player.UserId, id) then
local UI = game.ReplicatedStorage.BillboardGUI:Clone()
UI.Parent = character.Head
end
end)
end)

9 comments

0

If this doesn’t work, please tell me cause I think i might have made a mistake

0

It's always better to have scripts in ServerScriptService instead. You also haven't included an ends in the script, making it not functionable

0

dosen't work

0

Ah yes I forgot the end.

0

ok now it should. I put the ends in the script

0

it didnt work

0

Are there any errors in the output? If so please tell me. Also check Script Analysis

0

Ok I think I know why. If you named the BillboardGUI anything else you should put that there instead of BillboardGUI. It might be BillboardGui instead of BillboardGUI

0

And it’s UserOwnsGamePassAsync, oops

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