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: Is this correct???

Previous Thread :: Next Thread 
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:09 PM
while true do
if game.Players.Player1 then
script.Parent.Text = game.Players.Player1.Name
else
script.Parent.Text = "--------------------"
print("Player wasn't found!")
end
end


~DevilDefeater - Popped your bubble~
Report Abuse
DangCoolIsReal is not online. DangCoolIsReal
Joined: 03 Jun 2013
Total Posts: 4110
21 Aug 2013 04:10 PM
Nope add a wait.
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:10 PM
Well, I did now, but nothing :P

~DevilDefeater - Popped your bubble~
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
21 Aug 2013 04:12 PM
while wait() do
if game.Players:FindFirstChild("Player1") then
script.Parent.Text = game.Players.Player1.Name
else
script.Parent.Text = "--------------------"
print("Player wasn't found!")
end
end
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:14 PM
Yay, ZachBloxx is here :)
Best scripter I've seen

~DevilDefeater - Popped your bubble~
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:16 PM
Well, nothing :\

~DevilDefeater - Popped your bubble~
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
21 Aug 2013 04:19 PM
What is the parent of this script?

And if you're running this in test mode then the script might be running before the player loads.
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:21 PM
Ok, it goes like this:
StarterGui -> _Spectate -> Frame -> Player1 -> CurrentScript
By the way, it's not on play solo mode.

Oh yeah, wait up, I am going to check the output using Remote Error :P

~DevilDefeater - Popped your bubble~
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:25 PM
Tick tick tick

~DevilDefeater - Popped your bubble~
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:26 PM
No output, dunno why D:

~DevilDefeater - Popped your bubble~
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
21 Aug 2013 04:28 PM
Well, if you're running this in online mode then it wouldn't work because there is no one in the Players service named "Player1".
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:30 PM
Um, so how do I make it directory to a player.
Example: If there is 1 player named ZachBloxx, the button text will say "ZachBloxx", and the 2nd player named "IHATEYOU", the button will say "IHATEYOU"

~DevilDefeater - Popped your bubble~
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
21 Aug 2013 04:32 PM
local Player = script.Parent.Parent.Parent.Parent.Parent

while wait() do
if game.Players:FindFirstChild(Player.Name) then
script.Parent.Text = Player.Name
else
script.Parent.Text = "--------------------"
print("Player wasn't found!")
end
end
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:33 PM
I will try

~DevilDefeater - Popped your bubble~
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:35 PM
@ZachBloxx
Can you join my current active place to test it out.

~DevilDefeater - Popped your bubble~
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
21 Aug 2013 04:49 PM
@ZachBloxx

THANK YOU! BEST SCRIPTER EVAH!!!

~DevilDefeater - Popped your bubble~
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