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: I'm not good with GUIs please help!

Previous Thread :: Next Thread 
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
29 Sep 2011 09:05 PM
This script is in a Textbox
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
29 Sep 2011 09:07 PM
bump
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
29 Sep 2011 09:08 PM
Type of script?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Sep 2011 09:08 PM
Where is the script at? In the GUI?
Report Abuse
ama2209 is not online. 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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
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 is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
29 Sep 2011 09:19 PM
[ Content Deleted ]
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
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 is online. 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 is not online. 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 is not online. 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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
29 Sep 2011 09:23 PM
The character is never nil.. its what loads first..
Report Abuse
jiyu is online. jiyu
Joined: 09 Aug 2008
Total Posts: 107
29 Sep 2011 09:26 PM
The character does nil :O

Player loads first
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
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 is not online. ama2209
Joined: 30 Dec 2009
Total Posts: 21
29 Sep 2011 09:28 PM
Robo, You never defined plyr.
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
29 Sep 2011 09:29 PM
I thought he was smart.. guess not
plyr = script.Parent.Parent.Parent
Report Abuse
smurf279 is not online. 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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
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 is not online. 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
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
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
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