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 » Scripting Helpers
Home Search
 

Re: Finding a player "exists" in the game.

Previous Thread :: Next Thread 
foxmaster600 is not online. foxmaster600
Joined: 14 Oct 2009
Total Posts: 147
10 Feb 2014 10:00 PM
Just some help here, what would I input into the script to "detect" that a certain person, example, me, is in the game, not like any player, just me. Like I don't know how to tell it, but I know how I want it, that like, my torso "exists" or my player, nevermind, you should know what I mean by now. Help?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
10 Feb 2014 10:10 PM
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.DataReady
if plr.Name == "foxmaster600" then
--code here
Report Abuse
foxmaster600 is not online. foxmaster600
Joined: 14 Oct 2009
Total Posts: 147
10 Feb 2014 10:11 PM
Arigato.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
10 Feb 2014 10:12 PM
I don't speak Mexican ._.




































Lol'd
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
10 Feb 2014 11:47 PM
racist!!!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Feb 2014 11:48 PM
'repeat wait() until plr.DataReady'
Not needed, and that is not Spanish, I'm pretty sure it's Japanese
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
10 Feb 2014 11:54 PM
domo arigato :)

yeah its japenese
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
11 Feb 2014 01:41 AM
you can also do player:WaitForDataReady()
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
11 Feb 2014 01:41 AM
you can also do player:WaitForDataReady()
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
11 Feb 2014 01:41 AM
lol did i just post 2 times
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
11 Feb 2014 03:53 AM
why would you wait for data ready?
Report Abuse
TheLagScript is not online. TheLagScript
Joined: 13 Apr 2012
Total Posts: 2004
11 Feb 2014 06:17 AM
So whatever is supposed to happen doesn't happen while the player is still loading and faks him all up

~14 Years Old: C++/Lua/PHP~
Report Abuse
foxmaster600 is not online. foxmaster600
Joined: 14 Oct 2009
Total Posts: 147
11 Feb 2014 07:21 AM
Well I'm getting an error here

function foxmaster600()
game.Players.PlayerAdded:connect(function(plr) --- says I must close this?
function plr()
repeat wait(3) until plr.DataReady
if plr.Name == "foxmaster600" then
print"foxmaster600 exists in server"
local message = Instance.new('Message', game.Workspace)
message.Text = "Fun message here"
wait(4)
message:Destroy()
end
end
end

function PlayersGet() --red line in scripting here
wait(5)
if game.Players.NumPlayers >= 1 then --minimum amount of players to start game
print("Sufficient players reached")
SuffPlayers()
else print("Error 01, not enough players")

I'm not a master scripter I'm still a 14 year old noob.
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
11 Feb 2014 08:35 AM
Instance.new("Message", workspace)-- not 'message'

and Print("iuhiuhuih")
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
11 Feb 2014 08:35 AM
And also try using :Remove() not destroy

nobody trusts destroy
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
11 Feb 2014 11:19 AM
function foxmaster600()
game.Players.PlayerAdded:connect(function(plr) --- says I must close this?
function plr()
repeat wait(3) until plr.DataReady
if plr.Name == "foxmaster600" then
print"foxmaster600 exists in server"
local message = Instance.new('Message', game.Workspace)
message.Text = "Fun message here"
wait(4)
message:Destroy()
end
end
end)

#nerdsunited
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