|
|
IterumJoin Date: 2009-01-30 Post Count: 1982 |
didnt put
what u already know
-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts |
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
Learn DerpLua, a language I will be making sometime in in the future. |
|
|
no i wnat to do roblox embed lua |
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
"hte basics"
do u define basics on an elunate level or on a normal level xddd |
|
|
|
idk what people call the basics,
i just call it the basics |
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
"helo i am awesompizzaeatr694201337 and i just lernt basic skropting gib me project"
"elunate: wrapper pls" |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
There are not really levels. Just more API. |
|
|
idk metatables, idk oop
idk raycasting
idk pathfinding
idk what else im supposed to know
im really bad a t module scripts
i have no idea how to wrtite wrappers, frameworks and that other thing
i kind of use libraries i use RbxUtility i really like it
i want to get better at logic, and stuff like math logic, problem solving
|
|
|
pls i really need to know what i should visit next
what articles
links
what to test out
|
|
lupineJoin Date: 2008-06-24 Post Count: 3561 |
Learn how to read the ObjectBrowser.
|
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
Just find things you don't know and learn them.
If you don't know something then now is as good a time as any to learn it |
|
|
but I feel like there are other things i dont know, can someone name some things i might not now im going to elarn them |
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
pathfinding is not a bad thing to pick up, i only know the basics though
for example, let's say you have a npc that you want to walk from part 1 to part 2. quite simple:
local pathfinding = game:GetService("PathfindingService")
local npc = define pls -- ur npc model
local hum = npc:WaitForChild("Humanoid") -- humanoid pls
local part1 = workspace.Part1 -- beginning point
local part2 = workspace.Part2 -- end point
while wait() do
local path = pathfinding:ComputeSmoothPathAsync(part1.Position, part2.Position, 512)
if path.Status == Enum.PathStatus.Success then
local pathCoordinates = path:GetPointCoordinates()
for index, vector3 in ipairs(pathCoordinates) do
hum:MoveTo(vector3)
hum.MoveToFinished:wait()
end
end
end
ComputeSmoothPathAsync() takes 3 arguments, the first being where the path begins, the second being where the path ends, and the third being the max distance. if you make max distance any higher than 512, you get an error. ComputeSmoothPathAsync() returns a path object, it represents a path between your 2 vector3 coordinates.
so, you have your path. however, because a path object holds a series of vector3s from the beginning of your path and to the end of your path, you must get the point coordinates. there is a method named GetPointCoordinates that returns an array of all the coordinates in your path. you can then have your humanoid walk to each point coordinate in your path with a for loop.
|
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
also, i forgot to make a second path for the humanoid to walk to when he reaches the end point. try making a path that starts from the part2 and ends at part1, and have the humanoid walk it |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
Metatables are a good thing to know.
And they are a lot simpler than you would think.
A metatable is simply a table meant to be filled with metamethods.
A metamethod is pretty much the same as roblox object events, there are "fired" when a certain event happens.
A metamethod is "made" by having a value at a certain index in the metatable.
In most cases the metamethod value will be a function.
For example, if you wanted to do something when you use + on a table you would set the __add metamethod in that table's metatable.
t = {1,2,3,4,5,6,7,8,9,10}
setmetatable(t,{
__add = function(L,R) -- It's args are LeftSideValue,RightSideValue
return #L + #R -- This of course would error if you did this print(t + 5), so you would want to add some value checks
end
})
t2 = {1,2,3,4,5}
print(t + t2) --> 15 |
|
|
im useless i always say im going to do something tomorrow and never do it. then i say im going to do something tomorrow that day and never do it
im goimng to sokmehow stop this
|
|
|
learn....*cringe* wrappers
"wow deaths, youre a luaser" |
|