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

Script GUI trouble?

Asked by 9 years ago

So I'm working on a project, and I have a local script in "StarterPlayerScripts". It's supposed to Clone 3 SurfaceGUIs and put them on 3 different parts. This is what I have:

--GUIS
local Lumber = game.Lighting.StockGuis.HowMuchLumber
local Fire = game.Lighting.StockGuis.HowManyFires
local Infected = game.Lighting.StockGuis.WhoGotThePlauge
--Parts
local LumberPart = game.Workspace.LumberFans
local FirePart = game.Workspace.FireFlash
local InfectedPart = game.Workspace.RBLXPlauge
--Functions
game.Players.PlayerAdded:connect(function(player)
    LumberClone = Lumber:Clone()
    LumberClone.Parent = LumberPart

    FireClone = Fire:Clone()
    FireClone.Parent = FirePart

    InfectedClone = Infected:Clone()
    InfectedClone.Parent = InfectedPart

end)

I also tried replacing "Parent" with "Adornee". What did I do wrong? By the way there's nothing in output

1
PlayerAdded doesn't work with Localscripts. rexbit 707 — 9y
0
ohhh ok thanks. DangerDobbs 0 — 9y

Answer this question