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: y dis no work.

Previous Thread :: Next Thread 
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:06 PM
game.Players.PlayerAdded:connect(function(playa)
if playa.userId == game.CreatorId or playa.Name:lower()== "Player" then
playa.CharacterAdded:connect(function(char)
script.ScreenGui:clone().Parent = playa.PlayerGui;
end
)
end end
)

Fix it please?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
31 Oct 2014 12:08 PM
"playa.Name:lower()== "Player""

You just converted it all to lowercase, and are comparing it to something with uppercase. Of course it won't be true!

playa.Name:lower()== "player"
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:10 PM
Tried.
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
31 Oct 2014 12:15 PM
"script.ScreenGui:clone().Parent = playa.PlayerGui;"

What's that semi-colon at the end for? As far as I can see it's used for nothing? Try removing that.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:16 PM
@SLY

Semi-Colons are not needed, but they 'can' be used.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
31 Oct 2014 12:16 PM
^ lol...
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
31 Oct 2014 12:17 PM
directed at sly*
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
31 Oct 2014 12:19 PM
Wtf are semicolons used for in lua then? I've scripted most things, but I've never had to use a semicolon for lua in my life.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:22 PM
Like I said.

They're NOT needed, however they CAN be used.

Example:

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char.Humanoid.WalkSpeed = 30;
end);
end);

is the exact same thing as:

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char.Humanoid.WalkSpeed = 30
end)
end)
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:22 PM
The reasoning for using is that it's 'good practice' as most every other coding language uses semi-colons.
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
31 Oct 2014 12:23 PM
Ohhhh, so it's just there so you don't get the lines mixed up? Or is there an actual purpose other than that?
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
31 Oct 2014 12:24 PM
Nvm didn't see your newest post.

I would've thought something like that would cause an error in the script, but I guess not.
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:25 PM
No difference.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:27 PM
Sorry for taking over your thread, Orbviox. Did you fix the issue, or is there still a problem?
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:31 PM
Still a problem. :|
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:33 PM
I ran the code in a mock situation, and it worked fine.

Are there any errors showing up when you run it?
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:34 PM
Just the GUI doesn't show up.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:34 PM
Perhaps the GUI is 'invisible', and you just can't see it?

Are the parentings correct, and the script is in either the 'workspace' or 'ServerScriptService'?
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:38 PM
Script in Workspace.
Gui in script.
Gui has a scrolling frame.
Frame has many buttons.
Report Abuse
Orbviox is not online. Orbviox
Joined: 04 Sep 2012
Total Posts: 798
31 Oct 2014 12:39 PM
Transparency = 0
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
31 Oct 2014 12:42 PM
gyazo.
com
/baab9109f794c0361c861ea125976c16
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