#code-discussion

1 messages Β· Page 128 of 1

hallow crag
#

nah im out

weak radish
#

you're stuck here forever

minor cloak
#

aight...

#

yeah ima learn it on my tutorial

#

soon

#

type shii

hallow crag
#
#

just read that

#

@minor cloak

minor cloak
#

okay ty

weak radish
minor cloak
#

alrightn so

#

idk wth is "path"

#

OHH

#

i get it nvm

#

holy that was a stupid moment of mine

#

alright thats lowkey easy, i thought it would be hard.

grizzled vine
#

idk

#

guys usually how much time does ppl take when u dm them for the scripting work

elfin timber
#

do you destroy tools in a local or a serverscript?

quaint anchor
#

send a nuclear bomb to exploiters house Troll

#

use ups mail

hallow crag
#

if its cloned and parented on the server or placed in starterpack then server

elfin timber
hallow crag
#

destroy on the server then

#

πŸ’”

hallow crag
#

dude

elfin timber
#

since its server, its kinda obvious where to do it

hallow crag
#

then why are u asking if u should destroy on server or not

#

when u know the answer

burnt pulsar
#

guys what should I make as a beginner dev?

minor cloak
#

and make it as popular as grow a garden

#

πŸ₯Ά

burnt pulsar
#

πŸ₯Ά

minor cloak
#

watch a tutorial

#

brawlDev

#

has beginner and advanced

#

it teaches you everythin

elfin timber
#

i see better scripters do this often, what does this actually help with?

burnt pulsar
#

Alr

crisp crest
#

who can do this for 3 k robux

minor cloak
#

do a part, change texture

#

yk

crisp crest
minor cloak
#

3k is way too much for this simple job

elfin timber
#

3k is fitting imo

lone marsh
minor cloak
crisp crest
#

alright let me say it again

elfin timber
crisp crest
#

who can do this shit for 2 k

lone marsh
#

i think they talking abt whole game chat

#

not just the board#

minor cloak
#

i got 147

#

so im not the one to judge

elfin timber
minor cloak
lone marsh
elfin timber
crisp crest
peak jolt
#

can do it for 2999

minor cloak
elfin timber
minor cloak
#

cause this is code discussion

#

and i don't think its code

#

is it?

#

ay btw im making 10k this summer

#

10k robuxWHYYYYY

#

i NEED to learn this

serene warren
minor cloak
#

i am learning so much in such a short period of time

serene warren
minor cloak
#

did you finish his tutorial?

peak jolt
serene warren
#

but that was like a year ago

minor cloak
#

i was like you like a year ago

#

and stopped scripting

#

but now i just wanted to actually follow a tuorial

peak jolt
serene warren
serene warren
#

i would follow roblox game tutorials and copy them 1:1 and learned nothing

crisp crest
#

who can do this shit for 2 thousand robux

minor cloak
#

but i was just like that a year ago

serene warren
minor cloak
#

now im studying the tutorials

#

like courses

serene warren
#

complex obby game for 2k bruh

lean falcon
serene warren
minor cloak
crisp crest
#

@serene warren

lean falcon
#

Sounds interesting? I don't know what that is, is that a person?

minor cloak
crisp crest
minor cloak
#

but 2K FOR THIS

crisp crest
#

NO BUDDY NOT A WALL

minor cloak
#

like 15k

crisp crest
#

the mechanic

serene warren
minor cloak
#

ohhh

crisp crest
serene warren
crisp crest
#

talking dang big numbers

serene warren
minor cloak
#

he is very good at teaching code

lean falcon
#

Nest

#

Neat*

minor cloak
#

and his tutorials are 2024/25

lean falcon
#

I used to teach kids code

minor cloak
#

nice

serene warren
#

i literally said im not doing it

minor cloak
#

nobody is using chat gpt for this

#

not possible id say

lean falcon
serene warren
minor cloak
#

i would have done it

#

but idk how

serene warren
#

this is like a 1 week project

minor cloak
lean falcon
#

I taught python and as a treat sometimes I taught them Luau in Roblox

serene warren
#

I SAID NO

#

GET OUT OF MY DMS

minor cloak
#

LMAOOOO

lean falcon
lean falcon
#

Now I get paid to just code NekoDance

minor cloak
lean falcon
minor cloak
lean falcon
#

It's my full time job

minor cloak
#

oh wow

lean falcon
#

Yeah

minor cloak
#

thats sick bro

serene warren
minor cloak
#

im 15 so im doing it for fun

lean falcon
#

Imagine being a full-time Roblox dev, wild

serene warren
lean falcon
minor cloak
#

and studying in school

#

but id like to make money on my free time

#

as a roblox dev

echo pilot
lean falcon
#

Good keep at it, but don't use AI when you get stuck until you're completely out of options, then ask questions not for solutions

minor cloak
serene warren
echo pilot
#

17 and still learning

serene warren
#

if i could make enough money for university that would be sick

lean falcon
echo pilot
serene warren
#

πŸ˜‰

minor cloak
#

i made an obby that got 1200 visits

lean falcon
lean falcon
serene warren
#

grow a garden im coming for you

minor cloak
echo pilot
#

Wait Donazo how much do u roughly make, unless that's rude to ask

minor cloak
#

i can do what took me 100h in 30 mins

crisp crest
#

@lean falcon are you open for commisions?

minor cloak
lean falcon
echo pilot
serene warren
minor cloak
#

πŸ™‚

lean falcon
minor cloak
#

ill go learn lua, cya guys

crisp crest
#

can you make this mechanic in my game @lean falcon for a price you name

echo pilot
#

How long u been scripting?

lean falcon
#

It's gonna get bumped up when the game comes out if it's successful

serene warren
echo pilot
minor cloak
#

im learning about security now

lean falcon
#

Scripting like 12+ years, professionally ~7

minor cloak
echo pilot
#

Damn

#

I'm on like my first week 😭

lean falcon
lean falcon
echo pilot
#

Fr best thing you can do is just start

crisp crest
#

@lean falcon

serene warren
echo pilot
lean falcon
#

I'm under NDA sorry

#

Hopefully we'll have teasers out soon

crisp crest
lean falcon
#

No disclosure agreement

#

I can't talk about what I'm making

crisp crest
#

ill search that on google give me a second

lean falcon
#

But I'm not just the programmer I'm the development lead

crisp crest
#

oh so you cant make the commision then?

lean falcon
#

I can make commissions I just can't talk about what I'm currently making

#

For my current employer

crisp crest
#

so you mean you cant update me from time to time

#

its alr

#

ill give you 1 week deadline

lean falcon
#

It's probably more worth your money to hire someone with less experience for a commission, I'd be expensive

crisp crest
#

i can give 10 thousand

lean falcon
#

10 thousand robux?

crisp crest
#

yes

echo pilot
#

Damn

lean falcon
#

I get paid the equivalent of that at dev ex exchange rate in ~1 hour

crisp crest
serene warren
lean falcon
#

A less experienced programmer would probably jump at it

serene warren
lean falcon
#

Well actually for everything you're asking for I don't think so

#

Thats a lot for 10k

#

Specifically swing, depending on what you mean by that

crisp crest
#

i just said that because you said its your full time job so i thought 30 dollars = 10 k would be alright for a grown adult or who take roblox as his job to make

lean falcon
#

Well yeah for an hour of my time

crisp crest
#

not just a 13 yr old kid whos doing commissions

serene warren
#

maybe a couple hours

lean falcon
#

It's not the most complicated thing, but yeah it'd be more than 1 hour

crisp crest
#

ill give 70 percent upfront payment

serene warren
#

still going huh

lean falcon
#

Either way I need to focus on my current game, I have a playtest coming up this weekend

serene warren
crisp crest
#

try to do it in 1 hour?

lean falcon
#

Your description barely even says how the mechanics work

serene warren
#

steam game?

lean falcon
crisp crest
#

wait look again

serene warren
echo pilot
#

Word.

lean falcon
#

Yeah, but I'm the lead dev

#

I do everything

serene warren
echo pilot
#

Still fire ngl

lean falcon
#

I don't make assets but I put it all together

serene warren
#

still fire

hexed cedar
#

How long you been programming?

lean falcon
#

And lead the dev team

serene warren
#

what

#

so whos paying you

lean falcon
#

My employer?

hexed cedar
#

Boomer πŸ˜’

serene warren
#

oh yeah

serene warren
crisp crest
#

i got scammed yesterday from a guy who i offered to do the same commision as i told you to do i gave him his robux when he finished the comm then he blocked me

lean falcon
#

Millenial not boomer

#

Tyvm

crisp crest
#

this is him

serene warren
#

just try and do it yourself

lean falcon
#

Well I obviously wouldn't scam you but I'm not that interested and I'm busy

crisp crest
lean falcon
#

Tyvm

#

If you guys have any questions lmk

serene warren
#

dude im never ranking up as a scripter

#

ive been an intermediate my whole life

#

i think i just need experience

hexed cedar
serene warren
#

do i have to learn frameworks now

hexed cedar
#

I have no idea, I’m also an intermediate πŸ’€

serene warren
hexed cedar
#

πŸ˜‚

#

I’d assume practicing stuff your not comfortable with

#

practice Advanced concepts, frameworks OOP etc…

serene warren
#

do you know which ones are good?

digital dew
#

Honestly check the docs for shit u dont know and learn frameworks

still token
#

how do i do code bracket stuff in discord again

marsh anvil
serene warren
echo pilot
#

Yo other than scripting is there anything else you should have as like a secondary skill or should you just hone your craft in one skill?

sturdy bridge
#

bro this is so hard i tap out

#

i cant even make a basic inventory system D:

serene warren
#

if youre a full stack you gotta learn like everything

#

but if you have a dev team try to hone in on one or two skills (for example i do UI and client sided scripting because in my dev team we have a modeller, animator, server sided scripter, etc)

digital dew
echo pilot
#

OK I see

#

Thanks for some insight

willow wedge
echo pilot
#

Yh yh bet

gusty solar
#

hi

buoyant junco
gusty solar
buoyant junco
hexed cedar
#

What

buoyant junco
#

awkwardcat

npc is broken

hexed cedar
#

I would hate that as a player

buoyant junco
gusty solar
buoyant junco
#

isnt in deepwoken and other it is like that, except it just a stun for a small second.

gusty solar
#

yes they can hit back but not always

#

and you can always avoid it in some way

#

it's actually skill based

crisp crest
#

who can put this shit in my game gets 1 thousand robux

buoyant junco
#

u right im wrong.

serene warren
#

nobody is never ever accepting this

eternal apex
digital dew
#

Cool

serene warren
serene warren
serene warren
eternal apex
hasty oak
serene warren
hasty oak
#

placing blocks doesn't really work well without a grid

eternal apex
#

well

#

I did do grid stuff

#

then I wanted to test

#

yeah there it is

hasty oak
#

nice

serene warren
#

clean

hasty oak
#

it always pissed me off so much that it doesn't align with the grid on the baseplate tho

eternal apex
#

just doesnt work

#

maybe i dont know what im doing but i even asked people here

hasty oak
#

or the other way

serene warren
#

just add an offset dude

fiery spire
eternal apex
fiery spire
serene warren
#
  • Vector.new(2, 0, 2)
eternal apex
#

should I add to here

serene warren
#

in the return

#

i guess

#

return Vector3.new(snappedX, snappedY, snappedZ) + Vector3.new(2, 0, 2)

eternal apex
#

oh damn

#

you fixed it

#

thanks man

serene warren
#

np

eternal apex
sturdy bridge
young rock
#
local Rarities = 
    {
        ["Common"] = 50,
        ["Uncommon"] = 20,
        ["Rare"] = 10,
        ["Epic"] = 7,
        ["Legendary"] = 3
    }

local RandomNumber = math.random(1, 100)
local Count = 0
for Rarity, Chance in Rarities do
    Count += Chance

    if RandomNumber <= Count then
        print(Rarity)
        break
    end
end

Wouldnt a rarity system like this get affected by the order the for loop goes through that rarities table? If no, please someone explain😭

lets say there are two cases which have 2 for the randomnumber, in the first case it starts with the common rarity so its just 2 < 50 which is true

and in the second case it starts with the legendary rarity and its 2 < 3 which is also true

1: i get common
2: i get legendary

hallow crag
#

πŸ’”

young rock
#

thatd automaticly order it right

#

@hallow crag

hallow crag
#

yh

young rock
#

alr i have no idea why i couldnt think of that

#

thanks

willow wedge
hallow crag
eternal apex
#

though, the ideas are a tad different

scarlet dune
#

Yo is there something wrong with animations rn

gusty fog
young rock
#

i can put rarities as indexes for that case but

local AxeInfos ={
    WoodenAxe = {Damage = 5, Rarity = 30},
    IronAxe = {Damage = 10, Rarity = 15},
    SpecialAxe = {Damage = 50, Rarity = 0.5},
    DiamondAxe = {Damage = 20, Rarity = 4.5}
}

how can i solve the issue if i have a table like this? Could you help please
@gusty fog

static coral
remote gull
#

any better way of doing this?

local Humanoid = Character:WaitForChild("Humanoid") :: Humanoid
remote gull
#

i don't wanna be using waitforchild for every child of the character just to get type annotations

remote gull
static coral
#

local Humanoid: Humanoid = (Character :: any).Humanoid

remote gull
#

ty

gusty fog
# young rock i can put rarities as indexes for that case but ```lua local AxeInfos ={ Woo...
local AxeInfos ={
  WoodenAxe = {Damage = 5, Rarity = 30},
  IronAxe = {Damage = 10, Rarity = 15},
  SpecialAxe = {Damage = 50, Rarity = 0.5},
  DiamondAxe = {Damage = 20, Rarity = 4.5}
}

local random = math.random() * 100
local itemName, item
for _itemName, _item in AxeInfos do
  if (random > _item.Rarity) then
    continue
  end
  if (not item) or (_item.Rarity < item.Rarity) then
    itemName, item = _itemName, _item
  end
end

print("Random:", itemName)
warm flicker
young rock
#

why doesnt anybody on yt or forums use something like this

#

thank you

gusty fog
#

Make sure to add an item for 100% chance if you want it to always return an item

gusty fog
young rock
#

what if i put total rarity instead of 100

#

math.random() * totalrarity

warm flicker
#

local iq = massive

young rock
#
local function GetTotalRarity()
    local Total = 0
    for AxeName, AxeData in AxeStats do
        Total += AxeData.Rarity
    end
    
    return Total
end
warm flicker
#

thx yall

gusty fog
young rock
#

yeah i mean ill make sure the rarities add up to 100

#

but this is incase if they dont

#

then i could maybe make a function which gives the rarity as a percentage

gusty fog
#

30% is the threshold

sweet wharf
#

i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?

young rock
young rock
gusty fog
#

If you would want to show the chances in a UI then you'd need to display the difference between each Chance

young rock
#

but in the code you sent, theres a 50% chance to get nothing?

#

@gusty fog

gusty fog
#

70% chance to get nothing

sweet wharf
young rock
gusty fog
#

These are thresholds

boreal wyvern
#

guys linux appeared should i be scared

gusty fog
#

You can generate a new chance table if you want it to be the exact chances you assigned them, but this makes it so you would need to make sure the chances all don't add up to more than 100%

boreal wyvern
#

its empty its just there

elfin timber
#

anyone got a good tutorial / resource on how to make a good dialog system?

young rock
#

when we add up the chances, its 50

#

and it multiplies the math.random() by 100

gusty fog
#

I didn't add the chances in my code example

young rock
#

no no like

#

oh

#

wait right its 70

#

sorry im kinda sleepy

#

@gusty fog thanks for everything

coarse wraith
# elfin timber anyone got a good tutorial / resource on how to make a good dialog system?
lunar charm
#

lads what do functions do?

static coral
#

they are just variables for code itself

elfin timber
lunar charm
lunar charm
#

love

coarse wraith
merry karma
sweet wharf
#

i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?
i use sine waves for bobbing & it only activates when the player model moves. for mouse sway, i basically convert horizontal mouse movement into z axis rotation. i use renderstepped to handle bobbing and sway, delta time to ensure its all working the same at diff FPS, and lerp functions for swaying

jaunty herald
#

yo how do people track how many total copies of an item exists

#

is it memory service

#

or datastores

#

or something else

static coral
jaunty herald
#

i tried that but rates are limited, so idk how efficient that is

#

maybe i need to save it every few minutes

weak radish
oak verge
normal bane
#

elif
elif
elif
elif
elif
elif

jaunty herald
#

they have pretty nice ui

#

and ui animations

gloomy leaf
#

.

normal bane
#

😫 why they be making these emojis brah

#

😩 what could this possibly mean

hallow crag
#

and only fetch exist count every 30 seconds or so

#

so u dont get rate limited

sweet wharf
#

i implemented a camera sway & view bobbing system that also allows you to see your character model, but my character model now shakes when i turn the camera. can someone help me?
i use sine waves for bobbing & it only activates when the player model moves. for mouse sway, i basically convert horizontal mouse movement into z axis rotation. i use renderstepped to handle bobbing and sway, delta time to ensure its all working the same at diff FPS, and lerp functions for swaying

coarse wraith
# sweet wharf i implemented a camera sway & view bobbing system that also allows you to see yo...
#

once you figure out how to use this

#

you wont have problems with stuttering anymore

sweet wharf
#

dyk why stuttering happens

jaunty herald
hallow crag
#

so it doesnt break ur entire code

#

incase of a error

jaunty herald
#

ok got it

coarse wraith
hallow crag
sharp ingot
#

In Roblox Studio, is it possible to put a special part inside a car so that when a player sits in a specific seat, their camera switches to that part? The camera should act like a freecam β€” the player can look around with the mouse and zoom in/out, but not move with WASD. Also, since the car is moving, the camera moves with it because it’s attached to the part inside the car.

hot wraith
viscid orbit
gusty fog
viscid orbit
#

LMAO

fresh sphinx
#

yoo im uploading animations but only i can see them how do i make em that everyone can see them, its giving an error for them

dark juniper
#

Roblox makes animations only play in games under the groups their published in

#

This is so exploiters can’t steal animations

#

Since they need to be visible locally to be able to be used

fresh sphinx
mint cloud
viscid orbit
#

thanks the gpt

fossil burrow
#

Hello all!
I'm doing some little benchmarks to gather data on Roblox thread execution speeds, if anyone is in Roblox Studio and has a second I'd love to know what this snippet outputs for y'all when ran outside of a playtest along with what "quality" of computer you ran it on(i.e generally a low, mid, or high-end PC) πŸ™‚

local function chkTimings() local l=0 local et = (os.clock() + 0.002) while os.clock() < et do l+=1 end return l end local avg = 0 for i=1,100 do avg += chkTimings() end avg/=100 warn(avg)```
(reposted from [#chat](/guild/211228845771063296/channel/1138130467057565747/) since it was the wrong place to post it)
frail yarrow
dark juniper
#

What are you trying to use it for if I may ask?

crisp crest
#

@dark juniper are you open for comms?

dark juniper
crisp crest
# dark juniper whatcha need coded

I need a system that make me the player if press a part in 40 studs range go to it and if he hold left click plus right click on it swing on that part.

bold basin
#

hey yall im making a game where u can place eggs and they will automatically open, but do yall know what code i could use to make the system look similar to grow a gardens egg opening animation?

full yoke
#

why is pathfinding so ahh

lost yoke
#

@silk saddle keep all hiring to marketplace

copper apex
vast finch
fossil burrow
vast finch
#

Wow

#

Are you a scripter or?

uneven jolt
#

dictionaries are faster than tables right?

cosmic tiger
#

anybody familiar with programming with bots?

uneven jolt
#

so i should do table[v.Name] = v rather than table.insert(table,v)

#

or is it just micro-optimization at this point

lost yoke
steady ether
#

I NEED HELP

#

i watched all of brawl devs vids

#

and i needa know how to expand on my learning

#

im able to make simple things now

#

but it wont cut it

hollow goblet
#

what do you need help with?

#

@steady ether

steady ether
#

how do i expand on my learning

hollow goblet
#

hire someone

steady ether
#

wdym

hollow goblet
#

what do you need help with?

hollow goblet
#

coding?

steady ether
#

what did u guys do after learning the basics

hollow goblet
#

it takes a while.

steady ether
#

cuz u dont just magically learn after years

steady ether
uneven jolt
#

just work on making random things

#

youll slowly start to learn how everything works, just by doing it'

steady ether
#

so no yt vids to help ?

uneven jolt
#

youll get to a point where you start questioning "How can I do X better?" so youll go to research iit

uneven jolt
stuck palm
steady ether
#

but they dont give everything u need

uneven jolt
steady ether
stuck palm
uneven jolt
steady ether
uneven jolt
#

the dev forums

stuck palm
steady ether
uneven jolt
stuck palm
#

Do NOT use ChatGPT back in my day it was useless

cyan gazelle
steady ether
cyan gazelle
#

hmm

stuck palm
uneven jolt
cyan gazelle
#

btw its not mine its jst an example

stuck palm
#

I quit coding when Roblox added its own ai thing to its own script coding

steady ether
uneven jolt
#

i personally dont use it because I like writing it all myself so I fully understand it

#

but its a good tool, not a do it all for you

steady ether
#

ok i think ik what to do now

hollow goblet
steady ether
#

thanks, much love

hollow goblet
#

πŸ’€

cyan gazelle
hollow goblet
#

yo

cyan gazelle
#

yo gurt

amber acorn
#

Was to lazy to learn how to rotate so I got ai to do this simple task so I can atleast look at it and see what is going on and maybe change it up if soome things are wrong but i was NOT expecting this lmao 😭 idk if I put in the ]1 part that might have been me on accident idk tho but the self.render() += 20 is hilarious lol

def render(self, surface):
        surface.blit(self.img, self.pos)
    
def rotate_rect(self, surface):
    # Example: rotate by 90 degrees and draw (for demonstration)
    rotated_img = pygame.transform.rotate(self.img, 90)
    rect = rotated_img.get_rect(center=self.rect.center)
    surface.blit(rotated_img, rect.topleft)

def gravity(self):
  if self.pos[1] + self.height >= 880:
    self.pos[1] = 880 - self.height
  else:
    self.pos[1] += 20

    self.rect.topleft = (self.pos[0], self.pos[1])
    self.render()1] += 20
        
    self.render()
plush barn
#

How do you apply one code to a lot of specific parts you what’s it to be for

plush barn
# indigo thorn wym gimme an example

Let’s say I want to make fall guys platforms that fall every time you touch it or just fades gradually and I have to make multiple parts like a lot, like a game of spleef, so instead of writing code for each of the blocks how could I apply to all

#

Im a beginner

indigo thorn
plush barn
#

How do I apply it to all the parts like let’s say I have 50 what syntax or code would I use to apply it all or like how

#

Do I name the parts

indigo thorn
#

in a folder

#

specified

gusty solar
#

Hi

indigo thorn
plush barn
indigo thorn
#

or well

#

not just folders

indigo thorn
dark juniper
indigo thorn
#

would recommend trying to find a different way tho

#

cuz 50 touch parts

#

isnt really that good

dark juniper
#

not a play test

plush barn
#

Alr thanks you

dark juniper
#

published game

indigo thorn
#

id probably use a hitbox

#

attached to the char

dark juniper
#

lemme know if u want my specs

uneven jolt
#

Im sorry what

#

do dicts have a zero length

#

since its not numbered

indigo thorn
uneven jolt
#

wait yeah duh

#

holy brain freeze

indigo thorn
gusty heron
uneven jolt
strange fern
#

is it possible to force players into R6 then rescale their size to bigger, AI is telling me we cant rescale R6 is that true cuz i feel like its possible

uneven jolt
#

i was just being stupid

indigo thorn
#

theres headscale

#

widthscale

#

sum sum

#

only changeable server side

#

forcing player into r6

#

is simple as

gusty heron
indigo thorn
#

going into gamesettings

#

and going into avatar

#

and selecting r6

strange fern
indigo thorn
#

theres scales

#

by part i mean

#

character part

#

inside the humanoid object

strange fern
#

i dont get it πŸ˜“ im a beginner to

#

i tried everythign

#

even reposition each parts

indigo thorn
#

sec imma hop into studio rq

fossil burrow
# uneven jolt Im sorry what

Tables in Lua have two parts; an Array portion and a Hashmap(also known as a Dictionary) portion.
table.getn, the # operator, etc. return the length of this Array portion; any entries in the Hashmap portion are not included in this number!

tired stag
uneven jolt
indigo thorn
#

this is what you mean by scale rightr

#

changing the size

strange fern
#

yepp but R6

indigo thorn
#

chunky boy here

#

oh r6

#

sec

tired stag
indigo thorn
#

longer messages WHYYYYY sec lemme shorten

mental tartan
indigo thorn
# strange fern yepp but R6

this is one example where it scales everything by a certain percent, it wont squash and stretch like the bodyheight properties though , youd have to code that in (atleast from first glance), I havent tried the code myself but it looks trustworthy enough so

#

devforum usually has all the answers to a problem

rocky mica
#

yo @indigo thorn

indigo thorn
indigo thorn
rocky mica
#

u know how to fix output spamming stuff when I opened it even though I have nothing in it?

indigo thorn
rocky mica
#

ive press cleared and play again it still spams non sense

sturdy bridge
#

working on a game for the first time, need some ideas for making money for the player.
i was thinking about using breakables (coins,crates etc.. to break, ) but i kinda wanna be unique, any ideas yall?

green reef
indigo thorn
#

or well spams

#

those are your scripts

#

wait

#

are those?

rocky mica
#

I have nothing in the game tho

dark juniper
#

wtf evil output

indigo thorn
#

looks like a script but its cloud sec

sturdy bridge
#

You're trying to access child instances of something that doesn't exist or hasn’t loaded. Fix this by:

Ensuring "Assets" and any other key folders/objects actually exist in the game hierarchy.

Using error handling or :FindFirstChild() for safety.

Making sure all dependencies are loaded before the script runs (especially if you're cloning assets dynamically).

rocky mica
#

Did I get hacked or smth??

sturdy bridge
#

i asked my manager

strange fern
rocky mica
sturdy bridge
indigo thorn
#

are you in a teamcreate place

sturdy bridge
#

holy chatgpt

rocky mica
#

its still spammin

rocky mica
#

there no script ive inputed yet

sturdy bridge
#

show me script

#

ill ask my manager

rocky mica
#

its the message I keep getting whenever I open output

#

its everything thats in output

sturdy bridge
#

is it a baseplate?

rocky mica
#

yes

indigo thorn
rocky mica
#

dang

indigo thorn
#

a search tells me something about cloud saving

#

if you download the placefile and open it

#

does it appear

rocky mica
#

yeah thats what I figured

sturdy bridge
#

chatgpt says that brotaro

rocky mica
sturdy bridge
#

NOTHING?

rocky mica
#

I load up a new baseplate

#

and that just randomly pops upp

sturdy bridge
#

You’ve got a plugin, package, or auto-loaded model that’s injecting scripts into your game without you knowing.

indigo thorn
# sturdy bridge

chatgpt my homie, doesn't always work tho sadly, when is the ai takeover

sturdy bridge
indigo thorn
#

it relies on data context does help, not enough data means worse info

rocky mica
#

fixed it

sturdy bridge
indigo thorn
sturdy bridge
#

howd u fix it

rocky mica
#

it was a virus

sturdy bridge
#

LOL

indigo thorn
rocky mica
#

in my folder

#

ig someone imported it to me but it was very little text

#

oh well time to put it in everyone game now

#

LOL

#

nah jp

indigo thorn
rocky mica
#

I was the one who created it ;(

indigo thorn
#

its a plugin

#

probably

rocky mica
#

so i found da issue

#

ty gng

ivory sundial
#

@somber vault

#

mf

gloomy kiln
#

uh chat

#

should i be ashamed using gpt to help me

#

write code when i dont know how to write shit?

#

i should be ashamed πŸ˜”

sturdy bridge
#

wait is that a crime

#

iv been doing that all along, i cannot code to save my life

gloomy kiln
#

nah it aint, its just disliked

#

and im embarrased to even say it

sturdy bridge
gloomy kiln
#

idk, uncreativity ig?

echo pilot
gloomy kiln
#

i dont dislike it, its just peoples opinion

sturdy bridge
#

i feel like if anything it helps ideas become into reality

#

and your not held back as much

gloomy kiln
echo pilot
#

Practice makes perfect, repetition is key πŸ™

gloomy kiln
#

but if theres like advanced ui shit i cant do, i use chatgpt

strange fern
#

can someone help me im still stuck on trying to rescale the size of the player while forcing it to r6 πŸ’”

echo pilot
#

Set urself a 30 min timer to do it yourself, if you can't, it's OK to get assistance

gloomy kiln
gusty solar
#

guys if u ever add lag compensation to a hitbox system PLEASE add limits, im reading EZ Hitbox code and it hurts my eyes to see such insecure code. If you don't know, the client can literally spoof velocity on server

gusty solar
echo pilot
gloomy kiln
#

that legit looks cool

gusty solar
#

this is actual github

#

not sutdio

gloomy kiln
#

oh shit mb

#

it still looks fire to be fair

gusty solar
#

wth happened to my message

lone marsh
#

@gusty solarπŸ’”

gusty solar
#

BRO IM SHOWCASING HOW IT CAN BE ABUSED

#

????

echo pilot
#

Wth happend

cinder knot
#

@final pulsar how much GPT

oblique halo
#

guys what do i put as the argument

sacred ore
#

the player

#

the player you are fireing

sacred ore
#

else do FireClient(Player)

oblique halo
#

thank you

sweet roost
copper apex
copper apex
#

Its disliked cuz it raises issues about accountability and understanding

umbral elbow
#

i'm learning how to code and i just started tables. Bro, what the fuck is this?

echo pilot
#

Stuck on the same thing bro 😭

umbral elbow
#

but honestly chatgpt or roblox assistant is fire if you're coding and you get stuck on something

static coral
#

so lock in πŸ₯Ά

umbral elbow
#

this shit suckks

#

i literally understand 20% of what brawldev said in the video

#

my energy has been sucked out because of all the things my brain has been comprehending

vital parrot
#

What is this error? i'm trying to get JoinData

#

I'm not sure if this is the correct way to TP but I used TeleportAsync with a Teleport Options Instance

#

Roblox keeps changing the TP api

candid kestrel
vital parrot
#

weird is there a yield like a :Wait()

#

I can use?

candid kestrel
#

uhhhh probably, you could repeat something until the player is fully loaded

#

run a check or something idk

vital parrot
#

I really hate doing it that way there should be a better way

#

thanks but imma keep looking

copper apex
#

public static void main string args

south spruce
#

guys why arent my button tweens playing

local TweenService = game:GetService("TweenService")

local playerGui = game.Players.LocalPlayer.PlayerGui

local hoverSound = game.SoundService.uiHover
local clickSound = game.SoundService.uiClick

local Shop = game.StarterGui.GUI.Shop

local hoverTweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
local unHoverTweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)

local Local = {}

function SetUpSounds()
    for _, ui in ipairs(playerGui:GetDescendants()) do
        LinkButtonSound(ui)
    end

    playerGui.DescendantAdded:Connect(function(ui)
        LinkButtonSound(ui)
    end)
end

function LinkButtonSound(button)
    if button:IsA("TextButton") or button:IsA("ImageButton") then
        button.MouseButton1Click:Connect(function()
            clickSound:Play()
        end)
        button.MouseEnter:Connect(function()
            hoverSound:Play()
        end)
    end
end

function SetUpButtonAnims()
    for _, button in ipairs(GUI:GetChildren()) do
        if button:IsA("TextButton") or button:IsA("ImageButton") then
            local inProps = {size = button.Size + UDim2.new(0.16, 0, .08, 0)}
            local outProps = {size = button.Size}

            Local[button.Name .. "Hover"] = TweenService:Create(button, hoverTweenInfo, inProps)
            Local[button.Name .. "UnHover"] = TweenService:Create(button, unHoverTweenInfo, outProps)

            button.MouseEnter:Connect(function()
                Local[button.Name .. "Hover"]:Play()
            end)

            button.MouseLeave:Connect(function()
                Local[button.Name .. "UnHover"]:Play()
            end)

            button.MouseButton1Click:Connect(function()
                Local[button.Name .. "UnHover"]:Play()
            end)
        end
    end
end

SetUpSounds()
SetUpButtonAnims()```
spiral jungle
#

It’s a ghost

tropic plume
#

why do all my devproducts say "this item is not for sale"? is there a way to make it for sale? (my game is private, but i have turned it to public to test it out)

spiral jungle
#

And are you using the correct ID?

tropic plume
#

yes

#

let me find the script rq

west hamlet
#
use serenity;

struct DiscordUser {
  username: String,
  role: String,
}

impl DiscordUser {
  fn ban(&self) {
    serenity.ban(self.username);
    println!("User {} has been banned.", self.username)
  }
}

fn main() { 
  let some_user = DiscordUser {
    username = String::from("arcticedits"),
    role = String::from("Developer"),
  };
  
  some_user.ban()
}

code of the day

eternal apex
west hamlet
eternal apex
#

wdym

west hamlet
# eternal apex wdym

when a user like makes a tower make a function to anchor the block so it cant fall

eternal apex
#

it already anchors automatically

west hamlet
gusty heron
#

Im trying to save a table of strings in a datastore. Right now it's empty, but if I save it as it is it says no tables allowed but when I JSONEncode it it says no strings allowed. what am I supposed to do bro

west hamlet
#

["foo", "bar"] -> db ?

bleak topaz
#

and string stoo

gusty heron
#

fixed it lol

west hamlet
gusty heron
#

needed for it to be datastore and not ordereddatastore

eternal apex
west hamlet
gusty heron
cloud atlas
surreal bolt
west hamlet
eternal apex
gusty heron
# west hamlet you said not a `ordereddatastore`

The problem was I was defining the DiscoveredData datastore as an OrderedDataStore which can only take number values; I was trying to save an array of strings (or an empty array, in this case) which was not permitted

thorny parcel
#

anyone plays gtnh

gusty heron
#

what that

thorny parcel
west hamlet
gusty heron
west hamlet
gusty heron
west hamlet
gusty heron
west hamlet
eternal apex
gusty heron
west hamlet
gusty heron
west hamlet
#

then we follow the requirements

gusty heron
#

if I want to keep track of who has the most discovered rooms

gusty heron
west hamlet
bleak topaz
gusty heron
# west hamlet yeah

I need an OrderedDataStore to do that though if I want to get the highest of all players who have a key in the datastore, which I'm considering doing

light niche
#

If you want sorted lists yes, use ODS

gusty heron
#

Guys I'm not saying this because I don't know how to do it. I'm just saying that because that's what I know what I need to do if that is the choice I make.

#

I'm not complaining about it. "ugh I have to make a OrderedDataStore"

light niche
#

What u complaining about so

light niche
#

You can use another DS depending on what fields you’re saving

#

There where a Metadata thing that I believe can be assigned to store keys but not sure anymore never relied on this

gusty heron
light niche
#

Oh nice

gusty heron
#

I would've used ProfileService if it supported OrderedDataStores but for my purposes I'm not really storing anything so complex

#

I just have datastores and construct a table for each player by loading each of them in

west hamlet
gusty heron
#

I have ducks too but sometimes it's good to rely on people as well and excersice the social muscles that I lack

#

For detecting when the client enters a room is it best to just use a Runservice loop and use GetTouchingParts on the HumanoidRootPart or is there something more optimized?

gusty heron
# west hamlet when client touch start block

I mean in each room there is a sensor group that is invisible but it contains a part that takes up the entire shape of the room. I use it before spawning the room to check whether or not it would fit attached to a given door, so I suppose I would use that.

hardy yew
#

ahhh when I add more features, it makes me confused like what IntValue I added to players. I need to rewrite old script 😭

hardy yew
#

do you have to any methods that i can control and make it clear?

next galleon
#

that's why writing with future updates in mind helps a lot with games

#

need good abstraction

gusty heron
#

the less things hard-coded the better

hardy yew
somber vault
burnt pulsar
#

can someone explain what waitforchild is and all that thing, im relatively new to scripting

polar marsh
#

it waits for a child instance inside a thing until it exists

burnt pulsar
#

Alr

polar marsh
burnt pulsar
#

Ty

white dock
#

Does anyone have experience with Lua Heap ?

sacred ore
white dock
#

Is this bad ? (Client)

#

Server

somber vault
#

Can you use anything better than that dogshit

white dock
#

?

copper apex
#

Lua heap is great

sacred ore
#

tbh js disconect connection after instance getting destroyed and your good

polar marsh
white dock
#

😭 😭

spiral jungle
#

Golly gosh

white dock
white dock
spiral jungle
#

Maybe join the server and look at the F9 console

polar marsh
white dock
spiral jungle
#

And then look at what script is using up all the memory

white dock
#

or maybe it is 🫠

spiral jungle
#

It probably is

#

Maybe you’re forgetting to delete stuff

sacred ore
polar marsh
#

it might be due to having attachments not cleaned up later after use

#

not sure if its related to that

white dock
#

that make sense

gusty heron
#

what is that

sacred ore
#

your goal is to consume the least amount of memory

gusty heron
sacred ore
#

and to disconnect connection after deleting an instance

sacred ore
#

Actually it can be a lot of things, in the image that matrix_cheese sent earlier, he forgot to disconnect attachement after deleting a certain model

#

and so the attachements stacks, and use memory : this increase lag

gusty heron
sacred ore
#

this can be caused by a lot of factors, in this case i think that he forget to disconnect the event that fire the clonning

#

this cause a duplication everytime the event is fired

#

so the first fire works fine, 1 Instances, the second 2 Instances, the third 4 Instances etc.

gusty heron
#

exponential

gusty fog
gusty heron
#

does anyone know how {} could become "[]" when stored in a table?

#

alr fixed it lol

south roost
#
function GonAwakening:start()
    -- Load the animation ONCE
    local AwakeningAnim = AnimHandler:playAnims(self.hum, "GonAwakening", false, 1)
    if not AwakeningAnim then
        warn("Failed to load GonAwakening animation")
        return
    end

    -- Pass the same animation track to your marker functions
    self:startSoundMarker(AwakeningAnim)
    self:startDialogueMarker(AwakeningAnim)
    self:endDialogueMarker(AwakeningAnim)
    self:stopSlowMarker(AwakeningAnim)

    -- Play the animation
    AwakeningAnim:Play()
    
    while not AwakeningAnim.IsPlaying do
        AwakeningAnim:Play()
        break
    end
end

i added this while loop but sometimes the animation wont play, how do i make it play 100% of the time

opal sage
# south roost ```lua function GonAwakening:start() -- Load the animation ONCE local Aw...

Try this revised one I quickly did, and see if it works;

function GonAwakening:start()
    local AwakeningAnim = AnimHandler:playAnims(self.hum, "GonAwakening", false, 1)
    if not AwakeningAnim then
        warn("Failed to load GonAwakening animation")
        return
    end

    self:startSoundMarker(AwakeningAnim)
    self:startDialogueMarker(AwakeningAnim)
    self:endDialogueMarker(AwakeningAnim)
    self:stopSlowMarker(AwakeningAnim)

    if AwakeningAnim.IsPlaying then
        AwakeningAnim:Stop()
    end
    
    task.wait()
    AwakeningAnim:Play()
    task.wait(0.1)
    
    if not AwakeningAnim.IsPlaying then
        AwakeningAnim:Play()
    end
end

Should fix the issue you're having.

sturdy stag
#

guys if any one want to debug thier game i have 1 year of experience of scripting dm me if you want i wil take robux the payment will be discussed

native crown
#

Hey guys. I’m pretty knowledgeable I would say when it comes to development as I have made games before. However something I struggled or am thinking I did wrong is script executing. In previous games I’d invoke scripts in an order. For example have a player handler script then when it’s done it invokes the data store script which will invoke the plot script.

I’m wondering if this is the proper method to do things. Any ideas otherwise

polar marsh
#

if u are first getting player data and then create the plot based on player data then its a good practice

tired fulcrum
#

cuz skill issue ngl

#

random youtube script detected

#

or ai

rocky mica
#

??

#

It works perfectly until it get to the bottem part to unequip

#

@tired fulcrum

rocky mica
#

gng its not ai πŸ’€

tired fulcrum
rocky mica
#

its not

#

100% not ai ill tell u that

#

lol

glad apex
#

Learn how to script please

rocky mica
#

gng its not

lean ocean
glossy swan
#

Ez

hallow crag
# glossy swan
if not game:IsLoaded() then
    game.Loaded:Wait()
end

task.wait(3)

local local_player = game:GetService("Players").LocalPlayer
local chat = game:GetService("Chat")
local string = tostring(math.random())

Instance.new("BoolValue", chat).Name = string

local meta_table = setmetatable({}, {
    __mode = "v"
})

while task.wait() do
    meta_table[1] = {}
    meta_table[2] = chat:FindFirstChild(string)

    while meta_table[1] ~= nil do
        meta_table[3] = string.rep("ab", 2048)
        meta_table[3] = nil
        task.wait()
    end

    if meta_table[2] ~= nil then
        local_player:Kick("You a \u{006E}\u{0069}\u{0067}\u{0067}\u{0061} for running dex")
    end
end
glossy swan
#

It's much more simpler

hallow crag
#

GetAssetFetchStatus or PreloadAsync prob

glossy swan
#

No

#

I'm detecting specific services ( you can't even hook)

hallow crag
#

so no weaktables or content provider?

hallow crag
glossy swan
glossy swan
#

Where executers

#

Fuck stuff

#

Plus I'm using blink

#

Bai Bai remote event manipulation

hallow crag
#

πŸ’€

glossy swan
#

You can't even hook to blinks remotes

#

If you set singlesync/async

hallow crag
glossy swan
hallow crag
glossy swan
#

whaaay real?

#

How are they gonna use blink if it's closed from requiring

hallow crag
#

how is it closed from requiring πŸ’€

#

they can just gc the blink functions if they really need to

#

but require should work fine

glossy swan
#

I added a local variable that returns nil if module was required too much times

glossy swan
#

Sorry not today

hallow crag
#

with getgc

glossy swan
hallow crag
#

yeah