|
| 16 Apr 2015 10:38 PM |
Ok, so I thought this was not working properly, but after more testing I saw that it is copying it into the player, But there becomes two on the server... But then on the player its not seen at all?? Then I delete it in the server and add it in again with cloning it appears?!? So, how is it in the server, correct place but not in the client, and how can I fix this?!? (Filtering-Enabled)
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer.CharacterAdded:connect(function(character) if game.Players[character.Name].GameInfo.Menu.Value == true then local mm = script.MainMenu:Clone() mm.Parent = game.Players[newPlayer.Name].PlayerGui end end) end) |
|
|
| Report Abuse |
|
|
Stiiky
|
  |
| Joined: 15 Jan 2010 |
| Total Posts: 451 |
|
| |
|
|
| 16 Apr 2015 10:43 PM |
| They all get a blue underline and tell me to replace with "game" |
|
|
| Report Abuse |
|
|
| |
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 16 Apr 2015 10:49 PM |
Right now, you're probably the worst at explaining something, however dis sh00d help
game.Players.PlayerAdded:connect(function(NewPlayer) NewPlayer.CharacterAdded:connect(function(Character) if Character:WaitForChild('GameInfo'):WaitForChild('Menu').Value == true then local script.MainMenu:Clone().Parent = Character.PlayerGui end end) end) |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 16 Apr 2015 10:51 PM |
Oh and if you are getting two MainMenu scripts in the player, you may want to check if it is because of that player resetting or the function being ran twice.
I suggest you use print'' stuff to help you understand if the script is being ran twice or if it is because there's more than one script running when a player's character is added |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2015 11:04 PM |
| Ok, so basically when playing solo, this works fine. But when in test mode or online the player enters the game and the GUI appears fine. Then the player resets and the gui does not appear when its suppose to. On the server the gui was placed in the playerGui, but if you look in playerGui on the client there is nothing in there, its only showing up in the server. Then if you delete the gui from PlayerGui in the server (manually) and paste a new one in there it appears for the player suddenly. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2015 11:07 PM |
| MyCheeze, yours did not work sadly. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2015 11:10 PM |
To see what I mean by its not working, go here: http://www.roblox.com/games/238456943/City-Life-Alpha-v0-10
The GUI will be there, then reset and it won't. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2015 11:12 PM |
| The game is filtering-enabled, when filtering-enabled is turned off it works fine, so its something to do with it. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2015 11:40 PM |
| If I cannot find a fix for this I guess ill create something that checks if its there, and if its required. and calls it in if its needed. |
|
|
| Report Abuse |
|
|