#code-discussion
1 messages · Page 204 of 1
Hi
I need a working booth
I can help Alex
i sent a dm
Personally I don’t know how to code but I can offer moral guidance
function Customer.start(self: fullCustomer)
self._step = self._step + 1
if self._step > #customerLife then
self:finishedLife()
return
end
task.spawn(function() -- IF you want to ignore step's yields
pcall(function()
customerLife[self._step](self)
end)
end)
end
-- functions inside of the cycle can yield, error
-- and they shouldn't care if new functions got added/removed from the cycle ( customerLife )
function Customer.enterShop(self: fullCustomer)
local model = self.customer
local humanoid = model:FindFirstChild("Humanoid")
if not humanoid then
self:leaveStore()
return
end
local goTo = newPath(humanoid,model.PrimaryPart.Position,self._shop.entrance.Position)
if goTo then
self:start()
end
end
customerLife = {
Customer.spawn,
Customer.enterShop,
Customer.headToCashier,
Customer.headToCounter,
Customer.finishedLife
}``` that simple
there
I hate you man, you made me think
lol
I was just lazying around in discord :(((
- I'll think about it for a bit and reply to u
alright
first of all its so hard to test these kindof stuff so i dont even know if it works 100% of the time, second for some reason every time i join it gives me the item into my inventory
--SERVER
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")
local subID = "EXP-6708413416211218940"
local devProductID = 3431469998
local InventoryService = require(script.Parent:WaitForChild("InventoryService"))
local subStore = DataStoreService:GetDataStore("SubscriptionData")
local devStore = DataStoreService:GetDataStore("DevProductVIP")
local function CheckSubscription(player)
local success, response = pcall(function()
return MarketplaceService:GetUserSubscriptionStatusAsync(player, subID)
end)
return success and response and response.IsSubscribed
end
local function CheckDevProduct(player)
local purchased
pcall(function()
purchased = devStore:GetAsync(player.UserId)
end)
if purchased and type(purchased) == "number" then
return os.time() < purchased
end
return false
end
local function UpdateVIPStatus(player)
local subscriptionsFolder = player:FindFirstChild("Subscriptions") or Instance.new("Folder")
subscriptionsFolder.Name = "Subscriptions"
subscriptionsFolder.Parent = player
local subValue = subscriptionsFolder:FindFirstChild("Subscribed") or Instance.new("BoolValue")
subValue.Name = "Subscribed"
subValue.Parent = subscriptionsFolder
local isSubscribed = CheckSubscription(player)
local hasDevVIP = CheckDevProduct(player)
if isSubscribed or hasDevVIP then
subValue.Value = true
InventoryService:AddItem(player, "VIP_Pumpkin", 1, true)
else
subValue.Value = false
InventoryService:RemoveItem(player, "VIP_Pumpkin", 1)
end
pcall(function()
subStore:SetAsync(player.UserId, subValue.Value)
end)
end
local function playerAdded(player)
UpdateVIPStatus(player)
end
Players.PlayerAdded:Connect(playerAdded)
Players.UserSubscriptionStatusChanged:Connect(function(player, subscriptionID)
if subscriptionID == subID then
UpdateVIPStatus(player)
end
end)
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == devProductID then
local currentExpire = 0
pcall(function()
currentExpire = devStore:GetAsync(player.UserId) or 0
end)
local newExpire = math.max(os.time(), currentExpire) + 30*24*60*60
pcall(function()
devStore:SetAsync(player.UserId, newExpire)
end)
UpdateVIPStatus(player)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
return Enum.ProductPurchaseDecision.NotProcessedYet
end
dat booth too butt
work in progress btw
Use Comic Neue Angular font and also bold it
Currently working on a system, im using the player object as a key in a hashmap, but when I try to compare it back to the player object, the key value shows <Instance> Is there a wy I can compare that with the player object? the third print is the conditional comparing the two
don’t use these for keys, they are replicable. use a primitive type instead like userId
Yeah I jus realized it was a hashed pointer
So I gotta go through and change everything
Find All and switch and add .UserId
Thank you!
that is how you play sounds, make sure it's in a part or in the player gui or a similar container
why do u define self
and not just use the namecall syntax
sorry, didnt go to programming school
automatically pass the first argument as self
yeah ik
neither
Please don't advertise for a Scripter here
Mb !
does roblox specify anywhere how much a fixed sized editable mesh compared to non fixed size?
instead of budgeting for the maximum possible complexity supported by a non-fixed EditableMesh.
so ig non fixed sized is 20k tris
trial mod man trial mods
doodoo code
who are you to tell me that vro 💔
timmy tough knuckles over here 🥀
yooo you misspelled tuff btw
ur script is doing too much
it does 2 things bro
handling marketplace, vip subscriptions, creating values 💔
and some cryptic expire logic in the middle of the process reciept function
this is the 67th version of the script btw
i could never get it working and i tried different methods people told me and this is one of them
mfs be committing after every minute
ig if its working its good
if its working dont touch it
but in the long road ur gonna hit the 97th rewrite
maybe I didint get what you are doing but why you can’t simply task.spawn a loop and do your step whatever times you want
yo
its causse i put a waitforchild function for something that wasnt there
so it gave me a infinite yeild
so it waited infinity
.
those who use pcall inside task.spawn 💀
Best code wdym
wrong channel. please avoid posting about this here.
Helpppppoo
Someoneee
does anyone else dislike the amount of instance-based apis roblox has been adding? the new audio api, the input action system, and now this video player thing
I want to get my server built
what is video player-
I think most of it doesn't need to be a instance and needs a proper UI for them but the more the merrier
i think most of it could be pure code
Can't even use more than 5 videos in a experience I'm pretty sure I never use videos
i hate instance-based since it's impractical for vs code and instance creation is ugly as hell
The audio API is disgusting working with managing all the instances
Gets really messy
Same with the inputs
If they're gonna copy unity input mapping should've just went the UI route
wires are disgusting
I think they are trying to keep is consistent with everything else and simple for even babies to learn but it just creates a lot of clutter
Tbh after thinking about it for a bit, the only reason I found to why promises are better here is:
That when I was coding this I had a rule in mind; a customer shouldn't care about how to leave, his next step, or anything else but what he's trying to do ( E.G. a customer trying to enter the shop shouldn't care or have a leaveStore() in it ).
And that it's a bit more readable imo.
And the only bad thing about using Promises... is using Promises, as in having this script depend on another external module. but that’s not a huge issue, imo (we all use ProfileService/Store after all)
||We can say it's bad to use promises because beginners don't understand them, but idc about beginners reading my code||
-- it's not clear that this function can call start/leaveStore()
task.spawn(function()
local success,error = pcall(function()
local res = customerLife[self._step](self)
end)
end)
--[[================================================================]]
local promise = promiseModule.new()
promise:Then(function()
self:start()
end
,function()
self:leaveStore()
end)
-- promise makes it clear :Resolve/:Reject() will be called on the inside
customerLife[self._step](self,promise)
can someone help me finish a stamina system?
Read my last msg+ I had a few other problems with doing it normally/in a loop. a few of them were
- Allow the code to error.
- Allow myself to create threads in the code.
- My last msg
What are you struggling with?
you should probably take this to code help
i need to finish the stamina bar system
who?
not you
hes talking to me
@somber vault and @frank crow
I am me
Sad, no one wants to talk to me :(
I want but only if I understand code lol
okey I will have a glance a little bit later, coding myself rn
rar
Ty for making me sadder ||/joke||
It's just a simple code to run each function in customerLife in order
simpler version:
I don't rly want help with the code itself tho... we were just fighting because he called me a piece of noob Promises user and I was defending my self ||/another joke sorry||
local Customer = {}
function new()
return
end
function start(self: fullCustomer) -- will start the loop
self._step = self._step + 1
print(`Started: {self._step}`)
if self._step > #customerLife then
leaveStore()
return
end
task.spawn(function()
local success,error = pcall(function()
local res = customerLife[self._step](self)
end)
end)
end
function Customer.spawn(self: fullCustomer)
print("spawn")
task.spawn(function()
task.wait(5)
start(self)
end)
end
function Customer.enterShop(self: fullCustomer)
print("enter")
local humanoid = true
if not humanoid then
leaveStore()
return
end
start(self)
end
customerLife = {
Customer.spawn,
Customer.enterShop,
leaveStore
}
function leaveStore()
print("left")
end
start({ _step = 0 })
hello guys idk how to script a icehockey stick pls help
?
okey it seems like I understood the code and what other guy suggested but I don’t understand “customer shouldn’t care how to leave” and etc like you still do it in your code with promises, allow the code to error also is not a problem as wittummm pointed
Animation swing and an impulse force (BasePart:ApplyImpulse()) or a physics constraint
and I understand that you don’t really need help, I was just interested in what’s going on
I need help, can someone come dm ill explain
No one gonna steal ur code
I don’t understand “customer shouldn’t care how to leave”
I don't wan't to call specific functions from inside the code (customerLife) to make every function responsible for one thing only... making it reject a promise isn't calling a function but more of reporting its results ( something similar toreturn true/false/data)
This had a name in coding design... but I don't remember its name.
and I understand that you don’t really need help, I was just interested in what’s going on
Aha, many people are quick to assume there's a problem with a code when they someone posting colored code... so I just wanted to make sure
Wsp
where is hao
you can then fire a signal with the same idea I guess
But I'll have to make 2 signals ( and clear one if one if them fired ), and it doesn't handle errors right?
use the /post command
to post in #scripter-hiring / or look in #scripter-hirable
Oh okay !
@languid osprey Hello, please do not attempt to hire outside of marketplace! This counts as channel misuse 💔
Is that a module script
or normal script
normal, but why are you asking?
so I can help
I don't rly want help with the code itself tho... we were just fighting because he called me a piece of noob Promises user and I was defending my self /another joke sorry
np
yo guys whats wrong with this script? its supposed to give me the tool to my username only
local ServerStorage = game:GetService("ServerStorage")
local toolName = "Blood Pickaxe"
local allowedUsername = "zirnoux"
Players.PlayerAdded:Connect(function(player)
if player.Name == allowedUsername then
local toolFolder = ServerStorage:FindFirstChild("Tools")
if toolFolder then
local tool = toolFolder:FindFirstChild(toolName)
if tool then
tool:Clone().Parent = player.Backpack
end
end
end
end)
make sure the script is parented to a container it can run in
- make sure / confirm that you have an object named "Tools" directly under server storage
- confirm that the tool is exactly named Blood Pickaxe
when i say confirm, also show a screenshot
its in serverscriptstorage, theres a tool in server storage, the tool is named blood pickaxe indeed
yea but just for our own sanity (as ive helped people who said they placed things corrrectly and then later showed they didnt) show pictures
also check the flow of the program by adding prints
and share the output
alr #media
oh your perms is not there? you could also dm me if you want
for sure
You are using Players.PlayerAdded. That only fires for players who join after the script runs.
If this script is in ServerScriptService, it will work for new players, but it will not give the tool to someone already in the server when the server starts.
that problem shouldnt happen given the script is barebones just a player added connection, and no yielding is happening above the connection n i assume theyre doing a playtest
but
we can never be too sure so i suppose you can recommend em to do the existing players loop fix
@grizzled nexuslocal Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")
local toolName = "Crimson Shovel"
local allowedUser = "zirnoux"
local function giveTool(player)
if player.Name == allowedUser then
local tools = ServerStorage:FindFirstChild("Tools")
if tools then
local tool = tools:FindFirstChild(toolName)
if tool then
tool:Clone().Parent = player.Backpack
end
end
end
end
for _, p in ipairs(Players:GetPlayers()) do
giveTool(p)
end
Players.PlayerAdded:Connect(giveTool)
ooh lemme try rq
doesnt work
hmm
where did u place the script
because the script must be in sss
ye thats where i placed it
Sorta not coding but, I have streaming enabled, and I am wondering why the parts in the distance aren't loading out when they are literally 60k studs away
There alsomust be a folder called Tools in ServerStorage
yeah its in tools in sss
i need a scripter for a steal a brainrot style game, any decent scripters in chat rn?
you need to put it in server storage
right here
send me your portfolio
it's in my bio
The tool itself must be named exactly Crimson Shovel
guys
could just string match to closest fitting name
but ghost i cannot view your portfolio there is nothing appearing @swift tartan
how do i refer when the HRP is touching a part in specific????? (lets name it TRIGGER)
please dm me with your work
part.Touched
dms
okay thanks ghost
can u give me an example on how to apply that? im new to scripting
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local RootPart = Character:WaitForChild("HumanoidRootPart")
then change the name in the script to blood pickaxe
local part = --path for part
part.Touched:Connect(function(hit)
local hrp = game:WaitForChild("Players").LocalPlayer.Character.HumanoidRootPart
if hrp then
-- function to execute here type shit
end
end)
the issue seems to be fixed when the tool is added after the character spawns in
just thought you might wanna know
also remember to use the marketplace for this kinda stuff
quick question, what’s a good way to detect collision for a modular car
i modified it and didnt work
I’m not sure if it’s a good idea to give each part .touched
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character
local RootPart = Character:WaitForChild("HumanoidRootPart")
local TRIGGER = script.Parent
TRIGGER.Touched:Connect(function(hit)
local RootPart = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
if RootPart then
game.Lighting.Brightness = 1
end
end)
why didnt it work @wet wharf
`local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local TRIGGER = script.Parent
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
TRIGGER.Touched:Connect(function(hit)
if hit:IsDescendantOf(character) then
game.Lighting.Brightness = 1
end
end)
Check streaming enabled properties
thx
no problem
@pearl inlet can you cut me some slack bro
my most advanced code is modular code the only code i have that goes over 200 lines is just remote event handling or data storage
@pearl inlet if i record a video going over the code and how it works can you just accept that i would rather do that than add more comments
how MANY more comments do i NEED MAN
I literally add types to my code and create types for classes
and comment for every function and method and member of the classes
what more is needed of me
im gonna lose my mind
can i just add a big note at the top of the program explaining everything instead of going through and commenting more
i swear you want me to have more comments than code
@snow raft I’m not an application reader, but if you have a problem with an application, make a ticket and select the relevant option or use #staff-help
Pinging someone like this won’t help
You can still ask for coding advice here tho, but just remember that
n
nah its not a problem
its not his fault
its the dumb rules hes just doing what is expected of him
im just complaining to complain i dont really care
im not even looking for work rn 😭
lmk if anyone needs help with coding
This is a new account, my main one was deleted and compromised (the staff are aware of this I do not have 2 accounts in this server)
I had event winner and luau programmer
I think with a high level of certainty I can say I am worthy of that role
You are talking crazy shit
for someone I never once saw in advanced-code
The actual skill required to get the role in the server is relatively low they just make the requirements for comments and explaining it super tedious
the code u just showed sucks though
first explain the context of what its used for
is ur just being a butt head
module script for creating an object
this is a rough draft version
not everything is finalized
okay ur using metatables to observe changes
you are also just overengineering with metatables, you shouldn't be using them in this way
in the first snippet you sent it also looks like you're binding the lifecycle of a character model to an entity
which I assume is some enemy / npc
and then you are destroying the enemy object
after the model gets destroyed
when it should be the inverse
okay but it's not necessarily a good way
it makes my life easier
instead of typing entity.states.running = true
i can just write entity.running = true
or entity.states.running
and have signals for everything
you are intentionally obfuscating your own code though
if i wa working on a project and saw that
id tap out right there
im ngl
its very
VERY easy to edit
which is the point
you dont even have to look at that code to change shit all you have to do is update values in this
u are over engineering
and obfuscating your own code
and bloating it with indirection and complexity
nah
i just wanted it to have a feature
and i made it have that feature
i wasnt doing it just to do it
It acts exactly the same way a roblox type does
and plus the luau role isnt even hard to get
I got it cause I made a script that rendered a ship sail by just putting parts along the arc of a semi-circle 😭
they made it more difficult to get
who can teach how to script?
print("hello world)
lmao
trying to make things that dont need to be complicated, complicated is stupid
just saying
im talking about a whole ahh game
We have tutors over in #tutors
what is sloppy about it
or devforum, youtube and #1278154978598326406 is free
everything is very organized
and works exactly as intended
maybe you disagree with my methods but its efficient and does what i want it to
depends on what the game is, back end scripting is rly hard
you know whats crazy ive also never seen you in advanced code
I can agree with it doing what you want it to do, not relevant to overengineering with metatables.
how is it over engineering?
my idea when writing it was to make it a class that anyone could use so I could publish it for free
so making it as similar to a roblox type as possible was my goal
it acts pretty much the same
Why does this have benefits over other ways of doing it
is my first question
it seems pretty overengineered from a general sense
why does it need benefits i just wanted to do it that way
Because if your submitting it for AR Review, it should serve a better purpose then a more condensed and simple way
the only thing u can even say is that its overengineered
which part about the metatables is overengineered
i have a game idea but no scripters or map designer. need teammates lol
you have given me 0 criticism but keep calling it sloppy and overengineered
these fucking third rates get the role never talk in advanced code then talk shit
I've told you my overview of it, I agree if you want it to work that way, cool.
its crazy
its not hard to come up with a idea for a game lol
eh id say i know what im doing personally
as a full time dev for game studio
this one is really good trust
but then again you may well also know what ur doing
I go back to my previous question, why does it need to be this way over a simpler approach without the 'because i wanted to'
im genuinely curious
i have asked what makes you think that
so i can have feedback
all you say is its sloppy and overengineered
you dont have an overview you have an ego
god damnit you people piss me off
If you get so annoyed by it, go elsewhere.
i am lazy
i dont want to write out
entity.states.value
i just want to write entity.value
Fair enough then
without it being an unorganized mess
Personally for me I wouldn't do it that way on the basis of icba and would prefer to write it out
but its a personal opinion
so i divided it into different tables with methods slightly different for each type of value, state, data, etc
so is urs
then condenced it all into one metatable with the class methods that redirects __newindex and --index to those tables
that is why
Makes sense if it fits your use case i guess
HelloWorld("print")
notavirus.tor
just because you are scared of metatable
doesnt mean it isnt organized and hard to read
it literally is not organized
what about it isnt
someone reading this code would have to read all this metatable mess to even get what the object is trying to do
and oh if they make a mistake at all, its all fucked
the entire point of that function is to set up the metatables
everything else is done in another function
😭
which a person would need to read to edit this class
to be able to understand and comprehend what the class does
you mean
I like how you use this on everyone, like it's some kind of a lifelong achievement
i use it on people i never have seen in that chat
i saw you a lot so i wouldnt say it to you
Let me guess, you've never seen me in advanced-code?
ion got the role 
ive only said it to people who cant form any criticism
they call my code shit i ask what makes them think that then they leave the chat
you cant even see if you dont got the role so how do you see it 
just cause i do stuff a different way than them
anyway
@balmy zenith you mean the clearly divided section of the metatable constructor that is all class related methods
and..? a person would need to read the metatable if they want to edit your code
so the portion you are talking about is around
no im talking about the class as a whole
40 lines of code and it accomplishes everything i set it out to do
its 40 lines of code bro
including the __eq and tostring stuff
Tbh we should learn to accept this
@balmy zenith and around 27 other ppl called my code shit, but i didnt get mad or add them to my hit list
Yo I need a scripter
doesnt matter how short the code it, it can still be very complex
i have an ego
legit you either walk away or learn something
when i get negative feedback (not criticism) by someone with less experience than me
i get very upset
then dont because having an ego is not a good way to learn
like if someone pointed out something
oh so this isnt criticism, i wonder whay is considered criticism for you
like a mistake i made or something i could do differently
and said my code was bad because of that
because i havent even been negative towards you, only your code
id take that on my shoulder thats no big deal
and this is very much something you could do differently
what have you pointed out
that i can do differently to accomplish the same goal
in a better way
read above what i pointed out..
they say a debutant values complexity and a master values simplicity
True, and for solo devs that's is our lifeline ( of course you shouldn't accept any/everything but at least think about it for a bit )
but that is not always the case
i dont see how doing something more complex ie better but sure ig
sometimes you need a small complex portion to concisely and efficiently accomplish what you want
If you want to explain something to someone how would you explain it?
but in this case there is no need, only your want
it wouldnt be much more to make this code much more simple and straightforward to read
I wanted to create a class with clearly divided sections for members (states, values, etc) that can easily be editted, but I wanted them all condensed into one table without it being disorganized if I wanted to reset all values or something like that
to accomplish that i divided the sections into slightly different metatables with different behavior then made the final one connect them all
do any of yall wanna make a parkour game
your explanation is already complex
i dont see how i am ragebaiting but sure
I also because I was doing that took advantage of __newindex to signal events
contrary to what you all think __newindex was not the purpose of making it
horrid way because you need a proxy
You should create the code for the AR and other people in mind not for yourself and your need and the computer
Sorry but i didnt understand your code even with comments, same goes for @balmy zenith , a few other ppl, and the AR
i couldve just condensed it all into one metatable
but that wouldve been unreadable
my code is too mdular
you inherently need a proxy table to detect changes with newindex
its the only thing over 200 lines in my entire current project
have u noticed how, thus far, everyone has told you your code Sucks Ass
perhaps it's not ragebait
Just Sayin
01100010 01101111 01101111
i am asking for criticism
I have much more readable and commented code
but its under 200 lines
and this is the criticism you got
take this for example
my custom event class
i made this code a few years ago
i just noticed it said high operator instead of high order 😭
what do you mean by that
like this?
new = function() directly in the table definition
It's just ugly and inconsistant
and also that
thats valid criticism thank you
I did it that way out of habit cause thats how I always do classes
Np, didn't mean it in a mean way it just doesn't make sense to have one singular function in the table but the rest outside
i got into the habit
of commenting like that
because I got rejected 8 times on my old account because my comments were lackluster
yandere incident
ok say what you will but i do not have functions with 200 if conditions in them 😭
the only reason i say this is phonetically the comments aren't consistent
the way you type...
i have made this script and editted it many times over the years
i used to put comments in all caps
then i did all lowercase
it really just depends on my vibe that day
i dont have a consistent way of doing comments
idk abt that but not my place, good thing is you're learning
to be fair everyone had bonehead ideas when they started out
i made this account like
3 weeks ago now
my old account (which has been removed from this server by staff cause I notified them of this account)
had event winner and luau programmer
not everyone cares about it
бонус
in the entire game the entity module is the only script so far
that goes over 200 lines
ik, argo why i dont have it, like many others here lol
does give u perks tho
Ahm... I wanted to ask why*
I dont like putting everything into one module it makes it tedious to edit
like the "Advanced Code" chat room...
there are only rare cases like entity where it warrants it
maybe one day i'll apply for that
pretty sure its dead af lol
but it does change ur name color
so thats neat
only for this
fr
i hate ts 🥀
is that c
yes...
its not broken big dog
nah just use double double double double boolean
i really dont get why you guys dont like the way i set up my entity class
cause after adding on AI
you can just do "if (entity.AI) then"
cuz it's just ugly
fr
maybe my style of code is just ugly
just declare the costructor outside that table
but its my style
..?
it is
it works the exact same way a constructor would work in another language
it creates an empty object then takes parameters to update it
yapgod
i'm not saying this
😄
this whole chat room is one big rage bait for everyone stg
here is the entity module being used
doesnt it look pretty here
it might look ugly in the backend but its pretty outside of it
its got a face card
guys its got a face card okay?
face card declined
You have one function per module?... Know i know why is your lines/script is low
no
I will add more to the module as necessary
this is just an in dev project i have open right now
gets time on server/client that it is called on
when you turn on your pc
in pretty sure that it returns the amount of seconds from unix epoch
there is a number saved that is added onto every time your cpu's clock ticks
thats os.time() i think
guys what counts as an intermediate scripter
os.time() returns time in seconds from epoch
effoc
os.clock returns time (down to nanosecond) since the pc turned on
thanks for the explanation though
why should u use that tho
cause
you can add onto a timer and do a bunch of math
or just compare the time to a saved value
isn't it better os.time
thats time in seconds
if you want fractions of a second
os.clock is better
u want os.time for things that u want to track over a long time like a daily reward system
ohh ye
like for example if you wanted to time how long its been since you called a function
Better to use os.clock
local last = os.clock();
local function a()
local now = os.clock();
print(now-last);
last = now;
end
Its in the documentation that os.clock is better for benchmarking i think
he's talking about that indeed
@marsh kelp there is no difference between someone like this and the people earlier to me
why not tick()
Deprecated
Is OOP the hardest part of learning how to code in luau?
i would say bit manipulation is the one of the hardest things ive learned
that and assembly
so if you are looking for a challenge try them
or go to leetcode and try some problems there
what
what
that would learning programming cuz oop or bit manipulation etc is not limited to luau
what features
do you want it to have
first person or third
ill give you my price and you can budget off that
1 buck
No lock to first or third person; it would just need to be simple camera wise
basics I guess
reload, ammo count (just the clip, idgaf about reserves)
definitely not
oop is a basic concept
oop is intermediate
if you are looking to learn you should start with functions and learning types
not for lua
if you learn any language you will probably be learniing about object oriented programming pretty early
oop is basically creating an "object" within the code right?
you have to have a pretty sound structure to learn oop in luau
You know how like
you have parts and they have position
and all their values
yea
id say intermediate luau is the type system
id say learning the type system is generally the most challenging part of luau
what's advanced luau
some parts of the type system I guess
It's honestly hard to define what's "advanced" considering people can learn stuff easier compared to others.
local myclass = setmetatable({
text = "hi",
}, {
print = function(self)
print(self.text);
end,
});
myclass:print();
Asm is not hard
like
easy and basic
its hard to learn but if you already understand how to program once youlearn the syntax its not as hard
its more challenging and tedious than other languages though
a lot of things you need to reverse engineer about the type system
since the docs are really lacking
also id say the type system is still very incomplete
no?
theres plenty of docs on types
its definitely not enough to learn everything
or really how they work
well docs is never enough for you to master anything
well yeah but they dont really go in depth about the type system
its only like 15 pages
There's ? I never found this types docs
Ty to the devforum and people asking about types
did you take a look at luau website?
its like 95% complete except some outlier cases
Vruh what’s difficult about it
You learn it in highschool
does anyone know of a plugin that stores modules and stuff to be inserted across different places?
A fast, small, safe, gradually typed embeddable scripting language derived from Lua
called the toolbox
Is the second param correct?
you learn the basics
You learn how it works
i've only seen ppl use the first param alone
no i mean like for pre existing hierarchies so i can quickly setup folders and have the modules automatically added
Bad docs
what? why are they bad
i don't think they teach you how to make roller coaster tycoon in assembly
help someone
They teach you enough to simulate it on paper
sango is a yapper
Which basics?
If it's even programming-related, then maths is the closest I got, since programming/coding is only taught on courses or internet around here.
ignore him
Which is enough to learn any asm
the ones sango said
Only the types docs... Idk why but I've never found it useful
Yeah nothing like that is taught here.
Almost everything I know was self-taught
that includes English and Coding
btw you're a masochist if you make something in assembly
You can teach urself basically everything in cs
I don’t write much assembly at all but I read a lot of it
assembly is pretty useless
But there are a few things you can only do in assembly and not in any high level language
ye but with almost everything tbh not only in cs
how
Make a context switch routine without asm
its useful for knowing types
yeah because im definitely gonna need to make that
okay but u dont gain indepth knowledge
of types
you still need to reverse engineer
what
like what? the docs go into all features i think
You said it was useless
i wouldnt know in my highschool programming class the professor just let me do my own thing i didnt even have to do the course
My hs taught us asm and python
well if you have someone teaching it to you then its probably easier
i was going in raw x86asm
we only did asm c c++ and java
Guidance is only useful when you're stuck somewhere.
no?
Maybe i just have a different way of learning but I only learned types from people explaining them and copying their code and changing it
You can teach urself pretty easily
Exactly
having feedback from colleagues or people better than you is a very important part of learning
Eh nah
it's harder but not impossible to learn alone
docs just explains all the features, maybe you lacked basic understanding of types itself so you had to learn other ways?
You need to teach urself how to self learn first
at least for me
But learning alone teaches you how to learn by yourself, which consenquentially makes it all easier.
I taught myself computer architecture and I found it pretty easy
tbh learning something will always be faster if someone tells you where you're going wrong
u gotta stop bro
Oh. Yea maybe that's it. ( kinda new idea to me )
I got my basics from c#, and everything in there is already typed.
This is the same reason I consider school boring, I don't like people talking like birds trying to teach me something.
Stop what
Let the cat have his fun/chat
Faster, but that also makes you more dependant on others' help.
?
people will spend
2 years learning something then be like
"yeah that was pretty easy to learn"
Yeah then go learn stuff by yourself and you will see that it will be harder.
But isn't everyone's learning speed different anyway?
he probably spent some time too
Yes, but depending on others does no good unless it's heavily needed.
There’s a billion really good resources online
Like learning how to make rice.
If it’s taking u that long it’s a skill issue
Exactly
i spent probably a month learning bit manipulation and assembly
it was pretty hard
but in the end i ended up making a bitset class more optimized than the c++ standard one
so alls well that ends well
bragger final boss
Now I'll go play smt out of boredom, cya'll another time.
being good at programming isnt even a flex
Not that hard jit
Blame the current generation.
in 4 years ill be able to ask chat gpt to write something 100x better than what i can do today
computer science is doomed
its just a hobby now
you still need your time to fully understand something
If that’s true then ur code is dogshit
dude last year chat gpt couldnt code for shit
Easiest way to do that is to apply ur knowledge
this year chat gpt can make an adoble premier clone in 11 seconds
with 0 bugs
and if it has bugs it can bug fix itself
what will it be next year?
ChatGPT still can’t make a python program without bugs fym
yes and it takes time to apply your knowledge
the year afteR?
no it didn't LOL
thinking AI wont be overtaking the computer science industry, among many others, is short sighted and foolish
It’s not if you know how ai works lmao
It will take over junior devs jobs maybe
you are a fool if you believe AI will exponentially get better and also gain human intelligence logic and reasoning
Normal programmers are fine
ye like that guy who shown "chat gpt made windows 11 in 10 seconds"
and it's just a fucking gui in html
Sad
i dont think it will gain reasoning or logic or anything like that
it will just get ridiculously good at its task
which is programming
there are reasons why AI will scale poorly now
hey man this is just my take
first of all, almost all of the training data has been exhausted
if it slows down ill be wrong and will have an aerospace engineering degree instead of a computer science degree
and a large majority of new code that is uploaded to the internet
is AI code
and there is no reliable way to filter it
and also you cant just scale compute
and get better models
lets see if it works when its done
ok it didnt work cause it did it in python and didnt have tkinter installed
im making it do it in html / js now
just install tkinter via pip
dont feel like it
lazy bones
IMO an engineering degree also wouldn't be useful in your scenario. Your scenario implies that the AI we've created is good enough at programming to completely replace computer scientists. I would argue that if it really was good enough, it would also be able to produce something to replace Engineers.
I don't think we'll get to that point soon though and I don't consider LLMs to be intelligent.
engineering has longer
CS can be done online but if you want to automize engineering
you need infrastructure and products to do it
Yeah but that's a completely useless program
specialist to the task or a generalist
I guess humanity will be doomed if people become more dependant on others and automated responses.
yea but
my point is
what was its capability last year
what is it going to be next year
I agree that it's getting better
computer science as a career is in danger
and i think its foolish to think otherwise
what happened to carriage services when cars got invented
Doesn't look like a clone to me, only a very basic app that someone will pay to install
i didnt ask for a clone
let me ask it to redesign the ui to fit another app
Why not? You said something prove it
Time to see if it will fail at editing its own code.
Are programmers better at using AI for programming than non-programmers are?
to an extent yeah
yea
since they can give more precise prompts
definitively yea
to get good results with AI you need to know exactly what you are asking for
right now atleast
Yeah, it's pretty stupid that it wants someone to hold it's hand and tell it how to breath
But it's pretty good at the most basic stuff ( like formatting data )
I agree
search messages from FXDuke in advanced code that contain a link
he sent a video a while back with this topic
that has the photoshop clone
its not perfect but like
the slider
that was in less than 5 seconds
yea its not perfect
but could you do that in 5 seconds
no because no human is capable of fighting an ai when it comes to speed
yea exactly
why do you think games have been so shit recently
cause companies value speed more than quality
if people valued quality id give the computer science industry another 4 years before its threatened
speed is money
incorrect
the faster the game gets out, the less they pay devs, the faster they get returns on their investment
they literally offer bonuses to get games out as fast as possible
do you not remember the recent controversy where the subnautica devs got fired cause they met bonus deadlines
and they didnt wanna pay them
gaming industry itself is condemned considering companies like Nintendo does what they do.
everything will come to an end eventually, just there is no prediction on when.
i charge hourly so it just might be my experience being rushed
I wasted my time... That's still a basic drawing app, not a photoshop clone
OpenAI GPT-5 full testing & review. #gpt5 #ai #ainews #aitools
Thanks to our sponsor Hubspot. Download the free ChatGPT at Work bundle: https://clickhubspot.com/f788ae
https://openai.com/index/introducing-gpt-5/
0:00 GPT-5 Intro
0:45 Beehive simulation
1:51 Video games
3:05 Physics understanding
5:19 Ray tracing
7:07 CRM dashboard
8:33 Photos...
that is still pretty crazy though
i remember laughing at people saying ai would take over cs back in like 2022
i only am getting more reasons to believe that notion
as time passes
I don't disagree that ai is good at a basic level... But not at anything else ( especially debugging )
yea
i also wish ai wasnt butt kissers
if i ask for feedback on something it just says its the best idea ever even if i purposefully give it bad code
im just saying
in 4 years
there is a solid chance ai takes over the junior level positions
if you are studying cs now you wont have any experience when you graduate and nobody will be hiring
True.
Some may even say that it'll rise the bar for becoming a junior, and maybe make it a bit easier to learn
Im looking forward to AI getting that good
it will accelerate learning for humans once its credible 100% of the time
make tedious online tasks as simple as a prompt
etc
you can spend hours learning a language with it and get really good feedback too
so many benefits to this technology
but at the cost of all jobs that can be done online
without exception
watch the entire video btw
it made a path tracing renderer
in 10 seconds
I want to make a game, but I dont have all the skills necessary. Would anyone be interested in making a passion project with me?
No.
aw 🙁
if you dont have the skills, why would someone with skills wanna work with you, practically saying youre a burden
I said I dont have “all” the skills
@balmy zenith
oh lol its alg
i just made an ai that specializes in Luau scripting
i have not tested it tho
still gon be hard to convince someone to work on a passion project tho, unless its their passion too
right
Yes but itll ruin a lot of careers
world gotta cope
go be a bricklayer 🔥
But its like working towards a bad future for yourself is you want to do something with coding
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace WpfApp2
{
public partial class MainWindow : Window
{
public DispatcherTimer countDown = new DispatcherTimer();
public int Seconds = 0;
public int Minutes = 0;
public int Hours = 0;
public MainWindow()
{
InitializeComponent();
countDown.Interval = TimeSpan.FromSeconds(1);
countDown.Tick += UpdateDisplay;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
private void Start_Click(object sender, RoutedEventArgs e)
{
countDown.Start();
}
private void UpdateDisplay(object? sender, EventArgs e)
{
Seconds++;
if (Seconds >= 60)
{
Seconds = 0;
Minutes++;
}
if (Minutes >= 60)
{
Minutes = 0;
Hours++;
}
Timer.Text = string.Format("{0:00}:{1:00}:{2:00}", Hours, Minutes, Seconds);
}
private void Restart_Click(object sender, RoutedEventArgs e)
{
countDown.Stop();
Seconds = 0; Minutes = 0; Hours = 0;
Timer.Text = "00:00:00";
}
}
}```
what y'all think
my second ever project created in C#
you can just do
minutes += math.floor(seconds / 60)
seconds = seconds % 60
The amount of minutes can be determined by dividing the remaining seconds by 60. What's left from this division is the complimentary seconds, which can be calculated using the modulo operator. For example, in Luau:
local seconds = 90
print(string.format("%02d:%02d", seconds // 60, seconds % 60)) --> 01:30
alr
i ain't that good in maths ion understand what u mean lmao
alright, thanks
ahh ok ty
yea i see
6 % 7 = 6
it's a WPF project
a timer
alright thanks ig ill be using this method now
41 % 69 = 41
🥀
Guys does anyone know how games like volleyball legends or blr and or basketball zero handle their ball bouncing
physics equations
kinematics
theres lots of resources out there
on those topics
youll need to learn the concepts to begin tho, id reccomend a yt video
Can u send me soemthing to start with
or just hire someone who has professional links to those types of things
the ball when its off the player? or the ball when its being dribbled
when its dribbled its just a rig but
otherwise uhhhh idk
im not an expert on this topic unfortunately so i dont wanna mislead you
No off the player
ill leave it to someone else
wouldd any furball like t partner n do a little furry game project w me :> jss smthh casual
(i have skills for everything except script rah)
acshaullyy erm mayb i should js learn scripting myself
why would you ask in the coding channel
possible if you try
its intimidating >w<
well, you have to try somehow
pets you
ok 

Dumbass
xero jss curious
have u tried at alll troubleshooting yr problem outside of discord likee searching yotube orr th devform for help or smthh
yes
okay bro I'm not Albert Einstein maybe just ask a dude like @austere garnet
which is stupid
lol
what is going on
BRO
yo
He dmed me asking for some studio things 😭
I didnt know shit
I'm sorry brobro
I thought u had a big brain
Now I'm making a dialogue system and gui for someone what if he didn't pay after I finished?
pov humanoid in workspace;
report him
na it aint
bites you
How much of a delay is there if you were to update a clients UI from the server?
or can there be
Less effort.
I have a question, what would be the first thing i should do for my portfolio? I have a degree in computer science and i understand how to use luau without much help but idk where to start.
just start
Can anyone recommend me a tutorial on how to start coding?
Js search on YouTube
Man they all seem weird
That's all we got.
https://create.roblox.com/docs/luau/comments go thru all of luau
This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!
DISCORD 📜
Join my Discord Community if you want scripting help, participat...
twk
have you ever watched it
no
then
Tysm
how you know its good
Tysm
that's the key part -- i dont
bruh
whether he sinks or swims is up to fate
pretty sure theres a few better than brawl dev
all i had back then was dev king and like alvan blox i dont remember the name idk
why did u specfically link comments Lol
its the start of features
ok
brawlskid id you wanna suck, unpaid intern if you wanna be a skid
which better
no coding or a skid
huh
i dont think its either but okkk
Good advice friend
huh
its okay yu still get a gold star for trying 🫂
yay
How to get pic per
Bronze II for pic perms here
Emerald III for pic perms in #chat
I have a question
?
Thanks even though I dont like crash bandicoot
How do some people have the perms to send pictures

