Help with a script

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)
2 Likes

uhm oops nope! i will try xD mb

Yup, exactly! That’s how I was thinking it should look like.

2 Likes

Oh whoops, don’t forget to add the local variable referencing the billboardgui above the functions, without it the two functions can’t run.

like this ?


its doesn’t work ;;

That’s because you change the billboardgui variable to "BillboardGuiReference.
change the variable to

local billboardgui = game.ServerStorage.BillboardGui

This might help

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)
1 Like

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