Ideas For A 200 Lined Sophisticated Script

Before you read on i dont need help with a script i need an idea for a script to make! Hello im working on applying for a hiddendevs lua skill role but can think of any scripts to develop. Also if you have an accepted aplication and i could check out your script just to see what a propper level of “sofisticated” is… ik verry vauge. If you have any ideas let me know i need to to be easily over 200 lines of complicated code!

PS: Thanks for any help and if this is the wrong catagory let me know what the right one is.

3 Likes

A modulescript that implements complex numbers using metamethods?

E.g:

__add__
__sub__
etc...
1 Like

explain? i dont understand and this seams interesting

1 Like

see: Programming in Lua : 13

1 Like

ehh any other ideas seams weird i want stuff like simulations Ex people who pathfind to eat stuff and get faster but more complicated

1 Like

Uhmmmm… Implementing Dijkstra’s algorithm in Roblox? Have a bunch of nodes and it’ll calculate a path. That said, you should use Kruskal’s and pre-calculate all the paths beforehand to minimise performance issues.

1 Like

You don’t have to create something new, you just need to show off that you’re capable of doing something that is mildly skillful.

1 Like

You could create a inventory system with features such as item stacking, sorting, filtering, and maybe even crafting mechanics this might handle data structures, user interfaces and so on, just use ur imagination :slightly_smiling_face:

1 Like

ive alr tried geting in with this but i get rejected

this is the demo game


Holy spaghetti. No offense, but I see why you got rejected.

1 Like

sounds cool and im not sure i have an imagination :skull: I did a test

1 Like

yeah it got outa hand lol im not an amazing scripter
ive never realy learnt optimization and im self tought if there is somwhere you know or if you could help me learn that would be realy helpfull

brush up on your fundamentals a bit more before applying. please take a look at tables. I love lua because of how versatile they are - a list, array, OOP, they can be almost anything!

is there a tutorial type video system that teaches this?? ive been doing this solo and self taught… im trying to learn tho
whats wrong with this script?
local Char = script.Parent.Torso
local PFS = game:GetService(“PathfindingService”)
local Human = script.Parent:WaitForChild(“Humanoid”)
local Path = PFS:CreatePath()
repeat
task.wait(0.1)
local AllParts = workspace.Food:GetChildren()
for i, IndividualPart in pairs(AllParts) do
–local Distance = (Char.Position - IndividualPart.Position).magnitude
local ClosestDistance = 2000
local ClosestPart = 2000
for i, IndividualPart in pairs(AllParts) do
local Distance = (Char.Position - IndividualPart.Position).magnitude
if Distance < ClosestDistance then
ClosestDistance = Distance
ClosestPart = IndividualPart
end
end
Path:ComputeAsync(Char.Position, ClosestPart.Position)
Human:MoveTo(ClosestPart.Position)
end
local MaxDistance = 100
local AllParts2 = workspace.Humans:GetChildren().Torso
until false

same here. Here’s a channel I discovered recently: https://www.youtube.com/@5uphi

Pretty good if I do say so myself. Avoids all the crap with poor practices that you usually find with roblox scripting tutorials.

i dont see anything in there that had list, array or oop

oh right. yeah that channel is more advanced tutorials. Take a look at this one specifically: https://www.youtube.com/watch?v=bk8UVm-gxBs

ty any other tips? if not ill end the thread

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.