I already have script of perm name tags when Owner/admins/etc join game and it is already positioned correctly. I want to know if I can sell separate tags using this same script for cash lets say for “noob/chad”
tags. idk how even possible since all the names are written already in script manually to apply their tag…
but I want server to be able to write their name, would I also need a datastore?
script -
local rep = game:GetService("ReplicatedStorage")
local nametag = rep.NameTag
local groupId = 7435689
local tester = {"Yuenyv", "Lxtiz", "jadensgold", "ellieberries", "MarioPaperPlane", "phant0m_XXX"}
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local head = char.Head
local newtext = nametag:Clone()
local uppertext = newtext.UpperText
local lowertext = newtext.LowerText
local humanoid = char.Humanoid
humanoid.DisplayDistanceType = "None"
newtext.Parent = head
newtext.Adornee = head
uppertext.Text = player.Name
if player:IsInGroup(groupId) then
if player.Name ~= "probunny123" and player.Name ~= "CrillicD" then
if player.MembershipType ~= Enum.MembershipType.Premium then
lowertext.Text = "GroupMember"
lowertext.TextColor3 = Color3.fromRGB(0, 255, 0)
uppertext.TextColor3 = Color3.fromRGB(200, 255, 200)
end
end
end
if player.MembershipType == Enum.MembershipType.Premium then
if player.Name ~= "probunny123" and player.Name ~= "CrillicD" then
for i = 1,tester,1 do
if player.Name ~= tester[i] then
lowertext.Text = "Premium"
lowertext.TextColor3 = Color3.fromRGB(182, 37, 175)
uppertext.TextColor3 = Color3.fromRGB(252, 144, 215)
return
end
end
end
end
if player.Name == "CrillicD" then
lowertext.Text = "Owner"
lowertext.TextColor3 = Color3.fromRGB(255, 0, 0)
uppertext.TextColor3 = Color3.fromRGB(245, 116, 116)
end
if player.Name == "probunny123" then
lowertext.Text = "Admin"
lowertext.TextColor3 = Color3.fromRGB(255, 255, 0)
uppertext.TextColor3 = Color3.fromRGB(243, 255, 135)
end
for i = 1,#tester,1 do
if player.Name == tester[i] then
lowertext.Text = "BETA"
lowertext.TextColor3 = Color3.fromRGB(0, 255, 213)
uppertext.TextColor3 = Color3.fromRGB(200, 255, 213)
end
end
end)
end)