|
| 11 Nov 2014 06:38 AM |
Okay, so I'm making some test scripts, and some of it is working well, but I'm a new scripter, so.. I've been using this page, http://wiki.roblox.com/index.php?title=API:Class_reference to help me learn, but it doesn't have what I've been trying to practice. So I also stumbled across the "Object Browser" but that is the same as the Wiki Page, except it doesn't give clear examples.
I wrote this, but I know it's wrong, because I don't know how to make it find the LocalPlayer's name..
getPlayerName = game.Players.Name
if game.Players.PlayerAdded then Instance.new("Hint", game.Workspace).Text = "Welcome "..getPlayerName.."!" end
Where can I properly read about all of this, because I feel the Wiki is no help..
#DurstIlluminati (R$31,827/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 06:50 AM |
To get the player's name, you have to put a script in the startergui saying this:
local getPlayerName = game.Players.LocalPlayer.Name local player = game.Players.LocalPlayer
if player then local nub = Instance.new("Hint", game.Workspace) nub.Text = "Welcome " ..getPlayerName.. "!" end
If that doesn't work, tell me what's in the output(view -> output) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 06:51 AM |
Is there any output?
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 06:54 AM |
It works, however I didn't need it fixed, the real issue is where can I learn all of these functions, because this link "http://wiki.roblox.com/index.php?title=API:Class_reference" is like no help what so ever.
#DurstIlluminati (R$31,966/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 06:57 AM |
@Durst
I suggest using the one he wrote.
"local getPlayerName = game.Players.LocalPlayer.Name local player = game.Players.LocalPlayer
if player then local nub = Instance.new("Hint", game.Workspace) nub.Text = "Welcome " ..getPlayerName.. "!" end"
Just because it looks a bit more professional and also, add it as a LocalScript inside of the Starterpack.
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 06:59 AM |
Also, as I tested yours inside of studio to see if it came up with an output error. (As it didn't come up with one) You have a random "S" located after every players name. Instead of "Welcome Player" it said "Welcome Players"
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 07:26 AM |
Oh, you want to know functions? I can write up a huge document completely explaining (insert thing here). Do you want to read that or just get a brief explanation? |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 07:44 AM |
I wouldn't mind a huge document, but I'm a new scripter you see, and most of these things confuse me. The Class Reference isn't doing me any good to learn about these things, and neither is the Wiki.. I only know the basics, like print("lelekdfhdjkfg") and game.Workspace:ClearAllChildren() and a few other things like that. I don't know how, or where you guys learned about all these things, so I'm asking where I can learn about them myself.
#DurstIlluminati (R$32,754/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 07:53 AM |
Youtube, great help.
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 07:53 AM |
And I'm not looking for a specific subject of all this, I just want a full on explanation and examples and how to of everything. Basically, a better site than the Wiki, because after the basic, it just moves on to things you've not even been taught..
#DurstIlluminati (R$32,813/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 07:59 AM |
Sad that LuaLearners were shutdown, but there are a few educational sites that you can learn python on.
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:01 AM |
I actually used to use LuaLearners, however, I always lost focus back in 2013 when trying to use it, and when I next tried to use it, well.. It got shut down..
#DurstIlluminati (R$32,830/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:05 AM |
I might as well open up a new Lua teaching program heh? Just that I'm better with Html, Php, Dreamweaver and Css than I am with Lua. But Lua is fairly easy if you take the time to understand it.
I agree that the ROBLOX wiki is complete crap when it comes to coding, it really has everything in a HardToUnderstand form. I'd suggest you go to youtube and start from there since it would help you out a lot more.
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:11 AM |
You could open a program, not to mention, you'll get a lot of money, in ROBLOX, and in real life, just think about it.
#DurstIlluminati (R$32,834/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:17 AM |
I'm going to consider making one right now. I will let SH know when its done so I'd tell you to check up with SH more often, haha.
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:28 AM |
Haha, yes. I think I should. xdd
#DurstIlluminati (R$33,099/R$250,000) |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 08:47 AM |
PeasFactory on YouTube is great help for learning the basics.
I binge watched all his videos in like four days |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2014 09:03 AM |
Making a big attempt haha
Programmer | Builder | Trader |
|
|
| Report Abuse |
|
|