Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I give a clone from ServerStorage a parent?

Asked by 4 years ago

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

Log in to vote
1
Answered by 4 years ago
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)
Ad
Log in to vote
0
Answered by
sfant43 20
4 years ago
Edited 4 years ago
Clone.Parent = game.Players.XiFiZii.Character.Head
0
pretty much yeah dominicjj54321 8 — 4y

Answer this question