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

0

why dont you put some print statements and see what prints and what doesn't

0

the touch function is working. Have you checked your output?

0

sorry i meant I think the touch function is not working