generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: WTF!?! Why is this not working!

Previous Thread :: Next Thread 
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
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 is not online. Stiiky
Joined: 15 Jan 2010
Total Posts: 451
16 Apr 2015 10:42 PM
Replace game with Game
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
16 Apr 2015 10:43 PM
They all get a blue underline and tell me to replace with "game"
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
16 Apr 2015 10:44 PM
and no difference.
Report Abuse
mycheeze is not online. 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 is not online. 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
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
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
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
16 Apr 2015 11:07 PM
MyCheeze, yours did not work sadly.
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
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
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
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
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image