of     1   

Sasuto10
#63598237Wednesday, February 29, 2012 1:06 AM GMT

Every player enterd script i try doesn't work. can somebody send me a player entered script that works today? also i want to know how to make one, or i could just learn on my own by looking at the already-made one.
KnightmareXD
#63598499Wednesday, February 29, 2012 1:11 AM GMT

game.Players.PlayerAdded:connect(function(plyr) --Code end) † KMXD †
Sasuto10
#63607678Wednesday, February 29, 2012 4:06 AM GMT

first, unsure if this works, i did mean like a gui or message or something that pops up when somebody enters. also im not a major scripter so i have no idea what this completley does
darkkiller5555
#63609314Wednesday, February 29, 2012 5:01 AM GMT

.. local msg = Instance.new("Message") game.Players.PlayerAdded:connect(function(p) msg.Parent = workspace msg.Text = p.." has joined the game" wait(5) msg.Parent = nil end)
Sasuto10
#63647837Thursday, March 01, 2012 3:58 AM GMT

it didnt work, i also tried changing it up just a bit but it stil didn't work...
miz656
#63648561Thursday, March 01, 2012 4:10 AM GMT

local msg = Instance.new("Message") game.Players.PlayerAdded:connect(function(p) msg.Parent = workspace msg.Text = p.Name.." has joined the game" wait(5) msg.Parent = nil end)
Cheater
#63654989Thursday, March 01, 2012 11:28 AM GMT

function PlayerEntered(player) m = Instance.new("Message") m.Parent = game.Workspace m.Text = p.Name.. " has entered the game." wait(5) m:remove() game.Players.PlayerAdded:connect(PlayerEntered)
grimm343
#63659090Thursday, March 01, 2012 4:10 PM GMT

If the following does not work for you...You should know that .PlayerAdded only triggers in Servers. This will not work in Test, Play Solo, or Build modes. game.Players.PlayerAdded:connect(function(np) local t = Instance.new("Hint",Workspace) t.Text = np.Name.." joined the game! Welcome!" wait(2.5) t:destroy() end)
miz656
#63668123Thursday, March 01, 2012 9:23 PM GMT

@Cheater Wouldn't work, missing an end.
Sasuto10
#63680128Friday, March 02, 2012 12:44 AM GMT

@grimm343 it worked! :D but now i wanna try to make my own version, how would i make a script that inserts a gui with a certain size, position, an dall that. i have made the gui and would use the script you gave me so that it inserts the gui instead of the message. but i have an idea that would be better that making the script with a bunch of lines. how would i make it so when the script runs or whatever, it copies something from Lightning (in this case my screengui) and changes the text? i might make a new form on it later. i tried to look at a disasters script but it didnt help me.
unholysoda
#63685115Friday, March 02, 2012 2:12 AM GMT

game.Lighting.Gui.Parent = player Gui.Text = "Text" You would need to clarify player, or where you want it to go, and gui, what you want to get copyed and have the texted cahnged.
Sasuto10
#63687452Friday, March 02, 2012 2:55 AM GMT

first, not only do i not really understand what ou ment, but i need the gui to go to everyone's playergui folder or whatever it is. that i also don know how to do
CrasyTrex
#63688756Friday, March 02, 2012 3:21 AM GMT

game.Players.ChildAdded:connect(function (plr) a = game.Lighting.WelcomeGui:clone() for i,v in pairs(game.Players:GetChildren()) do a.Parent = v.PlayerGui end wait(2) for i,v in pairs(game.Players:GetChildren()) do for i,c in pairs(v.PlayerGui:GetChildren()) do if c.Name == "WelcomeGui" then c:remove() end end end)
CrasyTrex
#63688843Friday, March 02, 2012 3:22 AM GMT

I forgot to insert the text changer but you can do that =P oh yes change the places where is says WelcomeGui to what your gui is named =P.
grimm343
#63690961Friday, March 02, 2012 4:09 AM GMT

You should use .PlayerAdded, Crasy. :o What if an object that isn't a Player gets placed in there?
Sasuto10
#63691113Friday, March 02, 2012 4:13 AM GMT

Then lets welcome "Model" xD
Sasuto10
#63691655Friday, March 02, 2012 4:28 AM GMT

Workspace.Script:14: unexpected symbol near ')' thats what i got when i ran the script. i added the text tchanger thingy and it looked like this: game.Players.ChildAdded:connect(function (plr) a = game.Lighting.WelcomeGui:clone() for i,v in pairs(game.Players:GetChildren()) do a.Parent = v.PlayerGui a.Text = plr.. " has entered the server" end wait(2) for i,v in pairs(game.Players:GetChildren()) do for i,c in pairs(v.PlayerGui:GetChildren()) do if c.Name == "WelcomeGui" then c:remove() end end end) so, i dont know why, afterward i did try to do a bunch of things to fix it but nothing would work, just kept getting more errors with line 1. please fix.
Cheater
#63694487Friday, March 02, 2012 7:16 AM GMT

missing end You need one end for the function You need one end for the first "for" function (already placed) You need two more ends for the two "for" functions and one end for the "if" function. So all in all you need 5 ends. You have 4.
Sasuto10
#63698324Friday, March 02, 2012 2:07 PM GMT

the new script crasytrex gave me works (he gave it to me through messages) so on that im good and i'll use this script plus what i found out in roblox wiki to make a playerleft script.

    of     1