local ImageLabel = script.Parent.TeamMarkerLabel:Clone() -- this line
ImageLabel.Parent = player.Head -- and this line
ImageLabel.ImageColor3 = player.TeamColor
local playermarkersort = script.Parent("Team Marker"):Clone()
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local ImageLabel = script.Parent.TeamMarkerLabel:Clone() -- this line
ImageLabel.Parent = player.Head -- and this line
ImageLabel.ImageColor3 = player.TeamColor
end)
local playermarkersort = script.Parent("Team Marker"):Clone()
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local ImageLabel = playermarkersort["Team Marker Label"]
playermarkersort .Parent = player.Head -- and this line
ImageLabel.ImageColor3 = player.TeamColor
end)
You seem to be defining a variable, but you don’t have an equal sign and you have a space in the variable, try doing local imageLabel = script.Parent["Team Marker Label"]:Clone() imageLabel.ImageColor3 = Color3.new(player.TeamColor) imageLabel.Parent = player.Character.Head. For this to work though, you need to make this script a regular script and not a local script, otherwise other players wont be able to see the dot due to filtering enabled, you can learn more about this here Filtering Enabled Explanation this should also go into ServerScriptService. Also it doesn’t seem like you are too familiar with scripting, maybe try watching some tutorials.
Lol I typed my reply then laptop died. The reason it won’t work is because you don’t have the character parameter defined. I’ll give you a script I edited.
local playerbill = game.ReplicatedStorage:WaitForChild("YourGUI"):Clone()
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local playertag = playerbill:Clone()
playertag:WaitForChild('playernamelbl').Text = plr.Name -- just change this line to the image and do WaitForChild("ImageLabel").ImageColor3 = plr.TeamColor
playertag.Parent = game.Workspace:WaitForChild(plr.Name).Head
end)
end)