This is a script I made that I want to clone a billboard gui in replicated storage and put it in every player's humanoid root part, so that it shows where every player is.
here's the script:
local Billboard = game.ReplicatedStorage.BillboardGui
local spawns = game.Workspace:GetChildren()
local player = game.Players
player.PlayerAdded:Connect(function(plr)
local clone = Billboard:Clone()
end)
spawns.Touched:Connect(function(hit)
if hit.Parent.Humanoid == true then
clone.Parent = hit.Parent.HumanoidRootPart
end
end)

3 comments
why dont you put some print statements and see what prints and what doesn't
the touch function is working. Have you checked your output?
sorry i meant I think the touch function is not working