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

Not cloning the gui?

Asked by 9 years ago

The song plays, but it doesn't clone anything to the PlayerGui

Before you ask, the yo value is a stringvalue and the value is "game.Players.LocalPlayer"

local song = game.Workspace:WaitForChild("Song")
local d = game.Workspace:WaitForChild("yo")


game.Players.PlayerAdded:connect(function()
local screenclone = game.Lighting.PlayGui:Clone()
  screenclone.Parent = d.Value.PlayerGui

wait(1) 
    song:Play()
    song.Volume = 0.1
    wait(0.5)
    song.Volume = 0.2
    wait(0.5)
    song.Volume = 0.3

end)




1 answer

Log in to vote
1
Answered by
woodengop 1134 Moderation Voter
9 years ago

PlayerAdded does NOT work with a localscript, use ChildAdded instead.

0
Still didn't run the script. UnleashedGamers 257 — 9y
0
I've changed the script to a normal script. UnleashedGamers 257 — 9y
Ad

Answer this question