Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

PlayerAdded Number Help? [Script Included]

Asked by
Vividex 162
10 years ago
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function()
if v and v.Character and v.Character:findFirstChild("Head") then 
for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
local char = v.Character
local mod = Instance.new("Model", char)
local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0
local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
char.Head.Transparency = 1
end
end))
end

The script is supposed to remove your head and replace is with a fake head basically that is namable. If this isn't right please tell me, but I'm having trouble making it change the fake heads name to #1 for the first player that joins and then #2 for the second player that joins and #3 for third player that joins and continues and keep the numbers like that (if reseted) please help?

Answer this question