this tutorial is actually outdated
Oh wait, you tried the fix correct?
Youâll need to use both PlayerAdded and CharacterAdded.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if player.Name == 'RingsOfSaturn59' then
local clonedgui = billboardgui:Clone()
clonedgui.Parent = char:WaitForChild('Head')
clonedgui.TextLabel.Text = "Owner, creator & level designer"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(126, 0, 189)
end
-- add the rest of your code here
end)
end)
uhm oops nope! i will try xD mb
Yup, exactly! Thatâs how I was thinking it should look like.
Oh whoops, donât forget to add the local variable referencing the billboardgui above the functions, without it the two functions canât run.
Thatâs because you change the billboardgui variable to "BillboardGuiReference.
change the variable to
local billboardgui = game.ServerStorage.BillboardGui
They also messed up on their variable to clone the gui.
doesnât work too ;; im sorry x)
use after character added event
game.Workspace:WaitForChild(player.Name)
I donât use Alvins method in scripting, but the way he fixed it was using that.
You are missing an end
in your script that is why that is happening.
If you want an example of what i mean here:
local billboardgui = game:GetService("ServerStorage"):WaitForChild("billboardgui")
game.Players.PlayeyAdded:Connect(function(player)
if player.Name == "RingsOfSaturn59" then
local clonedgui = billboardgui:Clone()
local h = player.Character:WaitForChild("Humanoid")
local h2 = player.Character:WaitForChild("Head")
clonedgui.Parent = h2
clonedgui.TextLabel.Text = "Owner, Creator & level designer"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(126, 0, 189)
end
if game.MarketpalceService:UserOwnsGamePassAsync(player.UserId, 12680408
local clonedgui = billboardgui:Clone()
local h = player.Character:WaitForChild("Humanoid")
local h2 = player.Character:WaitForChild("Head")
clonedgui.Parent = h2
clonedgui.TextLabel.Text = "VIP Gamepass Owner" -- change this to what you like
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(126, 0, 189) -- change this up till you get a color you like
end
if player.Name == "fannymelody" then
local clonedgui = billboardgui:Clone()
local h = player.Character:WaitForChild("Humanoid")
local h2 = player.Character:WaitForChild("Head")
clonedgui.Parent = h2
clonedgui.TextLabel.Text = "Creator & level designer"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(126, 0, 189
end
end)
Use this again you need to add a âend)â at the bottom of the "end)) so meaning there are 2 (Donât delete any ends)
Line 9 add â endâ right after âthenâ. Everything else is fine.
soâŚ
with the video who send @rottendogDkR the name tag is working ! but it does not allow to buy it in the vip pass, and the script and the billboard are not in the service and serverstorage script does it matter?
@DeityMinds @ezekieltem
I have not watched the video yet, but if you swapped around the items make sure you update the variables in your script with respect to the location of the items you moved around.
Is it a gamepass or dev product.
its a product of a gamepass yes