Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I give a clone from ServerStorage a parent?

I wan't to clone a Billboard GUI from ServerStorage, but idk how to give the clone a parent to my head.

Script so far:

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(plr)
	
	if plr.Name == "XiFiZii" then
		
		local Clone = game.ServerStorage.BillboardGui:Clone()
		
		
		
	end
	
end)

2 answers

✓ Accepted answer
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(plr)
    if plr.Name == "XiFiZii" then
        local Clone = game.ServerStorage.BillboardGui:Clone()
	Clone.Parent = plr.Character.Head
    end
end)
Clone.Parent = game.Players.XiFiZii.Character.Head

1 comment

0

pretty much yeah

This discussion is preserved as it was. New answers, comments, and votes are closed.