#code-discussion

1 messages · Page 255 of 1

last jolt
#

Not necessarily, its good to split the code up. When reading a function if you can't remember what the start of the function does before you get to the end its ideally better to split it out. Not abstracting can lead to spaghetti code, bugs, readability/maintainability issues. A function which does more than one thing (I don't mean one line of code) should be abstracted. This is due to technical debt building up which will make life more difficult one year down the road. It may seem easier or unnecessary to make it more complex at the start. But this is for a very good reason, complexity in poorly built applications increases with the amount of features added. Complexity stays the same even if 500 new features are added if the application is properly built. This is the reasoning behind it, and it does have real world impacts. I'm currently working with commercial software for a company which is horribly built this leads to issues like people can't purchase clothes, delivery id is set to 0 for all Ireland purchases, cookies/sessions don't work and are used as truth of source. Loads of issues due to technical debt.

last jolt
spiral jungle
#

I wish Donald trump just meant his wall

#

Pre covid

wary sluice
#

in client im doing some workspace.Model.Part but it is showing nil, could it be that it doesnt load?

spiral jungle
#

Yes

wary sluice
#

how can i fix this lol

spiral jungle
#

Eerrrrrr

#

Use waitforchild

wary sluice
#

can't even do that

#

it's showing infinite yield possible

spiral jungle
#

Well where is the part?

#

Maybe you could exclude the model from streaming enabled

#

I think it’s under one of the properties in the model

wary sluice
wary sluice
spiral jungle
#

Either that or you’re just referencing the part wrong

wary sluice
storm nacelle
#

If I do like task.spawn(func(). While true do task.wait() —my logic end) does that like spawn a separate thread (that you can’t see) that runs in the background? Like the script would stop right

peak jolt
#

So not really in the background since its part of the script

dapper timber
#

👋 Just a reminder to read our rules and use the marketplace to hire!
-# Hiring or looking for work in our channels classifies as misuse and will result in moderation.

gusty pawn
#

hi guys

tawny jungle
#

yo how long does it take so that my luau scripter application gets approved?

vivid hollow
#

chat is this good?
I started luau yesterday

-- Services

local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")


-- Modules

local RoundSystem = require(ServerStorage.Modules.RoundSystem)

-- Variables


-- Functions
wait(5)

RoundSystem.new(Players:GetPlayers(),5,workspace.Game.GameTeleport,workspace.Lobby.LobbyTeleport)
#
local RoundSystem = {}

RoundSystem.__index = RoundSystem

function RoundSystem.Teleport(player, teleportTo)
    local character = player.Character or player.CharacterAdded:Wait()
    
    if character then
        local HumanoidRootPart = character:FindFirstChild("HumanoidRootPart")
        if HumanoidRootPart then
            HumanoidRootPart.CFrame = teleportTo.CFrame
        end
    end
    
end


function RoundSystem.new(playerTable, gameDuration, TeleportLocation, LobbyTeleport)
    print("Teleporting Players")
    for i, player in pairs(playerTable) do
        print("Teleporting" .. player.Name)
        RoundSystem.Teleport(player, TeleportLocation)
    end
    print("Teleported Players")
    
    task.wait(gameDuration)
    
    for i, player in pairs(playerTable) do
        print("Teleporting Players Back")
        RoundSystem.Teleport(player, LobbyTeleport)
    end
    
    print("Game Ended")
end


return RoundSystem
gaunt fossil
#

guys how do you apply a cframe rotation to an object but against the world axis?

vivid hollow
#

I'm learning modulescripts

stark fossil
vivid hollow
#

I know c++

#

html and css if that counts

stark fossil
#

also, use task.wait() instead of wait()

vivid hollow
#

how long do you think it'll take before I'm good enough to make simple games

vivid hollow
stark fossil
stark fossil
# vivid hollow what's the difference?

i dont remember the exact details but it has to do with precision. wait runs in 30hz whereas task.wait runs in 60hz, so the latter one yields more accuurately

vivid hollow
#

wouldn't that mean wait is more optimized?

#

but less accurate

stark fossil
#

roblox itself said that you should use task.wait

shell saddle
#

Like make basic stuff first

old basin
#

What should I code for my portfolio?

shell saddle
old basin
vivid hollow
#

modules seem to be really useful

#

why not learn them

shell saddle
shell saddle
#

Bless

#

use task.wait()

vivid hollow
#

I even have the assistant disabled

vivid hollow
mighty mirage
#

what are those comments then

vivid hollow
#

some guy I was learning from on youtube said

#

thats how roblox dev usually

#

organize their code

mighty mirage
vivid hollow
#

whats so harmful about them

mighty mirage
#

nothing just looks silly

shell saddle
#

notes are actually kinda good sometimes

old basin
#

what do i code for my scripting application

mighty mirage
#

yeah not for a 50 line round system

shell saddle
mighty mirage
#

but they're new and might need them so w/e

stark fossil
#

comments should only be to make unreadable code readable

#

code should be self-explanatory

mighty mirage
#

real

vivid hollow
#

what are some important stuff I should learn?

fossil reef
#

@mighty mirage dm

mighty mirage
#

lol

vivid hollow
#

datastores next after modules?

old basin
shell saddle
mighty mirage
#

other basic stuff

shell saddle
#

ur going into stuff that aren’t useful when ur a beginner

vivid hollow
#

examples?

shell saddle
vivid hollow
#

I did that already

shell saddle
#

learn that

#

bless

vivid hollow
#

it was pretty easy

old basin
stark fossil
mighty mirage
#

other services too

vivid hollow
#

like I know all of the stuff like
instance
destroy
debris and a bunch of other stuff

#

but whats the point?

#

if i know module script

old basin
vivid hollow
#

I can make them

mighty mirage
#

what did I do a year ago

#

actual schizo

shell saddle
mighty mirage
#

yeah

#

for applying clothing

shell saddle
#

I don’t like that module

mighty mirage
#

an iq too high

#

it's useless in lua(u)

shell saddle
#

What’s even the purpose of it praysob

mighty mirage
#

well nothing really

vivid hollow
#

whats the point of stuff like tweenservice, debris, instance, destroy and a bunch of other prebuilt stuff?
If I know module scripts I can just make them myself no?

shell saddle
solar inlet
#

how do i make a billboard gui scale?

mighty mirage
#

hope this helps

vivid hollow
#

not answering my question 😭

mighty mirage
shell saddle
solar inlet
mighty mirage
#

I was just kidding

#

check the properties

#

it should be there

vivid hollow
solar inlet
solar inlet
# mighty mirage

no not that, i mean like, it is not affected by the player screen

mighty mirage
#

offset..?

solar inlet
solar inlet
old basin
#

yup

mighty mirage
#

yeah scale

#

instead of offset

shell saddle
#

bless

solar inlet
#

😭

mighty mirage
#

I mean that's fine

#

lmfao

solar inlet
#

even if i use scale on them

mighty mirage
#

will it?

solar inlet
#

thats how it looks from the distance

mighty mirage
#

LOL

#

yeah idk I haven't used billboard enough to help you out on the spot

solar inlet
#

@old basin do yk?

old basin
autumn ermine
tranquil acorn
#

gus how do i learn luau, I want to make some cash grab games because I saw some yt videos and some people make like 40k robux a day and I want to learn how to do that. I have no knowledge at all with coding, and I was told to stay away from tutorials

neat glacier
#

does anyone know how to go about scripting a curved healthbar? i only know how to do a straight pne

deft pewter
visual saffron
#

yo zein wsp

deft pewter
#

so it's fine

deft pewter
vivid hollow
#

btw what do you recommend I learn ?

#

Its my second day of coding

#

luau

deft pewter
#

what do you know already

vivid hollow
#

uhh
all of basics like loops, for loops, ipair pairs, while loops, functions, module scripts, vector3, CFrame, Vector2, Tweenservice
and a bunch more

deft pewter
vivid hollow
#

I think one does in order and the other one does randomly and breaks incase of something is missing

#

idk tho

deft pewter
#

however if ipairs find a nil value it blocks then

solar inlet
deft pewter
#

pairs keeps going

deft pewter
vivid hollow
deft pewter
#

you're talking about ipairs, whenever the idex reached has a nil value then it stops the loop

#

pairs keeps going until the table is actually finished

vivid hollow
#

alright

#

what else should I look into?

hollow aurora
#

u can also just skip pairs and ipairs alltogether

deft pewter
hollow aurora
#

idk how good that is performance wise but easier if ur learning to code

#

also looks cleaner.

deft pewter
#

that's just my thought, i have no idea

hollow aurora
#

ya havent looked in it that deeply

deft pewter
deft pewter
#

not that deep

hollow aurora
#

def not

vivid hollow
#

should I look into datastores next?

deft pewter
#

what should i know

hollow aurora
#

id say if uve learned enough basics just go make a game and learn that way

deft pewter
#

@hollow aurora can you explain to me why it's bad though

#

i'm genuinely interested now

#

if there's a way to explain it shortly atleast

#

else imma just do my researches

hollow aurora
#

honestly before roblox made it so you can skip those functions i always used pairs

#

and never ran into any problems, i dont think it matters a lot but yeah i dont actually know the exact difference

deft pewter
#

so just use whatever you like the most

#

and if it's useful for the situation ig

#

wow

#

i feel so intelligent for once

#

i didnt say bullshit yall

hollow aurora
deft pewter
hollow aurora
#

if ur iterating through an array just skip those functions idk what ipairs would b useful for

deft pewter
#

OK

#

i got why pairs is useful

hollow aurora
#

for k , v in table do

deft pewter
#

giving out just the table won't say the order or the keys that it has to follow or get, so pairs does that for you

outer flax
#

just use pairs and ipairs for readability and clarification 🤫

deft pewter
#

i mean don't use pairs when it's not useful

#

or use it

#

won't change much the perfomance

hollow aurora
#

mmmm

deft pewter
#

aura

hollow aurora
#

i mean it does?

#

unsure what u mean exactly

deft pewter
#

i think it means that if there's an index like "Key" and not like an usual number then might do some crazy shit

#

imma go do some testing

#

i'll tell you if i can actually find a difference

outer flax
#

chatgpt said implicit iteration just uses pairs under the hood is that true

remote root
#

WHAT THE POINT OF BINDABLE EVENTS

outer flax
deft pewter
#

what's the point of saying pairs() then

outer flax
#

cooler

#

btw pairs is just next()

deft pewter
#

i'm never lucky

#

that's how you know chatgpt is a liar

hollow aurora
#
19:31:42.039  > local a = {"hey","hello","whatsup"} for k , v in a do print(k,v) end  -  Studio
  19:31:42.040  1 hey  -  Edit
  19:31:42.041  2 hello  -  Edit
  19:31:42.041  3 whatsup  -  Edit```
#

if its a string key based dictionary i dont think you care about order

#

my internet died

deft pewter
#

never chat again

spare widget
#

oh

hollow aurora
#

volunteers

#

crazy

outer flax
# deft pewter never chat again

local t = {[1] = "hi",[3] = "hi"}
for i,v in t do
print(v)
end

can you run this for me I'm in toilet rn I wanna check something

hollow aurora
#

gpt doesnt know that you dont need to use pairs or ipairs

deft pewter
outer flax
deft pewter
#

i mean 2 is missing

#

so it wont

hollow aurora
outer flax
#

it prints hi once? So it's just pairs

deft pewter
hollow aurora
#

no it does

#

it prints once

deft pewter
#

we can't just write pairs for no reason

hollow aurora
#
  19:40:20.939  > local t = {[1] = "hi",[3] = "hi"}
for i,v in ipairs(t) do
 print(v)
end
  -  Studio
  19:40:20.942  hi  -  Edit```
deft pewter
#

i'm talking about writing or not writing pairs

hollow aurora
#

i think he meant not writing anything

#

is equivalent to just writing pairs

outer flax
#

ipairs stops when found empty spot

deft pewter
#

pinke

#

we know that

#

we're trying to find a difference between passing a table and passing a table inside pairs

outer flax
#

ye just checking if none also behave like ipairs

hollow aurora
#

no difference.

#

i think its just pairs under the hood

deft pewter
#

ok chatgpt is right

#

i'm gay

gilded holly
#

Im Willing to pay any actually coders

hollow aurora
#

half a kitkat

deft pewter
gilded holly
deft pewter
#

no dude i'm lazy 😭

#

just tell me a price

#

or sum

autumn ermine
deft pewter
#

we'll kill you

autumn ermine
outer flax
#

what's the difference between coder and scripter and programmer

hollow aurora
#

one writes code one writes scripts and one writes programs

deft pewter
autumn ermine
outer flax
deft pewter
#

well they have differences

#

programmer should be for both i think though

#

no wait

#

idk anymore i forgot about this one

#

yall do your researches i'm too lazy

hollow aurora
#

bro gave up

autumn ermine
#

oh shit

#

I can't say that

smoky violet
tiny sky
#

On the player joining my IndexUI is updated
Remotes.UpdateIndex:FireClient(player, indexTable)

This is a part in my Server Manager Module (Part of my addToInventory Function):
if invetoryType == "Brainrots" then
local indexTable = profile.Data.Index
print(indexTable)

    if table.find(indexTable, saveTable.Name) then
        print("Not Added")
        return
        
    else
        print("Added to index")
        table.insert(indexTable, saveTable.Name)
    

        Remotes.UpdateIndex:FireClient(player, profile.Data.Index)
    end
    
end

This is the Client side of my IndexUI
Remotes.UpdateIndex.OnClientEvent:Connect(function(indexTable)
print("Reached")
SetupUI(indexTable)
end)

When joining, the index is updated and the remotes work fine. The code runs smoothly and prints "Added to Index", but it never prints "Reached" to show that it went through to the client. Instead the game completely crashes and i have to restart studio. Anybody know a fix or the problem??

viral herald
#

Format yo code

#
--like this
#

Anyways

tiny sky
#
On the player joining my IndexUI is updated
    Remotes.UpdateIndex:FireClient(player, indexTable)


--This is a part in my Server Manager Module (Part of my addToInventory Function):
if invetoryType == "Brainrots" then 
        local indexTable = profile.Data.Index
        print(indexTable)

        if table.find(indexTable, saveTable.Name) then
            print("Not Added")
            return

        else
            print("Added to index")
            table.insert(indexTable, saveTable.Name)


            Remotes.UpdateIndex:FireClient(player, profile.Data.Index)
        end

    end

--This is the Client side of my IndexUI
Remotes.UpdateIndex.OnClientEvent:Connect(function(indexTable)
    print("Reached")
    SetupUI(indexTable)
end)

When joining, the index is updated and the remotes work fine. The code runs smoothly and prints "Added to Index", but it never prints "Reached" to show that it went through to the client. Instead the game completely crashes and i have to restart studio. Anybody know a fix or the problem??

viral herald
#

What you got here I believe is a recursive function issue

#

I believe what you got there is a recursive function issue

#

(forgot the name of it for a sec)

#

basically means a function that keeps calling itself which causes the code (or even the client sometimes) to crash and exits with a stack overflow error

i believe what you've got there is some sort of a situation where the server and client play a game of ping pong, where the server fires the client remote event and the client somehow triggers the server-side function that fires the client remote event again, and so on... which could cause the client to crash

viral herald
tiny sky
# viral herald Could you also send the setupUI function?
local function SetupUI(indexTable)
    ScrollFrameCleanup(ScrollingFrame)

    for brainrotName, brainrotData in pairs(BrainrotConfig) do
        task.spawn(function()
            GenerateEntry(ScrollingFrame, brainrotName, brainrotData, indexTable)
        end)
    end
    
    AddShopPadding()
    
end
#
local function GenerateEntry(container, brainrotName, brainrotData, indexTable)
    local config = brainrotData
    if not config then warn("No Config") return end
    if not indexTable then warn("No index Table") return end

    local templateClone: TextButton = indexTemplate:Clone()
    templateClone.Name = brainrotName
    templateClone.LayoutOrder = config.Order

    local viewportFrame: ViewportFrame = templateClone:WaitForChild("ViewportFrame")
    local nameLabel = templateClone:WaitForChild("IndexName")
    local rarityLabel = templateClone:WaitForChild("Rarity")
    local borderStroke = templateClone:WaitForChild("BorderStroke")
    local descriptionLabel = templateClone:WaitForChild("Description")
    
    rarityLabel.Text = config.Rarity
    local textGradient = rarityLabel:FindFirstChild(config.Rarity)
    if textGradient then textGradient.Enabled = true end
    
    local borderGradient = borderStroke:FindFirstChild(config.Rarity)
    if borderGradient then borderGradient.Enabled = true end
    ------- Setting Up Labels and Buttons
    local brainrotModelClone = brainrotModels:FindFirstChild(brainrotName):Clone()
    if not brainrotModelClone then warn("No brainrot model") return end
    
    if table.find(indexTable, brainrotName) then
        --Player has found this brainrot
        local textGradient = nameLabel:FindFirstChild(config.Rarity)
        if textGradient then textGradient.Enabled = true end
        nameLabel.Text = config.DisplayName
        --print("Is in Index")
        GenerateViewPortFrame(viewportFrame, brainrotModelClone, true)
        
    else
        --Player hasn't found this brainrot
        nameLabel.Text = "???"
        --print("Is not in Index")
        GenerateViewPortFrame(viewportFrame, brainrotModelClone, false)

    end
    
    templateClone.Parent = container
    templateClone.Visible = true
end
viral herald
#

like removing each function and putting it back after one by one to see which function is responsible for the crash

tiny sky
#

It doesnt it get to the function, because "Reached' doesn't print. So i know it has something to do with the remote but i dont know what. I also tried using another remote and it still crashes

tiny sky
#

Well my studio. Once it gets to the remote it crashes.
I tried disabling the slient script and it doesn't crash. But it doesn't even print "reached" which is before the whole Ui setup so idk where the problem comes from

viral herald
#

how many times does the remote event get called

#

if you're unsure, try adding a debounce cooldown to see if it still crashes after (just for debugging)

tiny sky
#

I tried the debounce and it still crashes

And the remote it only called from 2 places on the server. On start and in that function

static sphinx
#

h

split gazelle
viral herald
split gazelle
viral herald
split gazelle
#

be fr with me

#

😭

viral herald
#

what kind of games do u make

#

game genre

split gazelle
#

i have month and half experience cant even comprehend how to do that

split gazelle
#

very simple though

viral herald
#

what game genre do u like

#

i mean who doesnt want to do smth that they like?

split gazelle
viral herald
split gazelle
#

And a bit of horror

viral herald
#

but then again you'll have to learn a bunch of concepts before you get there so lets keep it simple

split gazelle
#

like chain or sum (if u know that game)

viral herald
#

horror games have one of those monsters that follow u right?

#

make an npc that constantly follows you there's your idea

severe venture
#

guys someone is trying to buy my portal system

#

how much should I sell it for

elder turret
severe venture
elder turret
#

thats cool

shut charm
#

Any coder looking to join an project?

thick oar
#

hello

thick oar
#

anyone here?

#

nobody?

severe venture
orchid nacelle
#

😔

#

all i'm seeing is some morse code shi

orchid nacelle
#

how much

#

you take 1,500 USD

severe venture
#

the game?

#

dm me lol

orchid nacelle
#

yes the entire game

formal acorn
#

whats the difference between deep copy and table.clone()

abstract delta
hasty spindle
orchid nacelle
#

i mean depends

#

if it will make more than 1.5

abstract delta
orchid nacelle
#

I'l pay someone 500$ to teach me for a year how to blender or scripting

#

and keep paying

orchid nacelle
orchid nacelle
#

🤣

abstract delta
abstract delta
hasty spindle
#

if im actively teaching a guy scripting i atleast expect this mnuch

abstract delta
abstract delta
#

all the concepts are piss easy

hasty spindle
#

you got any games out?

abstract delta
hasty spindle
#

but coding is piss easy isnt it

#

it's easy money

#

why dont u do it then

abstract delta
hasty spindle
#

oh fr?

abstract delta
hasty spindle
#

how much those make you

abstract delta
hasty spindle
#

you realise someone starting from scratch with no prior coding knowledge is going to take awfully more time to learn basic concepts than someone who comes from another language right

abstract delta
#

teaching is very easy and simple

hasty spindle
#

you should become a teacher bro

#

witht his confidence you'll have a class of andrew tates in a week

abstract delta
hasty spindle
#

nah not a school teacher

#

teach coding gang

#

give birth to prodigies

#

clearly you know how to

#

in a week at that

abstract delta
#

im fine i'd rather stick to my job thanks

hasty spindle
#

shit i mean if you can code like a pro in a week why doesnt everyone do it

#

am i right

#

easiest job in the world

abstract delta
hasty spindle
#

be the difference maker dude

#

share your otherwordly knowledge

abstract delta
#

im good, maybe ill write a book some day but not now

hasty spindle
#

name 10 books

abstract delta
hasty spindle
#

longer than a week?

abstract delta
#

got like 40 coding books on my shelf right now

hasty spindle
#

oh so you a studious scholar

abstract delta
hasty spindle
#

so you keep em for appearances?

abstract delta
#

i keep em to learn

hasty spindle
#

so you ARE a scholar

viral herald
#

Introduction to C

abstract delta
#

no

viral herald
#

Introduction to Brainfuck

hasty spindle
#

but u still learning?

#

even though u can code like a pro in a week?

viral herald
#

Introduction to Javascript

hasty spindle
#

what's up with that bro

abstract delta
viral herald
#

There I named three books

hasty spindle
#

whatchu learning about

abstract delta
keen panther
#

Front side

viral herald
viral herald
#

They're not good enough?

hasty spindle
#

talkkin bout some internals

#

stop making up words bud

abstract delta
#

Read high performance python, architecture and design patterns with python, already know a bit of internals just not indepth so i'm reading the CPython internals book

abstract delta
viral herald
#

aight ty

abstract delta
keen panther
#

Damn I'm getting into python and cpp just now cus I'm sick of game development with Roblox and unity and all that

round vector
#

hi

keen panther
abstract delta
#

couple people i work with also wanted to do game dev did it at uni saw the job market for game dev then decided to learn c# 😆

keen panther
#

@abstract delta since you seem to know a lot could you explain how the hell a language like python and then cpp can be used in 1 same project? Like I've seen repo's with a bajillion languages

abstract delta
#

game dev kinda limits yourself to one area which is meh for jobs/money. You can build shit software which has features and get a client then keep maintaining it and make $5m a year

abstract delta
#

im fairly sure you can also import c/c++ into python not sure how that works

keen panther
formal acorn
#

what is iparis and pairs for

iron kraken
#

dont use them

#

for do in

ornate needle
#

can someone give me moe ideas of this, i wanna try to make some

iron kraken
#

ipairs doesnt work on dictionaries

#

ipairs is for order, and pairs is just undetermined order

keen panther
formal acorn
#

i never used them

iron kraken
#

but u shudnt use them

formal acorn
#

and im good

iron kraken
#

in 2026

keen panther
ornate needle
iron kraken
#

dont includ epairs or ipairs

keen panther
iron kraken
#

i think in is just better

formal acorn
#

metatables cant have real usage, why would i do like table + 5

iron kraken
formal acorn
#

ok i mean metamethods

gilded holly
#

Any combat scripter here

iron kraken
#

metatable is mostly just giving events to a table

#

u attach a table to another table

#

and that attached table is the metatable

#

inside a metatable there are metamethods

#

those are basically the "events"

formal acorn
#

yes yes

#

ik, but i dont see real usage for this bullshit

iron kraken
iron kraken
#

lets say i want to initialize a table whenever i index a new index that doesnt exist i want it to automatically intiialize that index

ornate needle
#

nah lol

iron kraken
#

without metatable u need to make sure ur table is intialized whenever u try to use it

#

as opposed to usiing a metatable and its just automatic

#

and that means less code and remember less stuff which is good

#

otherwise everytime u make something that doesnt exist already in the table u need to remember

#

i need to initailize this new index and call this function or smthing and thats annoying

formal acorn
kind gorge
jolly stratus
#

ijjjjjjijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjW;JEFIQOIFqjfioqJFJqoifjqwRH9UqiodQYFH9Uiqojhfu82yrgfuiOlkjfHQJiakc<nfuicJASKNqDHQuhdqOFHqiuwfuioqWWWfqKJFBUIQjkbwqPOHVRUIPJqdfkgqUIqfgUIQFHIUqfhiuQFIUfiuIUQDIUqfuioUIFIUqfhuiHNDJCDbfuiQDGHUIqhwfuipQHF8Quhfuiohfyu8QHCJIqhiduQGHDIqjdgy8QUDHNUIqgfiyQUHUIOPqeugfbFJIShf9uQWIHqe9fuhnQOHFiuqhfbjskabiQFGIUPqjfnipQUFIUqfgiQFIUqfgiuQFGIqhuiWFYIUHYUqefgQYUqgfQFGIUqgfuiSJIFBcUOAIGFiVCn FIUfQUIGFIUSHFOJQbifuIFHwbsbiquFUIgwduiDiudiQDHiqudhEFIHQiufQUIFHqiufiuQIUFIPUqhfuiQHFUIqfhiuQHFUIquoqhfiouQHFqfQF qCQDCQdCCEqcqCcqceqCEwCDQCWDGWDGSZFSGEWZSDRGeGWsdEAkQNJKQKFNqnfkNFKNqfknQFJKBqknsnfjkQBFKAMsniNFKJbfjBFJKQlbfQ

round vector
supple spindle
#

this is the type of rain i have been trying to find everywhere

formal acorn
ornate needle
ornate needle
#

i tried to add a part with VFX

#

and added some effects for the thunder effect

#

etc

formal acorn
supple spindle
ornate needle
#

just dont comment on everything around

tame ibex
formal acorn
placid edge
#

is there a way to reference variables in a for i loop without typing out the full name

#

like if you have two variables anim1 and anim2

ornate needle
placid edge
#

could you somehow refernce i by doing like anim..i or something

supple spindle
# ornate needle u do scripting too?

yes i do it aswel but i never got any idea on how to approach something like rain, i tried with particles but it was wacky and then i have been using some weather system with extremely bad looking rain, it was completely inconsistent and i never found anything better 😭

tame ibex
#

its easy

supple spindle
tame ibex
supple spindle
tame ibex
#

rain droplets should be subtle

#

these arent

#

im crine

supple spindle
supple spindle
tame ibex
empty bone
#

learning how to script seems impossible

tame ibex
#

without obvious ground splashes it would obviously look like emitters im crine

supple spindle
tame ibex
#

ragebait atp

supple spindle
#

like i said there arent any visible ones unless there is extremely heavy rain

#

imagine going out in light rain and seeing tsunamis of splashes popping up 😭🙏

#

ts is what u call realistic btw

tame ibex
#

no

supple spindle
#

yes

#

literally what u said

tame ibex
#

blud

formal acorn
supple spindle
#

he aint tryna hide it

formal acorn
earnest raptor
#

anyone willing to volunteer for a dragon ball game?

viral herald
abstract delta
sturdy field
#

Is there a way to automatically get the resolution of every image used in a game without manually checking them or relying on external tools?

remote bear
#

if i am going to call buffer.writeu8 like 3000 thousand times is saying local writeU8 = buffer.writeu8 at the start going to benefit me?

sturdy field
hasty mesa
lost birch
#

Is it ok like to fix my code with AI?

hasty mesa
#

although you have to own the image

hasty mesa
#

luau optimizes many built in functions

lost birch
hasty mesa
#

so that localizing it has no effect on it

remote bear
tame ibex
#

im crine

abstract delta
#

wrong channel

cedar sage
latent geyser
hollow wind
#

yo anyone down to do a quick playtest to see if my game is laggy or not
bc multithreading is stupid because its different on studio

hollow wind
exotic helm
#

Anyone wanna test game out my friend made it’s about escaping peter? Dm me for link

indigo knoll
#

anyone here know basic scripting? like really basic

indigo knoll
remote root
#

whats the point of unreliableremoteevent

lost pebble
remote root
lost pebble
#

visual effects

#

that's a common one

tame ibex
#

what’s shared

#

im crine

subtle terrace
split gazelle
#

any feedback for ts code i built

tawny jungle
#

how long does it take for me to get approved for luau scripter?

hallow crag
#

why the comments

#

did you use gpt

split gazelle
thorny trench
#

also potentially make your method names more descriptive instead of "Gone" or "Appear" it can be EnableXYZ, OnDisable, etc

thorny trench
thorny trench
#

also on your wait statements you have it like "000.1" instead of that you can honestly just to task.wait() it will nearly have the same effect

#

unless theres a direct reason for it being 0.1

split gazelle
#

So yeh

thorny trench
#

Also for local bad, Workspace#Folder can end up as nil so run a WaitforChild on that variable

#

with a timeout and then do a nil check just incase

#

and make sure to keep your code formatted so you can prevent stuff like this

thorny trench
#

also these will error FYI

#

Needs to be WaitForChild not camelCase

split gazelle
#

Also whats nesting again

thorny trench
#

also since its a server script make sure to key your debounces in a table by UserID so debounce doesn't apply for every player

autumn ermine
split gazelle
#

Is it good for a beginner?

thorny trench
# split gazelle Also whats nesting again

Like when you have a big code block like this

local function test()
    if(xyz) then
        if (zyx)
            -- stuff like this or also spamming else statements
        end

    end
end)

IKnstead of deep nesting like this you can do

local function test()
    if not(xyz) then
        -- do a nill check or whatever and print if you want
        return -- Early return
    end

    if not(zyx) then
        return -- same thing pre much, just makes it help for readabilityh
    end
end)

Also helper methods are definately good to utilize to minimize nesting

molten jackal
#

i need help trying to make my overhead gui level go up can sb tell me wsp w this code

thorny trench
#

mb if code is wrong i just made this on my phone so it prolly is cooked indent wise lol

split gazelle
thorny trench
split gazelle
#

Thanks

thorny trench
#

just work on cleanliness and you eventually will learn optimizing stuff and what not overtime

split gazelle
#

Just learned for loops lol gon be using now

thorny trench
#

have you added debug prints to make sure its firing on player join

thorny trench
molten jackal
thorny trench
#

add debug prints

molten jackal
#

i just put this script in here

thorny trench
#

where is this located

molten jackal
#

didnt know where else to put it tbh

molten jackal
#

serverscripts

thorny trench
#

add a print statement on join to make sure it fires

#

figure out where the loop is breaking

molten jackal
#

how do i do that

thorny trench
#

spoon feed maxxing

molten jackal
#

?

thorny trench
#

well first of all

split gazelle
#

I hate when i dont capital one word and the whole script stops working

#

Pmo

autumn ermine
#

that’s why you use vscode

thorny trench
split gazelle
thorny trench
#

✌️

split gazelle
#

bro😭

thorny trench
split gazelle
split gazelle
#

Giga

#

bytes

thorny trench
#

lmao

#

bytenet is lowky just lua version of protocol buffers

#

i fw it

molten jackal
#

not gonna lie bro

#

ill pay u like 500 rbx to fix this rq

split gazelle
#

for code cleaning js use spaces?

split gazelle
#

I can trust (i cant jk)

thorny trench
#

dm me 🗣️

molten jackal
#

dm me

#

bet

green pagoda
molten jackal
#

i alr got it fixed

undone thistle
#

why when i type
print("joe who")
roblox types
print("joe mama")

thorny trench
fair mountain
#

Is reading the roblox documentation a good way to learn scripting? I don't want to have to deal with all the youtube tutorials and found the documentation and was wonderring if it is a efficient way to learn.

thorny trench
#

🗣️

thorny trench
#

imo

#

tutorials are good for learning specifics

thorny trench
#

lua docs better for learning base lua

#

roblox docs good for learning luau changes

#

tutorials good for overall

autumn ermine
thorny trench
#

roblox ads hate me ✌️

fair mountain
#

Any people in specific like brawldev?

undone thistle
regal salmon
undone thistle
grizzled kettle
#

She said she was local variable but she was really global variable 😞💔✌️

undone thistle
#

local MyBaseplate = game.workspace.Baseplate

local function ChangeTransparency
MyBaseplate.Transparency = 1
MyBaseplate.Transparency = 0.5
MyBaseplate.Transparency = 0.1
MyBaseplate.Transparency = 0
MyBaseplate.Transparency = 0.5
MyBaseplate.Transparency = 1
end

ChangeTransparency()

thorny trench
#

holy goat code

undone thistle
#

am i learning

autumn ermine
undone thistle
#

is here on studio

#

no here on tis

undone thistle
#

is this better @thorny trench

thorny trench
#

yea ts method

errant elm
#

I LOVE !STRICT LUAU

shut charm
#

Anyone wanna start an dev group?

azure blaze
remote bear
#

making a whitelist chat >:]

azure blaze
azure blaze
frail plaza
#
local function UpdateLegs()
    for Name, Pos: CFrame in WheelPositions do
        local Leg = Model:FindFirstChild(Roots2[Name])
        
        local Origin = (Model.PrimaryPart.CFrame*Pos).Position+Vector3.new(0,10,0)
        local Direction = Vector3.new(0,-100,0)
        local Params = RaycastParams.new()
        Params.FilterType = Enum.RaycastFilterType.Exclude
        Params.FilterDescendantsInstances = {Model}

        local NewCast = workspace:Raycast(Origin,Direction,Params)
        
        local NewPart = Model.PartsForIK:FindFirstChild(Name):: BasePart
        local CheckPart = Model.CheckParts:FindFirstChild(Name):: BasePart
        local Pole = Model.Poles:FindFirstChild(Name):: BasePart
        local IK = Model.Humanoid:FindFirstChild(Name):: IKControl

        if NewCast then
            if not Pole then
                Pole = CreatePoles(Name)
            end
            if not NewPart then
                NewPart = CreateIkparts(Name)
            end
            if not CheckPart then
                CheckPart = CreateCheckParts(Name)
            end
            if not IK then
                IK = CreateIks(Name,Leg)
            end

            if NewPart then
                if IK then
                    IK.Target = NewPart
                    if Pole then
                        Pole.Position = Origin + Vector3.new(0,9,0)
                        IK.Pole = Pole
                    end
                end
                if CheckPart then
                    CheckPart.Position = NewCast.Position
                    local Distance = (NewPart.Position - CheckPart.Position).Magnitude
                    
                    if Distance > 8 then
                        NewPart.Position = CheckPart.Position
                        task.wait(0.1)
                    end
                else
                    NewPart.Position = NewCast.Position
                end
            end
        end
    end
end
thorny trench
iron kraken
#

ikijiojn

cobalt yoke
#

should i orginize ts

tired remnant
#

Nah

#

As long as you don’t have a bunch of models as the children of other models, especially if they’re just empty models, you’re good

#

That kinda shit lowk pisses me off

outer flax
fringe lagoon
#

How can i get skill roles?

kindred grove
molten jackal
#

i need help reducing the range of voice chat rq

molten jackal
#

send what

azure blaze
#

Oops

#

adjust voice chat range through the AudioEmitter properties

molten jackal
#

i dont even hve a audio emitter in here ngl

#

oh wait im supposed to insert one and change it?

azure blaze
#

find it on the character and adjust the distance properties if its not there yeah you will need to insert one

molten jackal
#

in here or in the character script thing

azure blaze
#

there should be an AudioEmitter and AudioListener already there if voice chat is enabled

molten jackal
#

there isnt

azure blaze
molten jackal
dark mortar
#

agl random thought but imagine if i started if i was 15 im 18

#

holy hell

clear whale
#

Can someone help me with my code? I am trying to make a tool based morphing system but I have no clue why the morph is like hovering off the ground. If you wish to help please DM me for more information. I had AI look over it but it didn't fix it. I am willing to pay.

regal salmon
unkempt prawn
#

guys

azure blaze
unkempt prawn
peak jolt
dense hull
# remote bear making a whitelist chat >:]

sadly, Roblox has said this is bannable in any form of communication off chat which is not verify is not allowed you can be warned/etc, also why is there SO many buffers writes??

remote bear
dense hull
remote bear
dense hull
remote bear
dense hull
#

why not use a roblox plugin there easy to make

hasty mesa
#

or just parse it at runtime

dense hull
#

or longer loading

hasty mesa
#

most likley won't

#

it would be like a few frames at max

#

which would never be noticed

remote bear
remote bear
severe venture
#

am i the femboy? the shark? the seller? so confused

warped ivy
#

who needs discord bots made?

arctic wasp
warped ivy
#

if you want dm me

lilac apex
#

hi guys i just started

#

any tips

abstract delta
abstract delta
# lilac apex any tips

The only method to learn how to code which works is by picking a project (ideally simple at the start) googling, researching, reading if you get stuck eg "how to add two numbers together luau". If you get half way or think of a new idea switch onto that idea, you'll slowly learn things each project you build.

lilac apex
#

thank you strange wizard

molten jackal
remote bear
molten jackal
#

ts finna make me mad ngl

ocean sail
#

I’m making an incremental game and storing models in a DataStore so players get their mobs back in the same spots when they rejoin. It works in Studio, but the BillboardGui on the mobs doesn’t show up in the live Roblox version, why?.(i Published it)

split gazelle
abstract delta
alpine cargo
#

I wanna see

split gazelle
alpine cargo
#

alr ty

exotic dirge
#

(and additional data)

ocean sail
exotic dirge
#

then share your code

ocean sail
#

imma send u private

potent igloo
#

is there a way to list all assetids of a group?

tiny sky
#

@viral herald Thanks for the help. It was a problem in the client script. I was cloning the models twice and i wasnt clearing the vieportframes each time.

grizzled kettle
#

She said she was local variable but she was really global variable

exotic phoenix
#

How can I check what's affecting my preformance in game? I added a feature and now my FPS have dropped significantly

solar juniper
#

does anyone know how some games make it so that the particles stay constant even if the graphics are low and is it better to do it like that or should I just leave it

abstract flare
#

Does anyone here know why hasBadge always returns false even though i should have the badge?

median tree
exotic phoenix
outer flax
#

why I cant run this test without logging in every time? it was working just now

median tree
#

Big spikes

abstract flare
median tree
#

What is it printing

outer flax
abstract flare
#

but its printing that even if i test played before and got the badge

median tree
#

Also it doesn’t award badges in studio

abstract flare
#

oh..praysob

#

well thats the reason why then

#

😭

median tree
#

Yea

abstract flare
#

well thank you for the help

#

if i didnt know that i wouldve sat here for a bit longer lmao

empty bone
#

how can i practice remembering all of these scripting stuff like functions,properties,datatypes etc

golden thunder
stiff saddle
severe merlin
#

yo guys im a ui designer i wanna start scripting my uis what are good packages i should learn

stiff saddle
severe merlin
#

ya i will but what are good packages i heard some ppl use react or smth but i want some suggestions of best packages i js wanna script my ui for twitter post nth else

#

@median tree yo wsp friend mind letting me know

median tree
#

what

#

you dont need packages to script ui

severe merlin
#

for scripting ui

#

if yk

median tree
#

react only works if youre scripting with VSCode

severe merlin
#

there should be some good and usefull ones i should learn right

median tree
#

yes you start from a local script

severe merlin
#

right

median tree
#

ive never used react so i wouldnt know

#

it looks like too much work

severe merlin
#

mm ok

fading juniper
#

anybody use rojo what are your thoughts

azure blaze
deft coral
stiff saddle
median tree
formal acorn
#

how does bloxburg save its data, there are like thousands of objects for each plot + stats and properties

median tree
#

saves values

formal acorn
median tree
#

it just saves the edited property

formal acorn
formal acorn
median tree
#

no idea

median tree
#

AWS

formal acorn
deft coral
#

But web devs cannot comprehend this and refuse to learn

median tree
#

i refuse to learn

deft coral
#

So they deadass convinced roblox devs to make a dom in roblox

median tree
#

i dont think i will ever create ui using react

#

i dont think its that serious

deft coral
#

Its not

#

Heavy agree

main crypt
#

yo how can i get the game language settings? the one you pick in-game like the image below
rn im using this thing tho it gives the user's settings language
local language = player.LocaleId

deft pewter
#

i can tutor you some shit for free my man 🙏

formal acorn
deft pewter
#

but you can just search brawldev or thedevking

#

they've got goated tutorials

#

and a playlist so you know what to watch

formal acorn
deft pewter
#

my bad

formal acorn
#

im a decent scripter already id say

deft pewter
#

that's good to hear

#

yall were talking about react

#

?

formal acorn
deft pewter
formal acorn
deft pewter
#

but datastoreservice aint cheap too technically

toxic marlin
formal acorn
#

and u have to pay for it

deft pewter
deft pewter
toxic marlin
formal acorn
deft pewter
#

not necessarily ig

formal acorn
toxic marlin
#

oh

#

you dont need to pay for it

#

you need to pay for external servers

#

had no idea this was a thing but I guess it makes sense

deft pewter
#

imagine they stop paying though

#

holy chaos

jade terrace
deft pewter
jade terrace
tribal meadow
#

Hi there guys, I'm working on a roblox API which allows you to filter games based on CCU, visits, creation date, likes and dislikes. So far I've made the game filtration system, but I am looking for smth else to filter. Any ideas on what I should add?

spice minnow
#

combat system like heroes battleground ?
with all the scripts like combat, movement, settings, characters choice, shop, etc
I PAY HIM 30K robux for this am i overpaying?

static spear
tribal meadow
static spear
tribal meadow
#

Also, tracking allat is gonna be heavy on the server too.

static spear
tribal meadow
tribal meadow
#

appreciate it

shell saddle
#

ur paying him too little

shell saddle
ornate needle
#

im trying to play a random sound out of 3 sounds in sound service once a button pressed, how do i do the random for that? im a new scripter

shell saddle
#

roblox proxy can't even handle 100 requests

tribal meadow
shell saddle
#

or smth

shell saddle
#

like u will have to make ur own

tribal meadow
shell saddle
tribal meadow
shell saddle
#

im kim k

tribal meadow
shell saddle
tribal meadow
tall sedge
patent bough
#

How do I post a hiring

static spear
#

1 robux

alpine cargo
#

i can do for 5/10

#

dm

wicked palm
#

can anyone actually help me w my script i cant even pick up an item nor place it

slow hull
real fulcrum
#

Hey is there an affordable scripter down for a donation game task ill pay

next star
#

any good scripters here?

supple spindle
#

ah yea i can only do quick tasks rn

split gazelle
#

how do i get blocks to spawn/teleport in like square based area ??

#

or any shape

azure blaze
#

No

next star
azure blaze
#

I’m looking for an experienced Roblox scripter to work on a game currently in development.

#

I’m looking for an experienced Roblox scripter to work on a game currently in development.

lime bronze
severe venture
#

bold of you to assume

remote bear
#

This channel isn’t your billboard

next star
regal salmon
azure blaze
#

He did but got deleted

severe venture
#

is that a bald eagle mixed with a dodo bird

regal salmon
#

no its a shoebill

next star
next star
regal salmon
#

good timing

next star
#

cotn tag

#

💔

regal salmon
#

yup

next star
#

4/10 anime

regal salmon
#

okay

#

that's nice

next star
#

nah thats bad 😭

regal salmon
#

i personally disagree

regal salmon
#

i can see why one might dislike it, it's definitely not for everyone

eternal solar
#

i hate java so much

#

but i heard C is worse so i shouldnt be complaining

remote root
#

is datastore easy and people make it seem hard?

static spear
eternal solar
obtuse nimbus
static spear
eternal solar
eternal solar
shell sorrel
#

cs is way better yall high