#code-discussion

1 messages Β· Page 254 of 1

gritty spoke
#

anyone mind buying something from my game

autumn oyster
#

it's about knowing how to structure your games correctly

gritty spoke
#

for 39

autumn oyster
#

so that implementing features is easy

ripe relic
autumn oyster
#

debugging is easy, etc

gritty spoke
ripe relic
#

ohhhh

gritty spoke
#

that's the cost of a gamepass

ripe relic
#

nah too much

bitter harbor
#

they are a bit different

gritty spoke
#

oh πŸ™

subtle terrace
#

nvm

bitter harbor
#

okkk

last jolt
#

No, I'm actually a .net dev (c#) and work professionally so i make money from my job

ripe relic
#

who here actually knows how to code in luau

ripe relic
gritty spoke
#

anyone mind buying a gamepass from my game

mild dagger
#

Can anyone help me with my football game code? Please

mild dagger
#

Dm me if you can

autumn oyster
#

how do you know so much about roblox programming?

#

just a hobby?

ripe relic
#

who

autumn oyster
#

or do you use luau outside of roblox

wheat drift
#

the only reason why we make em. Funding for an actual game I love

last jolt
# autumn oyster how do you know so much about roblox programming?

I don't, I've done a couple projects like 3 - 4 years back creating some games with my friend but that's pretty much it in terms of roblox programming. I did code a couple things in python using the roblox API like a group manager which i sold to a pretty big group

ripe relic
iron kraken
#

luau

ripe relic
last jolt
ripe relic
#

yessir

#

i also used my friend's token for it...

#

and i made sure he regretted that

bitter harbor
#

no

bitter harbor
last jolt
#

I did some wild stuff couple years back with the roblox api, if you got a random friend request from someone advertising a group that was probably me lol. Created a simple bot with around 1.1k cookies/accounts (bots) sending friend requests with "buy x clothing join y group" did make alot of robux from it

ripe relic
#

dude u made 1.1k accounts?

autumn oyster
last jolt
autumn oyster
ripe relic
#

who the hell is ur friend bro 😭

last jolt
ripe relic
#

alright im gonna make a followers service

last jolt
autumn oyster
#

aye nice man

cosmic perch
#

How do you guys sell and buy Robux?

autumn oyster
#

was it a lot of money if you dont mind me asking

cosmic perch
#

I never understood that

last jolt
autumn oyster
#

ah so nothing insane

cosmic perch
#

That’s a lotπŸ’€

autumn oyster
#

still pretty cool though

cosmic perch
#

damn you guys got motion like that I see

#

I just started

autumn oyster
#

maybe if you scaled it revenue would scale linearly

last jolt
autumn oyster
#

i was thinking of

#

just out of curiosity

#

programming a monero crypto miner

#

it uses an algorithm optimised for the cpu

#

and my friend has a seperate exploit where he can upkeep

cosmic perch
#

Who the hell am I in a discord server with bro

autumn oyster
#

couple thousand of servers at a time

#

with no players

cosmic perch
#

We got Musk and Zuckerberg here

autumn oyster
#

and see if it could be profitable

#

but never got around to it, probably because making an entire monero mining algorithm from scratch in lua is very very very difficult

#

i do feel as if it would be something that could work though

#

40cents per day per server, 2k servers, 800usd per day

gritty spoke
#

guys

autumn oyster
#

very illegal also

last jolt
gritty spoke
#

who want to buy a gamepass from my game

cosmic perch
#

πŸ’€

last jolt
cosmic perch
#

fflag and jimexde do you guys got any advice for a beginner developer

rocky idol
#

No matter how many times i try, each time i end up adding more systems to my project it just becomes a mesh filled with checks and garbage, how do i write more clean scalable code

autumn oyster
#

lol

last jolt
autumn oyster
#

and using assembly to write a crypto miner sound like the craziest thing i ever heard

#

i do NOT work at intel πŸ’€

last jolt
#

I've got i think around 100 - 150 python files now for 2k lines of code

fresh beacon
#

does anybody know where the snap to parts feature is?

#

in the new UI

autumn oyster
#

@rocky idol look at how beautiful this is

bitter harbor
#

how do you do your moulde laoders btw

#

loaders*

wheat drift
autumn oyster
autumn oyster
wheat drift
#

She works fine for me and I love her dearly

autumn oyster
#

i modify internal state

#

self.Initialised = true

#

and a check for whether module was initialised

woven panther
#

shared should be for client and server use

autumn oyster
#

thats actually true

wheat drift
#

lazy

autumn oyster
#

is it just a quirk of how your project is structured?

#

ah

wheat drift
#

i was just too lazy

bitter harbor
#

im able to script almost anything

#

but i take too much time

wheat drift
#

I used to indeed have a structure which seperated client modules from shared modules but i never bothered to migrate that version to my plugin

bitter harbor
#

any tips

wheat drift
#

take too much time?

#

automate tasks u dont wanna do

#

or save modules

last jolt
bitter harbor
#

should i join a dev group?

wheat drift
last jolt
woven panther
#

yo why cant i paste pictures

wheat drift
# bitter harbor but i take too much time

so if ur supposed to build an inventory system you try to build that and then the idea of dropping the item or interacting with it pops up and u try to make that simultaneously?

woven panther
#

to show my new architecture i started working on

last jolt
wheat drift
#

wrong person

#

I wasnt supposed to respond to you

#

i never over compensate anymore. I always have a plan to create easy to change expandable and loveable systems

#

i got rid of that habit last year

bitter harbor
last jolt
last jolt
wheat drift
#

i dont think u read that properly

#

keywords are "Easy to change, expandable and loveable"

#

over compensating is a negative trait

last jolt
wheat drift
#

opinions clash all the time

#

lets leave it be

autumn oyster
#

dont make it write code for you but use it as your all-knowing teacher who could be wrong in very rare occasions

wheat drift
#

use it like how i use google 😭 πŸ˜‚ πŸ˜‚

bitter harbor
wheat drift
#

it often times fails to "correct" my code

autumn oyster
#

i cant stress enough how powerful ai is for programming

wheat drift
#

if it does something good then

last jolt
wheat drift
#

i take that snippet and convert it

bitter harbor
#

suphi kaner is the best tutor

#

for roblox lua

wheat drift
#

how did u think i came up with names for my game events? i lost most of my creativity because of school

deft coral
#

You.. lost ur creativity.. because of school...

last jolt
autumn oyster
#

well

#

to an extent

#

ai is what taught me to write clean maintainable code since there's literally very very rarely you will find somebody that knows how to

#

all my project organisation, code structure, etc i learned from ai

versed rune
#

is anyone a scripter and free to help with my passion project ? :)

wheat drift
#

regarding academics of course

#

they don't give in to creativity at all. This one time me and a few friends proposed starting a calesthenics club and we were quickly shut down

#

no chance given

autumn oyster
#

dont do calisthenics go into body building instead ahaha

#

thats why they shut you down

#

joking

wheat drift
#

my own club was removed from the system because our supervising teacher left and i had to talk to the school's programmer about it

wheat drift
autumn oyster
#

jimexde writing a paragraph on how i should die rn

wheat drift
#

if i decided to start something like a math club "which already exists" id be accepted without a second thought

#

mind you, we would have to travel internationally for competitions

last jolt
mild dagger
#

Can anyone help me with coding my football game ?

wheat drift
#

nuh uh

deft coral
autumn oyster
#

some design principle that applies to general programming?

last jolt
wheat drift
autumn oyster
last jolt
autumn oyster
#

ESPECIALLY roblox

#

considering how roblox has scripts in a hirerachy

abstract flare
#

does anyone know why my datastore works inside of the actual roblox game but not in studio?

wheat drift
autumn oyster
#

with needed assets preferably lying near the scripts that need them

wheat drift
bitter harbor
last jolt
autumn oyster
#

yea

wheat drift
last jolt
autumn oyster
wheat drift
#

thats one of the easiest ideas

bitter harbor
bitter harbor
#

so it would take me some time

wheat drift
#

thats why u should (to learn)

bitter harbor
#

unless you explain

wheat drift
#

ok i got one more

#

create a system where you can place blocks in a grid format

#

4x4 as an example

last jolt
wheat drift
#

clients should be able to see their ghost blocks

wheat drift
#

Would have to google that

last jolt
wheat drift
#

ill save this for later

bitter harbor
wheat drift
autumn oyster
#

you know, after his idea here, im considering creating a PlayerManager that handles instances of a constructor-based player class that wraps the player instance

#

i feel like that way i could get cool flexible features

wheat drift
#

when they click

#

easy

autumn oyster
#

im very bad at explaining

bitter harbor
wheat drift
#

i feel like reimagining the Character class

bitter harbor
wheat drift
#

I know damn well i'd learn at least one thing

last jolt
wheat drift
#

in what regards?

autumn oyster
#

i wouldnt say so

last jolt
autumn oyster
#

there's ClassPlusPlus which is a lib that creates c++ type of classes with constructors and destructors

bitter harbor
wheat drift
autumn oyster
#
autumn oyster
wheat drift
#

like u can type :R and it auto completes to RepStorage

autumn oyster
#

in total maybe like 7 years but

last jolt
autumn oyster
#

i only got really serious like exponentially closer to now

wheat drift
abstract flare
#

does anyone know why setasync works for me inside of the actual roblox game but not in studio?

autumn oyster
autumn oyster
#

i program everything i use

#

atleast in roblox

#

send it in dms

last jolt
bitter harbor
#

should i start learning oop or wait a bit

wheat drift
#

Though I have started using ProfileStore. I find it to be quite useful

autumn oyster
#

lmao

autumn oyster
last jolt
autumn oyster
wheat drift
#

You're the typa programmer i like to speak with. Someone with applicable intelligence and a large lexicon

autumn oyster
#

im not sure, the idea of using other people's code that i've no idea what it does or how it runs icks me

wheat drift
wheat drift
#

now i just add a new table or value to a list and enjoy

autumn oyster
#

i mean when i was 12 years old i made datasaving with fallbacks and sessionlocking so i dont think it's insanely hard to make one

#

but i think

#

profilestore is one of the more acceptable modules to use

last jolt
autumn oyster
#

like for me i would have too huge an issue with using it

bitter harbor
#

he made such a good tutorial on it

autumn oyster
wheat drift
#

ofc it was made to superseed an existing module

median tree
autumn oyster
#

There's a very useful studio features called PackageLinks which syncs packages across games

wheat drift
last jolt
autumn oyster
#

lil guy

#

read the messages dimwit

wheat drift
#

πŸ’€ πŸ’€

#

chill fflag

worn hill
#

is there a scripter here whos bored and down to make a game?

wheat drift
#

yuh

#

but nuh uh

autumn oyster
#

that's a cool idea though

autumn oyster
storm smelt
wheat drift
#

i see

slow hull
deft coral
autumn oyster
#

but i feel where you're coming from, things to accelerate development time

last jolt
opaque lynx
#

day 1 of learning lua
-i learned variables and strings
-some functions
-some math with *, -, +

still a lot to learn but hope i could make a rudimentary game soon πŸ™ πŸ™

slow hull
autumn oyster
#

i recommend writing agnostic systems that are reusable across games

wheat drift
#

.

wheat drift
autumn oyster
#

then use PackageLinks or just import it from other games

storm smelt
#

what about?

wheat drift
#

omg accident

autumn oyster
opaque lynx
#

i dont think its the right channel but not sure

autumn oyster
#

people make a lot of money here you know

last jolt
wheat drift
abstract flare
#

does anyone know why setasync works for me inside of the actual roblox game but not in studio?

storm smelt
#

i think i miss understood idea

autumn oyster
#

in experience settings

storm smelt
#

dm me an i might help

last jolt
autumn oyster
last jolt
#

some parts do, just other parts are weird

autumn oyster
#

it's amazing

storm smelt
wheat drift
#

everytime i step back into C, C++ or C# I find myself back to LUAU

#

Idk why

autumn oyster
#

i used to write a good but of cpp for making game cheats lol

#

had a huge reverse engineering phase

storm smelt
#

i had worst time when at uni my teacher asked me to rewrite part of my code in c++ and my brain just keep thinking in lua syntax

abstract flare
slow hull
near flame
#

i
hate

#

ui

wheat drift
abstract flare
#

no errors or anything and it gets the players data just doesnt save it for some reason but it does in game

near flame
wheat drift
#

a game on steam

bitter harbor
#

guys

wheat drift
#

if thats what its called

autumn oyster
#

no clue why then

wheat drift
#

Ui reminds me of it

near flame
abstract flare
storm smelt
bitter harbor
#

wait nvm i fixed it

near flame
#

idrk what im going for i just wanted it to be simple

abstract flare
wheat drift
near flame
abstract flare
#

i mean its nothing wrong with the code its just the setasync that doesnt work

storm smelt
#

dm

wheat drift
#

Its not for everyone though

storm smelt
#

ph sorry

abstract flare
#

i saw a warning that the datastore was getting too many requests but its not giving that error rn so idk

wheat drift
#

and no its not "Roblox" retro

near flame
wheat drift
#

i remember those days

#

getting those warnings

near flame
#

wym u remember those days

#

don't you get it anymore??

abstract flare
wheat drift
#

nah "ProfileStore"

lilac crescent
wheat drift
#

I migrated to it

slow hull
abstract flare
wheat drift
near flame
wheat drift
#

haven't touched vanilla datastores in a

wheat drift
# near flame

i wonder if people actually code in their own language

near flame
near flame
wheat drift
#

like a Chinese person using Mandarin

near flame
#

wouldn't you?

wheat drift
#

good question

near flame
#

but if im say polish

#

id probably give all my variables and functions polish names

wheat drift
#

yeh

near flame
#

you still have to obey syntax though

wheat drift
#

AFK

#

Oh shi yeah

#

feedback fr fr

#

cash grab for funding

autumn oyster
#

what do you guys think of module containers? like a module that holds all other modules and call you have to do is Container:Get(moduleName)?

#

better practice than require paths?

wheat drift
#

i made something like that before

near flame
autumn oyster
near flame
#

whys it so small 😭

autumn oyster
#

fixes the issue of reparenting the location of utils breaking everything

near flame
#

i don't really play this type of game im probably not the best to feedback on it

near flame
#

i normally organise mine like this

wheat drift
#

yo Hyx

near flame
#

so pretty much all the code is in the modules

wheat drift
#

can u like hop on a call and share ur screen?

near flame
#

and then i just run it with functions

opaque lynx
wheat drift
#

no need to talk

near flame
autumn oyster
wheat drift
near flame
#

its over

autumn oyster
#

i had like a trillion errors i had to fix after moving utils one time lol

wheat drift
near flame
wheat drift
#

aight Hyx

opaque lynx
wheat drift
#

private-3a

#

the floors are 2 parts..

#

Hyx joiiin Private-3a

near flame
kind gorge
autumn oyster
#

studio intellisense is already so buggy for me

#

doesnt show up 90% of the time lol

near flame
#

@wheat drift did u send it

lapis pecan
#

guys I have a question, im a multi-developer (I make websites and code in py,html,js,react, css and luau), does anyone know where I could market my services that’s outside of roblox

near flame
polar linden
autumn oyster
#

what's vss?

near flame
#

^

wheat drift
polar linden
#

*vsc

#

mb

#

visual studio code

near flame
#

still what is that

#

oh

autumn oyster
#

how on earth would using vscode help here lol

polar linden
autumn oyster
#

not in my situation

slim sonnet
#

Hey does anyone know what this means and how to remove them

autumn oyster
#

im stuck between sacrificing intellisense and having easy loadable modules

#

i could probably make a seperate modulescript that holds the type of all modulescripts

kind gorge
#

just get an autocomplete plugin if you're too lazy to require them yourself

near flame
#

@wheat drift aside from this other feedback id give is it took me a while to figure out i got money from walking in the batteries, and you definetly need an option between the 100 and 5k offers, or if there is one make it permanent between rotations otherwise this progression i scuffed

wheat drift
#

the progression isnt finished

autumn oyster
#

im pretty sure it's that

#

dont remember exact SetAsync arguments

lapis pecan
#

Does anyone have any fun luau projects to make (im trying to apply for a developer)

autumn oyster
#

and what perks does it have lol

lapis pecan
autumn oyster
#

ah

slim sonnet
autumn oyster
#

yes

#

command bar

#

just make sure to input your correct datastore name

slim sonnet
#

thank you

#

i haven’t touched either of those games in YEARS so I have no idea what the data store is

autumn oyster
autumn oyster
#

search for :GetDataStore(

#

and you should fine the name

slim sonnet
#

do you know how long i have to do this

#

cause i don’t feel like doing anything atm

autumn oyster
#

it takes you like 30 seconds lol

slim sonnet
#

i know but i’m lazy and i don’t wanna get out of bed

autumn oyster
#

ahahaha

#

just do it another time if you want

slim sonnet
#

until like i get into legal trouble

#

cause they sent that thing yesterday

autumn oyster
#

id assume a few days, and it's very unlikely you will get into legal trouble

autumn oyster
#

roblox just sends you the message so that they dont have any legal liability

slim sonnet
#

so if i ignore it nothing happens

autumn oyster
#

the chance of that user actually finding out you have data on them and them sueing you is zero

#

yea lol

slim sonnet
#

ok i’ll delete it tomorrow or something

#

i just got home and was abt to watch tv

autumn oyster
#

you should watch the boys

#

ive been trying to put people on

slim sonnet
#

that show is great

#

i was about to watch kakeguri

fickle python
#

a huge step up from the average roblox dev

toxic marlin
#

make a better tutorial

wheat drift
#

should've said that in the feedback port instead of saying "Im confused" 😭 😭

#

go ahead and do it so i can note

toxic marlin
#

also progression just feels too slow

wheat drift
#

frrr

toxic marlin
#

you kind of just have to spam buy the cheapest one and then wait forever

wheat drift
#

thats the idea :p

#

anyway my plan is to indeed change the stats on each item

toxic marlin
#

i just feel like that would kill retention

wheat drift
#

and add more fans

#

u realized it had a massive jump right?

#

from 100 to 5000

toxic marlin
#

yeah and thats why its so bad

wheat drift
#

frr

#

but dw as i said i plan to change it

storm smelt
wheat drift
#

stacking inv items?

storm smelt
#

like ig you have 10 same type wind mills it shows as one

#

in inventory

#

bruh can say blue platform on roblox XD

storm smelt
wheat drift
#

nope

#

u cant say it

wheat drift
#

its not as powerful as u think

weary wave
wheat drift
#

u only steal their max cash for the battery

storm smelt
#

i know but it might be more anoying for owner of plot

#

for example if you get grinded by 2-3ppl you cant make casg

wheat drift
#

ok

storm smelt
# wheat drift ok

if you implement more stuff or fully realese game i woud love if you let me know

wheat drift
#

drop the friend request and a reminder and ill let u know

fresh beacon
fresh beacon
#

lag = off

#

that will fix it!

candid drum
fresh beacon
#

if you wanna get updates done faster

prisma patrol
#

if not thats a legendary name pull

lapis pecan
#

Hi, im a experienced web developer, a intermediate lua scripter, i do website commissions so if you guys are interested please send me a dm to see my portfolio, thank you.

tough belfry
#

hi , if i wanna make a moving platform on which the player sticks to , do i have to use alignposition for everyframe of the movement as to make the player follow the parts position frame by frame if he is touching the part ?

novel scroll
#

I need URGENT HELP with a simple script ASAP

regal salmon
#

and problem

novel scroll
# regal salmon send code

Okay so basically i want a dev product which when u buy it, the player teleports to coordinates. And you can like buy it multiple times

#

'teleport to end' kind of thing

regal salmon
#

make sure to check the id of the product that was purchased if you have multiple dev products

toxic marlin
prisma patrol
vernal peak
#

can anyone sned a client side plrStateManager

#

cuz i been duplicating the one i have on server side and i feel like there is a better way

#

is it smart to have 2 plrStateManagers on client side? one that dont change its from server and another for client communication with itself so its faster to see if an attack is valid or not

candid drum
fickle python
#

there is no such thing as too many remote events πŸ”₯

cedar cloud
#

how do i fully remove a plugin from roblox studio

#

i tried to uninstall this one plugin and it still shows up with a random button that when i press it attempts to crash my studio

rich moat
iron kraken
#

cornball

split gazelle
#

dont*

split gazelle
#

This chat fucking dird

#

Fied

#

Died

willow bobcat
#

im making a CLI tool that lets you run roblox studio test sessions with command line input and shows logs

#

if anyone wants early access ill be glad to show ill release in a few days

#

ppl are fighting in dev-discussing for some reason lol

topaz sigil
#

who wants to help me code for free fr

deft coral
hallow cedar
#

I need suggestions in what to showcase for my portfolio as of right now I made a data manager and currently a build system, and next something related with webhook and soon an anti cheat.

frigid perch
#

What did you all submit for your scripter apps? I want a better understand of what they're looking for

willow bobcat
#

theres only one to see logs i think

indigo pawn
#

when in doubt install a better version

#
npm uninstall sqlite3
npm install better-sqlite3
dark mortar
#

how many tutorial a day is good to not over do it? i normally watch the tutorial then try to use it without looking back and if i get really stuck i use doc or chatgpt

indigo pawn
#

the biggest thing is, are you NOT hating yourself?

#

cuz you won't enjoy a lot of this but if you're not miserable then ur probably good to go

#

However, you don't want to get burnt out, so i'd say like 90 minutes of tutorial

willow bobcat
indigo pawn
#

also use claude not gpt

#

claude is better in every respect

dark mortar
indigo pawn
#

it gives you a lot more leeway with what you can do with code

#

you get better resources, organization, and actual helpful AI that isn't gen

#

and i am realizing now i'd be a really good AI salesman

dark mortar
#

but its like i watch the tut then i will try to make something using it and if its good or close enough id just go to a new tutorial but i dont wanna gas it but i also will spend the hours to learn if i need to just want to know

dark mortar
#

like alot alot man

#

i wont forget this

indigo pawn
dark mortar
dark mortar
#

i dont wanna become a chatgpt dev i only ask it for help or why isnt my code not working once i get better because ims till learning immma 100 percent not use it unless i 100 percent need it

willow bobcat
#

ai is great for learning because it doesnt judge u, and lets u make questions whenever u want

#

look at roblox coding videos (the fun ones not the large videos explaining how to copy what the guy is writing step by step)

#

and youll understand the logic much faster

willow bobcat
# frail yarrow already exists

if u can send it itll be nice, i researched a lot before starting the project. its easy to connect like rojo and u can do stuff like > start through command line and pass extra arguments, timeouts, etc. so u dont have to go back and forth to roblox

wheat pumice
wheat pumice
frail plaza
#

should i keep the material as forcefield?

cloud prawn
#

Anyone need any models made trying to expand my portifolio (free)

last jolt
last jolt
jovial crown
strong spire
jovial crown
strong spire
neon ruin
strong spire
#

DMs

keen badger
#

can i get a script for a wall that only makes real players be able to walk through and npcs cant ?

bitter harbor
#

that's so ez

#

but im busy sorry

keen badger
loud dirge
#

guys

#

can any one help me

#

the playerLoad Character is not working

tardy brook
wise edge
#

what would you guys recommend for someone who wants to get into scripting

#

where to start etc etc

keen badger
bitter harbor
wise edge
#

are there any videos that might help

steep knoll
#

using networking library is overkill for signals, right? Or should i find something for signals which limits network bandwidth?

young crystal
young crystal
#

actually prolly more like 99.999%

last jolt
young crystal
bitter harbor
young crystal
last jolt
last jolt
young crystal
last jolt
# young crystal college is useless and a waste of money anyways. you learn nothing from college,...

I'm referring to UK college, what you're thinking of is called uni in the UK. Tbh the YouTube tutorial trap is real, I fell into it when I wanted to start learning how to code. The only way I learnt how to code was pick a project if I didn't know how to do x and y google. Then slowly built up enough knowledge to never use Google again. YouTube tutorials don't get you anywhere if you're just watching tutorials

#

Also, if you're brain just doesn't work in a logical way eg you're more creative than a stem type of person learning how to code will be 100x more difficult maybe even impossible

bitter harbor
sacred widget
#

The degree is just credential

#

And on top of that it helps with networking

#

And how disciplined is your average person to self learn?

young crystal
# sacred widget The degree is just credential

theres alot of people who get hired without a degree, like Tesla,Google etc if you show them your experience. heck they would hire you over a college graduate. quite literally graduates dont even know what a json file is as a Web Developer.

cobalt rock
#

don't all the top colleges in the usa force you into student loans

young crystal
sacred widget
sacred widget
last jolt
young crystal
#

πŸ₯€

sacred widget
#

Did i say you cannot? My point was statistically most people they hire have a degree

last jolt
young crystal
last jolt
outer flax
#

these no profiles discord people got so much aura πŸ™ yall must be elite programmers. pls talk more im learning alot

steep knoll
#

hello, would a combat system at some point send more data than a signal about hitting or using something?
even if they would send more data, a networking library would give more overhead to process it than time(latency) and bandwith saved on packing bytes, right?

young crystal
#

😭 πŸ™

charred crescent
#

hi

steep knoll
#

where, did i word something wrong?

outer flax
young crystal
last jolt
steep knoll
# young crystal nah its just the way you phrased the question

ok so im trying to make a simple combat system, as right now js sword abilites maybe later and that looks like 2 or 3 signals or 1 super small structured packet and i planed aybe to use networking lib to save some network bandwidth but idk if that will make things slower instead

slow hull
young crystal
steep knoll
sly plover
#

So I have like a npc handler which spawns in a npc once they die and it positions them etc. Why does it like bomb the server fps for like a millisecond once they respawn?

#

not really repsawn but they get cloned and parented

autumn oyster
#

how do you guys recommend storing types? spread across different modulescripts that use them or a more centralized approach?

autumn oyster
#

how many times is the respawn fired..?

#

wdym

#

if you're talking about heartbeat, it runs ~60 times per second regardless of framerate

steep knoll
#

bro

Chat Filter violation
You are receiving this because your message was deleted for containing a blacklisted word or phrase.

what word?

#

not exactly how it should be designed, just giving example of how it should prob not be handled

steep knoll
# sly plover So I have like a npc handler which spawns in a npc once they die and it position...

ok ill resend if it lets me

how many times is the respawn fired, like does it try to handle it one time or like in something like

local hb = game:GetService("RunService").Heartbeat.Stepped:Connect(function()
  ... -- get npcs or sumthing
  for _, npc in npcs do
    if (npc.health == 0) then -- busy waiting, other examples migh fire the even multiple times in pararell
      NpcSystem:Spawn(npc.Name)  
      npc:Delete()
    end
  end
end)
autumn oyster
#

literally read the message above dude

last jolt
steep knoll
#

ty

sly plover
#

so something is happening when they die

#

which just kills the servers fps

#

its weird

young ore
#

is it just impossible for npcs to count 3 stud obstacles as a path

steep knoll
#

the bot is useful bc without it ppl would spam job applications but the frequency the bot send these messages is too high

sly plover
#

@steep knoll hm I think the issue is spawning like 40+ npcs on the server

#

and with the death thing, the server is still like

#

idk

#

it only tanks on the first like 1-2 kills

#

after that its smooth

sly plover
# young ore what happen

I'm making a game where npcs spawn on the map when the game starts, once they die it just does npc pooling

#

but when you kill a npc when you first join, the server fps goes to like 0 fps for a millisecond

steep knoll
young ore
sly plover
#

do I just add a task.wait() and it should be fixed

#

lemme send a snippet

steep knoll
broken grove
frail yarrow
#

what he said

sly plover
#

@steep knoll yo

#

local lastMovedTimes = {}

while true do
    local NPCFolder = game.Workspace.NPCS:GetChildren()

    for _, npc in ipairs(NPCFolder) do
        if npc:FindFirstChild("Humanoid") and npc:FindFirstChild("HumanoidRootPart") then
            local lastMoved = lastMovedTimes[npc] or 0
            local now = tick()

            if now - lastMoved > 2 then
                lastMovedTimes[npc] = now

                local xoff = math.random(5, 10) * (math.random() > 0.5 and 1 or -1)
                local zoff = math.random(5, 10) * (math.random() > 0.5 and 1 or -1)

                local newPos = npc.HumanoidRootPart.Position + Vector3.new(xoff, 0, zoff)
                npc.Humanoid.WalkSpeed = 8
                npc.Humanoid:MoveTo(newPos)

            end
        end
    end

    task.wait(math.random(0.1, 1.5))
end
#

like how bad is this performance wise

#

with like 30 ish npcs all on the server

frail yarrow
#

why are we using ipairs

sly plover
#

wait

#

it shouldve been pairs

sly plover
#

I changed it back to pairs

#

but I dont think that would do much performance wise

static coral
#

its useless

unique needle
#

Genuinely feel like I hit a wall in scripting, I have made stuff for my port but I literally can’t clip the stuff because my laptop has shitty specs, feels like I learnt everything for nothing

static coral
#

and put roblox studio quality on 01

#

or just publish the projects and showcase on roblox

kind gorge
#

I just use snipping tool to record and upload on youtube

shut sorrel
#

ye Ctrl+Windows key+R

#

I use OBS for more video control like quality and microphones

autumn oyster
#

but didnt say anything

gaunt pagoda
#

hello people, I got some questions about Pathfinding

#

if anyone has experince with pathfinding

granite zenith
#

Is it necessary to use module loaders

gaunt pagoda
deft pewter
steep knoll
deft pewter
#

i know the problem

#

so basically

#

no actually i might say smth stupid

#

i think it's mostly how you check if someone dies

#

i think something is repeating a lot of times in the code

deft pewter
#

i'm so dumb

deft pewter
somber vault
#

guys how to add animation into a avatarclone created only by scipt?

potent igloo
#

wym avatar clone

#

if youre cloning a character you can just play the anim normally

round vector
#

Hi

#

is contextactionservice deprecated

unreal ingot
#

looking for investers dm made 1.5m last project

deft pewter
#

or atleast a custom system

empty bone
#

are brawldev tutorials good tutorials to start scripting?

keen citrus
#

hello guys

#

im here trying to connect my gk tools

#

how can i do that or is anyone her tohelp me in dms

#

or something

severe venture
#

anyone know why an animation track wouldnt load the first time it's played, but then it's fine after that?

#

is that a common issue?

#

it just makes my entire rig go into the default position (every limb at 0,0,0)

severe venture
gritty spoke
#

Hi guys, does anyone want to support my 1st game by buying a 39 robux gamepass

gritty spoke
#

idk, I made it in 3 weeks

#

It's a coin collector sim

#

made it so i can learn and earn

keen citrus
#

yo

severe venture
#

whats the gamepass for

keen citrus
#

i need help connecting gk tools

#

any1 can help me in dms

#

or give code

gritty spoke
#

I'm proud of the game, I'm just sad that I worked hard amd it flopped

severe venture
#

first things first

#

do you know what you did wrong

gritty spoke
#

is there anyone who wants to support me?

severe venture
#

when you say support, what do you mean

gritty spoke
#

like buy the gamepass

severe venture
#

when wiki asks me to support them, the money goes to supporting wiki

gritty spoke
#

sorry about the situation

severe venture
#

if i buy a gamepass from you, is 0.2 cents going to keep you going?

#

just try again dude

gritty spoke
#

so nah?

severe venture
#

no, just try to make a game that's fun

#

you're basically just begging

gritty spoke
#

k sorry

severe venture
#

dont apologize lol

#

take a moment and reflect

gritty spoke
#

I have no other way

#

I can't promote games cus I have no friends

fallow tiger
gritty spoke
#

I tried a channel

#

everything flopped πŸ™‚

fallow tiger
#

if the videos good itll take off eventually

#

even with luck a shitpost goes viral most of the time (something that doesn't take effort) so as long as something is entertaining itll work

severe venture
#

yo how do i set the camera pos without it ruberbanding back

grand crow
#

can someone help me i tried taking a animation off the toolbox and it isnt playing

grand crow
#

1 sec

#

i think its because im using a toolbox animation

#

nvm i had the game on r15

raw sparrow
#

how do i start scripting?

tall sedge
#

Learn from the documentations.

raw sparrow
#

every time i watch someone they just say the code not explain it

tall sedge
raw sparrow
tall sedge
severe venture
#

you will naturally overcome problems and learn

severe venture
#

because there's no magic sauce to make you good instantly?

raw sparrow
#

what i meant is i never used to just try

raw sparrow
#

i just learn and do nothing thats why i said dang

severe venture
#

ah gotcha

#

yeah it wont stick as well if you do that

#

and you wont learn as fast

raw sparrow
#

ye its my bad habit

severe venture
#

it's like anything, you have to do the thing to get better at the thing

raw sparrow
#

of wanting to learn everything but never learn anything

last jolt
severe venture
#

"having trouble learning? just learn"

raw sparrow
last jolt
raw sparrow
last jolt
latent portal
#

hello is this modeling

sturdy kindle
#

no

elder turret
#

yo

alpine cargo
broken grove
alpine cargo
#

alr ty

#

precision in what tho

tall sedge
alpine cargo
#

so its just faster runtime then?

tall sedge
#

Pretty much.

elder turret
alpine cargo
#

ty

glacial glade
elder turret
#

yeah

#

but if your coding like a machine gun you could use wait

#

cuz its more efficient

keen citrus
#

dm me if u can help me script asap with payment

#

like urgent

#

i need help with an script

prisma patrol
#
local _ = {}
_.__index = _

function _.__()
    return setmetatable({}, _)
end


_["_"] = function(self)
    print(self)
end

return _```
peak obfuscation
frigid perch
#

hold on lemme double check I'm not making stuff up

#

ok ya it is deprecated

tawny jungle
#

yo i applied for lua scripter role, now i just wait for it to be approved?

mild cloak
#

Yes

broken grove
cobalt yoke
#

yall opinion?

hoary cedar
#

Serious lack of variable usage and consistency

#

Some minor redundancy

rapid verge
# cobalt yoke

make a variable for Values

also check for when the player is dazed on the server and use a remote event to display it to the client

frigid perch
# cobalt yoke
  • Instead of game.Players use game:GetService("Players") also do this for getting replicated storage, server storage, basically any main widget in the workspace
  • script.Parent.Parent also feels a bit icky.
#

oops I forgot to write more than one bullet point

cobalt yoke
#

wait where do i u even use game:getservice()

#

oh wait nvm i see mb

frigid perch
#

It'll autofill to give you a list of options

cobalt yoke
#

yeah i misread your comment

frigid perch
#

I'd recommend just going through the list and making note of stuff you might want to use in the future

#

Also I believe you should use attributes over values

#

like always

#

except for maybe object value

sturdy mauve
#

Dose anyone know about roblox stufio

#

Or made a game before

noble tartan
#

how can u detect executors n script injection etc for anti cheat

frigid perch
# cobalt yoke
--| Services |--
local Players = game:GetService( "Players" )
local Lighting = game:GetService( "Lighting" )
local TweenService = game:GetService( "TweenService" )

--| Variables |--
local Player = Players.LocalPlayer
-- I'd recommend changing this to an attribute
local ChangeThis = script.Parent.Parent.Values.Daze

--| Constants |--
-- 0 doesn't really tell me much about what the intended number is.
-- By giving it a constant it's clearer to me in the future or other devs that this is what  I meant/.
local BLUR_SIZE_ORIGINAL = 0

-- the : is for the type of the parameter.
-- Adding it just makes it clearer on what each value actually is.
-- Also the linter (The thing that checks the code for errors and stuff) will know what you want
local function DazePlayer( Player : Player, Strength : number, Duration : number )
  local Blur = Instance.new( "BlurEffect" )
  Blur.Size = BLUR_SIZE_ORIGINAL
  Blur.Parent = Lighting
  
  -- I like to order stuff with a bunch or parameters like this because it makes it easier to edit
  local tween1 = TweenService:Create( 
    Blur,
    TweenInfo.new( 0.5 ),
    { Size = Strength } )
  
  local tween2 = TweenService:Create( 
    Blur,
    TweenInfo.new( 0.5 ),
    { Size = 0 } )

  -- You'd prob want to do this in a coroutine or something
  tween1:Play()
  task.wait( Duration )
  tween2:Play()
  tween2.Completed:Wait()
  Blur:Destroy()

  ChangeThis.Value = false
end

function onDazed()
  -- This is a guard statement. It avoids nesting which makes your code a bit easier to read
  if not ChangeThis.Value then
    return
  end

  DazePlayer( Player,25,3 )
end

ChangeThis:GetPropertyChangedSignal( "Value" ):Connect( onDazed )
grim delta
#

i need feedback on big thing if anyone could dm cuz i cant upload images please

echo belfry
#

im how often do u guys use math when programming

#

its probabaly the area im worst at

frigid perch
#

Depends on what you're doing

#

But it's typically pretty important

echo belfry
#

im so cooked man πŸ’”

night geyser
#

Why we use :GetService() instead game.Players for example

chrome relic
#

imo, it looks cooler, thats why I use it

frigid perch
#

I don't remember the exact reason lemme find it

#

hold on here's a better one

golden forgeBOT
#

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

frail plaza
#

what is ts doing bro πŸ™

#

could anyone explain why the suspension is doing this?

#

i cant send script cus shitty bot wont let me

frigid perch
#

Learning to code with Roblox's new awesome AI tool! Wow this is so cool!

polar loom
#

Is it a good idea to make a module that reference all ur UI inside, so it is easier to access the UI?

hoary cedar
#

I would break UI into components though

#

That way you're not trying to step through a hard-built hierarchy

polar loom
median tree
#

don’t need to reference every ui

polar loom
median tree
#

Yes

#

you pass in frame name

#

It looks for that frame and returns the frame instance

#

you’ll get all its properties and descendants

misty valve
polar loom
little crest
#

Guys print hello world isnt working

tall sedge
little crest
tall sedge
frigid perch
brazen estuary
#

lol

frail plaza
#

why aint ik controls workin

heavy nest
frail plaza
thorny trench
unkempt prawn
#

i have a question for u scripters

broken lynx
unkempt prawn
#

whats 1+1

broken lynx
#

3

unkempt prawn
tight pewter
#

who made this tin can

thorny trench
#

hello world!

regal salmon
#

print("Hello, World!")

fervent belfryBOT
#
Tag Β» ask

// READ THIS:
Before asking a question on the Internet, knowing how to effectively ask a question will help both you and the person being asked. Something as simple as asking a question might seem trivial, but a lot of people do it wrong.
Please don't do it wrong. It gets tedious.

To summarize a few important articles:

http://xyproblem.info
The XY Problem is a very common problem among newer programmers. It stems from the Dunning-Kruger effect and the overconfidence of newer programmers.
Always include the original problem in your question, as well as your proposed solution. Chances are, yours mightn't work, which will waste both yours and everyone else's time if nobody knows what your actual problem is.

https://stackoverflow.com/help/how-to-ask
β€’ Summarize your topic like you're talking to a busy college student.
β€’ Do your research, because your question might've been asked before.
β€’ Take your time asking. Take time to word your question so it's easily understood. Don't fragment your question into multiple messages, take your time writing it.
β€’ Always include relevant info, like errors or a code sample. Do some basic print() debugging to find problematic code, so we don't have to stare at a 200-liner.

http://www.nohello.com
When asking a question, ask the question! Don't just say "Hello!" and wait for a response, simply ask the question instead. You may think it's impolite to do otherwise, but the recipient just wants you to ask the question. This is the Internet, after all.

https://dontasktoask.com
Don't "ask to ask" a question. Asking "Can I ask you a question?" is a huge time-waster. Just ask the question and you'll get a response much sooner.

regal salmon
#

its beautiful πŸ₯Ή

thorny trench
#

Holy yap

regal salmon
#

what was your question

thorny trench
#

Lmao ion got 1

ocean hatch
#

hello guys, is this kind of script ok.
Pretty new to trying make mid script..

uneven parrot
ocean hatch
uneven parrot
delicate shoal
#

Hi guys

lost pebble
last jolt
topaz crypt
#

Aight bro

lost pebble
modern seal
#

i love purring

hard garden
spiral jungle
hard garden
spiral jungle
toxic marlin
sacred ore
#

ill pay just for getting me this free system

#

i need the animations to work as well

lost pebble
toxic marlin
#

if you are writing an entire function for a block of code you arent using more than once, you are doing too much

lost pebble
#

now you could just remove the comments and have that one function describe what all those parts do together

toxic marlin
#

agree to disagree on this one πŸ‘

lost pebble
# toxic marlin if you are writing an entire function for a block of code you arent using more t...

while the core function of functions is to have repeatable code blocks, there is also a readability part to them. if you have your logic all scattered around without putting them in functions (even though it might work great), it could be hard to then come back to that code after a while and figure out what each part does. it's more for the developer's experience in that aspect (especially if you're in a team)

dense hull
spiral jungle
dense hull
dense hull
#

BONGO NO

spiral jungle
dense hull
spiral jungle
dense hull
#

i have only seen the croped verison

spiral jungle
dense hull
#

my ears

spiral jungle
#

Hello

dense hull
#

ello

spiral jungle
dense hull
#

custom render? or just frames

spiral jungle
#

Custom

#

πŸ€‘

dense hull
#

epic

spiral jungle
#

I have so much random stuff