Answered by
7 years ago Edited 7 years ago
You could do something like this:
This is the local script version (put this in startergui/starterplayerscripts):
1 | local player = game.Players.LocalPlayer |
2 | local Gui = game.ServerStorage.Gui:Clone() |
3 | Gui.Parent = player.PlayerGui |
4 | game:GetService( "Debris" ):AddItem(Gui, 5 ) |
Server Script Version (Put this in serverscriptservice):
1 | game.Players.PlayerAdded:Connect( function (player) |
2 | local Gui = game.ServerStorage.Gui:Clone() |
3 | Gui.Parent = player.PlayerGui |
4 | game:GetService( "Debris" ):AddItem(Gui, 5 ) |
Closed as Too Broad by Goulstem
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?