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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I forgot how to do player entered functions

Previous Thread :: Next Thread 
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
02 Feb 2014 03:28 PM
function OnEntered()
M = Workspace.Message
M.Text = "Welcome To Dodge The Lava Balls!"
wait(2)
M.Text = "We are adding new maps frequently!"
wait(2)
M.Text = "In this game you must dodge the lava balls!"
wait(1)
M.Text = "But, there are different maps too!"
wait(1)
M.Text = "You must get to the end of each map for points!"
wait(1)
M.Text = "Enjoy!"
wait(1)
M.Text = ""
end
script.Parent.PlayerAdded:connect(OnEntered)

I think this is wrong, but I forgot how to do player has entered functions!
Report Abuse
shawnyg is not online. shawnyg
Joined: 21 Apr 2011
Total Posts: 1428
02 Feb 2014 03:29 PM
script.Parent.PlayerAdded:connect(function(plr)
M = Instance.new("Message", plr)
M.Text = "Welcome To Dodge The Lava Balls!"
wait(2)
M.Text = "We are adding new maps frequently!"
wait(2)
M.Text = "In this game you must dodge the lava balls!"
wait(1)
M.Text = "But, there are different maps too!"
wait(1)
M.Text = "You must get to the end of each map for points!"
wait(1)
M.Text = "Enjoy!"
wait(1)
M:Destroy()
end)

~Hope I helped! If you need a script, PM me.~ ~The G~ ~CAT General Shawnyg~
Report Abuse
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
02 Feb 2014 03:34 PM
Won't work does it need to be in a local script?
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
02 Feb 2014 03:35 PM
Use this one.

script.Parent.PlayerAdded:connect(function(plr)
M = Instance.new("Message", plr.PlayerGui)
M.Text = "Welcome To Dodge The Lava Balls!"
wait(2)
M.Text = "We are adding new maps frequently!"
wait(2)
M.Text = "In this game you must dodge the lava balls!"
wait(1)
M.Text = "But, there are different maps too!"
wait(1)
M.Text = "You must get to the end of each map for points!"
wait(1)
M.Text = "Enjoy!"
wait(1)
M:Destroy()
end)

Mr.Teddy for President ˁ(⦿ᴥ⦿)ˀ
Report Abuse
shawnyg is not online. shawnyg
Joined: 21 Apr 2011
Total Posts: 1428
02 Feb 2014 03:35 PM
Fail, messed up on the connection line. Replace the first line with this. Normal script

game.Players.PlayerAdded:connect(function(plr)

~Hope I helped! If you need a script, PM me.~ ~The G~ ~CAT General Shawnyg~
Report Abuse
ROBLOXTHEMOVIEs is not online. ROBLOXTHEMOVIEs
Joined: 11 Jun 2012
Total Posts: 5895
02 Feb 2014 03:36 PM
That goes to my script too.

Mr.Teddy for President ˁ(⦿ᴥ⦿)ˀ
Report Abuse
shawnyg is not online. shawnyg
Joined: 21 Apr 2011
Total Posts: 1428
02 Feb 2014 03:44 PM
All you did was copy mine...

~Hope I helped! If you need a script, PM me.~ ~The G~ ~CAT General Shawnyg~
Report Abuse
LilJoker4675 is not online. LilJoker4675
Joined: 31 Oct 2011
Total Posts: 220
02 Feb 2014 03:49 PM
It won't work still D: Must it be in a local script?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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