What I mean: I have created a command for my A.C. (Admin Commands), however, the command is not working as it is supposed to, although, as it is executing the command, the for loop is not looping properly through the Hologram, as the face, HumanoidRootPart, and Hat(s) are appearing up in the Hologram when not supposed to, I have even set a Wait to wait before starting the for loop, however, that did not prevent from the face, HumanoidRootPart, nor the Hat(s) from showing up either, however, it is setting the Transparency, and BrickColor for the BasePart's, which is what it is also supposed to do, but, I am confused to why it won't do the same for the rest of the things I listed (The face, HumanoidRootPart, and Hat(s)).
This is the code I am using for the Hologram (Note, this is the entire Hologram code :) );
if msg:lower():sub(1,9+#Prefix) == Prefix.."hologram " then
local plrz = GetPlr(plr,msg:sub(10+#Prefix)); print("Hologram 1:",#plrz)
for i,v in pairs(plrz) do print("Hologram 2")
coroutine.resume(coroutine.create(function() print("Hologram 3")
if v.Character then
v.Character.Archivable = true
local char = v.Character:Clone()
char.Parent = Services['Workspace']
char:MakeJoints()
char.Name = v.Name.."HOLOGRAM"
char:MoveTo(v.Character:GetModelCFrame().p+Vector3.new(0,1,0))
table.insert(Container,char)
wait(.5)
for i2,v2 in pairs(char:GetChildren()) do
if v2:IsA("BasePart") then
v2.BrickColor = BrickColor.new("Teal")
v2.Transparency = 0.1
elseif v2:IsA("Hat") and v2:FindFirstChild("Handle") then
if v2:FindFirstChild("Mesh") then
v2.Mesh.TextureId = "http://"
v2.VertexColor.X = 0
v2.VertexColor.Y = 1
v2.VertexColor.Z = 1
end
v2.Handle.BrickColor = BrickColor.new("Teal")
v2.Handle.Transparency = 0.1
elseif v2:FindFirstChild("face") then
v2.face:Destroy()
wait(1/13.37)
if v2:FindFirstChild("face") then
v2.face.Texture = "http://"
v2.face.Transparency = 1
end
elseif v2.Name == "HumanoidRootPart" then
v2.Transparency = 1
end
end
v.Character.Archivable = false
end
end))
end
end

8 comments
Would you mind putting a ypcall function on the code? I make highly advanced admin's, Im used to having odd error's like this; I would think the coroutine is masking the error from showing due to the coroutine threading the function to the Render-Engine instead of the Server.
Oh, I forgot the coroutine I used is not so Flexible. :P I tried using this coroutine, since 'coroutine.wrap' did not give me the legitimate error. Also, how would I use the 'ypcall' in the function; I do not understand 'pcall''s anymore, since in the past, I figured I've been using them wrong.
I just switched it from a 'coroutine' to 'spawn', but sadly, there is no error coming up, and the same affect is still occuring.
Spawn in a nother form of coroutine. :P
I like making using a table to run a admin, it just run's more smooth and less laggy; If you would like to know a little more info on that method message me and I will explain it.
What do you mean by 'using a table to run a admin'? I do not understand.
local Commands = { {Cmd = "Hologram",Rank = 3 , Func = function() end} } then have the CheckChat run the function in the table.
That seems difficult. o_e Also, sorry for slow responses, there is connection problems going on around where I am. :/