#code-discussion

1 messages Β· Page 308 of 1

void tusk
#

just be careful not to overdo it

#

every time you move code out of a function, you are purposefully redirecting your code somewhere else

#

if its used more than once its completely warranted

#

but if its only used once, it could be unnecessary

lethal yoke
#

wouldnt it be more convenient if i use comments?

void tusk
#

you could

#

sometimes comments can be untrustworthy tho

#

just caution on it

#

(example would be changing a piece of code, without changing the comment for it)

lethal yoke
#
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local shazam = "shazam!"
local Tool1 = "Fly"

local function giveTool(player)
    local tool = ReplicatedStorage:FindFirstChild(Tool1)
    if tool then
        local cloned = tool:Clone()
        cloned.Parent = player.Backpack
    end
end

local function spawnLightning(root)
    local bolt = ReplicatedStorage:FindFirstChild("Lightning4")
    if not bolt then return end

    local cloned = bolt:Clone()
    cloned.Parent = workspace
    cloned:PivotTo(root.CFrame)

    local sound = Instance.new("Sound")
    sound.SoundId = "rbxassetid://821439273"
    sound.Volume = 1
    sound.Parent = root
    sound:Play()

    task.delay(3, function()
        if sound then
            sound:Destroy()
        end
    end)

    task.delay(2, function()
        if cloned then
            for i = 0, 1, 0.1 do
                for _, obj in ipairs(cloned:GetDescendants()) do
                    if obj:IsA("BasePart") then
                        obj.Transparency = i
                    end
                end
                task.wait(0.05)
            end

            cloned:Destroy()
        end
    end)
end

Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(message)

        if string.lower(message) == string.lower(shazam) then

            local character = player.Character
            local root = character and character:FindFirstChild("HumanoidRootPart")
            if not root then return end

            spawnLightning(root)

            local findTool = player.Backpack:FindFirstChild("Fly")
            if findTool then
                findTool:Destroy()
            else
                giveTool(player)
            end

        end
    end)
end)```
#

i hope this is what you meant by making the effect its own functiojn

upper jay
#

just a point of maintanability, you should utilize dictionaries with commands as indices and functions as their values, so instead of the long lines you can just do

local commandFunctions = {
        ["shazam!"] = function() 
                -- insert code
        end;
} 

-- then inside ur code just do

local command = commandFunctions[string. lower(message)]

if command then
        command()
end
lethal yoke
#

so basically js making the code for shazam its own table

upper jay
lethal yoke
#

interesting thank you ill use this now and in the future that way i dont waste time 😭

#

the easy part is don now i js gotta make my own fly tool, animations i might make it clint sided and organize

steep nebula
#

whats the best website to learn roblox code and LEARN the code

cyan lantern
#

yeah i knew yall will fucking ignore

faint plume
#

What do ya think is the best way to design code

quaint tapir
quaint tapir
quaint tapir
paper dawn
#

are animation markers reliable?

midnight geode
lost pebble
# faint plume What do ya think is the best way to design code

there's not a "best" way. but there are general principles in the form of acronyms you should follow:

  • DRY - Don't Repeat Yourself
  • KISS - Keep It Stupid Simple
  • YAGNI - You ain't gonna need it
    • basically dont make something in advance to just end up not using it. only make it until you actually need it
      there's a ton of acronyms like this that you could search up
midnight geode
#

wtf

#

ppl acctually do this?

lost pebble
upper jay
hazy imp
#

o

#

helo

upper jay
final prawn
#

sup sigmas

upper jay
upper jay
final skiff
faint plume
upper jay
#

in programming, you should strive for readable code and, as much as possible, straightforward solutions

#

prioritize developer experience (implies readable code) over performance

exception of hot loops, or code that you expect to run every frame and can be expensive. in these scenarios where performance matters, its fine to sacrifice readability

iron kraken
haughty sapphire
cursive crown
#

Is there multiple ways of making separate characters like a battle grounds game?

ashen forum
#

Is there a way to make sure no player can "No Stun" through my combat system? Or is there a way to prevent players from no stunning and make players unable to bypass it?

cursive crown
ashen forum
cursive crown
lost pebble
shy cipher
# ashen forum Is there a way to make sure no player can "No Stun" through my combat system? Or...

you can make the exploiter powerless by setting their character's network ownership to the server, but that adds tons of latency and ruins the experience of everyone else. what you should do is let them keep the network ownership. this way, they can change their speed and whatnot. but since these changes replicate to the server, you can write basic anticheat to listen for these changes and kick the exploiter since a normal player should not be able to no stun or change their speed. other changes like them instantiating parts do not replicate to the server and usually don't provide a gameplay advantage

rotund pawn
#

People with scripter role, what was your application project? Im uncreative asf and just thinking about script, that has more than 200 lines while showing that many required stuff...
And as "merging modules to one script" is not allowed, I have no idea what to create for that πŸ˜„

thorny bay
#

Optimization (just skim through the code and see if it needs to be changed)
Attachment/loadout UI (like phantom forces and mecs)
Add a few guns (most likely 2 max might change later not sure)
(we might ask you to do other things in the future surrounding the gun system which we will pay you to something we agree on)

What should I charge for this

thick ether
#

..that's weirdly useful, thank you

spring glade
#

alt + d

gaunt gull
#

is it better to learn scripting then make a game,or learn scripting while making a game

midnight summit
#

Like little minigames and shit

gaunt gull
#

aha

novel parrot
#

Stupider is better

odd pier
#

Could someone tell me were I could read more indepthy about the game "REPO"'s NPC AI system? Or any good articles about advanced video game AI NPCs, preferably with vision.

tidal heron
odd pier
#

Did they ever share that?

#

Has someone reverse engineered it to figure it out, or something?

abstract urchin
novel cloak
odd pier
rotund pawn
#

Agree on raycast, easiest way

abstract urchin
#

so I'd guess they probably use some sort of FSM

odd pier
novel cloak
#

AOE is more of just an analogy I used to make it understandable

#

you could run a detection loop on the server

odd pier
#

No, wait I mean is that how you would use AOE detection for npc vision

novel cloak
#

i.e. the npc runs a loop where they detect players within 100 studs, then if a player is inside of that they raycast to detect if they can actually see the player

ashen forum
#

I have a script to ragdoll characters, the problem is that after the ragdoll is over, sometimes it paralyzes the character while it's sort of ragdolled but paralyzed, for maximum 2 seconds then it stops, doesn't happen always though, how do I fix that and prevent it from being paralyzed right after ragdoll?

novel cloak
#

doing a getpartboundsinbox sort of approach may work but I don't know how optimal that is

odd pier
abstract urchin
abstract urchin
broken grove
#

ive heard someone say dot product or cross product or something but idk the math to check cone of vision with it

odd pier
#

Maybe, I could check if in range, then check if they are in the cone, and then finally raycast

novel cloak
novel cloak
#

with ai detection just be careful because they can get unoptimized very quickly if you're not careful with it

#

but implementation wise it's pretty easy

odd pier
slow herald
#

Ai detection is pretty easy

#

Interacting w them too what kind of ai is it?

novel cloak
#

unless a framework is very very popular people won't generally know much on it

slow herald
#

I’ve created AI

#

well not fully AI

#

not the ones Machine Learns

#

But I will implement using DeepLearn

slow herald
#

watch the state listens through a function that you attach with

#

Or even better just use Signal to listen to it

odd pier
tidal heron
dusky relic
novel cloak
#

for example the profilestore data module

#

it can apply also just to rules someone follows, like NIST's security practices for businesses to follow

#

it's not very rigidly defined

dusky relic
tidal heron
novel cloak
#

like family trees

#

if you've seen those

tidal heron
#

ah

ashen forum
#

I need help with ragdoll paralysis issue.

I have a script to ragdoll characters, the problem is that after the ragdoll is over, sometimes it paralyzes the character while it's sort of ragdolled but paralyzed, for maximum 2 seconds then it stops, doesn't happen always though, how do I fix that and prevent it from being paralyzed right after ragdoll?

odd pier
odd pier
# tidal heron and what is a tree framework then?

It's just like a tree thb.
So there are different points called "nodes" and these nodes are bits of code.
At the beginning, the top node runs first, this node then has children. The result of the code determines what child runs next. And so on

#

That's about it

#

And also, each node has a fail result, and when this is returned it restarts

#

and goes back to the top

#

to restart the tree

odd pier
#

I'm think I should maybe use GOAP or the Behaviour Tree framework

#

Maybe GOAP is unnecessary for my purposes, I just think it would be cool to try

rotund pawn
#

For simple AI, when is it better to use tree fw over state controller?

near sonnet
#

yo guys one question how do i let a non normal character display an animation when: running, idle, walking

odd pier
rotund pawn
#

Yeah, however you call it πŸ˜„

tidal heron
near sonnet
rotund pawn
#

You have to publish the animation to get ID

near sonnet
#

lemme try

odd pier
# rotund pawn Yeah, however you call it πŸ˜„

Well, its depends on how many, and complex, the actions you want your AI to do.
If, for instance, you were making a simple zombie AI that only checked if the player was in range then chases and then, if in attacking range, damages the player. then you would use a Finite State Machine.
However, because you have to check the state each action (like if the player is in chase and attacking range, and if chasing), you can imagine that this would get impractical for larger and more complex AIs. So that is when you would switch to Behaviour Trees, or something else.

rotund pawn
#

Okay thx for great explanation.

dusky relic
odd pier
# dusky relic DFA!

Isn't that just the formal name for Finite State Machines? in the context of game development of course.

dusky relic
odd pier
#

I dont know much about that so idk, please inform me!

dusky relic
#

Since State Machine already implies that there a limited number of states.

odd pier
#

Oh, wait, yea, it does

dusky relic
#

Putting "Finite" infront of it is, trying to sound fancy when you don't know the correct terms

odd pier
#

More than Finite State Machine at least

dusky relic
odd pier
rotund pawn
#

Some kids new term

dusky relic
odd pier
#

Google doesnt even know

dusky relic
rotund pawn
#

Live action roleplay, wtf

dusky relic
rotund pawn
#

Okay so if I say I have Porsche am larping (as rich guy) ?

odd pier
dusky relic
#

Pretty sure if you have infinite states it contradicts something.

#

But yeah, by definiton all state machines are finite.

rotund pawn
#

Humans are definition of infinite state machine

dusky relic
dusky relic
#

If you believe souls exist

#

then yes

#

if you don't then no

#

You should be able to create an automaton that can replicate a brain

grim atlas
#

just made my first code

rotund pawn
#

Oh yeah, true. Didn't think about it that much

odd pier
rotund pawn
#

IT philosophy 10/10

dusky relic
#

You can say that, but you can't prove it

odd pier
#

It would "halt" after the calculation, which is correct

dusky relic
#

The halting problem is a fundamental, unsolvable problem in computer science, proven by Alan Turing in 1936. It asks whether a general algorithm can exist that determines if any given program will eventually halt (stop) or run forever (loop) on a specific input. Turing proved that such a universal algorithm is impossible.

odd pier
dusky relic
#

no,

#

for it to have infinite states, it would require infinte time

#

which isn't possible..

dusky relic
#

yes

#

it would

odd pier
rotund pawn
#

Computers can't even create truly random number, defining infinite is impossible, so it doesn't exist

dusky relic
#

That's how infinity works

odd pier
#

Do you know what they mean by "states"?

dusky relic
#

Yes if you're creating a state, the act of creation is still something that must happen

#

and to have infinite of them

#

it'll take infinte steps

#

aka infite time

odd pier
dusky relic
#

And if you disagree with me, you can go write a thesis and become world renowned 😭

dusky relic
#

Going into meta-physics fr

rotund pawn
#

In simple definition I would say A number that is chosen based on multiple selected factors.

dusky relic
rotund pawn
#

Yeah true random doesn't exist

dusky relic
#

Ngl, randomness is just a lack of information

odd pier
rotund pawn
#

We had to implement primitive random generator High school, it was fun

odd pier
#

And the definition they use is limited

#

That's it lol

#

They mean the there are a limited amount of states

#

If it was not "finite"

#

Aka, infinite, they would have an unlimited amount of states

#

or without bounds

#

So it just means that it has defined number of states

rotund pawn
#

So technically speaking, creating state machine with AI that can determine unknown state and create new behavior state based on environment would be boundless state machine.

odd pier
dusky relic
#

Please do more research

odd pier
dusky relic
#

It has an "infintely long tape"

#

but not infinte states

#

You can use the tape to make as the states of another one

#

but for it to have infinite states

#

that'll will require infinte steps

#

aka infinte time

dusky relic
odd pier
dusky relic
#

Exactly

#

That's why there's no infinte state machines

#

it's nonsensical

odd pier
rotund pawn
dusky relic
dusky relic
#

infinite nothingness is just nothing

odd pier
dusky relic
odd pier
#

here are some more definitions to be consistent:

"Existing beyond or being greater than any arbitrarily large value. "
"Immeasurably great or large; boundless. "

odd pier
dusky relic
#

Actually

#

Wait

#

Let T be a turing machine with the largest amount of states denoted by M:
Create a new turing machine with M+1 states, but M+1 > M thus there is no turing machine with the largest amount of states

odd pier
dusky relic
#

and by definition a turing machine has finite states

#

So no, there are no infinite state machines

odd pier
#

Wait what

#

No

warped geyser
#

Yall i am making a jujtsu kaisen rpg game

dusky relic
#

Yes

warped geyser
#

I need help

#

For percentage

#

Anyone?

#

Its called exorcist era

odd pier
warped geyser
#

And it will be long term

dusky relic
odd pier
dusky relic
#

you don't understand mathematical logic

#

Are you trying to say that the field of computer science has been wrong for the last 100 years?

#

Or that the greeks didn't know what they were talking about when they formalized logic

#

At some point you need to accept that you're wrong.

#

If you disagree with this I promise you if you can build a logical argument and publish it you'd be world renowned since that will change basically everything

odd pier
dusky relic
iron kraken
#

joijoij

regal creek
#

wait() >>>>>>>>>>>>>> task.wait()

ember nimbus
ember nimbus
#

both of you are right you are just miscommunicating

odd pier
ember nimbus
odd pier
#

And more further back, does saying something is a machine imply whether it has finite states or not

ember nimbus
#

and by exist do we mean exist mathematically or in reality

odd pier
ember nimbus
# odd pier By state I mean condition/the main definition. As for exist, I mean mathematical...

In theoretical computer science, a transition system is a state machine that may have infinite states. It is used to describe the potential behavior of discrete systems. It consists of states and transitions between states, which may be labeled with labels chosen from a set; the same label may appear on more than one transition. If the label se...

#

like a simple example of what could pass as that is an infinite graph and you use the edges as the transition function

onyx swallow
#

Yes im ass at coding hi

iron kraken
odd pier
onyx swallow
odd pier
ember nimbus
#

pretty much it

iron kraken
ember nimbus
#

if you know graph theory it is basically just a graph but you interpret it slightly differently

ember nimbus
#

this doesn't need proof

#

nothing there needs proof

#

it is just a definition

#

even if infinite state machines weren't defined in the literature there is no reason you couldn't just define it

odd pier
ember nimbus
#

yes

odd pier
# ember nimbus yes

I think the main problem was that the other guy was saying that you would have to define each state which would take an infinite amount of time. But by definition if you were to, it would then become finite.

#

But you dont have to define each state of a machine for it to exist

ember nimbus
#

most things can be described with a rule

#

i can define an infinite set in a sentence it doesn't matter that i can't actually write it all down

#

even on a computer you can define an infinite state machine by not enumerating all states till you need them (supposing you have a computable rule that defines them)

quaint tapir
odd pier
#

Should I use BehaviorTrees3 for, well, as my Behaviour Tree framework, or should I attempt to create my own?

tropic scaffold
#

Can anyone here help me with the favorite game prompt? Did roblox scrap it?

uncut marlin
#

What's the difference between an apple and a pear? One's red and one isnt

earnest marsh
#

.

thorn scroll
#

how much would i cost to code something like epic minigames appx

thorn scroll
#

@ember nimbus how much would it usually cost to code something like epic minigames but like 4-5 games

iron kraken
#

1.5k usd

thorn scroll
#

only 4-5 games

tender shuttle
#

My budget for my game is $10k

thorn scroll
#

woah

#

but do tell me

#

appx

#

like tht knockout game but like 5-6 of those

iron kraken
#

my budget for my game is 0

thorn scroll
#

games

thorn scroll
iron kraken
thorn scroll
iron kraken
#

not including building and ui

thorn scroll
#

ye

#

not including all tht how much would it cost appx

iron kraken
#

1k

thorn scroll
#

id save tht much up for coding

compact echo
iron kraken
#

or less

thorn scroll
#

i expected lower

compact echo
iron kraken
thorn scroll
#

i thought a simple game like tht costed 200-300$$ im doomed

compact echo
iron kraken
iron kraken
#

but its usually template so that means they will sell the code to multiple people

thorn scroll
#

no so i have an idea people told me i can say its similar to epic minigames but like only 5-6 games right how much would it vost to code appx

compact echo
iron kraken
#

200-300

thorn scroll
#

but its like rlly simple games is 200-300$ enough?

iron kraken
#

yea

thorn scroll
#

like mussical chairs and stuff

iron kraken
#

yea shoulld be simple

thorn scroll
#

ok so my goal is to save 500$ now , 200-300$ codin , 100$ ui and building , 100-150$ ads

#

i give myself till the end of the year to collect tht much

#

lsgooo

thorn scroll
ember nimbus
iron kraken
#

u dont need 100 on building and ui

#

and u dont necessarily need 100 on ads if the game is good

#

the better ur game is the less money u should need for ads

thorn scroll
ember nimbus
thorn scroll
iron kraken
#

doesnt mean much

ember nimbus
#

either front page games have 1000 people working on them or 99.9% of people here don't get anything

iron kraken
iron kraken
#

kinda

thorn scroll
#

ill do the building myself tbh

iron kraken
#

but if u want to learn then most people can

compact echo
thorn scroll
thorn scroll
thorn scroll
thorn scroll
#

its rlly a life decision for my future

iron kraken
#

its not just about getting the game out there but updating to maintain players

compact echo
iron kraken
#

so ur gonna hvae to constantly pay other devs to do your updates

#

if they get lazy or quit then ur game is gonna get cooked

#

brainrot era is over πŸ˜‚

thorn scroll
#

see how old are yall first tell me cause tbh im 19 in india where the avg salary is like 1000$ a month tht i so low and i feel pursuing game development can help me beat tht way better

thorn scroll
compact echo
ember nimbus
compact echo
ember nimbus
#

the idea is luck

iron kraken
ember nimbus
#

execution is skill

#

then a bit of luck in popularity, but you can bundle that in with the game idea luck

iron kraken
ember nimbus
#

maintaining the idea is probably something people either have or don't

subtle fractal
iron kraken
#

my average salary is like 100 - 200 dollars

thorn scroll
ember nimbus
#

by maintaining the idea i mean keeping that momentum of popularity going

iron kraken
thorn scroll
#

how it is

thorn scroll
#

and im giving myself a whole 6-7 months to clear it out

compact echo
subtle fractal
#

/ live

compact echo
ember nimbus
#

wouldn't pass up opporunities for it

thorn scroll
#

ye i agree but i want to have like atleast 1k$ per month to show tht this has potential

ember nimbus
#

if you have a family business as a safety net in case it doesn't work out sure give it a shot

thorn scroll
#

true

ember nimbus
#

most people don't have that

thorn scroll
#

i ahve it

#

but i dont wanna do it

ember nimbus
#

if you're not sacrificing anything to do it give it a shot 🀷

#

i've seen people who don't do uni cus they wanna be a roblox dev

#

terrible idea

#

but if you're not gonna do uni either way

thorn scroll
#

tbh my profile is shift i am doing bba from the like top 5 from my counntry but than its bba i have like a bad 7.8/10 cgpa idk and like i wanna d something in life idk what to

thorn scroll
#

i am alr doing undergrad

#

but i have to odo masters too

iron kraken
#

y masters

#

what r u majoring in

thorn scroll
#

u go from tht 300-400$ avg slary to 2k$ salary by doing masters here from a top university

thorn scroll
ember nimbus
thorn scroll
#

ive done it for undergrad im in like the 3rd best or 4th best but

#

for major idk

#

if im ready

thorn scroll
thorn scroll
#

but ye whats called goos is 8 above

#

good is 8+

ember nimbus
#

if you do roblox dev you're splitting your priorities

thorn scroll
#

your right and tht is why im so confused uk the job id be majoring for is what comes under replaceable by ai and stuff plus i wanan do soemthing of my own

thorn scroll
ember nimbus
#

cus if it's like a year i'd say lock in for a year, try get in

#

roblox can wait uni stuff can't really wait

thorn scroll
thorn scroll
ember nimbus
#

like lecturers and stuff

#

and also course content

#

cus if you don't it would be better to study rn when you're studying it anyway

#

if you made roblox dev work this year there's no guarantee it will keep working that's the main problem

thorn scroll
#

yes truee

#

uni will give me a cushion to experiment

#

but the thing is i most probably would have to do a 9-5 for like 2 years for the portfolio

void tusk
#

roblox devving and working hard in uni shouldnt be mutually exclusive

#

would say if you are going for a full time position somewhere itll be hard to manage both

#

priorities priorities tho

turbid plume
#

How to dev

magic cobalt
#

ok step 1

#

dev

#

step 2

#

dev

#

🀯

subtle fractal
#

bru

#

TH happening in RoVFX

#

rovfx is done for

pure nebula
#

Saw you talking about it.

iron kraken
#

for experience

brisk flare
#

Hey, I am trying to make a case unboxing game based off CSGO, trying to do the final tweaks of the 'roulette' part, but I can't quite quite the audio to sync on the slider. The tweaks I have tried have made the audio go on for too long, or too short, sometimes sped up / slowmo.

#

Anyone have an idea about to go about this?

heady holly
brisk flare
heady holly
teal yacht
#

On an account of mine that's verified with my mother's information, I don't even remember why I did that.

If I create one now and put in my information, and verify it, and if both accounts are on the same IP address, will that be a problem?

ruby oxide
#

unless ur evading a ban or smth

teal yacht
#

evading?

#

or

#

oh*

uneven mortar
#

i want to create a fire extinguisher very similar to work in pizza place one

#

anybody knows the logic behind it? or some tutorial

lavish sphinx
turbid plume
uneven mortar
#

i need to use collectionservice to find tags right

turbid plume
#

Yeah.

uneven mortar
#

thanks

tidal heron
modest hound
turbid plume
kind seal
turbid plume
#

🧐😐🫠

pale cloak
#

BRUUHH

#

omagawd speed

#

mrbeast is that you

#

i want monet roo

#

mrbeasttt

shell sand
umbral carbon
slender venture
wicked eagle
#

whats the pay

primal wasp
#

dm

hearty barn
#

best opioid for coding?

pure olive
#

adderall

frail plaza
#

are there any

#

api

#

for all the words in the dictionary

iron kraken
frail plaza
iron kraken
frail plaza
#

do you not know how many words are in the dictionary?

iron kraken
upper jay
#

voila

upper jay
#

awesome

valid plover
wintry horizon
#

heloo guys

kind seal
#

i am NOT dealing w that

frosty void
#

For ppl that uses math.lerp over tween, Why?

latent stump
frosty void
latent stump
#

well what are you gona use lerp/tween for

#

cuz for texts usually using lerp is better imo

frosty void
#

im not using it yet atleast, i just came across a video talking about math.lerp, and i realise ive been using tween alot instead of lerp. Since it was something i use alot when i was programming in Unity

latent stump
#

well using tween is okay

frosty void
latent stump
#

i meant like

#

usually i use lerp for like live updates like for torso tilting, value that progress on a ui text etc since its better than tweening it

frosty void
#

sorry im still having a hard time understanding 😭 , but why is it better than tweening?

latent stump
#

I guess ill send you a thread about lerp

frosty void
#

sure thanks alot

uneven kernel
#

when im using promptgamepasspurchase it keeps saying i already own it is there a way to test it so that it actually prompts it

main sorrel
#

you can use clients and server mode to test

inner cairn
#

chat how long does it take to learn scripting?

subtle fractal
sand dagger
subtle fractal
#

it takes 1 week to become an absolute beginner

#

1 month to be a beginner

#

5 months to start leaving beginner territory

#

but

#

everybody is differtent'

inner cairn
sand dagger
sand dagger
inner cairn
frosty void
#

There isn't a set time on how long it takes, but from my experience i feel like whether you have computational thinking might help you learn quicker

inner cairn
frosty void
#

imo once you know one language you already got the basics down. Now you will just have to transfer your knowledge over and understand the syntax of lua. its always a plus to know another language already means your already ahead πŸ™‚

distant hamlet
#

since when did github have a dev mode

#

in web

low otter
#

anyone know how to despawn any object on the conveyer belt system

remote bear
cyan lantern
#

hot take but

#

i personally think optimizing for clean code will get to a point it will be comparable to that of spaghetti code

remote bear
icy lake
ashen quail
#

guys how to stop studio from making my mouse just not be able to click anything

finite terrace
#

How hard is it to learn luau if I know Lua?

remote bear
dawn ridge
odd pier
remote bear
#

i dont really plan on continuing roblox development after but i may make a little game with it as a showcase or something

odd pier
#

Did you learn it just for the purpose of creating this?

remote bear
warped geyser
#

whoever here is good in scripting

#

dm me

odd pier
umbral carbon
odd pier
warped geyser
#

ttree

#

@odd pier

#

dm me

umbral carbon
#

This is so annoying

odd pier
gloomy compass
#
local function Greedy(posData:{position:Vector3,size:Vector3})
    local n = 0
    for i,data in posData do
        for j,data2 in posData do
            if i == j then continue end
            for _,vec in {Vector3.xAxis,Vector3.zAxis,Vector3.yAxis} do
                if data[1] + vec*((data[2]*vec).Magnitude/2+0.5) == data2[1] then
                    n += 1
                    data[1] = data[1] + data2[2]/2*vec
                    data[2] = data[2] + data2[2]*vec
                    table.remove(posData,j)
                end
            end
        end
    end
    if n > 0 then
        Greedy(posData)
    end
end

cheap greedy meshing code πŸ”₯

fathom igloo
#

Bro looks for scripter

#

Nah get out

warped geyser
#

nah

mighty mirage
wanton pecan
#

Pretty sure this bot is here for a reason kid

#

(Don't mind the fact that i blocked him)

idle stream
#

Idk how I can move platform where people stand on them and it moves with them

#

smth about constrains maybe?

umbral carbon
idle stream
subtle fractal
#
local inputs = {} :: { string }

local outputs = {} :: { string }

for index, key in inputs do
  outputs[index] = key
end
-------------------------------------
return function ()
  outputs = table.freeze(table.clone(inputs))
end
versed arch
subtle fractal
surreal junco
#

Mo

surreal junco
#

So not identical

versed arch
#

im not falling for this shitass ragebait

turbid plume
subtle fractal
#

from red to pink

#

with lua

distant hamlet
#

it looks washed out now

#

what is this update

subtle fractal
#

fr

cyan lantern
#

ro

finite terrace
gloomy compass
turbid plume
rocky skiff
finite terrace
#

Alright thanks everyone, much helpful than the other server criticising me for asking <3

finite terrace
rocky skiff
#

np

rocky skiff
turbid plume
finite terrace
#

Peakpantheress

#

We all love pink

rocky skiff
#

same

turbid plume
rocky skiff
#

DAH

finite terrace
#

DAH

turbid plume
finite terrace
#

β€œPotatoes”

rocky skiff
#

poh tay tow

finite terrace
#

β€œYou look like a million bucks”

#

DAH

rocky skiff
#

what else

#

oh yeah

turbid plume
#

Feels like a million bucks.

turbid plume
#

Dead server

hearty falcon
#

anyone have free courses key word πŸ†“

turbid plume
hearty falcon
#

if anyonme could teach me for free

static coral
abstract flame
#

are you guys having problems with script sync too?

#

if you make some changes in edit mode they simply dont apply to playtest

granite quarry
#

guys does debugging cause lag

abstract flame
#

what

granite quarry
#

repeatedly

abstract flame
#

nah it doesnt

regal anvil
#

bruh

pale cloak
wicked eagle
#

banned

smoky dagger
#

cryingdead 14k

iron kraken
next socket
wicked eagle
next socket
half heath
#

does anyone know how i can get acess to tester hiring

uncut marlin
half heath
uncut marlin
#

cool, do you like butterflies too?

dawn ridge
turbid plume
#

Banakakaiaiaiaiaiiaiai

#

@slow hull

turbid plume
slow hull
#

time long see no

cold crow
tawdry trout
#

guys my problem with learning roblox scripting isnt coding concepts but the syntax like how do i learn this. like no videos online teach you why or when to sue "parent" or other words. like how am i supposed to know what to write to create a for loop or stuff. videos teach how to do them but i want to know the dictionary, not like memorzing sentences

static coral
tawdry trout
azure coral
#

merely reading it won't be effective

azure coral
#

will help a ton

unreal nest
narrow star
unreal nest
narrow star
#

the text animation

unreal nest
# narrow star the text animation

We use the TextLabel’s MaxVisibleGraphemes property and increase it from 0 to the total character count one by one with task.wait(0.03)
The full text is already set beforehand; we’re only animating how many characters are visible

#

If you’d like to see more examples I can also send you a small selection of some of my other past work for inspiration

narrow star
real dagger
vivid abyss
real dagger
opaque flame
unreal nest
real dagger
unreal nest
vivid abyss
unreal nest
# real dagger Yes I tried, it just makes the characters appear

yea your right MaxVisibleGraphemes alone just shows the letters in place for the drop effect i move each label position a bit down like +UDim2.fromScale(0,0.15) and set TextTransparency to 1 then TweenService moves it back to the original position and transparency 0
so the typewriter and the slide/drop effect are 2 different animations working together

real dagger
#

So each letter is a seperate text label

narrow star
unreal nest
#

no in our case the whole label slides down as one piece and MaxVisibleGraphemes just reveals the letters inside it
if you want every letter to drop by itself then yea you need to split the text into seperate TextLabels like one label for each letter and put them in a UIListLayout then tween each letters position and transparency one by one with a small delay

#

@real dagger

real dagger
#

right

unreal nest
#

yes

vivid abyss
vivid abyss
#

@unreal nest how long have u been scripting for

vivid abyss
#

every day?

unreal nest
fossil salmon
# unreal nest

crazy good, you make ur own games or like freelance and work for others?

unreal nest
# fossil salmon crazy good, you make ur own games or like freelance and work for others?

The game I showed is the one we’re planning to release soon with 3 partners. We have 2 scripters and 1 asset developer. Besides the asset work, we’re handling pretty much everything ourselves So yeah I do work on my own games too, but right now I’m looking for commissions in script hiring so I can upgrade/replace some of my microphone and keyboard parts

unreal nest
unreal nest
upper jay
#

thats really impressive, awesome work

unreal nest
#

thanks

upper jay
#

your frontend capabilities shine, so smooth

upper jay
#

for the spirit of showcase, ill send something here

unreal nest
#

πŸ™πŸΎ

upper jay
#

unfinished because i ended up doing a refactor of all the code, but this is one of the several "minigames" ive coded for this game

upper jay
# unreal nest

looking back at this again, yeah this is experienced work. seems like youve been used to finishing full-fledged games which is something not everybody gets to do

#

job well done

narrow garnet
#

Guys how do I turn of the stupid script debugger on the new studio ui

#

It’s so annoying

unreal nest
upper jay
#

would u mind if i added ya (on discord)? you seem really interesting

narrow garnet
#

Someone please help me

warm pier
unreal nest
wide sparrow
warm pier
#

i js wanna know how theoretically possible something is

#

cuz ik itd be hard asf

#

i was wondering if i could discuss it with sum1 in dms

wide sparrow
upper jay
unreal nest
frosty umbra
#

hi is this how you're supposed to print in luau?

rocky skiff
#

idk bro doesn't seem like it

frosty umbra
#

scripting is so hard bro

#

if only there was an easier way πŸ˜”

gloomy compass
frosty umbra
narrow star
sly stream
#

guys for those who know, if i handle rarity spawning on the client is that safe or can that be exploited

icy dew
sly stream
icy dew
wicked eagle
inland dirge
#

Hey how would you guys determine if someone's code was AI? Or their comments?

rare lichen
inland dirge
potent igloo
#

yeah there isnt a way to tell for sure but in my experience AI tends to take some weird paths to solve something

rare lichen
rocky skiff
rocky skiff
# rare lichen Wdym?

i mean they could submit the most polished advanced scripts and when they do smt for the game the scripts suck

inland dirge
rare lichen
rocky skiff
#

it does cuz... ai cant just handle for you everything unless you somehow manage to make it to

rare lichen
#

Well, of course. I don't think anyone rational is relying solely on AI to make their code---that'll never work since there are too many directories.

#

At least not for Roblox.

rare lichen
#

Yikes.

novel pebble
#

but it made me save months of work in making AI in roblox

#

how you expect me to write all this in a reasonable time

quick quartz
novel pebble
quick quartz
#

ur toes?

novel pebble
#

a keyboard

quick quartz
novel pebble
quick quartz
#

i hope you rot in hell

novel pebble
novel pebble
#

XD

#

btw that is just 3 random photos

quick quartz
#

sure bud its okay

novel pebble
#

i hope u get gratified by critizicing the opponent and not the argument

quick quartz
#

can you dum that down for me

novel pebble
quick quartz
#

hope your pillows are warm

faint plume
#

where do ya reocomend me to start with roblocx coducemtnation

#

roblox docuemtnation

novel pebble
novel pebble
faint plume
#

Im just trying to leanr in general

novel pebble
faint plume
#

Well im building a tycoon game rn

novel pebble
#

ur not just going to learn random functions and stitch them together in a whole code

faint plume
#

Im learning how to make a rarity system

quick quartz
quick quartz
novel pebble
faint plume
#

lets just call them frogs

#

and each frog has a different rarity

novel pebble
#

ok

#

how is the rarity

faint plume
#

WITH DIFFERENT MONEY

novel pebble
#

like a number and the higher it has less chance

faint plume
#

sorry caps

faint plume
novel pebble
#

k lemme try doing something

faint plume
#

I thought I should've read up on syntax

quick quartz
iron kraken
hearty barn
#

would anyone else recommend the microwave method for crack smoking during coding sessions? ive always found it difficult to spoon cook while keeping focus (takes me 4-6 minutes usually). at this point ive stopped cooking during sessions for the most part and just code in 20 minute increments. other people on here have told me it only takes like 20 seconds and comes out super smoothed using the microwave. im afraid of ruining my soft and my shot glass. i also ran out of baking soda but i have ammonia and i dont know if the microwave method is specific on freebase. i have about 2g on stand bye so i guess id still have some if i fuck it up the first time, the bigger issue would be getting the oil over the inside if it boils and explodes all over the microwave, i live with my mom and she recognizes the scent, i wouldnt be able to wash it out

quick quartz
novel pebble
# faint plume I thought I should've read up on syntax

function choose(choices:{{Item:string,Rarity:number}})
local sum = 0
for _, v in pairs(choices) do
sum += v.Rarity
end

local num = math.random() * sum
local n = 0

for _, v in pairs(choices) do
    n += v.Rarity
    if num <= n then
        return v.Item
    end
end

end

broken grove
novel pebble
#

im not that good of a coder with general things

novel pebble
broken grove
#

remove it from your muscle memory

novel pebble
broken grove
#

pairs and ipairs shouldnt be used

novel pebble
#

man

#

he aint needin that much speed

broken grove
#

theres literally zero reason to use them

#

they just make the code slower

novel pebble
#

how fast u need it

#

u work wit a potato chip or what

novel pebble
#

live action role play?

broken grove
#

general iteration allows you to just put a table
e.g.

for i, v in tbl do
  --
end
iron kraken
broken grove
#

not really

iron kraken
#

if u need to do it in order

#

dont u need ipairs

broken grove
#

ipairs is a slower version than a for i loop

inland dirge
broken grove
#

or while true with a +1 counter

iron kraken
broken grove
#

how is it micro optimizing

novel pebble
#

i tought u meant

function choose(choices:{{Item:string,Rarity:number}})
local sum = 0
for i=1,#choices do
sum += choices[i].Rarity
end
local num = math.random()*sum
local n = 0
for i=1,#choices do
local v = choices[i]
n += v.Rarity
if num <= n then
return v.Item
end
end
end

broken grove
#

its literally quicker to type without pairs/ipairs

novel pebble
#

thats what i write

#

lit 2 letters

#

then autocomplete can do it

broken grove
#

you also have to type the table's name inside

#

or you can just type the table's name

novel pebble
#

no

#

its automatically inside

broken grove
#

but you still have to type the table's name??

novel pebble
#

what if i want to use a custom table reader

broken grove
#

??

novel pebble
#

well its a function

#

ipairs returns next

broken grove
#

it returns an iterator function

iron kraken
#

battle of the larp

novel pebble
#

u dont need that speed

broken grove
#

I dont even know what your arguing anymore

novel pebble
#

just do it the way ur used to and done

#

and ur literally getting mad about a loop

broken grove
#

I dont want you to recommend something outdated and unnecessary to a beginner

hearty barn
faint plume
#

I might gts and wake up

#

And get back to scripting

novel pebble
#

smaller regions get less change, bigger regions get more chance

iron kraken
#

WUHE

broken grove
faint plume
#

Why wouldn’t I just make a list

#

And go through that list

#

And print it out as that

#

Yk

novel pebble
#

???

broken grove
#

no

novel pebble
#

werent u trying to choose a random

broken grove
#

we dont know

faint plume
#

Say for example

#

God frog devil frog and celestial frog is not random

#

They’re going to be legendary

#

Etc

broken grove
#

how do you obtain them

novel pebble
novel pebble
faint plume
broken grove
#

idk if thats the right formula

#

I mean that does something but it creates decimals and would be hard to random through

novel pebble
#

random is decimal too

broken grove
#

it can be

#

but they're going to add up above 1

novel pebble
#

wdym

broken grove
#

the method you use would theoretically still work as well

novel pebble
#

its my first time doing a rarity thingy πŸ₯€

strange herald
#

🧠

novel pebble
#

is it expected for it to be one

novel pebble
#

now i can read non accessible channel

broken grove
#

programmers get three channels (one extra for the skill role)

strange herald
#

tysm

frosty umbra
#

pshhh, imagine needing the skill role

novel pebble
#

hai

dense wasp
novel pebble
#

can u help me

#

cemeterygirl57 is talking to me

#

help me

#

HELP

raven charm
#

trying to work on programming commision with roblox till i get a job, any advice on what i should focus?

limpid siren
lofty forge
#

Remember always to do humanoid.Animator, not just humanoid:LoadAnimation().

novel pebble
#

umm

#

why is he saying them

#

AYO

#

my ai said something i cant say her

novel pebble
raven charm
upper jay
turbid plume
novel pebble
turbid plume
#

Lable encoding

edgy mauve
#

guys i cant get my p2w thing to work in team test aka the roblox servers i even asked gemini to help i really cant do anything so this is my last resort can anybody help me?

brazen hound
#

what's your p2w item supposed to be

edgy mauve
#

i think i got it to work but does the purchase work in actual roblox cuz it doesnt work in team test yet it works in the solo test

faint plume
#

Just so I got it right debounce is basically a cooldown right?

iron kraken
#

u add a check and only allow if the check passes

#

and u immediately set the check to false right after

#

so that it can only run once until the cooldown resets the check

willow token
#

Does anyone know any experienced Roblox scripters? My game has 1k CCU, so I need someone who’s worked on larger games before because I can’t risk major bugs or crashes affecting the player experience.

ocean ferry
#

How works this instance? i saw it an alternative of body velocoty/linearvelocity

halcyon citrus
#

@orchid arch Hey bro wookie pookie can i try citadel v3 😊

idle stream
#

@turbid plume yo

versed arch
#

for team test it won't work because gamepass purchases are client-sided and require a rejoin

stark helm
#

I'm an intermediate in lua (I know mostly everything up to raycasting). Looking for someone to suggest a challenging code for me to make.

#

Im out of ideas

versed arch
stark helm
#

ty

versed arch
#

yw

trim stone
#

is it better to do per task like do you get paid more

versed arch
#

last time i asked people told me to make something that an intermediate won't exactly know what to do

rocky skiff
stark helm
versed arch
#

im pretty sure that one is straight-forward

stark helm
#

fair

versed arch
#

perhaps something fun? or something ridiculous

#

something related to physics or something similar

rocky skiff
#

make a uhh

#

water

#

fluid system