Problem With Premium and Dev Tag

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Im trying to make a sytem where it gives a tag to dev and premium
  2. What is the issue? Include screenshots / videos if possible!
    everything works great except the dev tag and premium tag clone to the dev with premium and i want the dev to have priority
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    yes i look on devforum and devhub but i cant find
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
    here is the current code
game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		if player.MembershipType == Enum.MembershipType.Premium then
			if not player.UserId == 1578730070 or player.UserId == 196190193 or player.Name == "Creeperman16487" then
				local clone = script.premium:Clone()
				clone.Parent = char.Head
			end
		end
		if player.UserId == 1578730070 or player.UserId == 196190193 or player.Name == "Creeperman16487" then
			local clone = script.dev:Clone()
			clone.Parent = char.Head
		end
	end)
end)

image

Personally what I’d do, is store the Developer’s ID's inside a table so that it’s easily to keep track & follow

For the priority though, you’ll need to set up your script a bit differently :thinking:

local Developers = {
    1578730070;
    196190193;
}

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local Head = Character:WaitForChild("Head")

        if table.find(Developers, Player.UserId) then
            local Clone = script.dev:Clone()
            Clone.Parent = Head

        elseif Player.MembershipType == Enum.MembershipType.Premium then
            local Clone = script.premium:Clone()
            Clone.Parent = Head
        end
    end)
end)

I added an elseif, so if the script detects that the Player is not a Developer, it’ll pass on if the Player has Premium or not

I believe this could be what you want?

1 Like

omg thank you so much it worked!!

2 Likes

If you don’t understand tables I would recommend this tutorial by some random guy: Tables - A better understanding & perspective on how to use them
He explains them well.

1 Like