I wanted to make this GUI Over the head of Roblox Premium Players.
Since I have no Roblox Premium, I had to edit scripts to show it for me.
The problem is that it’s not showing, I tried everything but I still can’t
Here are the codes. The Original(Used for the game)
and the Modified one (used to check if it works)
Original Code:
-- Services
local serverScriptService = game:GetService("ServerScriptService")
local chatService = require(serverScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if player.MembershipType == Enum.MembershipType.Premium then
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
local clonedgui = billboardgui:Clone()
clonedgui.Parent = char:FindFirstChild("Head")
clonedgui.ImageLabel.Image = "rbxassetid://6377803675"
clonedgui.TextLabel.Text = "Premium"
clonedgui.TextLabel.TextColor = Color3.fromRGB(192,192,192)
local premium = clonedgui
chatService.SpeakerAdded:Connect(function(PlrName)
local speaker = chatService:GetSpeaker(PlrName)
for _, v in pairs(premium) do
if players[PlrName].Name == v then
speaker:SetExtraData('Tags',{{TagText = 'Premium', TagColor = Color3.fromRGB(255,255,255)}})
end
end
end)
end
end)
end)
Modified Code:
-- Services
local serverScriptService = game:GetService("ServerScriptService")
local chatService = require(serverScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if player.UserId == 1029635682 then
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
local clonedgui = billboardgui:Clone()
clonedgui.Parent = char:FindFirstChild("Head")
clonedgui.PremiumLabelText.Text = "Premium"
clonedgui.PremiumImageLabel.ImageLabel.Image = ("rbxassetid://6377803675")
clonedgui.PremiumLabelText.TextLabel.TextColor = Color3.fromRGB(255,255,255)
local premium = clonedgui
chatService.SpeakerAdded:Connect(function(PlrName)
local speaker = chatService:GetSpeaker(PlrName)
for _, v in pairs(premium) do
if players[PlrName].Name == v then
speaker:SetExtraData('Tags',{{TagText = 'Premium', TagColor = Color3.fromRGB(255,255,255)}})
if clonedgui then
print("It's Running!")
end
end
end
end)
end
end)
end)