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

Why does my gui replicate script not work?

It is supposed to put the gui into the players "PlayerGui" but it does not do that and it also does not output an error.

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(Character) local person = game.Players.LocalPlayer local guiclone = game.Lighting.ScreenGui:Clone() guiclone.Parent = person.PlayerGui end) end)

1 answer

Hi, you made a function to run when a player is added then an unnecessary player.CharacterAdded:connect part strait after it.

Here's how it should have looked:

game.Players.PlayerAdded:connect(function(player) 
 
local person = game.Players.LocalPlayer
local guiclone = game.Lighting.ScreenGui:Clone()
guiclone.Parent = person.PlayerGui end)

Please accept the answer.

~topgeartrain

2 comments

0

Its still not working ,the gui does not show up for the player.

0

Make sure its in the right place, named correctly and make sure the Visible Value is set to true.

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