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

Doesn't clone GUI in studio, but in game ?

Can someone tell me why does this happen ? Yesterday everything worked smoothly today it doesn't clone anymore, it only works in game but not studio.. What the hell ?

local gui = script.Black
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
gui:Clone().Parent = player.PlayerGui
end)

6 comments

0

Are there any errors?

0

sadly, but no

0

Try adding player:WaitForChild('PlayerGui')

0

Nothing works... i think the studios broken or something i tried reinstalling nothing still

2

Its a ROBLOX error. PlayerAdded doesn't work for me either

0

Yep, i thought of that something broke.

1 answer

✓ Accepted answer

At the moment, roblox has broke the PlayerAdded event in solo studio mode.

It's a very annoying thing that I expect to get fixed very soon. At the moment, you will have to play on a server to get the player added event to function.

More,

While Filtering Enabled is on, scripts can't not access PlayerGui, only LocalScripts can. If you're using a Local Script, there's no need to use the PlayerAdded event in the first place.

Good Luck!

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