|
| 29 Sep 2011 09:05 PM |
Why won't this work, sadly, there is NO output =/..
Script:
function noob(plyr) script.Parent.Text = "Welcome"..plyr.Name.."To this epic game" wait(1) script.Parent.Text = "Lol, have fun"..plyr.Name wait(1) script.Parent.Parent:Remove()
end game.Players.PlayerAdded:connect(noob)
Please help |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:05 PM |
| This script is in a Textbox |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 29 Sep 2011 09:08 PM |
| Where is the script at? In the GUI? |
|
|
| Report Abuse |
|
|
ama2209
|
  |
| Joined: 30 Dec 2009 |
| Total Posts: 21 |
|
|
| 29 Sep 2011 09:15 PM |
| No he means like what kind is it like Local Script or regular script... |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:18 PM |
This is in a regular script..
This script is located like this....
StarterGui > ScreenGui > TextBox > Script
Nothing of this script works, the text doesn't change.. (The current text is it's default "TextBox") |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 29 Sep 2011 09:21 PM |
repeat wait() until script.Parent.Parent.Parent.Character:findFirstChild("Torso") ~= nil script.Parent.Text = "Welcome"..plyr.Name.."To this epic game" wait(1) script.Parent.Text = "Lol, have fun"..plyr.Name wait(1) script.Parent.Parent:Remove() |
|
|
| Report Abuse |
|
|
jiyu
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 107 |
|
|
| 29 Sep 2011 09:21 PM |
| Use textlabel instead. Isn't textbox for people to type in? |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 29 Sep 2011 09:21 PM |
| ^It would error if the character is not there yet |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 29 Sep 2011 09:22 PM |
Exactly why I should stop using '^'
I meant @Robo |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:23 PM |
| The character is never nil.. its what loads first.. |
|
|
| Report Abuse |
|
|
jiyu
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 107 |
|
|
| 29 Sep 2011 09:26 PM |
The character does nil :O
Player loads first |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:28 PM |
acttuly it doesnt Character has to load for the main script to load the player or it will error the main script :p deeerp |
|
|
| Report Abuse |
|
|
ama2209
|
  |
| Joined: 30 Dec 2009 |
| Total Posts: 21 |
|
|
| 29 Sep 2011 09:28 PM |
| Robo, You never defined plyr. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:29 PM |
I thought he was smart.. guess not plyr = script.Parent.Parent.Parent |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 29 Sep 2011 09:29 PM |
@Robo
Then why is it that whenever I go into Play Solo the scripts inside of the Player load and then the ones inside of character? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2011 09:31 PM |
| How'd you find that out? I made a script that checks these things and it said the character loads 0.01seconds before the player itself loads :p |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 29 Sep 2011 09:41 PM |
Please explain this to me then. Something I found in the wiki about characteradded
___________________________________________________
local function onRespawn(character) --do something on respawn end
local function onPlayerEntered(newPlayer) newPlayer.CharacterAdded:connect(onRespawn) end
game.Players.PlayerAdded:connect(onPlayerEntered) _____________________________________________________
Notice how it goes
PlayerAdded>CharacterAdded>onRespawnFunction
instead of
CharcterAdded>onRespawnFunction |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2011 06:01 AM |
| That doesnt prove anything.. they found the player from players instead of looking for the character in workspace. Derp |
|
|
| Report Abuse |
|
|