IceKng
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 24 |
|
|
| 28 Dec 2013 06:50 PM |
Here is what we have so far:
function onPlayerEntered(newPlayer) script.ScreenGui:clone().Parent = script.Parent.Parent.PlayerGui end script.Parent.PlayerAdded:connect(onPlayerEntered)
Its not showing up in PlayerGui when tested. Maybe I am doing the most stupidest and idiotic thing in which I cannot realize.
I do know that when a player joins, the Backpack,StarterGear,PlayerGui load later. Wait(10) could fix it.
So maybe adding a repeat could also help?
game.Players.ChildAdded:connect(function(newPlayer) repeat wait() until newPlayer:FindFirstChild("PlayerGui") game.Workspace.GUI:clone().Parent=newPlayer.PlayerGui end)
Might get some replies on saying that I don't need wait(10) But I need some help with this script. Is there anyway I can get ScreenGui into the PlayerGui. |
|
|
| Report Abuse |
|
|
IceKng
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 24 |
|
| |
|
|
| 28 Dec 2013 06:53 PM |
a = script.ScreenGui:clone() a.Parent =player.PlayerGUI |
|
|
| Report Abuse |
|
|
IceKng
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 24 |
|
|
| 28 Dec 2013 07:25 PM |
| It doesn't get sent to the PlayerGui? |
|
|
| Report Abuse |
|
|
IceKng
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 24 |
|
|
| 28 Dec 2013 07:28 PM |
| Like in Robloxity, once you click the GUI its never comes back. How can I getthat to work. It wont appear in the PlayerGui and it is named ScreenGui |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2013 07:28 PM |
1. Put it in the StarterGui 2.If you only want the gui for specific players use this code:
local players = {} --put all players names in the table local gui = game.ServerStorage.Gui --change to the gui
function isPlr(plr) for i,v in pairs(players) do if v:lower() == plr.Name:lower() then return true end end
game.Players.PlayerAdded:connect(function(plr) gui:Clone().Parent=plr:WaitForChild("PlayerGui") end) |
|
|
| Report Abuse |
|
|
IceKng
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 24 |
|
|
| 28 Dec 2013 07:32 PM |
| I want it to dissapear when the player respawns. |
|
|
| Report Abuse |
|
|