#code-discussion

1 messages · Page 278 of 1

night hemlock
#

yes but if you call them from the client they're only visible to one person

languid kraken
#

Ye the server obviously will tell all clients

#

And animations replicate to all players by default

#

(Unless it is not a player animation)

night hemlock
languid kraken
#

So what?

#

They aren't that special there are gazillions of effects to steal

#

And if you do it on the server it will be very delayed

night hemlock
normal solar
#

larp

stable verge
#

X

heavy jacinth
#

?

unique needle
heavy jacinth
#

oh

#

any discord stuidos?

fallen heart
#

I need help

#

How do I learn how to script

thick crater
# fallen heart How do I learn how to script

plenty of great tutorials and guides out there though i recommend you get more experience with a easier programming lanugage like Python to learn the ropes of programming and then get into scripting with Roblox's Lua code

inland dragon
fallen heart
inland dragon
inland dragon
#

I’m on mobile so I may take a bit to type this

thick crater
fallen heart
#

ok

inland dragon
fallen heart
#

ok

thick crater
#

Depends, though @fallen heart I recommend watching some tutorials and creating some stuff on your own before actually going on to make a FPS system

fallen heart
inland dragon
# fallen heart A FPS game

When you want to make a game, it’s not just coding that goes into it.
You have to develop models for the guns, have to make a map, make UI (User inteface) like buttons frames etc, animations and far much other things that all go into their own role

Programming is putting all these together.
You cannot js make a game js by knowing how to code

#

You need to start off with things that only take coding

#

For example a round system

fallen heart
#

Ok

thick crater
inland dragon
fallen heart
#

Ok

inland dragon
#

For every video u learn smth try it out and experiment with it

fallen heart
#

Can I add you and DM you if I ever need help?

inland dragon
#

Yh

thick crater
fallen heart
inland dragon
#

Also don’t use ai
Only use it if ur fully stuck and cannot find it on google
And when u do make sure it doesn’t write the code for u but explains the topic

fallen heart
#

Ok

#

So not what I was doing 5 minutes ago

inland dragon
#

Yea

#

Programming in it self is easy
It’s not hard at all
All it takes is consistency

fallen heart
#

ok

inland dragon
#

Np

inland dragon
#

Why?

spice hill
#

all those all nighters trying to fix my bugs in cpp

inland dragon
#

🤔

spice hill
#

😭

heady sluice
#

One message removed from a suspended account.

late valve
# heady sluice One message removed from a suspended account.

u absolutely SHOULD use OOP doing that HitboxTemplate.New(WeaponData) thing is the best way. cuz think about it, u need to save data right? like u gotta keep a list of dudes u already hit so ur sword doesn't damage the same guy 60 times in one swing lol. OOP makes that super easy cuz it saves the "state" of the hitbox.
BUT... dont put it all in one script
u really shouldn't put :Melee, :Projectile, and :Area all in the exact same script. if u do that, ur gonna make what nerds call a "God Object" and its gonna be a massive headache later.
cuz the math for them is totally different bro:
Melee: is basically checking if parts touch (spatial queries).
Projectiles: are shooting raycasts every frame and using physics.
Area: is just a quick radius check.
if u cram all that junk into one script, its gonna be huge and break all the time.
what u should do instead:
u should do MULTIPLE module scripts but keep it OOP. kinda like this:
HitboxBase (just handles the basic stuff like dealing damage n checking teams)
MeleeHitbox (uses the base script, but only handles sword swings n punches)
ProjectileHitbox (uses the base script, but only handles bullets n magic)
doing it like this keeps it clean so u dont lose ur mind trying to fix bugs later.

heady sluice
granite summit
late valve
# heady sluice One message removed from a suspended account.

basically script A is waiting for script B to load, but script B is waiting for script A. so they just stare at each other forever and roblox crashes.
if u wanna fix it the legit pro way, u gotta use what nerds call "decoupling" or event-driven stuff. tbh ur hitbox script shouldn't even know what a PlayerState is. it shouldn't care at all.
think of the hitbox as just a dumb tool. its only job is to scan the area, find a dude, and yell "YO I HIT THIS GUY!". it shouldn't be doing any of the math or checking states.
so instead of the hitbox requiring PlayerState, u just make the hitbox fire off a custom signal or callback whenever it touches something.
since ur WeaponSystem is what created the hitbox, and WeaponSystem already knows about PlayerState, u just make the WeaponSystem listen to the hitbox. when the WeaponSystem hears the hitbox yell that it hit somebody, the WeaponSystem is the one that steps in, grabs the PlayerState, and checks the values.
doing it like this totally breaks the loop cuz the hitbox never has to require the PlayerState script ever again. the arrows only point one way now. plus it makes ur hitbox way more reusable cuz u can slap it on a falling rock or a trap that doesn't even use PlayerState and it wont break.

heady sluice
heady sluice
granite summit
late valve
# heady sluice One message removed from a suspended account.

ur hitbox script shouldn't be the one actually taking away the health. a hitbox is literally just a sensor. it’s just an invisible box that says "hey, i touched this dude!" and that is IT.
cuz think about it like this... if u hardcode the damage stuff inside the hitbox module itself, what happens if u wanna make a healing area spell later? or like a bounce pad that just launches dudes in the air? if the hitbox always does damage, u cant reuse it for those things without making a whole new script.
but if ur hitbox just fires off a signal saying "yo I found a guy", then ur WeaponSystem (or whatever script made the hitbox) can decide what to actually do with that info.
if it’s a sword, the WeaponSystem hears the signal and deals damage. if it’s a healing staff, it hears the signal and gives health. if it hits a wall, maybe it plays a clank sound.
doing it this way makes ur hitbox completely reusable for literally anything in ur game, and totally stops those annoying require loops u were getting

heady sluice
heady sluice
late valve
# heady sluice One message removed from a suspended account.

if it tries to grab the main PlayerState module to look up the victim, it loops again. that makes total sense.
so here is the pro move for that. u gotta pass the message up one more level, or use a middleman!
think about it like a chain of command. ur WeaponSystem shouldn't be the one checking the victim's state either. when the Hitbox tells the WeaponSystem "yo i hit this dude", the WeaponSystem just turns around and tells its OWN PlayerState (the attacker) "yo, my sword just smacked this guy for 20 damage".
then, u have one big boss script. like a top-level Server Script (maybe call it CombatManager or something). this big boss script is the ONLY thing allowed to require the main PlayerState module to look up everyone's states.
so ur attacker's PlayerState just shouts out to the CombatManager "hey boss, i hit this guy!". and the CombatManager is the one that actually looks up the victim's PlayerState and takes away their health.
cuz the CombatManager is just a regular server script at the very top, nothing requires it, so it literally can't cause a loop! u just bubble the info all the way up the chain:
Hitbox -> WeaponSystem -> Attacker's PlayerState -> CombatManager.
doing it this way means ur modules never have to look at each other, they just report to the boss script.

late valve
# heady sluice One message removed from a suspended account.

PlayerState[Enemy]:TakeDamage(), u still have to get that PlayerState master table from somewhere, right? which means ur probably putting require(PlayerState) at the top of ur WeaponSystem script so u can actually look up the enemy.
and boom, there is ur loop again! cuz PlayerState requires WeaponSystem, and WeaponSystem turns around and requires PlayerState to get that master table.

heady sluice
late valve
# heady sluice One message removed from a suspended account.

since self.PlayerState is ONLY the attacker's state, ur weapon script literally has no idea who the enemy is or how to get their state. and if u try to require the master module to find the enemy, u get that loop again.
so here is the super easy fix using what u already built.
since ur WeaponSystem has self.PlayerState, u can just call a function on it!
instead of the WeaponSystem trying to look up the enemy's state, just make a new function inside ur main PlayerState script called something like :AttackEnemy(enemyCharacter, damageAmount).
then, when ur hitbox finds a guy, ur WeaponSystem just does:
self.PlayerState:AttackEnemy(Hit.Parent, Amount)
cuz think about it... that :AttackEnemy() function actually runs back inside the main PlayerState script. and the main PlayerState script ALREADY knows where the master table is! so inside that function, it can easily do PlayerState[enemyCharacter]:TakeDamage(Amount) without requiring anything at all.

heady sluice
late valve
# heady sluice One message removed from a suspended account.

u gotta make a 3rd script. literally just a totally empty module script. nerds call it a "Registry" or a "State Manager".
all this script does is hold a table of everyone's states. it has absolutely zero logic in it.
like this:
StateRegistry (just an empty table)
PlayerState (requires StateRegistry)
WeaponSystem (requires StateRegistry)

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wraith bridge
#

why does my game say "this experience is currently not available"

late valve
#

You can find it In Roblox dashboard on you're game page

wraith bridge
#

Ok ill try that ty

late valve
# heady sluice One message removed from a suspended account.

how u should actually structure it:
just put them all in the same folder as siblings. that is the cleanest industry standard way. like this:
📁 Controllers (Folder)
📄 StateRegistry (the dumb phonebook)
📄 PlayerController (requires StateRegistry)
📄 HumanoidController (requires StateRegistry)
doing it this way means the Registry just sits there chilling. when PlayerController makes a new state, it just writes it into the Registry. when HumanoidController (or WeaponSystem) needs to smack someone, it just reads the Registry to find them. no loops, no weird parent-child rules, just clean decoupled code.

#

I just translate the things I write with ai cause i don't speak well english it's nothing too complicated

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

heady sluice
late valve
#

Don't worry if feels weird right now it's what you should do

#

Loop should be fixed

heady sluice
#

One message removed from a suspended account.

late valve
#

No problem you can ask everytime you need even dm i don't mind helping

heady sluice
late valve
#

I just did combat system for all the 3 years I've been scripting and using luau

heady sluice
#

One message removed from a suspended account.

late valve
#

There's plenty of things to handle but now with the new libraries it's easier

#

And alone it's not easy at all

heady sluice
#

One message removed from a suspended account.

late valve
#

Chrono right now for combat

#

But depends on what you're doing

#

If you have you're own framework don't change and keep pushing by yourself

waxen gull
heady sluice
late valve
late valve
waxen gull
late valve
waxen gull
#

I just want to see the code

cyan lantern
#

be quiet afminbot

acoustic tangle
#

what do u guys think is the best most efficient way to make projectiles

cold pebble
#

whats the mathematical angle for pointing an r6 arm forward in dummies?

#

motor.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(0, math.pi, 0)
motor.C1 = CFrame.new() does not help at all, it only points it backward

cold pebble
#

no one doing that

cold pebble
#

but im assuming i gotta adjust it

cyan lantern
orchid arch
lost gulch
#

Simple code to show ain’t gonna hurt ya

#

sharing code and learning from each other is part of the process 🤷‍♂️

wise turtle
#

print("Hello World")

bleak glade
cold pebble
#

how did you guys learn coding can someone tell im curious

#

me personally i learned it through college and some tutorials

wise turtle
opaque thistle
wary sluice
#
    game:GetService("AvatarEditorService"):PromptSetFavorite(GAME_ID, 1, true)

This locks the mouse if you're in first person, and I can't get around any way to unlock it. And this doesn't yield until player closes the prompt either. Can anyone please tell me if there are any solution for this?

#

It only yields until the prompt is shown

#

But there seems to be no way of figuring out whether the prompt closed or not.

#

alright imaj ust do custom prompt

#

with modal

cold pebble
deft coral
#

Also set UserInputService.MouseBehavior to free or whatever

#

Every frame

#

Will force unlock

cold pebble
deft coral
cold pebble
dim compass
#

you CAN use tween service

#

😎

cold pebble
wary sluice
#

Thanks for that

#

I was looking for exactly that

wary sluice
#

It doesn't detect the favorite prompt closing

#

thats for notifications not favorite 😭

#

ohh gg i found this AvatarEditorService.PromptSetFavoriteCompleted

wary sluice
glacial garnet
#

best start for learning to code? (ik basics of scripting but only bcs i work in frontend primarily)

cold pebble
glacial garnet
#

but did u use a guide along the way, if yes what did resources did u rely on

tacit tendon
#

My game isnt showing up in my Ads manager. Is it because I just set it as public?

cold pebble
celest grove
#

wait, you fr sent it in every channel?

iron kraken
fervent belfryBOT
#
Tag » How to post

How to post

In our marketplace (#marketplace-info), we have 2 different ways of making a post; a hiring and hireable post.
Hiring posts are posts which allows you to seek for developers.
Hireable posts allow people who are hiring to find you.

MarketplaceStaff Hiring post

To make a hiring post, use the command </post:0> in #cmds and fill out the required fields. Remember that the marketplace doesn't accept % if your game hasn't made profit yet!

MarketplaceStaff Hireable post

To make a hireable post, you first need your respective skill role; refer to the command /tag view apps for the application link and guidelines. After you get your role, use the command </post:0> in #cmds and fill out the required fields.

Please check our Marketplace Post Rules before posting.

wary sluice
alpine blaze
#

I can do all just dms man

regal temple
#

how do i scale buttons in a UiGridLayout

celest grove
# wary sluice No

Wdym no? If you want to unlock mouse for players who are in first person, you should set Modal of TextButton to the true

#

so mouse unlocks

wary sluice
#

its roblox core gui

celest grove
#

it unlocks your mouse even if it's roblox core gui

wary sluice
#

Which textbutton are you talking about?

#

An invisible one?

celest grove
#

TextButton that you need to create in playergui

#

and size it= Udim2.new(0,0,0,0)

wary sluice
#

yes, well i am aware of how to unlock mouse

#

it's just i couldn't figure out how wil i unlock for avatareditor because i have to lock it again too after prompt closing

wary sluice
celest grove
#
game:GetService("AvatarEditorService"):PromptSetFavorite(GAME_ID, 1, true)

print('turn on modal')

game:GetService("AvatarEditorService").PromptSetFavoriteCompleted:Connect(Result)
  print('turn off modal')
end```
celest grove
wary sluice
#

ye

#

thanks for trying to help

#

appreciate it

celest grove
subtle finch
#

is it possible to make it harder for exploiters to hookfunc

molten jackal
#

ngl i need sum assistance trying to regen this fence after i type in a code if u think u can figure it out dm me

lost pebble
noble sonnet
#

@dense spade press tab bro

dense spade
noble sonnet
#

rip

#

sro no mobil; yet

#

@sullen jay press tab bro

stark parrot
#

yo

#

does this look like its AI generated

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

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local guiOne = playerGui:WaitForChild("one")
local guiTwo = playerGui:WaitForChild("two")

local openButton = guiOne:FindFirstChild("OpenButton", true) 
local closeButton = guiTwo:FindFirstChild("CloseButton", true)

guiOne.Enabled = true
guiTwo.Enabled = false

local function onOpenClicked()
    if guiTwo then
        guiTwo.Enabled = true
    end
end

local function onCloseClicked()
    if guiTwo then
        guiTwo.Enabled = false
    end
end

if openButton and openButton:IsA("GuiButton") then
    openButton.MouseButton1Click:Connect(onOpenClicked)
else
    warn("no button in GUI 'one'.")
end

if closeButton and closeButton:IsA("GuiButton") then
    closeButton.MouseButton1Click:Connect(onCloseClicked)
else
    
    if guiTwo:FindFirstChildOfClass("Frame") then
        local mainFrame = guiTwo:FindFirstChildOfClass("Frame")
        
    end
    warn("no close button in GUI 'two'.")
end
#

my manager usually hires the scripters but hes taking a vacation...

stark parrot
#

too many "scripters" nowadays

vast finch
#

can someone help me fix a simple script for 50 robux

inland dragon
versed arch
vast finch
versed arch
#

people usually use AI mostly because they haven't a clue on what scripting is

stark parrot
stark parrot
inland dragon
#

how so?

stark parrot
#

idk if i knew i wouldnt have asked

#

😭

#

@versed arch whys it ai

versed arch
vast finch
#

Idk why its not being found

stark parrot
stark parrot
inland dragon
vast finch
#

@inland dragon know how to fix it?

inland dragon
vast finch
#

alr

dry sleet
#

Does anyone know to how to extract scripts from a rxbl file and put them into a rojo project?

dry sleet
#

I sort of managed to, but not well

versed arch
#

i know what the function does, but why would it be recursive?

vast finch
inland dragon
#

I understand your point though

versed arch
#

actually

inland dragon
#

Whenever im debugging with firstchild i usually put it as recursive and even if that wasnt the problem, i dont change it if its a high-level script

versed arch
#

why are there functions onOpenClicked and onCloseClicked

#

you can just do guiTwo.Enabled = not guiTwo.Enabled

#

and it doesn't even have to be a function too

inland dragon
#

Yeah but they didnt use the functions either way
It looks like the person who made it didnt send the full code and also thats a big sign its not ai
Ai like chatgpt or claude would not make two functions, they would do the fix that you said

hollow prairie
#

yall why i cant send pics/
?

vast finch
#

@inland dragon do yk whats wrong with the scripts?

inland dragon
vast finch
vast finch
hollow prairie
#

bro i need someone to help me with very simple code

versed arch
inland dragon
#

Or they're just someone who hasnt seen that fix before/is js starting to code

inland dragon
# vast finch <@1372241159375814686>

Its not a fix ill tell u that in a second the fix but the mouse.enter and mouse.leave is very buggy and you should use a third party module instead

hollow prairie
#

yall why when i take my tool its on the ground? its anchored

versed arch
inland dragon
vast finch
vast finch
vast finch
#

bru

inland dragon
#

The code is ai

#

I dont like when people use ai to code

#

Learn yourself it will be much better and efficent

hollow prairie
inland dragon
inland dragon
hollow prairie
inland dragon
#

Rename the configuration

#

To something else

vast finch
#

for like 2 weeks

vast finch
inland dragon
versed arch
inland dragon
vast finch
#

and was a animator

inland dragon
#

Roblox studio may be confusing the handle with the configuration

vast finch
#

scripting is just not my thing

#

I watched vids

#

of tutorials etc

hollow prairie
#

ye it works, thanks guys

vast finch
#

did lua

#

but just wasnt for me

inland dragon
vast finch
#

I did

#

but didnt rlly help

inland dragon
#

While your watching you need to do the same thing in roblox

vast finch
#

I did that

inland dragon
#

Yeah it takes practice

versed arch
inland dragon
#

Its not a instant thing

vast finch
#

Ik

#

I did it for 2 weeks

#

just didnt like it

versed arch
#

learned my scripting from him

inland dragon
#

Like if you wanna get jacked it wont take you a week or two

vast finch
#

I dont got the patience while scripting

versed arch
vast finch
#

rain etc

versed arch
#

ex. a tool that changes color every click

vast finch
#

Also did that

#

its just not my thing

#

but why a module script?

#

@inland dragon

#

what was that again

versed arch
#

what part of it is confusing to you? is it the syntax or just in general the coding aspect of it?

vast finch
#

dont got the patience for it

#

I did gui, building, animating and a little vfx

inland dragon
#

Give me like 3 minutes doing smth btw

versed arch
vast finch
versed arch
#

you have to learn to be patient, then

vast finch
#

@inland dragon alr ill wait in the mean time do I just remove the normal script and put everything in module script?

#

respond when you can

versed arch
#

it was also boring for me, but coding isn't meant to be as stimulating as playing games

#

i've learned it mostly by deducing each aspect of coding

#

for example, what does local do

#

what can variables do, what data types are there and how can i manipulate them

inland dragon
vast finch
#

this one?

versed arch
#

where will i put this variable, what are loops, if statements

vast finch
#

or the gui?

vast finch
versed arch
#

like the code inside of the script

vast finch
#

like the code from the normal script or from local

versed arch
inland dragon
vast finch
#

this is the normal script full

vast finch
inland dragon
vast finch
#

the first one printed the error

#

on line 27

#

is it hard?

versed arch
versed arch
#

right, so, what is the real issue here? is the sound not playing?

mellow lagoon
#

Can you show the error?

vast finch
vast finch
#

I rlly wanna fix this for my game

#

it worked fine before

#

idk why it changed

versed arch
vast finch
#

thats the only one

#

wait

inland dragon
#

change line 8 and put to return workspace:FindFirstChild("RadioPart", true)

vast finch
#

upper thing doesnt matter

#

the door

mellow lagoon
#

Is radio part directly in workspace or is it in a folder or something

vast finch
#

thank you thank you

inland dragon
#

no problem

lofty terrace
#

So bro really is the goat sad_hamster

vast finch
#

smart guy

mellow lagoon
inland dragon
#

Lemme show u smth rq

mellow lagoon
#

Oh ok

vast finch
#

So I got another question

inland dragon
#

Worksapce > Folder1 > Part
Workspace > Part

If u do it without the True, it will only check folder1, but not inside of it
If u do with true it will check inside

vast finch
#

why is the light doing this

inland dragon
vast finch
#

ah

#

not the script?

#

might be because in the script its saying to turn to a certain side I think

mellow lagoon
vast finch
inland dragon
vast finch
#

is it that bad

lofty terrace
versed arch
# vast finch

why is it changing the rotation on the x axis? why are there cframes if its just one part?

inland dragon
lofty terrace
inland dragon
vast finch
#

I find it not very useful

mellow lagoon
#

Same

vast finch
#

so uh anyone knows how to fix the switch

lofty terrace
#

Yesterday decided to learn coding at night for funsies so here we are BONK

versed arch
#

or actually check what axis the part has

vast finch
#

how do I do that

inland dragon
lofty terrace
vast finch
#

when you dont it feels like shit

versed arch
lofty terrace
lofty terrace
#

My main goal really is to learn how to optimize code

mellow lagoon
# vast finch

You could also rotate it in the workspace to where to want it then copy that and just set it to that rotation when it activates

Example:oncframe = (0,0,30)

I don’t actually know if this would work I’m on phone rn so I can’t test

versed arch
vast finch
lofty terrace
mellow lagoon
versed arch
inland dragon
vast finch
lofty terrace
#

if I ever go into something with big ambitions, I burn out before I even get there

versed arch
vast finch
mellow lagoon
#

I made a easy to use system where you just call a function add a few variables and it will show a notification onscreen with formatting and will move up when other notifications get added would this be actually usefull for devs

lofty terrace
#

You feel unaccomplished like 99% of the time instead of being happy with what you did for the day

inland dragon
lofty terrace
lavish sphinx
#

What do you know?

versed arch
vast finch
versed arch
#

ctrl x and paste it in the middle number

lofty terrace
#

ngl popped in just to see who hangs out here

lofty terrace
#

hidden devs doesn’t get great publicity in some places BONK

#

but all I see are helpful and chill people

drifting vault
#

Is anyone able to make a system where when a player joins my game get a base and then make another system where they can place brinrots on one part then a certain amount of money is desplayed on another part and only the owner can collect the cash by walking on the second part and it gets added to there current cash amount?

drifting vault
weak radish
#

who's paying for a system that doesn't work

exotic phoenix
#

If you wanna save your time learn with AI

#

asking questions here is worth it if u wanna interact with others and maybe make some connections

#

but theres better servers

fleet carbon
#

Gong Service 😂

ruby kite
pliant stump
#

Where can I I learn coding ? 🙃

ruby kite
silk dune
silk dune
versed arch
ruby kite
silk dune
ruby kite
#

That's code recommendation lol

#

Neither have I learnt with AI a lot when I first started programming

silk dune
ruby kite
versed arch
ruby kite
#

Same with other AIs, they're not that good in heavy physics dealing -

silk dune
silk dune
drifting vault
silk dune
# ruby kite Wdym

Like have you tried some AI, ask them some questions about programming

ruby kite
drifting vault
#

Is anyone looking to invest in a game?

silk dune
silk dune
ruby kite
silk dune
alpine blaze
#

Any experienced scripter I can ask for something?

ruby kite
alpine blaze
silk dune
ruby kite
silk dune
silk dune
ruby kite
#

It's not an accurate data it could be anywhere but I started around 2019-2020

alpine blaze
#

But close to

ruby kite
alpine blaze
#

Need to decide something

#

Just check dms

silk dune
alpine blaze
versed arch
alpine blaze
#

Check dms

#

It’s not about hiring u

ruby kite
versed arch
ruby kite
#

Requires you like 30+ replies to get a correct answer

versed arch
#

it's why i don't use it to code

ruby kite
#

If you don't have a prompt

ruby kite
silk dune
bleak hornet
#

привет артурр

fringe urchin
#

yall is it ok to try and learn davinci with lua at once?
or like will i js not understand both

shy cipher
fringe urchin
shy cipher
# fringe urchin which one u think is easier or i should learn first?

I checked out da vinci a while ago, looked like I entered iron man's suit or some shit. the interface was not intuitive at all, I had to actively look for stuff that I thought should already be in front of me (and I usually did not find it). I thought it was unnecessarily complex, and I didn't have any fun not gonna lie. but I do have a scripting background, and you feel galaxy brain when you finally start to understand stuff, and that is understandably entertaining. scripting does feel like a journey, and I guess it is more eventful. I'd say you learn lua (and luau if game developer) first

fringe urchin
#

im so bad at scripting that i thought lua and luau r the same thing lol

shy cipher
#

that's usual, I was about to give up at parameters. it's just standard procedure to me dees days

fringe urchin
#

how do i learn luau?
like what tutorial
someone gave me one but he said he didnt try it out and i got bored from the first video tbf

shy cipher
#

yeah roblox scripting videos are really boring and your attention falls off quick, you should focus more on material that has you actively doing the scripting, not watching someone else do it

#

that leads to something called tutorial hell, when you can't make your own systems but only what you see on youtube

fringe urchin
#

i found a python interactive course i kinda liked it but i dont think there is anything similair for roblox

#

it gives u a lesson and u do the rest

shy cipher
#

boot.dev?

fringe urchin
#

idk i dont think so

#

lemme check the name rq

#

can i send links here?

shy cipher
#

probably not

fringe urchin
#

its called programming 25 mooc or smthn like that

shy cipher
#

hold on my message got moderated for some reason

#

I'll resend it with better wording I guesss

fringe urchin
#

ok

shy cipher
#

I honestly don't even know what's wrong with it ngl

fringe urchin
#

lol i mean u can send it in dms or in a screenshot maybe

shy cipher
#

oh right screenshot

#

it's not violating any rules so it should be OK

fringe urchin
#

hopefully lol

shy cipher
#

this is what I meant to say

fringe urchin
#

whyd this get moderated lol

shy cipher
#

not one clue

earnest bridge
#

Too much truth

fringe urchin
#

hmm but what good resources r there?

shy cipher
#

it's kind of a badlands gonna be honest

fringe urchin
#

whats the resource u used?

pure nebula
orchid arch
#

h

pure nebula
shy cipher
# fringe urchin whats the resource u used?

you can find genuinely helpful resources on devforum, they can explain a lot of "niche" stuff, but sometimes not fully. now this might sound counterproductive, but AI is a good tool for learning, I'm not saying you should use it for vibe coding. big emphasis on learning. it's a bit challenging to find some answers for more personal or detailed questions, I remember being stuck trying to figure out how to get the direction between two vectors. I knew that there had to be a subtraction operation, but I didn't really know the order because no one taught me that. AI helped me there, and it also taught me stuff that I would have really needed to search (like how the datamodel works on a detailed level). I learned my "basic" scripting from youtube, which was pretty insufferable. I could only do what they taught me, not what I wanted to do. I didn't know stuff that should be considered basic knowledge, like knowing that strings are immutable. I learned the more complex stuff from reading books on programming (well I've only ever read 1 in-depth), used devforum and AI for the more set-in-roblox stuff

fringe urchin
#

what youtuber did u learn from

#

cuzz devforums r for like more specific stuff i think

elfin timber
fringe urchin
#

hes the guy i got bored from from the first vid lol

#

his objectives seem like idk dumb or very easy

pure nebula
wooden harbor
fringe urchin
#

idk i have a problem with docs i cant learn from them i need a course or someone to direct me and shi

wooden harbor
#

Documentation are not tutorials. They are reference material

pure nebula
pure nebula
wooden harbor
shy cipher
# fringe urchin what youtuber did u learn from

started off with devking, found his tutorials hard to follow. initially thought the problem was with me for not being able to understandw what he said, he had me completely lost with his "remote events" video where everything just looked like magic because I wanted to know why it worked and not that it "just worked". then I gave up for a few months, tried again but this time I watched brawldev. had a better run with him, his videos are "detailed". but not quite. they're very long and require a decent amount of attention, brawldev usually doesn't give enough or just doesn't give anything for you to do after you watch his videos too. I think they're dragged on a lot, they're too long. could easily be 1/4th of the length considering they're not very information dense anyway. I got more burned out watching videos than actually scripting, which is a bad thing. I still think reading is better (which includes using AI to explain stuff, devforum, books, random blogs, etc)

sinful badge
pure nebula
fringe urchin
wooden harbor
fringe urchin
#

uh everyone recommends him tho

pure nebula
fringe urchin
#

idk maybe the first vid is js that boring

wooden harbor
pure nebula
sinful badge
#

you really just have to learn the fundamentals and then its a neverending loop of trying stuff out, getting stuck, and then finding the solution

wooden harbor
shy cipher
# fringe urchin idk maybe the first vid is js that boring

everyone has a bit of bias. I'm standing strong with just reading. youtube is good, but it shouldn't be your main source of knowledge as most knowledge there is just surface-level (superficial) that most textual sources get more in-depth into. but learning programming isn't all about learning the language, it's also learning some hardware level concepts and definitions of stuff (like the singleton design in OOP). I think youtube videos are best at that, text references are hard to follow in that category unless you already have a solid programming background (which you don't). I'd recommend youtubers like fireship in this case

pure nebula
#

We're talking about learning Luau.

wooden harbor
pure nebula
shy cipher
#

I mean that's technically true

wooden harbor
fringe urchin
pure nebula
fringe urchin
#

i usually quit after i finish the tutorials for some reason lol

wooden harbor
lavish plinth
#

idk whats going on tho

shy cipher
# fringe urchin btw i watched brawldev beginners playlist like a few months ago but i wasnt sure...

those videos do cover the topics but don't give you any sort of task to cement the knowledge. the best way is to make what you want to make (while also being realistic with it). if you're not having any sort of fun while doing it, you're gonna be stuck in the water for a long, long time. personally, the way I got out of this was to challenge myself to make an admin system (I liked admin games back in 2017, back when admin abuse was still up). and I did enjoy it, had fun with friends using the system even if the code was insanely spaghetti and not maintainable

fringe urchin
lavish plinth
#

i went from youtube > devforum/roblox docs > actual programming techniques/theories

versed arch
pure nebula
pure nebula
lavish plinth
#

sorry for rage baiting

radiant cargo
#

whats a good way to make a grab system for 2 players so it doesnt have networking issues

pure nebula
fringe urchin
wooden harbor
#

once you know what you're doing everything is easy.

pure nebula
lavish plinth
#

i still look at the docs

#

and devforum

lost gulch
#

Yeah

lavish plinth
#

i looked at a lot of open resourced modules

shy cipher
# fringe urchin i mean im learning coding because im very bored i have a game idea but im pretty...

don't try commission scripting early, and even if it feels like you're ready, don't take your word for it. I tried it. I regret it, I felt so burned out. stuff that looks straightforward ends up being a gap in your learning that you didn't really learn, and your starting commissions probably aren't paying good either. think about what you can put together with your knowledge, and make it if you think it's genuinely cool. most luau knowledge can carry over to lua, and I for the first time used it to make a calculator for my favourite game project lazarus so I can make an optimal strategy (with counters for stuff like "one-shot till round x"). this is the best way to learn coding, bored or not

lost gulch
#

and you experiment in studio for hours

lavish plinth
#

that helped me learn a lot

versed arch
#

Syntax is the program's rules, what one really needs to learn is basic stuff about programming in general, such as if statements, loops, variables and data types

lost gulch
#

You look at the devforms then you experiment in studio

#

That’s how you learn man

wooden harbor
lost gulch
#

You gotta execute in order to learn

fringe urchin
pure nebula
rich token
rich token
#

Crypto creates a mess with taxes

versed arch
wooden harbor
shy cipher
rich token
fringe urchin
#

robux?
i feel like paypal would be better cuz what r ppl supposed to do with robux

lavish plinth
wooden harbor
rich token
lavish plinth
#

i can devex my robux but i don't know if the person i pay can devex it since they would have just joined the group for a commission

fringe urchin
wooden harbor
rich token
#

which creates a lot of problems

wooden harbor
shy cipher
# fringe urchin would learning luau like idk help me with learning python? cuz i got college in ...

lua and python are pretty similar in syntax, with some differences here and there (like how indents are an active part of code blocks, which is not the case in lua). the similarities you'll see are stuff like while loops and for loops (which functionally are virtually the same in both languages). and having a coding background anywhere definitely has an impact on learning other languages, especially if both languages in question are multi-paradigm (which basically means they're likely to be similar in the "flow", which makes learning the other language much faster because it feels "familiar"). learning luau does help with python, both languages have the same concepts executed with nuances and differences. and learning python helps with learning luau (to some extent)

rich token
#

to the banks

fringe urchin
wooden harbor
rich token
rich token
wooden harbor
lost gulch
shy cipher
# fringe urchin cool cool ig ill watch the second video hopefully it gets better thanks for ur h...

no problem, you can ask me if you have any problems with luau (my python language is very basic, just enough for me to talk about it). also I should tell you that lua/luau and python are multi-paradigm, but that shouldn't let you confuse some concepts. like when I was first learning basics of C, I didn't know why arrays and sets and whatever were not just called "tables" like in lua. then I learned that lua simplified those datatypes into one called a table. try to fact check stuff

lost gulch
#

Don’t watch videos that’s 2 hours long and then call it a day that’s called tutorial he’ll

rich token
#

Paypal is horrible for recieving payments sometimes they put your money on "Hold" for 90+ days one guy got 20k usd frozen in his paypal account and then his account was deleted lmao

lost gulch
#

You gotta take action and experiment stuff in studio

rich token
#

never heard of it

rich token
lost gulch
#

Yes

#

It’s currently the best atm

lost gulch
rich token
wooden harbor
shy cipher
rich token
#

thanks

lost gulch
#

What country are you in tho don’t say that about your country dude

#

people love there country

weak radish
lost gulch
#

I’m just a normal guy man

fringe urchin
rich token
wooden harbor
shy cipher
fringe urchin
wooden harbor
rich token
#

im from india

shy cipher
lost gulch
# fringe urchin thanks thanks

Right now just do some stuff in studio and watch little bit videos on scopes, variables, for loops, while loops, tables, metatables etc etc etc

#

and functions

#

I forgot about that

wooden harbor
rich token
wooden harbor
fringe urchin
lost gulch
wooden harbor
surreal oriole
#

Can somebody please explain to me how I can setup visual studio with roblox studio. and use claude or codex on top of that. Are there recommended tools? Should I use rojo for visual studio code integration?

fringe urchin
rich token
rich token
lost gulch
#

you gotta work harder and smarter

surreal oriole
wooden harbor
lost gulch
#

Best advice I could give you

fringe urchin
lost gulch
wooden harbor
lost gulch
#

that’s where there is no disturbing stuff in the background

#

Your Brain is sharp and focused at those peaceful mornings

surreal oriole
lost gulch
#

Learn and work from 5 am all the way to your preference best thing you can do end work at 12 or 2-3 pm

shy cipher
# fringe urchin u think claude is a good source? alot of ppl hate on ai but when i tried learnin...

AI is generally ruining the world but it is beneficial for programmers if they're using it to learn. it has basically gone through every single stack overflow post, and every mainstream programming book. it knows virtually all concepts that aren't fairly new. however, its efficiency at using that knowledge to make stuff is still not very good (for example chatgpt has a tendency to overcomplicate stuff that could be very simple into a spaghetti monster, which puts its place as a doodoo programmer but as socrates in programming knowledge). leverage this ability of the AI to your own advantage, use it as a teacher, which is quite effective if you prompt it right (so it's not jus stating facts but teaching it).

#

haven't tried claude though I've always used sir gpt

lost gulch
#

Claude is really good

#

Better than gpt

surreal oriole
# wooden harbor yes

Ok thank you, and then I should be able to integrate the codex/claude mcp server with the vscode? Or should I integrate it directly into studio? I saw there is a new feature

icy heron
#

not reallt a issue depending on scope but eh

rich token
#

and for roblox comissions u dont get receipt or any proof

#

how will u prove it

shy cipher
icy heron
versed arch
shy cipher
surreal oriole
lost gulch
fringe urchin
versed arch
shy cipher
icy heron
fringe urchin
lost gulch
icy heron
shy cipher
shy cipher
fringe urchin
#

it has

icy heron
terse temple
#

how much of an AI user are you

shy cipher
#

ok AMERICAN taxpayer dollars going into it

terse temple
#

to tell if an AI can degrade or not

#

in quality

shy cipher
#

there for the gentleman I corrected myself

fringe urchin
#

i use it from time to time

icy heron
icy heron
rich token
icy heron
#

I am of the utmost gratitude

fringe urchin
#

every week or so
when im too lazy to search

terse temple
fringe urchin
#

everyone should start vibecoding and stop coding ngl

versed arch
icy heron
shy cipher
wooden harbor
icy heron
#

it's quite good at that

fringe urchin
#

he literally couldnt answer a simple question

shy cipher
wooden harbor
shy cipher
icy heron
#

like vro

shy cipher
fringe urchin
#

i wasted like 10 liters or smth explaining it to him

lost gulch
#

I guess lol

wooden harbor
icy heron
shy cipher
fringe urchin
#

homeless ppl r the best i always ask them for financial advice

icy heron
wooden harbor
shy cipher
#

only thing I would say its good at is objective stuff that doesn't change like programming knowledge (the subjective part would be how you apply it I reckon, which gpt does horribly as usual)

icy heron
waxen edge
#

does anybody know how you can implement comments to get accepted as a luau programmer

shy cipher
#

we didn't even ask for a source but now I'll believe you

wooden harbor
#

Yes you must be talking about BS Benchmark.

waxen edge
icy heron
#

Holy fucking shit thank you

icy heron
grim rampart
#

extra extra read all about it

shy cipher
icy heron
#

boom ez

waxen edge
shy cipher
#

try something like that

shy cipher
#

some people cover their headings with hashtags which takes a bit more work

lucid hare
#

comments are stupid

light fable
shy cipher
lucid hare
#

it shouldve been written smart in the first place

shy cipher
#

100000ms latency gaming

light fable
lost gulch
#

Interesting stuff you got there bro

#

That’s fire

light fable
rich token
light fable
rich token
#

u did gun model too or just script?

light fable
rich token
#

dam

shy cipher
# light fable ye

you got skill hope you safe and nothing suddenly happens to this bright mind

rich token
#

nice

lost gulch
#

solo dev

#

Bro is cooking

shy cipher
#

and he made the kitchen too

light fable
rich token
#

so when are u releasing it

light fable
light fable
rich token
#

can u send link

light fable
lost gulch
light fable
lost gulch
#

camera manipulation is goated at most times as well

rich token
#

oh

light fable
#

ooops wrong channel

lost gulch
#

It’s ok

light fable
#

older engine

shy cipher
#

hello ubisoft??

waxen edge
#

Yo yall heard about janitor the open source module

lost gulch
#

I still gotta learn how Cframes really work. Since Cframe.Angels() involves trigonometry

shy cipher
wooden harbor
light fable
shy cipher
wooden harbor
shy cipher
#

thas what I was thinking

#

not gonna lie

wooden harbor
#

its 1x3 matrix in 4th column

#

4th row is identity

shy cipher
#

all brawldev told me was that it's some sorta frame and learning vector math left me with a very vague idea of how it applies to cframes

#

I'll look into it tomorrow

#

literally 2:30 AM why aren't you asleep yet

#

I'm gonna dip

dusky relic
vestal pumice
dusky relic
#

Who needs help with CFrames?

#

I can point you in the right direction

shy cipher
wooden harbor
dusky relic
#

CFrames are horrible from a math perspective

shy cipher
#

yeah I meant to say that rotation has the 3x3 thing and position has another one of those "group of 3 numbers" which I could only describe as 1x1 😢

dusky relic
#

Like dogshit, not hard

#

They should have just used quaternions

shy cipher
vestal pumice
#

Accident mb guys

dusky relic
#

They're the best

shy cipher
#

well they do avoid gimbal lock and weird interpolation but I'm not gifted enough to really understand why they work

#

it's just magic number system for me rn

wooden harbor
dusky relic
dusky relic
shy cipher
#

I generally don't understand many of the concepts the guides bring up, I'm fresh into high school man 💔

dusky relic
#

@shy cipher do you understand 3D angular velocity works?

shy cipher
#

only know how it looks when you apply it

dusky relic
#

Like how it's represented in it's vector form

shy cipher
#

its for circular spinny stuff

#

yeah only the roblox scripting part of it

#

I made a sorta car once

wooden harbor
shy cipher
#

I'm on the same boat

#

also I should be asleep right now

dusky relic
#

@shy cipher I'll explain it to you with a pen and rotate explanation. The unit vector of it points in a certain direction, and then based on the magnitude of the vector it dictates how fast it spins. So imagine "poking" the pen and then keeping it pointed in that direction and rotating around it

shy cipher
#

ain't the magnitude always 1 if its a unit vector

dusky relic
shy cipher
wooden harbor
# dusky relic They should have just used quaternions

For your dmas, you get direct access to basis vectors with CFrame which is far better than having to compute it. Transformation becomes simple matrix multiplication instead of complex equations with inversion. Third they are used to represent rotation only

dusky relic
wooden harbor
dusky relic
dusky relic
shy cipher
#

buh a unit vector preserves the direction by dividing the "original" vector by the magnitude which makes its magnitude after the normalisation operation equal to 1, which like I can guess why you'd need the direction, wouldn't the speed be constant at 1 every time why are we using unit vectors

cyan lantern
#

i still suck at raycasting

shy cipher
#

be quick vro I need to go sleepy 😔

elfin timber
#

My cortisol is trough the roof because i cant fix a simple bug and now im going to sleep. I bet when i wake up tmrw and look into it ill find it

#

So frustrating

dusky relic
wooden harbor
shy cipher
hearty lion
dusky relic
shy cipher
#

no offense

dusky relic
wooden harbor
wooden harbor
#

You must be around 14 yr old max

dusky relic
#

20 sadly sad_hamster

shy cipher
wooden harbor
dusky relic
shy cipher
#

the angular velocity is also a vector I forgor

dusky relic
#

Yes it is

#

It's represented as a 3D vector

shy cipher
#

so you use the normalised angular velocity vector for direction and the magnitude of the "original" vector for speed?

dusky relic
#

Yes

shy cipher
#

it's technically another velocity right because velocity is speed + direction

#

I've seen it as speed * direction in scripts thoough

shy cipher
#

we computed another velocity value right

dusky relic
#

We calculated the magnitude, which represents how many radians per second it'll rotate

#

If the magnitude of the vector is 10, it'll rotate 10 radians per second

shy cipher
#

don't see the correlation between magnitude (straight line) and a radian (180*pi/ some number I don't remember) which should be able to lie on a circumference

dusky relic
#

So basically

#

We have axis_of_rotation*radians_per_second = angular velocity

shy cipher
#

won't that give you the speed instead of the velocity? that should give you one whole number, not a full vector with a direction and magnitude

dusky relic
#

@shy cipher I think you'll understand exactly what I mean if you implement your own angular velocity

shy cipher
#

I'm drowning

dusky relic
#

How much time do you have right now, if you have enough I can help you implement it

dusky relic
shy cipher
#

I should be going now, dragged this on for too long. can I ping you later?

dusky relic
#

Dm me

shy cipher
#

a schedule exists

wooden harbor
dusky relic
shy cipher
# dusky relic Dm me

my account's on limited access till 15th march because it thinks I'm a bot (I have proton vpn which randomly connects to a random country in the background whenever I have wifi), so it'd best be on an alt too which is just more time taken

shy cipher
dusky relic
#

That's fine

#

private-2a

shy cipher
shy cipher
silent wasp
#

Guys what could I make that would be good enough for me to get luau programmer role

night hemlock
olive steeple
#

anyone have an idea of like how to make a npc glow circle like a cirle on the ground that glows and surrounds and npc

void tusk
#

pretty sure Model:MoveTo uses BulkMoveTo though

#

the difference will be miniscule

hearty lion
#

no i'm pretty sure they're completely different

lost gulch
#

Is having a module loader in your game very good to have?

wooden harbor
#

Modules are executed once anyway

lost gulch
#

I’m seeking knowledge from someone that already knows module loader

tough belfry
lost gulch
#

so don’t reply if you don’t know what it is

lost gulch
#

And you to

#

❤️

#

@light fable check DMs rq

weary socket
# lost gulch Is having a module loader in your game very good to have?

I actually like them alot, I think the #1 benefit is you can like, control which module initializes first. And every module has functions that you can use from other modules, which lets you build your game in a more structured way, so i would recommend anyone to atleast make their own module loader

#

But on my first point u can definately do that with just a normal muti script setup so idk 😛

#

if you like adding Service to every lua file to look cool, then you def gotta use a module loader

#

You cant be hanging out with the weird multi script architecture kids, right

lost gulch
#

thanks

steady wren
#

guys as a beginner scripter is it ok to rely a lot on tutorials to do certain scripts?

wooden harbor
steady wren
weary socket
wise turtle
#

i don't see a world where a module loader is good

lost gulch
steady wren
static sage
#

like it comes naturally

lost gulch
static sage
#

if youre able to pick up on stuff

lost gulch
steady wren
#

i just use gpt to help me with some logical struggles

static sage
#

it took me like a year to learn most stuff

lost gulch
#

and then after u understand whats going on

#

make another task to make another one on ur own

steady wren
lost gulch
#

it has to be different from the previous

wooden harbor
#

instead of spamming require for each module

static sage
lost gulch
#

yeah

weary socket
lost gulch
#

module loaders are a life changer for organizing code etc

steady wren
wise turtle
lost gulch
#

you have the same principle in the game

wise turtle
#

also most module loaders do not cache the module its simply the load the modules and provide a single entry point

wise turtle
#

auto importing the module itself is faster than auto importing the loader and then getting a module

#

from a dev exp standpoint

wooden harbor
weary socket
#

nah dont use some random dudes' module loader, the only thing giving you organization benefits is just modules in general, i think its good to transition from just "Scripts + bindable events" to "Scripts with modules where each module can be built on top of other modules", thats all

wise turtle
#

you can get deterministic init order without a module loader