|
| 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
|
  |
| 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 |
|
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 10 Feb 2014 10:12 PM |
I don't speak Mexican ._.
Lol'd |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
| |
|
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
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 10 Feb 2014 11:54 PM |
domo arigato :)
yeah its japenese |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2014 01:41 AM |
| you can also do player:WaitForDataReady() |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2014 01:41 AM |
| you can also do player:WaitForDataReady() |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2014 01:41 AM |
| lol did i just post 2 times |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2014 03:53 AM |
why would you wait for data ready?
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|