of     1   

Opisek
#184139758Monday, February 22, 2016 1:23 PM GMT

Hello! I tried to make my character load after the menu closes. What I tried to do is uncheck the AutoLoadCharacter and put player:LoadCharacter() on the end of the menu script. Now when I started game the menu didn't show. The scipt of the menu i1s in the StarterGui -> ScreenGui -> Frame and it's a local script. Please help me. Thanks!
Opisek
#184149811Monday, February 22, 2016 7:02 PM GMT

Please help me
FriendlyBiscuit
#184150379Monday, February 22, 2016 7:15 PM GMT

if memory serves me well, you have to call ::LoadCharacter() at least once, since the starter objects won't replicate anything to the player until ::LoadCharacter() is called. in a server script, you could accomplish this by doing... players.PlayerAdded:connect(function(p) p.CharacterAdded:wait() p.Character:Destroy() end) ... or similar. PS: typed on mobile forgive any mistakes
Opisek
#184193561Tuesday, February 23, 2016 2:30 PM GMT

So I should place it on the beginning of the menu script right? I have to put the LoadCharacter on the end then and uncheck the AutoLoadCharacter?
FriendlyBiscuit
#184195082Tuesday, February 23, 2016 3:39 PM GMT

no you dunce try actually reading my reply rather than taking the code and running
Opisek
#184246721Wednesday, February 24, 2016 2:48 PM GMT

I'm not English, so I don't understand very well and I didn't try this code, I just asked where should it be in.
Opisek
#184246851Wednesday, February 24, 2016 2:53 PM GMT

And it doesn't work when I place it in server scirpt (character auto loads is on) I just can walk around when I'm in menu.
Opisek
#184246902Wednesday, February 24, 2016 2:54 PM GMT

It says that the global var players has a nil value
zaniac10
#184247501Wednesday, February 24, 2016 3:14 PM GMT

"no you dunce try actually reading my reply rather than taking the code and running" why are you so rude you snobby, annoying obc'er??/?!?? as for the original reply, when you say "I tried to make my character load after the menu closes," how do you want it to close? exit button?
FriendlyBiscuit
#184303314Thursday, February 25, 2016 5:00 PM GMT

"why are you so rude you snobby, annoying obc'er??/?!??" - i've been called a lot of things... but "annoying obc'er" is definitely a first. - because he doesn't know jack about scripting and came here to take the code and run. that's what the majority of this trash community does. i mean come on what kind of moron doesn't at least understand that "players" is pseudo-code for game.Players lmaooo
zaniac10
#184305055Thursday, February 25, 2016 5:43 PM GMT

you're the only trash of this community as you're so unnecessarily rude and you are only infesting others' vulnerable, young minds on this forum with your bs
FriendlyBiscuit
#184305712Thursday, February 25, 2016 6:04 PM GMT

ok hun sorry for being honest about this kid being utter trash at scripting xD
TimeTicks
#184305794Thursday, February 25, 2016 6:06 PM GMT

--server script local re = game.ReplicatedStorage:WaitForChild("RemoteEvent") game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char:Destroy() end) end) re.OnServerEvent:connect(function(plr) plr:LoadCharacter() end) --local script local re = game.ReplicatedStorage:WaitForChild("RemoteEvent") menu.MouseButton1Click:connect(function() re:FireServer() end)

    of     1