#code-discussion

1 messages Β· Page 257 of 1

raven holly
#

like scripters who work for %

#

srry....

rapid eagle
#

yea

#

goodboy

#

No hirirng here tho.

raven holly
#

πŸ₯€

teal pewter
fringe chasm
lost pebble
# fringe chasm bruhh

you made an if statement checking if ⁨i⁩ is equal to 5. if it is, you then make a while loop that will only run when ⁨i⁩ is greater than 5. ⁨i⁩ only increments after an iteration of the for loop. also, the condition you setup for loop doesnt allow ⁨i⁩ to even reach greater than 5 before the for loop finishes

if you want to only print out ⁨i⁩ when it's 5 and greater, you dont need a while loop. just have an if statement that checks if ⁨i⁩ is equal to or greater than 5 and print ⁨i⁩ if true. also, change the condition of the for loop

echo belfry
#

would anyone mind sparing time to improve my code

#

it isnt anything too advanced, i made a round system and i could definatly do better just not sure what to improve on

#

its like 60 lines but i have a bunch of empty space so maybe 40

lapis parrot
#

can someone play my game its a sport game and say if its good or bad

lost pebble
echo belfry
#
local Players = game:GetService("Players")

local Max_Time = 10

local RoundBool = false

local ActiveRound = false

local PlayerSpawnPoints = workspace.Waypoints

local SpawnPointChildren = PlayerSpawnPoints:GetChildren()

local PlayersInRound = {}



local function StartRound()
    print("Round starting shortly")
    task.wait(8)
    for _, players in pairs(Players:GetPlayers()) do
        players.Character.HumanoidRootPart.CFrame = SpawnPointChildren[math.random(1, #SpawnPointChildren)].CFrame
        table.insert(PlayersInRound, players)


    end

    ActiveRound = true
    local Time = Max_Time
    while Time > 0 do
        Time -= 1
        task.wait(1)
    end

    ActiveRound = false
    for _, players in pairs(PlayersInRound) do
        players.Character.HumanoidRootPart.CFrame = workspace.SpawnLocation.CFrame
        table.remove(PlayersInRound, table.find(PlayersInRound, players))

    end

end


local function CheckPlayers()
    
    if #Players:GetPlayers() < 2 then
        print("Cant start yet")
        
    elseif ActiveRound == false and #Players:GetPlayers() >= 2 then
        StartRound()
        
        
    end
    
end


while ActiveRound == false do
    task.wait(1)
    CheckPlayers()
end```
supple birch
#

Any good frontend scripters available?

lapis parrot
#

canany1 pls test my game

solid ruin
rapid eagle
#

bro

#

if it works it works

#

improve 😭

#

atp remake all roblox main scripts

echo belfry
obtuse nimbus
echo belfry
rapid eagle
rapid eagle
#

atp u will never finish a game

#

if u keep always going back oh how can I imrpove this

#

improve it if there is an issue

lost pebble
# echo belfry ```lua local Players = game:GetService("Players") local Max_Time = 10 local Ro...

one thing i immediately notice is ⁨ActiveRound⁩. you dont need it (at least with what you have so far). when you call a function, the code below that function call wont run until that function returns (unless you used threads but you're not so you dont have to worry about that). this mean, the while loop wont iterate until ⁨CheckPlayers()⁩ returns (if ⁨StartRound()⁩ was called, ⁨CheckPlayers()⁩ will only return after ⁨StartRound()⁩ returns). so you could just change the condition of the while loop to ⁨true⁩ for an infinite loop. and any use of ⁨ActiveRound⁩ could be deleted. this is assuming this is all it's going to be used for. even if you use it for something else, having the condition for the while loop as ⁨AvtiveRound == false⁩ isnt necessary as every time the condition is checked, it's always true (and i assume you want an infinite loop).

⁨RoundBool⁩ isnt being used (idk if you plan to use it)

⁨pairs()⁩ isnt need in your for loops. you can just do ⁨for _, players in Players:GetPlayers() do⁩

for your ⁨CheckPlayers()⁩ function, the ⁨elseif⁩ can just be replaced with an ⁨else⁩ since no other condition is really being checked (if the player count is not less than 2, then obviously the opposite will be true). alternatively, you can also use a guard clause (it's completely up to preference though as they both achieve the same thing).

for your ⁨StartRound()⁩ within both for loops, i would check if the players are alive (unless you want to teleport players even if they're dead) first and if their characters even exists before teleporting.

i would store ⁨workspace.SpawnLocation⁩ into a variable

lastly, please fix the spacing lol

rapid eagle
lost pebble
# lost pebble one thing i immediately notice is ⁨`ActiveRound`⁩. you dont need it (at least wi...

overall, it's definitely decent. it's just little mishaps here and there. the thing i like the most about your code is that you separate different logic into their own functions and giving them proper names that clearly define what that function does. this is definitely a good practice that you want to carry throughout your coding journey. my second favorite thing is having the constant (a variable whose initial value never changes) ⁨Max_Time⁩. not only do you use a different naming convention for this variable to indicate it is a constant, using a constant like this makes your code easier to edit later down the line. something i would do with the constant is separate it from the other variables so you can easily group and indicate which variables are constants or not

obtuse nimbus
#

man this server

lost pebble
echo belfry
rapid eagle
rapid eagle
#

what help

#

you want me to send my code and say can anyone help me imrpove it plz

#

here you go

obtuse nimbus
rapid eagle
#

⁨```lua
print("Hello, world")

lost pebble
#

and i offered help

rapid eagle
#

ur uunreal

rapid eagle
lost pebble
rapid eagle
#

like if my script is buggy or takes a lot of memory it's better to recode it rather than **improving **it

obtuse nimbus
#

why is it always the scripting channels that have ragebaiters

rapid eagle
rapid eagle
obtuse nimbus
#

yeah i founded the word

rapid eagle
obtuse nimbus
static spear
fallen ridge
static spear
fallen ridge
static spear
echo belfry
static spear
# echo belfry wym?

single responsibility principle the function to start a round shown in the code is doing more than starting a round

lost pebble
alpine egret
#

@lost pebble
@echo belfry
@static spear
@fallen ridge
Who got robux dm me

#

@rapid eagle
DMs

alpine egret
earnest storm
#

Anyone good at combat systems and lookin to parter up on a battlegrounds game? I’m a builder with 4 years of experience in studio. Looking to find someone that knows what they are doing and has the same passion for battlegrounds games that I do.

ivory bronze
rapid eagle
rapid eagle
#

πŸ’”

static spear
rapid eagle
# static spear wdym?

I meant stop using computers atp what you're calling terrible mentality is the best you can have maybe you're the one who just likes oh it works let's now make it work even better it will never end

#

there will always be room for improvement

static spear
rapid eagle
#

yes

static spear
#

once it's improved there's no room for improvement lol

real fulcrum
#

is there any good scripter if yes dm me

static spear
# rapid eagle yea buddy.

once a piece of code follows SOLID/DRY/KISS I don't see any need in improvements architecture wise

knotty bay
#

Would someone mind testing multiplayer PONG with me real quick?

knotty bay
#

Thanks, bro. Will DM you the link

uneven summit
#

guys i found a "escape tsunami for brainrots" like a exact map replica model package on the marketplace, if i use that, would i get banned?

jade terrace
#

just released a new oss project

#

feels good after documenting it

#

especially without Moonwave

tame ibex
jade terrace
#

what

#

I saw one but it benched 30 micro seconds slower

#

than mine

ember nimbus
#

SHOCKING

#

30 MICROSECONDS

jade terrace
#
  • mine supports a lot of types
ember nimbus
jade terrace
#

anyway, what is it

#

larp.

ember nimbus
#

iti s larp

jade terrace
#

ok son

ember nimbus
#

queuing writes 4 bytes at a time

#

bitpacking 4 8 bit writesi nto one 32 bit write is faster

tame ibex
#

i am talking about my one

#

son

#

im crine

hot gull
#

yall should i learn modeling first or scripting?

rapid eagle
#

not player πŸ˜” πŸ˜”

obtuse nimbus
hot gull
obtuse nimbus
#

it's really powerful

hot gull
obtuse nimbus
#

Oh if you know Python Luau should be a breeze

rapid eagle
hot gull
fading juniper
hot gull
rapid eagle
#

and u can go workspace.Baseplat instantly

hot gull
hot gull
rapid eagle
#

are u playin or runnin the game

#

is it local

hot gull
hot gull
fading juniper
hot gull
rapid eagle
fading juniper
#

whether you can touch that part

#

or pass through it

hot gull
#

oh ok

cinder siren
hot gull
#

nerd

hot gull
cinder siren
hot gull
hot gull
cinder siren
#

just because i cracked a joke

hot gull
#

woah so from now on is "lil buddy" a joke πŸ˜­πŸ™πŸ™πŸ™

#

thats tuff ash

cinder siren
#

this is exactly why trump doesnt want to help iran

fading juniper
#

dont make 😑 traffic in 😠 my channel 😠

hot gull
cinder siren
#

this is why u people have to stay in ur side of the wall

hot gull
#

didnt we leave that IN 2024?! πŸ™πŸ™πŸ™πŸ˜­

cinder siren
#

Listen here

#

CHUD

#

u cant stop me from talking in this generation

#

Ik ur insecure sigh...

dense lily
#

what server could i hire good scripter in

slow plover
#

idk man

supple spindle
#

who js wrote that

solar inlet
#

PlayerGui:FindFirstChild("Main")

how to fix the error? it wont load in time

#

and return an error

#

im going crazy with that

solar inlet
uncut nest
#

It will yield the script until the object is loaded

solar inlet
solar inlet
#

like this

steep sable
#

Warn is fine

steep sable
solar inlet
#

and the whole script doesnt work,

steep sable
#

Just a line of warn wont show all the issues._.

#

Ehm

steep sable
#

Make sure there is nothing yielding the replication from happening

gilded holly
#

Guys why is it hard to find scripter + animator

digital depot
tribal nexus
#

Can devs dm me I'm doing something it's not hiring or anything

austere egret
#

w

scenic cove
halcyon veldt
#

Is this code organised?

round vector
#

gimme scripting channels

narrow ermine
#

so

#

I coded a shop to open and it doesnt open

autumn oyster
#

but why are you using : for ⁨DisplayInventory⁩ and ⁨DisplayWeaponWheel⁩?

waxen edge
#

bro anyone know why my studo being gay its making it syntax but code runs but it pmo

austere garnet
narrow ermine
#

local prompt = script.Parent:WaitForChild("ProximityPrompt")

prompt.Triggered:Connect(function(player)
local playerGui = player:WaitForChild("PlayerGui")
local shopGui = playerGui:WaitForChild("ShopGui")

shopGui.Enabled = true

end)

proven gorge
#

ok me @ashen narwhal

fickle flame
hallow crag
# halcyon veldt Is this code organised?

dont use pairs/ipairs use generalized iteration, MouseButton1Click is basically superseded by Activated and also i would use components for scripting UI as it doesnt require WaitForChild chains

waxen edge
#

The entire script

woeful marlin
#

Why found a good scripter is so hard

hallow crag
#

πŸ‘

woeful marlin
digital depot
woeful marlin
native sundial
#

how can i make a tool that im holding save when i leave, for some reason it doesnt want to save the tool in my character, i tried saving equipped tools in a table and save them that way, but it still doesnt work

viscid tendon
digital depot
#

in a shop system?

native sundial
#

My inventory system should save all tools (backpack and if player has an equipped one) which is inside the character, but the one that im holding does not save cause the character gets destroyed before the script checks the character so the tool is just gone

viscid tendon
somber vault
viscid tendon
native sundial
#

And the character, but the character gets destroyed instantly when they leave, so it thinks that they had no tool

viscid tendon
#

Or is it not?

native sundial
#

It gets moved inside the character when u equip it

viscid tendon
native sundial
#

how can i send the script

#

i cant paste it

viscid tendon
#

the script

somber vault
native sundial
somber vault
#

Lol

viscid tendon
#

Like the game experience of the player?

#

You could store the added tools into the session into a table and remove the tools from the table and thus you don't ahve to loop through the backpack

native sundial
#

u said loop the backpack and store all the tools they have when they join, the player will lose/gain tools so it will need to save the new ones

woeful marlin
viscid tendon
tropic goblet
viscid tendon
#

Thus you have a table that stores all the tools that player has, even if they leave

upbeat smelt
#

Legit just playing a sound?

tropic goblet
upbeat smelt
tropic goblet
tropic goblet
somber vault
digital depot
tropic goblet
digital depot
#

if u dont mind

somber vault
tropic goblet
#

like FH5 game basically but not perfect

digital depot
#

like are u constantly saving their positions

somber vault
tropic goblet
somber vault
upbeat smelt
somber vault
#

Does this only work for positions?

digital depot
#

not as fluid as he did

tropic goblet
somber vault
#

Does this work with positions or with all other attributes?

#

Properties*

gilded holly
#

Any combat system makers here

tropic goblet
somber vault
tropic goblet
somber vault
#

I think I'll take on this challenge

#

What happens if an instantiated object is destroyed?

tropic goblet
tropic goblet
somber vault
#

Hmmm...

#

I think I know how I'm going to do it. I'll create a table with the current status, objects, and changes, using the changed property indicator, and if the object is destroyed, the code will retrieve the current status and the last properties of that object, and then rotate that table backwards.

#

Make Sense?

solar inlet
tropic goblet
#

i just made it easier to implement for basiic position rewindingd

#

but better if you do it in your way

iron kraken
#

cornball

tropic goblet
digital depot
#

lag issues in the long run

#

oh u can just delete the old stuff

#

sorry im dumb

plain marlin
#

@real oak

#

stal is that u

#

@hasty gulch oh there we are

plain marlin
#

@hasty gulch whats the best way to handle hits from many different sources - abilities, melee, etc. like how do battlegrounds games do pvp / hit stuff with cancelling and all that

woeful marlin
tropic goblet
uneven solar
#

yoo why coding lowk hard like that man

somber vault
tropic goblet
#

crash

uneven solar
#

no

somber vault
#

I felt my PC freezing.

tropic goblet
#

ur message crashed lol

solar inlet
uneven solar
#

naw bro

#

no crash

viscid tendon
tropic goblet
tropic goblet
uneven solar
#

local i = 1
while i < 200 do:
print("no crash")
i += 1

viscid tendon
somber vault
# uneven solar naw bro

Coding seems difficult for the simple reason that people start studying a language, that's wrong, man 😭😭😭😭

The right approach is to study programming logic, take one or two logic courses, and then start with a programming language

tropic goblet
#

but the single module is better for pvp games

tropic goblet
plain marlin
#

like i cant just have a priority system cuz then unique interacts are doomed

#

and its such a simple system wont allow for cool mechanics

#

idkkk

tropic goblet
plain marlin
#

but idk how to determine WHICH hits should be allowed and which should not

tropic goblet
plain marlin
tropic goblet
tropic goblet
plain marlin
tropic goblet
plain marlin
#

i have one but it doesnt have a lot of info

tropic goblet
#

more info

plain marlin
#

like it only says a character is in the "Melee" state or "Blocking" state

#

wouldnt i need like "Ability", then the ability name, the ability PRIORITY.

#

etc?

somber vault
#

GetPartsInBoundBox

#

πŸ™πŸ˜ˆ

plain marlin
#

oh

#

this is why im struggling maybe

#

:_:

tropic goblet
# plain marlin this is why im struggling maybe

state should be like ⁨{action = "Ability", name = "Fireball", priority = 3, startTime = tick(), canCancel = false, hasArmor = true, iframeEnd = 0}⁩ so when a hit comes in you have everything you need to decide what happens

plain marlin
#

thats a great idea actually

tropic goblet
plain marlin
tropic goblet
rocky idol
#

ik it might sound stupid, but when should i use tables and dictionaries? as when i save/use data i either put it in a datastore or in a folder

#

like are dictionaries only good to store images and other stuff that are stationary

somber vault
#

Even the handlers and controllers?

digital depot
#

a table holds values

#

dictionaries hold values which hold values

rocky idol
# digital depot dictionaries hold values which hold values

yeah ik the basics of them, but from my little experience it feels like they can just store things like images or items name ecc, nothing useful, so i usually overkill most of the data by putting it in a datastore even when not needed

#

so my question is, what's a good way to make dictionaries and tables store more than just (stuff with the dot that dosn't change or basic numbers)

rocky idol
twin crater
#

hey, just curious, is there any way to detect if a player has liked the game?

rocky idol
#

i think i'm missing the potential of them, plus having a folder with 10+ values makes everything more bloated

rocky idol
twin crater
candid drum
slow plover
twin crater
#

yeah right whatever

rocky idol
candid drum
#

personally i store mine on a book shelf

#

but its up to choice

slow plover
#

^

tropic goblet
tropic goblet
cunning obsidian
#

hey guys

#

which youtuber do yall reccoment to learn scripting

tropic goblet
candid drum
rocky idol
#

what helped me the most was going outside of what i knew and try new stuff

cunning obsidian
supple spindle
candid drum
#

DONT use youtubers

cunning obsidian
#

what do i use then

tropic goblet
supple spindle
candid drum
cunning obsidian
#

no no but how do yall learn tho

candid drum
#

wait let me get the website

rocky idol
# cunning obsidian wdym

a year ago, i didn't knew how to make a fighting system, i wanted to learn one, and with wiki/videos/documentation i made a shitty system, but overtime i kept trying and improved

candid drum
cunning obsidian
candid drum
#

use this with the dev forum

rocky idol
candid drum
#

also use cheatsheets.luau website aswell

#

it will start you off with basic lua

digital depot
#

this wont help if ur a beginner beginner

candid drum
digital depot
candid drum
#

website

cunning obsidian
candid drum
#

this is basic lua (without luau stuff)

#

learn lua then do luau

digital depot
#

wht even is luau

#

difeference

candid drum
#

lua and luau is very different

#

luau is for roblox lua can be coded outside of roblox

supple spindle
cunning obsidian
#

i mena

#

what do you need luau for

tropic goblet
#

me when i learned signal if yall know about itcathello

cunning obsidian
#

i mean lua

#

i mena the one outside of roblox

candid drum
#

you need lua to learn luau

supple spindle
#

like fivem

#

they use lua for example

cunning obsidian
candid drum
#

thats the backend

#

he means scripting though

supple spindle
#

yea

candid drum
#

you can script like simple stuff in gta 5

#

with lua

digital depot
candid drum
#

this code looks bad

tropic goblet
rocky idol
tropic goblet
# rocky idol what does it do?

basically lets any module talk to any other without them knowing each other exists, its called signal or i think event something

#

just call it signal

rocky idol
tropic goblet
fading jacinth
#

i got a question guys, what is the standard way of saving data? cuz from what i learned playerremoving is sometimes unreliable for crashes and all, so if i save data by calling a function, then put it in an autosave of 60 secs, and once on playerremoving, is that enough?

tropic goblet
candid drum
#

every 30 seconds

rocky idol
fading jacinth
#

havent reached that point yet

tropic goblet
fading jacinth
#

understood, thanks everyone

tropic goblet
#

u said just

#

anyways

candid drum
#

i mean even if you crash data still might not save

fading jacinth
#

so profile service is crash proof aswell? interesting

candid drum
#

never crashed befor ad lost data so

#

not sur

tropic goblet
fading jacinth
candid drum
tropic goblet
candid drum
#

theres no need to do that though just use profile service

rocky idol
#

i mostly only use bindtoclose when the server crashes and playerremoving, mostly cause i lack skills to bother to use profile service

candid drum
#

you dont need skills to use it

#

its so easy to use

tropic goblet
rocky idol
candid drum
#

well

proper edge
#

Ur all chat gpt larps

spice summit
proper edge
#

Stop projecting

peak jolt
#

Chatgpt clears u

proper edge
peak jolt
#

Wowww

manic citrus
#

if i dont rate limit my remotes can exploiters spam fire them and crash servers?

peak jolt
#

So we just gonna hate

supple spindle
#

u cant do that urself else you have like every time a part spawning

#

cuz that would take lots of performance

#

but if its just information being passed you cannot generally rate limit that

cunning obsidian
royal marten
#

on Roblox what is an argument in Lua scripting

slow plover
supple spindle
#

the (color) in this case is the argument

#

basically between ( )

slow plover
narrow ermine
#

who is a good scripter

supple spindle
upbeat smelt
#

Chat what’s a good memory usage on the client that u should aim?

supple spindle
#

just make sure ur not leaking memory

upbeat smelt
royal marten
royal marten
supple spindle
#

if it stays that ur good

upbeat smelt
#

Alr then thx

digital depot
slow plover
#

⁨⁨```lua
function add(left, right)
local total = left + right -- left = 2 and right = 4
end

add(2, 4)

#

they also rely on order or position, called positional parameters, so the first argument would represent the first parameter, etc.

royal marten
#

@slow plover @digital depot Thank you ❣️

fathom stream
#

guys how to get back old ui

cunning obsidian
#

guys people tell me to use dev forum to learn scripting

#

but i dont get it what do i do im stuck at main menu of the dev forum

#

and how is that going to help me

slow plover
# cunning obsidian guys people tell me to use dev forum to learn scripting
cunning obsidian
slow plover
#

whether its a decade old or a few years, the foundation of programming in lua has been the same

#

the ui would be outdated though tbh but otherwise its okay

cunning obsidian
slow plover
#

sure

cunning obsidian
#

like can u tell me how did YOU learn?

#

like did u make tasks for yourself

digital depot
digital depot
slow plover
cunning obsidian
digital depot
#

some ppl learn better by reading it or just listening to someone

slow plover
# cunning obsidian like did u make tasks for yourself

yep, i got inspiration from games that i found fun

i made a rocket launcher and bomb and baseball bat at first and then expanded to interface scripting and then back to learning about the roblox api like data storage, etc.

cunning obsidian
#

ngl idk anything about scripting since i got a scripter friend and hes way to lazy to tell me how he learnt

#

usually i take a script off yt

#

cuz i dont understand sheet

#

or i learn word by word

digital depot
#

take pre coded scripts

#

put them into chtgpt or roblox built in AI to explain it

#

then if you want u can use that idea to make ur own thing

cunning obsidian
#

ngl i still dont understand

fading jacinth
#

i mean as someone who is learning, there are 2 ways that im doing it

digital depot
#

just keep asking it to make it easier to understand

#

worst case scenario just ask someone here

fading jacinth
#

first is i was learning luau itself, syntax, and all

#

second way is trying to actively learn what the code actually is, and why its structured that way, as in what is a method, object, etc

#

both work but i found the second way more useful long term cuz u then understand new concepts much faster

slow plover
cunning obsidian
#

cuz idk the ways

slow plover
#

i think you should try to script

#

it sticks better when you apply the knowledge

#

try printing hello world

fading jacinth
#

thats very true

slow plover
#

thats a task i can give you to do right now

digital depot
#

try changing the properties of a part

fading jacinth
#

creating a killbrick should be easy enough

digital depot
#

if u want a challenge make the part spawn via the script

digital depot
#

start with the utmost basics

fading jacinth
#

thats the first thing i did personally in studio

#

that could be too hard for some

digital depot
#

killbricks are easy but i wouldnt try to learn about functions too early

fading jacinth
#

true, i just had prior knowledge from other languages

#

but i do suggest brawldev's playlists

cunning obsidian
cunning obsidian
#

local script = script. parent?

fading jacinth
dense wasp
#

is this good for a state manager?

digital depot
cunning obsidian
#

ok so thats important for this script right

digital depot
#

well its not needed just makes it easier

cunning obsidian
digital depot
#

becuse everytime you want to refence the part you'd have to type script.parent

digital depot
#

like it means itself

dense wasp
fading jacinth
cunning obsidian
#

so

#

local script = script. parent right?

digital depot
fading jacinth
cunning obsidian
#

ok so if i name the part lets say etateadtra

#

do i have to type

#

local etateadtra = script.parent?

digital depot
#

no

fading jacinth
#

u can but dont have to

#

u can do local x = script.parent, its just a reference for the script itself

#

to know what x is

cunning obsidian
#

its up down right?

#

x,y

#

left right i forgor

fading jacinth
#

i dont get it

cunning obsidian
#

this right?

fading jacinth
#

oh not that

digital depot
#

no those are co-ordinates

cunning obsidian
#

i hear ppl say x y z

fading jacinth
#

i was just saying u can name it anything

digital depot
#

is this ragebait

dense wasp
fading jacinth
digital depot
#

starting to have my doubts

cunning obsidian
#

no no

#

im trying to learn im just new

#

so i dont know some functions

cunning obsidian
fading jacinth
#

it should really help

dense wasp
#

a variable is basically just giving another name to something, say you wanna set a variable for a part in workspace you'd do
local part = workspace.Part

digital depot
#

think of it as a box

#

the thing after local is the name of the box

dense wasp
#

the word "part" after local is the name of the variable, so after setting that variable you could do part.Color3 which would be the same as workspace.Part.Color3

digital depot
#

and what you say after = is what you store in the box

fading jacinth
digital depot
#

then you can get the value stored in the box by just "finding" the box which is just calling the variable

digital depot
fading jacinth
cunning obsidian
#

i understood 0 things lol ngl

fading jacinth
cunning obsidian
#

maybe i gotta study english a lil bit more

digital depot
#

dont expect to learn fast

dense wasp
digital depot
#

it takes time

cunning obsidian
#

yes something

digital depot
#

your not some elite prodigy who can start coding whole games in a day

#

everything takes time

cunning obsidian
fading jacinth
# cunning obsidian on yt?

personally i studied python and other languages irl which made my lua learning easier, i say try brawldev's playlist on youtube, its very simple and easy to understand, and apply what u learn immediately on studio, and use ai smartly, thats how im learning

dense wasp
# cunning obsidian yea something

when using algebra you have variables, like x = 5 for example, think of code variables the same way, its a shortcut to what you set it as

cunning obsidian
digital depot
cunning obsidian
digital depot
#

its more substitution

fading jacinth
cunning obsidian
#

yeah i know that

#

but in the context

fading jacinth
#

we all start from 0

cunning obsidian
#

real

#

well the old teacher from middle school just gave us full script to copy paste in our minds

#

c++ only

cunning obsidian
dense wasp
fading jacinth
cunning obsidian
fading jacinth
cunning obsidian
#

i think i said it wrong

cunning obsidian
fading jacinth
#

not really, you are trying to find the part in workspace, workspace's parent is game itself, i went down in the hierarchy, not up

cunning obsidian
#

so uh when is it used as local.script = script.parent
and local.script = workspace.parent

#

yk what i mean right?

digital depot
#

what

fading jacinth
# cunning obsidian yk what i mean right?

you are pretty off, like i said i suggest watching brawldev's playlist, along with studio practice, and u can ask ai any specific questions, should be on ur way to learning well

crimson portal
#

Who wants to be my friend

somber ginkgo
#

im having a rough time understanding metatables and why i would use them, could anyone explain it to me?

cinder mulch
#

they hold functions and variables

#

They basically are classes

#

Like a class in c++

#

But say you do this myClass.myFunction()

#

your basically going to the the classes metatable and calling the function

round vector
#

how do i get out of tutorial hell

cinder mulch
#

It really just takes time

#

Just start looking at models

#

see how there code works

#

And practice very little things

round vector
cinder mulch
#

like just small features

round vector
#

Tysm I hope this helps me get more confident in luau

#

Ese ooh

timber harness
round vector
#

I practice for a little bit then move on

timber harness
#

If you watched a tutorial for idk, how to open a door with a button,

#

well now, do the same thing but without the tutorial and without looking at your previously created code. If you forget smth, you can go look and read but try to not look too much. That way, you'll force your brain to rethink about what you just learned.
After a while of redoing stuff / reading, whenever you face a problem you'll see you

#

You'll remember the stuff where you struggled before. If smth was super easy you'll forget it, if it was hard you'll remember when your struggling for smth else and you'll learn a lot more

tough belfry
#

Hi I need help debugging something simple . Basically I call something from all my scripts and it works perfectly but then on another singular script i cant call it , it says its nil ... I asked Ai and it told me it might be race conditions which i am unfamiliar anyone knows something else or do i have to go down the race conditions rabbit hole thanks a lot

round vector
#

That's a really good suggestion bro ty

viscid tendon
timber harness
tough belfry
#

yeah sorry ill try to send smt gimme a sec

viscid tendon
tough belfry
#

local ServerScriptService = game:FindFirstChild("ServerScriptService")
local Modules = ServerScriptService:FindFirstChild("Modules")
local DataManager = require (Modules:FindFirstChild("DataManager"))
this basically does not work for ONE SCRIPT it works everywhere else

timber harness
viscid tendon
timber harness
#

Your code doesn't have to be 1:1 copy, it can be a small copy of theirs or just copying the feature

viscid tendon
#

Yea

tough belfry
#

i tried that and it never returned anything it never makes it pass the guard clauses and doe snot print out its cooked lol

tough belfry
#

anyway i ll try again thanks

#

yes

viscid tendon
#

Wait a minute

#

Are you putting it in a local script?

#

Or a normal script?

#

I think I realize what you did wrong

timber harness
viscid tendon
#

πŸ’€

#

You need to use a remote event

tough belfry
#

Ik the thing is im accessing it from a module script

viscid tendon
#

and connect it via script

viscid tendon
#

In replicatedstorage?

tough belfry
#

its in repc

#

its lowkey weird because the whole script had a problem , i was trying to simply find a part using local part = workspace.Part and it returned nil , then i tried it on another script it worked

viscid tendon
#

Then you should be able to access it

tough belfry
#

i think i have to delete the script and just retry lowkey its cursed or smt ( very scientific explanation )

viscid tendon
#

Send the full script

tough belfry
#

local ShopPart = game.Workspace:WaitForChild("ShopPart")
ShopPart.CFrame = CFrame.new(0,2,5)
local ProximityPrompt = ShopPart.ProximityPrompt
local ShopEvent = game.ReplicatedStorage.Remotes.ShopEvent
local Player = game.Players.LocalPlayer
local ServerScriptService = game:FindFirstChild("ServerScriptService")
local Modules = ServerScriptService:FindFirstChild("Modules")
local DataManager = require (Modules:FindFirstChild("DataManager"))

local ShopModule = {}

ShopModule.ClientMessage = function ()
ProximityPrompt.Triggered:Connect(function()
ShopEvent:FireServer(10)
end)
end

ShopModule.ServerValidation= function ()
ShopEvent.OnServerEvent:Connect(function(amount)
print ("YIPPIER")
local profile = DataManager.Profiles[Player]
if not profile then return end

    if profile.Data.Coins >= amount then 
    DataManager.RemoveCoins(Player , amount)
    end 
    
end)

end

return ShopModule

viscid tendon
#

Its not cursed, you probably made a super obvious mistake somewhere

tough belfry
#

ik thanks for your time btw i appreciate it

viscid tendon
#

This is a module script in ReplicatedStorage?

tough belfry
#

yes

viscid tendon
#

The module script doesn't know what the local player is

tough belfry
#

really ? no way

viscid tendon
#

It isn't a client script so it should return nil

autumn oyster
tough belfry
#

i thought it did thanks i think that might be the prob

viscid tendon
timber harness
# tough belfry really ? no way

Yea for a module script you can do smth like :
local Players = game:GetService("Players")
local player = Players.LocalPlayer

Then for ex :
local playerGui = player:WaitForChild("PlayerGui")

viscid tendon
tough belfry
#

thanks a lot guys , imma gonna implement the changes appreciate it

autumn oyster
#

any computation should go into ⁨:Init()⁩

tough belfry
#

have a good one

autumn oyster
#

variable declaration for small stuff is fine

viscid tendon
#

πŸ™‚

autumn oyster
#

yea you should use : syntax when you're signalling that youre modifying internal state lol

viscid tendon
#

or smth of the sort

autumn oyster
#

i always set a ⁨self.Initialised = true⁩ variable so

viscid tendon
#

or like when I get services I do _GetServices()

viscid tendon
autumn oyster
#

if it was i warn and return

viscid tendon
#

Yeah you can do that if you want

#

also Initialized with a Z

autumn oyster
viscid tendon
autumn oyster
autumn oyster
viscid tendon
#

πŸ’€

autumn oyster
#

lol

viscid tendon
#

Huh English is very weird

#

Went from Z to S

autumn oyster
#

yeah lol

viscid tendon
#

Good thing I don't Init so I won't ever make that spelling mistake

autumn oyster
#

i thought you said you do

#

you just dont

viscid tendon
#

Well I do I just don't call it Init

autumn oyster
#

have protection against calling init twice

#

ah

viscid tendon
#

πŸ’€

#

Also Do you not use _ for internalized functions?

autumn oyster
#

im very aggressive with code structure and project structure

viscid tendon
#

I like to differentiate from internal and external methods

#

so I use _ for internal and no _ for external

#

...

timber harness
#

Why do you type check every variable, genuine question

autumn oyster
viscid tendon
#

It annoys me when people don't use self

#

πŸ’€

#

I'm like, why type extra letters

autumn oyster
#

i only use self in certain situations

viscid tendon
#

Well yeah, you don't want to store certain variables throughout

autumn oyster
#

if im accessing a public variable that's not stored inside of a constructed class, i still do ⁨NameTag.GlobalNameTagTable⁩

viscid tendon
#

thats why you use local

autumn oyster
#

even though __index goes back to the original table

viscid tendon
#

Do you use global vars?

autumn oyster
#

yeah absolutely

#

probably a bad example, i have scripts with more

viscid tendon
#

Those aren't global variables, they are localized

autumn oyster
#

there's no difference between using local and not using local at the top of the script

#

since that the top-level scope

#

?

viscid tendon
#

There is a difference though? Luau complies it differently

autumn oyster
#

how so?

viscid tendon
#

If you don't put local in front of those variables, it compiles slower

viscid tendon
autumn oyster
#

ah i got it

#

global variables are held in an _ENV table

viscid tendon
#

@autumn oyster

autumn oyster
#

locals are stored in registers

viscid tendon
#

Yes

#

Thats why you localize them rather than not putting local whatsoever

autumn oyster
#

this also leads to globals having their names exposed πŸ₯²

viscid tendon
#

Otherwise, who would want to type the extra five letters each time you have a variable?

autumn oyster
#

i literally never in my life used global variables

viscid tendon
#

Exactly, thats why I asked you

#

cause I never used global variables

#

πŸ’€

autumn oyster
#

not luau but its close enough

timber harness
viscid tendon
autumn oyster
autumn oyster
viscid tendon
autumn oyster
#

i also do small type definitions

#

in the actual functions

#

and whatnot for readability

viscid tendon
#

Yeah

autumn oyster
#

im not strict on type checking

viscid tendon
timber harness
#

Oh I just misunderstood what you meant for "exposed" in this context yikes

viscid tendon
#

:0

timber harness
#

I feel stupid mbd

autumn oyster
#

ahaha nb

#

just would leave the game more prone to exploiters

viscid tendon
#

Do people still exploit?

timber harness
#

Of course

autumn oyster
#

i used to make cheats for games

viscid tendon
#

I haven't seen a single exploiter since Roblox bought uhh the top exploiting company

#

Synpase?

#

smth like that

autumn oyster
#

yea we

#

had the owner in our discord and he gave us early access to v3

#

genuinely was amazing dude

timber harness
#

People just exploit on mobile mostly I'd say. And there's still some on windows / mac available but risky

autumn oyster
#

its a tradegy it's gone

viscid tendon
#

Duality of programmers, one exploits, the other doesn't

#

I feel like you definitely made some exploit

autumn oyster
#

yea lots dude

#

have you ever played azure mines?

viscid tendon
#

I needed* that free egg cosmetic

autumn oyster
#

also found a roblox exploit to disable remote functions lol

vernal peak
#

does anyone have a event bus module they can send so I can get inspiration on how to make one

autumn oyster
#

inspiration

viscid tendon
viscid tendon
vernal peak
autumn oyster
vernal peak
#

the way im planning on making it i feel like is not good enough and there is a better optomized way to do it

#

so im tryna find examples

pastel pine
#

He somehow gets crazy scripts to run in games using some specific admin

#

Like turning into a demon or working guns

pastel pine
viscid tendon
viscid tendon
autumn oyster
vernal peak
#

u can do that straight from the client?

viscid tendon
pastel pine
#

No he uses a backdoor in an outdated admin system

#

Idk which though

viscid tendon
pastel pine
#

Look in the videos and tell me if you recognize it

fading galleon
#

close.Activated:Connect(function()
ui.Visible = false
end)

doesnt work on moble, why?

autumn oyster
#

instakills, anticheat disablers, infinitely paralyzing players, ohhh dude there’s like hundreds

viscid tendon
#

Instead of MouseButtonClick1

#

So you have to code in mobile as well as pc

pastel pine
#

Wtf

fading galleon
#

so should I do MousebuttonClick 1 and "Tapped"?

pastel pine
#

Your joking right

#

Like this is just fear bait right

viscid tendon
pastel pine
#

Istg if I have to go back

#

And edit nearly 50 buttons

viscid tendon
#

I'm pretty sure that theres different events for pc and mobile?

#

@pastel pine Nah don't worry

pastel pine
#

Scared me for no reason

viscid tendon
#

I read the documentation, it's for multiplatform if you use activated

viscid tendon
fading galleon
#

touchtap doesnt work

viscid tendon
viscid tendon
fading galleon
#

but in mobile doesnt

viscid tendon
#

Activated() should fire when you tap it, its multi-platform

fading galleon
#

so its just to make it compatible

viscid tendon
#

Are you using the emulator?

fading galleon
#

yes

viscid tendon
#

How are you testing it on mobile?

#

Maybe your button is too small?

pastel pine
#

Everyone was shitting on this steaming pile of garbage but its made me legit more then my main game has this whole weekend

vernal peak
#

How do I set the character for an animation that affects 2 people?

#

Or do I play 2 separate anims same time

timber harness
vernal peak
#

Cuz I want animation to know who attacker and target is so the correct anims play

viscid tendon
#

Whats your ADQPR?

pastel pine
viscid tendon
pastel pine
timber harness
#

this ? 😭

pastel pine
#

Yes

timber harness
#

It's got 468 visits ?

viscid tendon
pastel pine
timber harness
#

how much did you make from only 468 visits with spammy prompts to purchase stuff πŸ’€

viscid tendon
#

πŸ’€

pastel pine
# viscid tendon Whats your ADQPR?

Cant say atm because I didnt use consistent gamepasses, they're all from different other games but I see a 500 robux uptick since I've launched this thing a couple hours ago

pastel pine
#

500 robux up tick among both group funds and personal account funds

#

But its all from this game that IK

timber harness
#

I thought you made banks from this bruh. You made 0 from your main game or what

pastel pine
#

I made like 100

#

Its been down lately

#

Getting lower and lower

#

It used to be 3k a day

#

Schools back or something probably thats why

pastel pine
#

100k inna week

#

Cashed it out with some other stuff I made prior for 200k robux dev ex

#

1k cax

#

Cad

timber harness
#

What other games you got I'm curious

#

but congrats on devexing

pastel pine
#

Go to dms

timber harness
#

Sure

versed rune
#

How do I make a death screen that fades in and shows text, then when you click on the screen it switched the text and when u click again it closes the death screen

autumn oyster
#

never made money from roblox

#

atleast officially

#

since i’ve never published anything

#

fascinates me that you actually can

pastel pine
#

I got lucky icl

timid summit
#

what would u guys say on average is a good amount to pay a ugc dev to create an outfit including face + classic shirt + classic pants + hair & then an outfit with all of that including accessories most of the time 1 accessory or shoulders + torso

pastel pine
#

No doubt though with enough skill u can make as much if not more then me

pastel pine
#

Thats all that its really dependent on

#

At least for mr

fossil vault
#

@burnt flicker

#

can we talk?

sturdy field
#

Need someone good with a-chassis / physics

Need a small bug fixed paying good

errant elm
#

Tbh just post the issue and someone will probably help you for free @sturdy field

tame ibex
jade terrace
#

uhuh

sturdy field
sturdy field
errant elm
#

so like the players are colliding with the cars, but you don't want them to move?

sturdy field
errant elm
#

NDA?

hidden matrix
#

If your a dev and could help me rn with Global chatting pls dm me

vital solar
#

Yo does anyone know how to learn scripting?

north dagger
rustic rain
#

guys

vital solar
polar heart
#

πŸ‘‹ 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.

north dagger
#

Scripter wise

#

He has a full beginner to advanced scripter course

#

You should check it

vital solar
#

Alright bet

#

How long did it take you to like get down basic scripting ?

north dagger
#

Damn i think

#

Ummmm

#

I procrastinated a lot so it took me like 6 months say

vital solar
#

My biggest like problem is remembering it

north dagger
#

You just gotta practice

#

And try doing systems

#

Until you get used to knowing what is each thing for