Now I know this isn't a "Good Question" as defined by the help, but the only code I can provide for this one is ...
local newGame = script.Parent.NewGame local loadGame = script.Parent.LoadGame local changeLog = script.Parent.ChangeLog local starterGui = game.StarterGui newGame.MouseButton1Down:connect(function() end) loadGame.MouseButton1Down:connect(function() end) changeLog.MouseButton1Down:connect(function() end)
What I'm looking for is to not spawn the character until they press either newGame
or loadGame
, then to spawn the character and do the stuff I plan on doing later. Thanks in advance.
Ok, to stop a player from spawning:
game.Players.CharacterAutoLoads = false -- player can't spawn
Then, to spawn a player, do this:
game.Players.PlayerAdded:connect(function(p) local gui = script.GuiName:Clone() gui.Parent = p.PlayerGui -- DONE! local button -- this is what gets clicked button.MouseButton1Click:connect(function() p:LoadCharacter() end end)