#code-discussion

1 messages · Page 204 of 1

fossil pecan
#

howd u know

wary vigil
#

Hi

fossil pecan
#

I need a working booth

somber vault
#

I can help Alex

fossil pecan
#

i sent a dm

somber vault
#

Personally I don’t know how to code but I can offer moral guidance

balmy zenith
#
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

marsh kelp
balmy zenith
#

lol

marsh kelp
#

I was just lazying around in discord :(((

#
  • I'll think about it for a bit and reply to u
balmy zenith
#

alright

edgy venture
#

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
midnight dock
fossil pecan
edgy venture
uneven jolt
#

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

tight hill
uneven jolt
#

So I gotta go through and change everything

tight hill
#

Find All and switch and add .UserId

uneven jolt
#

Thank you!

austere seal
#

local song = script.Parent

song:Play()

#

HOW TO PLAY SONGS?

#

oops caps

shut sorrel
wheat pumice
#

and not just use the namecall syntax

balmy zenith
#

hell is a namecall

#

also not my code

wheat pumice
#

lolwat

#

namecalls are these foo:bar()

#

they turn into foo.bar(foo)

balmy zenith
#

sorry, didnt go to programming school

wheat pumice
#

automatically pass the first argument as self

balmy zenith
#

yeah ik

wheat pumice
vocal laurel
#

Please don't advertise for a Scripter here

gentle trench
lean ocean
#

bronze 1 trial mod

#

what has this server become

#

22 messages

balmy zenith
#

does roblox specify anywhere how much a fixed sized editable mesh compared to non fixed size?

balmy zenith
rigid rover
edgy venture
distant hamlet
edgy venture
distant hamlet
#

ur script is doing too much

edgy venture
distant hamlet
#

handling marketplace, vip subscriptions, creating values 💔

#

and some cryptic expire logic in the middle of the process reciept function

edgy venture
#

i could never get it working and i tried different methods people told me and this is one of them

distant hamlet
#

mfs be committing after every minute

edgy venture
distant hamlet
#

but in the long road ur gonna hit the 97th rewrite

velvet vapor
#

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

midnight dock
#

yo

#

its causse i put a waitforchild function for something that wasnt there

#

so it gave me a infinite yeild

#

so it waited infinity

loud mist
#

.

safe lagoon
steady robin
grim rampart
#

wrong channel. please avoid posting about this here.

muted oracle
#

Someoneee

outer dagger
#

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

muted oracle
#

I want to get my server built

ember matrix
#

what is video player-

shut sorrel
outer dagger
shut sorrel
#

Can't even use more than 5 videos in a experience I'm pretty sure I never use videos

outer dagger
#

i hate instance-based since it's impractical for vs code and instance creation is ugly as hell

shut sorrel
#

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

outer dagger
shut sorrel
#

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

bitter mesa
#

ong coding is hard

#

for my smooth brain

marsh kelp
# balmy zenith ```lua function Customer.start(self: fullCustomer) self._step = self._step +...

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) 
frank crow
#

can someone help me finish a stamina system?

marsh kelp
somber vault
vocal laurel
#

you should probably take this to code help

frank crow
marsh kelp
velvet vapor
frank crow
#

hes talking to me

vocal laurel
frank crow
#

bro who are you

#

stop talking

vocal laurel
#

I am me

marsh kelp
velvet vapor
velvet vapor
vocal laurel
#

rar

marsh kelp
# velvet vapor I want but only if I understand code lol

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 })
craggy ether
#

hello guys idk how to script a icehockey stick pls help

steady plover
#

does the strig load itself

#

string

deft coral
velvet vapor
deft coral
velvet vapor
gentle trench
#

I need help, can someone come dm ill explain

deft coral
velvet vapor
#

and after I will send it to everybody

marsh kelp
# velvet vapor okey it seems like I understood the code and what other guy suggested but I don’...

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 to return 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

languid osprey
#

Wsp

wet wharf
#

where is hao

velvet vapor
marsh kelp
dapper karma
#

@languid osprey Hello, please do not attempt to hire outside of marketplace! This counts as channel misuse 💔

hazy ice
#

or normal script

marsh kelp
hazy ice
marsh kelp
# hazy ice 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

hazy ice
#

Oh

#

Mb

marsh kelp
#

np

grizzled nexus
#

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)
bronze path
#

when i say confirm, also show a screenshot

grizzled nexus
bronze path
#

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

bronze path
#

oh your perms is not there? you could also dm me if you want

swift tartan
bronze path
swift tartan
#

@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)

grizzled nexus
#

ooh lemme try rq

swift tartan
#

where did u place the script

#

because the script must be in sss

grizzled nexus
snow bramble
#

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

swift tartan
grizzled nexus
wet wharf
#

i need a scripter for a steal a brainrot style game, any decent scripters in chat rn?

swift tartan
wet wharf
#

send me your portfolio

swift tartan
#

The tool itself must be named exactly Crimson Shovel

somber vault
#

guys

wet wharf
#

could just string match to closest fitting name

#

but ghost i cannot view your portfolio there is nothing appearing @swift tartan

somber vault
#

how do i refer when the HRP is touching a part in specific????? (lets name it TRIGGER)

wet wharf
#

please dm me with your work

wet wharf
#

okay thanks ghost

somber vault
#

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")

swift tartan
#

then change the name in the script to blood pickaxe

wet wharf
somber vault
#

thx

#

lemme test it

bronze path
#

just thought you might wanna know

#

also remember to use the marketplace for this kinda stuff

dense rapids
#

quick question, what’s a good way to detect collision for a modular car

somber vault
dense rapids
somber vault
#
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

swift tartan
crimson portal
swift tartan
snow raft
#

@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

bronze path
#

@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

safe lagoon
snow raft
#

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 😭

unreal merlin
#

lmk if anyone needs help with coding

idle musk
snow raft
#

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

idle musk
#

the code u just showed sucks though

snow raft
#

what sucks about it

#

give me criticism

#

cause what i think is happening

idle musk
#

first explain the context of what its used for

snow raft
#

is ur just being a butt head

snow raft
#

this is a rough draft version

#

not everything is finalized

idle musk
#

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

snow raft
#

overusing?

#

I wanted it to work a specific way

#

and it works that specific way

idle musk
#

okay but it's not necessarily a good way

snow raft
#

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

idle musk
#

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

snow raft
#

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

idle musk
#

u are over engineering

#

and obfuscating your own code

#

and bloating it with indirection and complexity

snow raft
#

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 😭

idle musk
#

they made it more difficult to get

vague spire
#

who can teach how to script?

real hemlock
#

@snow raft its quite sloppy

#

imo and spoonfed

austere rover
vague spire
#

lmao

real hemlock
#

trying to make things that dont need to be complicated, complicated is stupid

#

just saying

vague spire
#

im talking about a whole ahh game

real hemlock
snow raft
real hemlock
snow raft
#

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

austere rover
snow raft
#

you know whats crazy ive also never seen you in advanced code

real hemlock
snow raft
#

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

real hemlock
#

Why does this have benefits over other ways of doing it

#

is my first question

#

it seems pretty overengineered from a general sense

snow raft
#

why does it need benefits i just wanted to do it that way

real hemlock
#

Because if your submitting it for AR Review, it should serve a better purpose then a more condensed and simple way

snow raft
#

the only thing u can even say is that its overengineered

#

which part about the metatables is overengineered

vague spire
snow raft
#

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

real hemlock
snow raft
#

its crazy

austere rover
real hemlock
#

as a full time dev for game studio

vague spire
real hemlock
#

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

snow raft
#

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

real hemlock
#

If you get so annoyed by it, go elsewhere.

snow raft
#

i dont want to write out

#

entity.states.value

#

i just want to write entity.value

real hemlock
#

Fair enough then

snow raft
#

without it being an unorganized mess

real hemlock
#

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

snow raft
#

so i divided it into different tables with methods slightly different for each type of value, state, data, etc

real hemlock
#

so is urs

snow raft
#

then condenced it all into one metatable with the class methods that redirects __newindex and --index to those tables

#

that is why

real hemlock
#

Makes sense if it fits your use case i guess

steady warren
snow raft
#

notavirus.tor

balmy zenith
#

only metatable mess

snow raft
#

just because you are scared of metatable

#

doesnt mean it isnt organized and hard to read

balmy zenith
#

it literally is not organized

snow raft
#

what about it isnt

balmy zenith
#

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

snow raft
#

the entire point of that function is to set up the metatables

#

everything else is done in another function

#

😭

balmy zenith
#

which a person would need to read to edit this class

#

to be able to understand and comprehend what the class does

marsh kelp
snow raft
#

i saw you a lot so i wouldnt say it to you

marsh kelp
#

Let me guess, you've never seen me in advanced-code?

balmy zenith
#

ion got the role sad_hamster

snow raft
#

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

balmy zenith
#

you cant even see if you dont got the role so how do you see it cathello

snow raft
#

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

balmy zenith
#

and..? a person would need to read the metatable if they want to edit your code

snow raft
#

so the portion you are talking about is around

balmy zenith
snow raft
#

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

marsh kelp
radiant mica
#

Yo I need a scripter

balmy zenith
#

doesnt matter how short the code it, it can still be very complex

balmy zenith
snow raft
#

when i get negative feedback (not criticism) by someone with less experience than me

#

i get very upset

balmy zenith
snow raft
#

like if someone pointed out something

balmy zenith
snow raft
#

like a mistake i made or something i could do differently

#

and said my code was bad because of that

balmy zenith
#

because i havent even been negative towards you, only your code

snow raft
#

id take that on my shoulder thats no big deal

balmy zenith
#

and this is very much something you could do differently

snow raft
#

that i can do differently to accomplish the same goal

#

in a better way

balmy zenith
#

read above what i pointed out..

snow raft
#

they say a debutant values complexity and a master values simplicity

marsh kelp
snow raft
#

but that is not always the case

balmy zenith
snow raft
#

sometimes you need a small complex portion to concisely and efficiently accomplish what you want

faint smelt
marsh kelp
balmy zenith
#

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

snow raft
#

to accomplish that i divided the sections into slightly different metatables with different behavior then made the final one connect them all

slim pivot
#

do any of yall wanna make a parkour game

balmy zenith
snow raft
#

ok so you are just ragebaiting

#

i have wasted my time

balmy zenith
#

i dont see how i am ragebaiting but sure

snow raft
#

contrary to what you all think __newindex was not the purpose of making it

balmy zenith
#

horrid way because you need a proxy

marsh kelp
snow raft
#

but that wouldve been unreadable

balmy zenith
#

you inherently need a proxy table to detect changes with newindex

snow raft
#

its the only thing over 200 lines in my entire current project

faint smelt
#

perhaps it's not ragebait

#

Just Sayin

spice summit
#

01100010 01101111 01101111

snow raft
#

I have much more readable and commented code

#

but its under 200 lines

balmy zenith
#

and this is the criticism you got

snow raft
#

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 😭

balmy zenith
# snow raft

functions directly inside tables are quite bad looking

spice summit
snow raft
#

like this?

balmy zenith
#

new = function() directly in the table definition

green reef
balmy zenith
#

and also that

snow raft
#

thats valid criticism thank you

#

I did it that way out of habit cause thats how I always do classes

green reef
#

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

snow raft
#

you are right though it is ugly

#

im still gonna do it that way though

snow raft
#

of commenting like that

#

because I got rejected 8 times on my old account because my comments were lackluster

spice summit
snow raft
#

ok say what you will but i do not have functions with 200 if conditions in them 😭

spice summit
snow raft
#

what

#

oh thats cause

spice summit
#

the way you type...

snow raft
#

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

spice summit
#

idk abt that but not my place, good thing is you're learning

snow raft
tame ibex
#

Idea

snow raft
#

idk i was still a fledgeling then

#

(i thought it was cool)

spice summit
snow raft
#

i started out like 6 years ago now

#

i was just being stupid

spice summit
#

6 years and no skill role...

#

rough

snow raft
#

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

marsh kelp
foggy gazelle
snow raft
#

thats it currently

solid dawn
#

бонус

snow raft
#

in the entire game the entity module is the only script so far

#

that goes over 200 lines

spice summit
#

does give u perks tho

marsh kelp
snow raft
#

I dont like putting everything into one module it makes it tedious to edit

spice summit
#

like the "Advanced Code" chat room...

snow raft
#

there are only rare cases like entity where it warrants it

foggy gazelle
snow raft
spice summit
#

but it does change ur name color

#

so thats neat

foggy gazelle
spice summit
snow raft
spice summit
#

i hate ts 🥀

foggy gazelle
snow raft
#

just do long char

spice summit
snow raft
#

or double char

#

👍

spice summit
#

its not broken big dog

snow raft
#

nah just use double double double double boolean

snow raft
# snow raft

i really dont get why you guys dont like the way i set up my entity class

#

cause after adding on AI

spice summit
snow raft
#

maybe my style of code is just ugly

foggy gazelle
#

just declare the costructor outside that table

snow raft
#

but its my style

snow raft
#

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

iron kraken
#

yapgod

foggy gazelle
iron kraken
#

😄

spice summit
#

this whole chat room is one big rage bait for everyone stg

snow raft
#

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?

iron kraken
#

face card declined

marsh kelp
# snow raft

You have one function per module?... Know i know why is your lines/script is low

snow raft
#

I will add more to the module as necessary

#

this is just an in dev project i have open right now

strange kiln
snow raft
iron kraken
snow raft
hollow sinew
snow raft
#

there is a number saved that is added onto every time your cpu's clock ticks

iron kraken
hollow sinew
#

guys what counts as an intermediate scripter

snow raft
#

os.time() returns time in seconds from epoch

strange kiln
snow raft
#

os.clock returns time (down to nanosecond) since the pc turned on

strange kiln
#

thanks for the explanation though

foggy gazelle
snow raft
#

cause

#

you can add onto a timer and do a bunch of math

#

or just compare the time to a saved value

foggy gazelle
snow raft
snow raft
#

if you want fractions of a second

#

os.clock is better

iron kraken
foggy gazelle
snow raft
#

like for example if you wanted to time how long its been since you called a function

snow raft
#

local last = os.clock();
local function a()
  local now = os.clock();
  print(now-last);
  last = now;
end
potent igloo
#

Its in the documentation that os.clock is better for benchmarking i think

foggy gazelle
potent igloo
#

Oh mb

#

Thought he was asking a question

snow raft
tight hill
#

why not tick()

hoary cedar
proper veldt
#

Is OOP the hardest part of learning how to code in luau?

spice summit
#

pivit to is just...

snow raft
#

that and assembly

#

so if you are looking for a challenge try them

#

or go to leetcode and try some problems there

faint smelt
#

holy larpsesh

balmy zenith
#

what

twin roost
#

how much would you all charge for a gun system?

#

trying to hone my budget

balmy zenith
snow raft
#

do you want it to have

#

first person or third

#

ill give you my price and you can budget off that

foggy gazelle
twin roost
#

basics I guess

#

reload, ammo count (just the clip, idgaf about reserves)

idle musk
#

oop is a basic concept

snow raft
#

oop is intermediate

#

if you are looking to learn you should start with functions and learning types

idle musk
#

oop is a basic programming concept

snow raft
#

not for lua

idle musk
#

if you learn any language you will probably be learniing about object oriented programming pretty early

slender steeple
#

oop is basically creating an "object" within the code right?

snow raft
#

you have to have a pretty sound structure to learn oop in luau

snow raft
#

you have parts and they have position

#

and all their values

slender steeple
#

yea

idle musk
#

id say intermediate luau is the type system

snow raft
#

and their methods

#

its the same thing

#

you just made classes like that

idle musk
#

id say learning the type system is generally the most challenging part of luau

foggy gazelle
idle musk
slender steeple
#

It's honestly hard to define what's "advanced" considering people can learn stuff easier compared to others.

snow raft
#

local myclass = setmetatable({
  text = "hi",
}, {
  print = function(self)
    print(self.text);
  end,
});

myclass:print();
random nebula
foggy gazelle
idle musk
#

luau is a pretty easy language to learn

#

but the type system is a little bit complex

slender steeple
#

easy and basic

snow raft
#

its more challenging and tedious than other languages though

idle musk
#

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

balmy zenith
#

theres plenty of docs on types

idle musk
#

or really how they work

balmy zenith
#

well docs is never enough for you to master anything

idle musk
#

well yeah but they dont really go in depth about the type system

#

its only like 15 pages

marsh kelp
balmy zenith
#

did you take a look at luau website?

idle musk
#

for the entire

#

type system

balmy zenith
#

its like 95% complete except some outlier cases

random nebula
#

You learn it in highschool

weak tundra
#

does anyone know of a plugin that stores modules and stuff to be inserted across different places?

balmy zenith
proper veldt
#

Is the second param correct?

foggy gazelle
random nebula
#

You learn how it works

proper veldt
weak tundra
marsh kelp
random nebula
#

Op codes, registers, addressing modes, von Neumann

#

That’s basically all you need

velvet vapor
foggy gazelle
#

i don't think they teach you how to make roller coaster tycoon in assembly

proper veldt
random nebula
#

They teach you enough to simulate it on paper

idle musk
#

sango is a yapper

slender steeple
# foggy gazelle you learn the basics

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.

idle musk
#

ignore him

random nebula
#

Which is enough to learn any asm

marsh kelp
slender steeple
#

Yeah nothing like that is taught here.

#

Almost everything I know was self-taught

#

that includes English and Coding

foggy gazelle
random nebula
#

You can teach urself basically everything in cs

random nebula
idle musk
#

assembly is pretty useless

random nebula
#

But there are a few things you can only do in assembly and not in any high level language

foggy gazelle
balmy zenith
random nebula
balmy zenith
idle musk
idle musk
#

of types

#

you still need to reverse engineer

snow raft
balmy zenith
random nebula
snow raft
#

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

random nebula
snow raft
#

well if you have someone teaching it to you then its probably easier

#

i was going in raw x86asm

foggy gazelle
slender steeple
snow raft
#

no?

marsh kelp
random nebula
#

You can teach urself pretty easily

slender steeple
snow raft
#

having feedback from colleagues or people better than you is a very important part of learning

slender steeple
#

Eh nah

foggy gazelle
balmy zenith
random nebula
foggy gazelle
slender steeple
random nebula
#

I taught myself computer architecture and I found it pretty easy

foggy gazelle
marsh kelp
slender steeple
random nebula
marsh kelp
slender steeple
idle musk
#

ur a programmer stereotype @random nebula

#

and not a good one

random nebula
#

?

snow raft
#

people will spend

#

2 years learning something then be like

#

"yeah that was pretty easy to learn"

slender steeple
marsh kelp
foggy gazelle
slender steeple
random nebula
#

There’s a billion really good resources online

slender steeple
#

Like learning how to make rice.

random nebula
#

If it’s taking u that long it’s a skill issue

slender steeple
snow raft
#

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

foggy gazelle
slender steeple
#

Now I'll go play smt out of boredom, cya'll another time.

random nebula
#

How r u struggling to learn in 2025

#

Just boot up some Indian guy tutorial

snow raft
#

being good at programming isnt even a flex

random nebula
#

Not that hard jit

slender steeple
snow raft
#

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

foggy gazelle
random nebula
#

If that’s true then ur code is dogshit

snow raft
#

dude last year chat gpt couldnt code for shit

random nebula
snow raft
#

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?

random nebula
#

ChatGPT still can’t make a python program without bugs fym

foggy gazelle
snow raft
#

the year afteR?

snow raft
snow raft
#

let me find the video

random nebula
#

It will take over junior devs jobs maybe

idle musk
random nebula
#

Normal programmers are fine

foggy gazelle
#

and it's just a fucking gui in html

marsh kelp
snow raft
#

it will just get ridiculously good at its task

#

which is programming

idle musk
snow raft
#

hey man this is just my take

idle musk
#

first of all, almost all of the training data has been exhausted

snow raft
#

if it slows down ill be wrong and will have an aerospace engineering degree instead of a computer science degree

idle musk
#

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

snow raft
#

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

slender steeple
#

just install tkinter via pip

snow raft
#

dont feel like it

slender steeple
#

lazy bones

icy dew
# snow raft if it slows down ill be wrong and will have an aerospace engineering degree inst...

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.

snow raft
#

everything works 0 bugs

#

11 seconds

#

probably less i wasnt even checking

snow raft
#

CS can be done online but if you want to automize engineering

#

you need infrastructure and products to do it

icy dew
snow raft
#

specialist to the task or a generalist

slender steeple
#

I guess humanity will be doomed if people become more dependant on others and automated responses.

snow raft
#

my point is

#

what was its capability last year

#

what is it going to be next year

icy dew
#

I agree that it's getting better

snow raft
#

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

marsh kelp
snow raft
#

let me ask it to redesign the ui to fit another app

marsh kelp
snow raft
#

ok im asking it to do it now

#

thats my bad

slender steeple
#

Time to see if it will fail at editing its own code.

icy dew
#

Are programmers better at using AI for programming than non-programmers are?

slender steeple
#

to an extent yeah

slender steeple
#

since they can give more precise prompts

snow raft
#

definitively yea

#

to get good results with AI you need to know exactly what you are asking for

#

right now atleast

marsh kelp
#

But it's pretty good at the most basic stuff ( like formatting data )

snow raft
#

@marsh kelp

#

could you do me a favor

icy dew
snow raft
#

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

slender steeple
#

the slider

snow raft
#

that was in less than 5 seconds

#

yea its not perfect

#

but could you do that in 5 seconds

slender steeple
#

no because no human is capable of fighting an ai when it comes to speed

snow raft
#

yea exactly

#

why do you think games have been so shit recently

#

cause companies value speed more than quality

slender steeple
#

speed?

#

nah, it's actually money

snow raft
#

if people valued quality id give the computer science industry another 4 years before its threatened

snow raft
slender steeple
#

incorrect

snow raft
#

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

slender steeple
#

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.

snow raft
#

i charge hourly so it just might be my experience being rushed

marsh kelp
# snow raft <@869326316325965864>

I wasted my time... That's still a basic drawing app, not a photoshop clone

https://youtu.be/IrWtw9ehB2g?si=7ZaTUAIq89KFdZ6Y

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...

▶ Play video
snow raft
#

oh i mustve misremembered

#

my mistake its been a minute since i saw it

snow raft
#

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

marsh kelp
snow raft
#

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

marsh kelp
snow raft
#

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

snow raft
#

it made a path tracing renderer

#

in 10 seconds

dusky swift
#

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?

dusky swift
balmy zenith
dusky swift
#

I said I dont have “all” the skills

balmy zenith
#

didnt see the all

#

mb

dusky swift
#

oh lol its alg

#

i just made an ai that specializes in Luau scripting

#

i have not tested it tho

balmy zenith
#

still gon be hard to convince someone to work on a passion project tho, unless its their passion too

dusky swift
#

right

lapis topaz
balmy zenith
dusky swift
#

my ai will have infinite propmts

#

and it will remember chats

balmy zenith
lapis topaz
#

But its like working towards a bad future for yourself is you want to do something with coding

dawn monolith
#
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#

snow raft
#

minutes += math.floor(seconds / 60)
seconds = seconds % 60

hoary cedar
snow raft
#

that was suppoesd to be +=

#

then just repeat that for hjours

dawn monolith
#

i ain't that good in maths ion understand what u mean lmao

snow raft
#

so

#

% is like division

snow raft
#

except it only gives you the remainder

#

like 6 / 5 is 1.2

#

6 % 5 is 1

dawn monolith
#

ahh ok ty

snow raft
#

15 % 5 = 0

#

15 / 5 = 3

dawn monolith
#

yea i see

snow raft
#

6 % 7 = 6

dawn monolith
snow raft
#

41 % 69 = 41

dawn monolith
#

🥀

static forum
#

Guys does anyone know how games like volleyball legends or blr and or basketball zero handle their ball bouncing

static forum
#

How would that look in code

#

?

real hemlock
#

theres lots of resources out there

#

on those topics

#

youll need to learn the concepts to begin tho, id reccomend a yt video

static forum
#

Can u send me soemthing to start with

real hemlock
#

or just hire someone who has professional links to those types of things

sharp gull
#

when its dribbled its just a rig but

#

otherwise uhhhh idk

real hemlock
real hemlock
#

ill leave it to someone else

static forum
#

Shit this tuff scripting

#

I hate physics

modern seal
#

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

faint smelt
#

why would you ask in the coding channel

balmy zenith
modern seal
balmy zenith
#

well, you have to try somehow

modern seal
balmy zenith
#

ok sad_hamster

modern seal
faint smelt
#

Dumbass

kind fulcrum
#

Yo xero what do u want bro

modern seal
#

xero jss curious

#

have u tried at alll troubleshooting yr problem outside of discord likee searching yotube orr th devform for help or smthh

eager yew
#

yes

kind fulcrum
#

okay bro I'm not Albert Einstein maybe just ask a dude like @austere garnet

eager yew
#

which is stupid

quiet ivy
eager yew
#

what is going on

hexed orbit
#

yo

austere garnet
#

I didnt know shit

kind fulcrum
#

I thought u had a big brain

austere garnet
kind fulcrum
#

Of course u do

quiet egret
#

Now I'm making a dialogue system and gui for someone what if he didn't pay after I finished?

modern seal
quiet ivy
modern seal
#

bites you

quiet ivy
#

its the handle addornments lol

#

and cone things

real hemlock
#

How much of a delay is there if you were to update a clients UI from the server?

#

or can there be

balmy zenith
#

the ping

#

i dont see why youd directly update client ui from server

real hemlock
#

Less effort.

balmy zenith
#

..

#

please dont

hollow schooner
#

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.

balmy zenith
#

just start

lunar current
#

Can anyone recommend me a tutorial on how to start coding?

signal salmon
lunar current
signal salmon
#

That's all we got.

faint smelt
# lunar current Can anyone recommend me a tutorial on how to start coding?

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...

▶ Play video
balmy zenith
#

not brawldev

faint smelt
#

twk

balmy zenith
#

have you ever watched it

faint smelt
#

no

balmy zenith
#

then

balmy zenith
#

how you know its good

faint smelt
balmy zenith
#

bruh

faint smelt
#

whether he sinks or swims is up to fate

balmy zenith
#

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

faint smelt
balmy zenith
faint smelt
balmy zenith
#

why tf they teaching stacks

#

some python intern wrote ts

faint smelt
#

brawlskid or unpaid intern

#

difficult choice

balmy zenith
#

brawlskid id you wanna suck, unpaid intern if you wanna be a skid

#

which better

#

no coding or a skid

hexed orbit
modern seal
#

wittummm

#

i lobe yr garfield car pfp

#

🐝🐝🐝✨💫

balmy zenith
#

i dont think its either but okkk

crimson portal
faint smelt
modern seal
balmy zenith
#

yay

crimson portal
#

How to get pic per

loud cipher
loud cipher
#

?

crimson portal
sweet tree
#

How do some people have the perms to send pictures