Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I add a vip overhead gui on roblox?

Asked by 3 years ago

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

1 answer

Log in to vote
0
Answered by
Nozazxe 107
3 years ago
Edited 3 years ago

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)
0
If this doesn’t work, please tell me cause I think i might have made a mistake Nozazxe 107 — 3y
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 RazzyPlayz 497 — 3y
0
dosen't work ShinyPhenomenal -3 — 3y
0
Ah yes I forgot the end. Nozazxe 107 — 3y
View all comments (5 more)
0
ok now it should. I put the ends in the script Nozazxe 107 — 3y
0
it didnt work ShinyPhenomenal -3 — 3y
0
Are there any errors in the output? If so please tell me. Also check Script Analysis Nozazxe 107 — 3y
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 Nozazxe 107 — 3y
0
And it’s UserOwnsGamePassAsync, oops Nozazxe 107 — 3y
Ad

Answer this question