|
| 07 Jul 2014 09:57 AM |
I'm currently learning and wiki isn't really a good source for "learning" considering most examples are unfunctional if you have knowledge of scripting.
I want to know. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 09:58 AM |
| If you already understand a bit, there you will realize how wiki is useful. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 10:01 AM |
Actually to understand most of their examples in Beginners you need to be almost "good" at it.
I mean, they're descriptions are pretty good but once you see the example, not much detail in them.. Maybe it's just me, I want other opinions. Such as books, videos, etc. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 10:05 AM |
You should look at basic scripts that you can get from free models like doors or colour changing dance floors and see how they work.
Then once you are comfortable with how they work try editing it and seeing if it still works.
If it still works then you are getting the hang of it. Now try to write some simple code like changing the size of a brick or the color and such.
Now try writing a full basic script with events function and variables Then try writing a script with loops
Then try making a more difficult script using everything you have learnt.
---------------------------------------- The wiki is not for basic learning, it is meant for reference and more intermediate learning. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 10:10 AM |
That's how I actually learn now. I debug scripts from Free Models and see how they work.
But I don't wanna depend on that all the time. Sometimes I just want to open and script and just write it. I'm pretty good at GUIs but I wanna know how to Teleport players, do functions inside functions, camera manipulations, etc. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 10:25 AM |
Well once you are aware of properties and the syntax of Lua, you can go to the wiki and search for methods.
methods are roblox's prebuild functions and they are very helpful.
teleporting: We use the MoveTo(Vec3pos) method.
character:MoveTo(Vector3.new(0,0,0))
camera manipulation: We can use:
RenderStepped() to run every frame that is rendered. Interpolate() to move the camera smoothly.
Functions inside of functions we can just manipulate the connection lines for. what this does is sets 3 functions, king queen and jack. when you call the function king(), the king() function will call the queen() function which calls the jack() function. The value "Hi There" is returned from the jack() to the queen() to the king() and then printed in the output. all because we told it to print function king().
function king() return(queen()) end
function queen() return(jack()) end
function jack() return("Hi There") end
print(king())
output > Hi There |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 07 Jul 2014 10:45 AM |
| I learnt half by the wiki, and half by youtube videos, and some people learn from free models by looking in their scripts. |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 07 Jul 2014 10:51 AM |
| I 90% learned from free modelz. |
|
|
| Report Abuse |
|
|
iiPirate
|
  |
| Joined: 26 Jun 2010 |
| Total Posts: 1258 |
|
|
| 07 Jul 2014 11:24 AM |
Peaspod's tutorials are turning out pretty good for me.
i liek oreos |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 07 Jul 2014 11:26 AM |
| lurking and constantly asking questions and attempting to answer questions here |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 11:46 AM |
| Free models to help show myself what I need to do |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Jul 2014 06:12 PM |
"Various methods"
Awesome! Now wanna tell me those methods?
Right now I'm doing YouTube Videos, Wiki, and free model scripts... And reading over notes at night so I can remember. |
|
|
| Report Abuse |
|
|
qElite
|
  |
| Joined: 31 Dec 2007 |
| Total Posts: 410 |
|
|
| 07 Jul 2014 06:29 PM |
A JOURNEY OF QELITE IN A NUTSHELL:
1. wiki 3 years ago RQ because it's too hard (bits of it in 2011 and 2012) 2. go back to it last year 3. lots of wiki 4. much wiki 5. such wiki 6. free models for specific stuff 7. annoying scripting helpers every 2 seconds 8. browsing scripters forum a lot
also check out the following people's youtube channels, i learned a thing or two from them: -pighead10 -fryzira (forgot how to spell) -peaspod (username peasfactory) -codetheorm |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2014 06:46 PM |
| Yea I'm watching Friaza right now to learn about Mouse events. |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 09 Jul 2014 07:49 AM |
MrTucan the first thing you need to know about scripting if you are learning from the wiki and picking up functions is :
function FUNCTIONNAME() --code-- end script.Parent.Touched:connect(FUNCTIONNAME)
there is a simple touched script, without the code that happens when the part is touched. Make sure this script is in a part |
|
|
| Report Abuse |
|
|
Hackorr
|
  |
| Joined: 23 Nov 2013 |
| Total Posts: 39 |
|
|
| 09 Jul 2014 08:18 AM |
Well functions inside functions:
if blablabla then if blablabla then --code end end
Or u can do normal functions and learn different statements to go inside them.
To teleport players is easy. The easiest way is to place a part in the spot that you wanthem to teleport to. Say if they touch something called trigger they teleport to that part which is called tunnel:
Workspace.trigger.Touched:connect (function(person) --person is what we name the thing that touched it if person:FindFirstChild("Humanoid") then -- checks of person has humanoid in it person.CFrame = workspace.tunnel.CFrame --seta CFrame of person to CFrame of tunnel |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 09 Jul 2014 08:24 AM |
| The best way to learn how to script is to start a "project" and then learn scripts according to the project (after you learned basic syntax of course) |
|
|
| Report Abuse |
|
|
KingJacko
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
| |
|