#code-discussion

1 messages · Page 226 of 1

cyan gazelle
#

i see

#

i had some templates but I've deiced to rework them because they were created when i was newer

#

but i can always make some systems for you for free

#

i lowkey need the experience

white seal
buoyant wind
#

That looks really hood

hasty cobalt
#

has anyone experienced ragdolling while falling down sometimes causes flying?

gray bough
#

Guys, if i want to make a combat animation, do i need to do 1 animation per M1, or just make the whole M1 combo in the same animation ?

steel lava
#

yo guys what should I add into a framework for a game (basically base networking, data, utils) like stuff every game will need so I can speed up my dev proccess

rough sierra
#

Sup gamers, do you use VS Code?

Should I use anythhing else beside rojo?

subtle terrace
# rough sierra

U only need the luau lsp server plugin for typechecking and maybe selene

#

Then you can manage rojo with rokit

rough sierra
#

what is rokit?

#

and what is luau lsp server plugin

subtle terrace
rough sierra
#

and what is selene

subtle terrace
#

You can search it's github repository

subtle terrace
subtle terrace
lone marsh
stable jacinth
#

if inputn == Gates:FindFirstChild(inputn) then.
why does this not work when the inputn value is the exact same as the child of Gates name

#

local Gates = workspace.GateLocations

#

would i js get rid of the first bit?

halcyon slate
#

and youll see

stable jacinth
#

what does typeof do

halcyon slate
#

try it

charred night
#

you are comparing a string and an instance i presume

halcyon slate
#

if yu learn what typoeof means

stable jacinth
#

and then inputn is just made into lower case

charred night
stable jacinth
#

oh

charred night
#

you have to read the name of Gates:FindFirstChild(inputn)

#

so Gates:FindFirstChild(inputn).Name

halcyon slate
#

solved

charred night
halcyon slate
charred night
#

thank you

stable jacinth
halcyon slate
ivory spade
stable jacinth
#

i lowkey need to remember that i need to get the value and not just the instance

halcyon slate
#

because you cant guarantee it exists

stable jacinth
charred night
halcyon slate
frozen ginkgo
stable jacinth
frozen ginkgo
#

guys can anyone send playlist or smth for me to learn coding? im intrested in learning it but im still bad at it

charred night
stable jacinth
charred night
#

i just know what streaming does, but i have never used it personally

stable jacinth
#

k

#

anyway the script works now

smoky frost
#

harsh truth... u cant sell shit to people, doing comms is much more efficient

somber vault
#

like i have dmed BUNCH of people showed my port and allat

#

and none of them wanna comm me even tho my works r good

potent igloo
#

5k-50k robux, depending on how good the code is and how easy it would be to integrate with the rest of the codebase

#

the problem with selling stuff no one comissioned you for is that youre probably gonna have to underprice your work

gentle sparrow
#

Could someone explain to me when u would want to use GetChildren and WaitForChild?

gentle sparrow
frozen ginkgo
frozen ginkgo
gentle sparrow
#

U don’t need more tutorials for any fundamentals then

frozen ginkgo
gentle sparrow
#

If u ever get stuck on something due to a lack of knowledge, do some research. U could look at the Roblox forums, watch more advanced tutorials, or simply look something up

frozen ginkgo
#

can you maybe give me an idea?

gentle sparrow
#

All that matters is u develop ur skills and improve overtime

gentle sparrow
#

Just gimme 1 sec gotta hit my set

#

Aight, u could attempt to design a very intricate obby where nothing goes as expected

#

Obviously this wouldn’t be for other ppl to play, it would mainly be for u to get better

frozen ginkgo
#

okay thanks!

gentle sparrow
#

Np

frozen ginkgo
gentle sparrow
#

As long as u truly understand the material and retain the information ur good

frozen ginkgo
#

i got ts now

#

nvm cant put photo

#

but i got leaderstats

gentle sparrow
#

Gl

atomic flower
#

i am making a combat game, so obviously, all the vfx are on the server to boost performance. should the animations be run on the client aswell, or can I run it on the server?

coral field
atomic flower
coral field
#

you should play animations on the client aswell

static coral
keen panther
#

yo guys how can i make it so that my pathfinding script will follow the player even if the player moves because rn my pathfinding script moves the NPC to the last place that the player was marked

#

pls help me anyone

gentle sparrow
static coral
keen panther
static coral
# gentle sparrow Ok but what would be a good scenario to use those in

GetChildren can be used for many reasons, searching for and filtering instances, modifying all children of an object, destroying certain children of an object, modifying children that meet a certain criteria or are of a certain class, etc. WaitForChild can be used to wait for things to load on client or u can literally wait until a child with a certain name is parented to the object, but i would not recommend doing that

static coral
#

and i dont even do pathfinding

#

thats just the simplest solution i could think of

#

search on youtube

keen panther
# static coral search on youtube

ive tried but i dont get how their shit works cus i copied his script exactly and my script worked completely differently and i cant find any devforum shit

static coral
#

evaluate and look what everything does

#

and why everything is there

#

and also look up the docs for pathfinding and humanoids

keen panther
frozen ginkgo
#

@gentle sparrow i dmed you

gentle sparrow
frozen ginkgo
#

@gentle sparrow can you help with ts?

#

local teleporterin = script.Parent
local teleporterOut = game.Workspace.TeleporterOut

local function teleport(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
character:MoveTo(teleporterOut.Position + Vector3.new(0, 2, 0))
end
end

teleporterin.Touched:Connect(teleport)

frozen ginkgo
#

nvm i forgot a line

#

i forgot to add local character = player.Character

icy bone
gentle sparrow
icy bone
#

If you don’t know when to use WaitForChild and GetChildren then u should learn sum more before helping with code

gentle sparrow
#

Oh u meant helping in general

icy bone
#

Yeah

#

It wasnt supposed to be insulting if it came off that way

gentle sparrow
#

I agree ofc, but he just needed help with sum basic

gentle sparrow
cold bison
iron kraken
#

yah

dire lichen
#

HELLO

#

vega is here

#

whats the convo

#

wheres the usual skid asking for help with a steal a ____ game

mild cloak
#

I’m just looking at different channels cuz chats dead

#

Nothing interesting

#

Smh

dire lichen
#

ROBLOX PLS RELEASE QUERYDESCENDANTS

#

querydescendants is gonna be so peak

#

and nobody knows abt it

mild cloak
#

Idk what that is so

#

Yeah

dire lichen
#

upcoming function

mild cloak
#

Very niche

dire lichen
#

seen in docs

mild cloak
#

Nice

dire lichen
#

the side eye

mild cloak
#

Dog side eye

dire lichen
#

gawd

lean oxide
#

who wants to playtest a 2d raycasting test i made

hazy marlin
mild cloak
timid vessel
#

what else should i make, like something very simple since im getting a hang of scripting

thorny dust
#

does anyone wanna get hired to fix a car system ill pay

#

not the whole thing but one bug

wheat herald
olive summit
#

Instead of task.wait(. 1)

#

Just asking

wheat herald
#

You can use that too personaly I only use task.wait()

olive summit
#

Whats the difference tho

cedar locust
# dire lichen

yoo isthis a game your working on? this looks super cool lol

spare apex
#

can someone explain on how to make a auto morph system that turns something into a morph, its already rigged and stuff just im really lazy because theres going to be lots of morphs

civic garnet
crimson plank
#

what do u yall use for knockbacks

#

lv?

#

or tweening

#

aw 😭

#

fr though if u could help it would be appretiated

#

cause lv is doin the job but not satisfactory enough

loud cipher
icy heron
#

wait() is closer to like 0.95 seconds (for 1s) while task.waif is like 0.97s

#

probably more even

faint garnet
loud cipher
austere fog
#

NO SHIT

deft coral
noble zinc
#

Idiot

wanton holly
#

client or server for sprinting system

static coral
#

sprinting on server is so ass

#

well

#

any movement on server is

austere garnet
icy heron
median tiger
#

So the amount of time stays the same regardless of your fps

tardy pasture
supple spindle
#

look dm

pastel scroll
#

I have experience, just disable the default one and it’s pretty self explanatory after that

twin cairn
#

What's the order you guys normally code in? Imagine, a trello board full of features you want to implement. What do you do first?

pastel scroll
#

If you are worried about server security relating to a project that is 100% client side, I can see why you don’t think this is simple

halcyon citrus
fathom ridge
#

guys how to make a part's size change when you touch it

static coral
#

for dragging: use ui events to detect when input starts on a slot that contains an item and then make it follow the mouse (just check simple yt tutorial for dragging ui)

for swapping: make a global variable for currently dragged slot. then when dragging input ends while hovering over a slot, the dragged item will go into the slot and if there was anything else in the slot, it will go in the slot of the item you were dragging

#

for security just make sure that the player actually has the item in their backpack

faint garnet
quasi smelt
loud cipher
quasi smelt
#

or watch a tutorial on yt

faint garnet
static coral
languid cliff
#

Hello guys. Is it possible to make R6 cape ANIMATED without adding BONES in BLENDER?

sterile pollen
#

yo guys

stable arch
#

yes

sterile pollen
#

is anyone here interested in making a rpg game with me for % pls we need a scripter and its a very good game and concept

#

we got animator and ui and modeler

stable arch
#

uhhh

#

im a basic scripter

#

i know the basics

sterile pollen
sterile pollen
stable arch
#

u got experience in makin games

sterile pollen
stable arch
#

whats ur roblox acc?

#

if i may ask

sterile pollen
sterile pollen
stable arch
#

sure

fallen sierra
spice imp
#

rate my code

fallen sierra
lofty narwhal
#

Guys how long will it take to be scripter good enough to make a car customization system with bodykits and you need to pay for the bodykits

shy cipher
waxen osprey
#

anyone wanna increase there playtime u can hire me for cheap as it my first work

shy cipher
# olive summit Why not use wait(. 1)

wait() is deprecated and not as accurate as task.wait(), if you get the average of their accuracies with a constant of a 1 second wait, you'll see that wait() is a few miliseconds off from an actual second. task.wait() is MUCH more accurate to 1 second, almost to the thousandth digit. this is 'cause task.wait() is part of the new task library, it is much more "engraved" into the task scheduler. also, wait() is slower. task.wait() is better in all scenarios

lost turtle
#

is my assests game tuff?

pastel scroll
lost turtle
formal tulip
#

Must Be A Real Drag Waking Up And Being You

earnest falcon
wraith shadow
#

top bar + fell HARD

grim bolt
#

looking for FRESH new scripters

novel raven
#

i need scripter to icl just to work on one thing which is probs easy for scripters lol

celest whale
#

Hello guys, I got LocalScript for my tool that has idle animation playing, but if tool being destroyed then the animation doesn't stop. .Destroying doesn't work

quaint willow
#

i need help i was using rojo i have made a module script in shared but when i call it or try to use it its just doesnt show up and vs shows it as unknown the code calling it is local ReplicatedStorage = game:GetService("ReplicatedStorage")
wait(4)
local MyModule = require(ReplicatedStorage:WaitForChild("MyModule"))

MyModule.foo()

golden maple
#

sup chat, using motor 6d to attach gun to player. Why does the animation i created missaligns with the result i get?like as u can see the left arm is off

golden maple
# peak jolt animation weight

set up properly. could it be since its r15 and the scale of the avatars differ it will just missalign bc of proportions?

peak jolt
#

yeah maybe

#

in that case for two handed you would have to rely on ik for the second hand

golden maple
peak jolt
#

nothing except restricting the proportions

#

cause like what are you gonna do, the animation is telling the arm to point inward and downward, its gonna keep doing that

#

i think in real games they have parametrized animations where you can pass in e.g. a "gun length" parameter and the animation adapts to that, if you could do the opposite depending on character scale that might work but also sounds like the same effort as ik

golden maple
#

and it works with any avatar type / scale

compact spoke
peak jolt
#

ik is like a thing

#

IKControl the roblox native implementation came later yes but math-based ik has been used since forever

#

but i wouldnt exclude that they had a kind of fix you're looking for. if it exists, i just dont know that fix lol

#

never really messed with humanoid scale like that

compact spoke
#

its largely not that huge of an issue to where it requires a ton of attention

deft coral
#

doubt it

golden maple
golden maple
# deft coral doubt it

yeah but the anims align perfectly on models that dont use special meshes but only different scales

compact spoke
#

or just make all of your animations around one preferred scale

deft coral
#

IK is a mathematical procedural model

#

The object in roblox just automates it

#

And implements it

compact spoke
#

;-; Um What is IK

deft coral
#

Inverse kinematics

compact spoke
#

@deft coral Hi im new

golden maple
deft coral
#

Jolo

compact spoke
#

Its such a minor thing that hardly anyone is going to notice

golden maple
peak jolt
#

in 2025 you can have a bone/attachment on the gun and animate the gun normally and then disable/set influence of that IKControl joint based on the animation

deft coral
#

IKs blend with animations

peak jolt
#

so holding the handguard with IK but still having a normal reload animation

deft coral
#

So yeah that

golden maple
deft coral
#

Yes

#

They're specifically designed to work with animations and blend with them

#

Thats why they're an instance

golden maple
#

coolio

peak jolt
#

you can use animation events to control the behavior in more detail

deft coral
#

U can set weight and even priority

#

Ya

deft coral
#

What usually happens is torso aims to the mouse while the arms are animated in a pose

#

So the gun aims to the point

compact spoke
#

for like a reload you could use an anim event to set if the ikcontrol is enabled for when the character takes their hand off the handguard

deft coral
#

Torso would be IK

peak jolt
#

in specific parts of animations you define triggers or whatever theyre called and in a script you change the ik behavior when triggers are reached

deft coral
#

Arms animation

#

If u wanna do it raw with IK

#

Then use constraints too

#

So u get actual limb movement

#

No elbows breaking

peak jolt
#

doesnt r15 come with that by default

deft coral
#

No

peak jolt
#

or was that if you had a bone mesh

deft coral
#

U gotta rig it with constraints

deft coral
peak jolt
#

bones inherit from attachments so its pracdtically exactly the same thing i just dont remember if you had to use constraints to get a chain of bones to move

#

i think you dont cause ikcontrol has that depth property

deft coral
#

No constraints dont enable anything tmk

golden maple
#

whats defualt height?

#

of r15 rig

deft coral
#

They restrict movement so the IK dont act unrealistically

deft coral
#

It can vary cuz of body type

golden maple
#

this new avatar setting tab is ass

#

or do i check that with a script?

charred mountain
#

anybody know how prison life ip bans? its impossible to make a new acc and play the game if youve been banned from it

deft coral
#

Of the avatar window

#

Itll do a drop down

#

Set r15 only

golden maple
golden maple
#

yeah but it still lets me to join like this

deft coral
#

BanAsync

deft coral
golden maple
# deft coral Thats r15

yeah but if i want to limit the avatar and dont spawn with special body parts i have to use a script?

golden maple
charred mountain
golden maple
#

but i think ban api is bypassable

#

since it ip banned only on client ahah

charred mountain
golden maple
#

true

astral horizon
#

Does anyone know of any methods for keeping api keys safe in an experience

soft nexus
#

hey guys thought about learning any package that could be helpful while scripting, does anyone know a very useful package to use except for knit ?

#

especially if it could help on networking, really tired of using remote events manually

eternal blade
#

can anybody help me fix like two scripts bc i ben tryna fix them for HOURS , they js dont work the silly knobs

eternal blade
#

im tryna make a chat notification for any time anyone Donates but like

#

its js not working

#

ive got a donation board that works and everything

#

its just the chat notis

vestal pumice
#

Like what part isn’t working

somber vault
#

It bans your account, and through fingerprinting any other account you use

#

and it can't be bypassed

deft coral
#

Avatar tab can set limits no code

deft coral
placid vector
#

someone send me backtick pls

lean ocean
snow raft
#

someone give me an idea for something that would take over 200 lines and would be complex enough to get the skill role here

#

all my modules are under 200 lines even with white space

south beacon
#

Just saw this in the Roblox Developers hiring channel, I think this is the final straw for that god awful server

#

don't worry guys, he's gonna pay your gamepass

#

all is well

somber vault
#

physics

regal salmon
fervent briar
#

anyone can give me a system to try to make for practice

upbeat jungle
#

how to switch off black box

hasty mesa
#

press ins

upbeat jungle
ebon frost
#

anyone wanna work with me on my lil music creation tycoon game thing:

ebon frost
peak jolt
#

yea

ebon frost
#

dms?

peak jolt
#

sure

ebon frost
#

bet

tame ibex
#

I did some testing and found out that trivial operations with Vector3’s are much faster than trivial operations with tables with x, y, and z and if I remember correctly even faster than having x, y, and z as upvalues

upbeat jungle
#

whats the value for like letters, like if i wanted a value "Epic" what would i use

mossy lynx
#

genuinely

radiant night
#

Does anyone have ideas for levels for a +1 Jump Every Second game

#

Idk what to add I already have 2 levels

upbeat jungle
mossy lynx
upbeat jungle
mossy lynx
#

uh

#

my brain aint processing rn mb still dopnt undersatnd

#

but dont try explaining it again

#

Ohh

#

it said 0

#

instead of EPIC

radiant night
#

I don't got any money

mossy lynx
#

free

radiant night
#

Idk

mossy lynx
#

I will js be like an owner too

#

ok

novel heron
#

you will never find anyone more willing to help u succeed

novel heron
#

im making the best apocalyptical survival game

#

@wise turtle how do i get image perms

quiet pasture
#

I have a question... what could help my portfolio?

novel heron
bleak glade
quiet pasture
novel heron
bleak glade
mossy lynx
#

lowkey I want to make a game but got no ideas

#

and I cant make some high lvk fighting game cz uim not that experienced it would take me years

novel heron
#

u can work with me but only if u can code

mossy lynx
#

a year atleast, and I don't want to spednd all that time on my game

#

yeah I code

#

dm me

novel heron
#

i would show u my game but i dont have image perrms

mossy lynx
#

alr

neon lodge
#

finally think im getting the hang of scripting ❤️ anything I can improve?

mossy lynx
neon lodge
#

ok

novel heron
#

i disagree

#

it is discouraged to use "magic number"

mossy lynx
#

Alr

#

Oh also Joshua

#

Joshie

#

Idt that frame is right

#

U can’t ppen a frame from a script

lofty narwhal
#

where and how will i learn scripting from scratch? ive been wanting to make a car customisation system. if you have some tips or some youtube vid or links please let know!

woeful mural
neon lodge
#

oh wait

#

aint I supposed to use playergui or smth

#

i cant rmr

mossy lynx
mossy lynx
woeful mural
#

k

#

also mind helping me out rq

mossy lynx
neon lodge
mossy lynx
#

The point of scratch is to show u like “oh if I put this block here and this block here then they will affect each other and do this” kinda

woeful mural
#

this is my datastore script and I added a while true loop to infinitely add strength every sec to my player however even tho the print statement I had for debugging is printed everytime the leaderstat value for strength doesnt change any advice?

mossy lynx
mossy lynx
neon lodge
mossy lynx
#

No

#

Use chat gpt to learn

#

Ask it how to use remote events and give an example so fast and easy

#

Let’s say u want something to happen to all players in the game

#

U can ask chat GPT how to do that and get an answer in 5 seconds and boom u know it now

neon lodge
mossy lynx
#

K

neon lodge
#

Cause I got 2 of em and the second one is thicc

mossy lynx
#

What typa book u got

#

I mean that works too tbh I don’t rlly know many stuff

#

But I js learn for frrr ain’t planning on spending money for now

#

Free

neon lodge
#

Alr

mossy lynx
#

Roblox coding is very easy to learn so if I were to spend money it would be later on

neon lodge
mossy lynx
#

Mhm

#

Might needa get one

#

If I do I’ll get it online

#

For free

#

U could prolly find a copy somewhere

lavish plinth
#

chatgpt is bad

#

ai is bad

neon lodge
#

The second book has a lot more than the first tho. It has combat systems, ui, round systems, vehicles, and multiple game designs

#

It’s pretty good

mossy lynx
#

Chat got id not bad

#

Ur not using it to write scripts js asking questions to learn ofc it’s not gon teach u advanced stuff but it still works for most stuff

#

Oh that’s not bad

#

Joshie dm me rq

neon lodge
#

Alr

mossy lynx
#

With the name of it and cover if u can

#

I wanna see it

neon lodge
#

Ok

clever scroll
#

Anyone wanna help make a deepwoken copy

woeful adder
#

how do I make it so you can't hold space to jump instead u have to actually press it

woeful adder
iron kraken
#

yes

unreal nest
shut ridge
#

And your script didn't have calls etc

shut ridge
#

He explains really good for beginners

jovial crown
edgy herald
#

would anyone like to help me make my myth game? (you will not get paid, for now

cyan canyon
edgy herald
#

wdym

edgy herald
#

Oh aight

crimson plank
#

Guys

#

is knockbacks and animations on server too heavy?

tulip flint
#

how does a blockcast behave when you stand on two materials, does it not return both?

crimson plank
lone marsh
civic drift
deft coral
#

Spatial queries do ya

deft coral
cyan canyon
deft coral
#

U failed the real mfer test unfort..

#

🙏

cyan canyon
#

Sorry

deft coral
#

U can one day be a real mfer

cyan canyon
#

I wanna be real

rustic furnace
#

any1 down to script a tds like game for me (w pay ofc)

lean ocean
#

yea

lean ocean
lethal bluff
#

has anyone here ever made procedural maps before? Like in Skyven

static coral
# lone marsh Yes

animations dont replicate every frame like tweens do, they are replicated once and then played by the client and with knockbacks, regardless of how much force is applied to character the character replication will still stay the same

#

wait u have luau role

true monolith
#

anyone of you need help with ur roblox game?

#

trust me I am decent

fickle pebble
fallow gulch
#

should i use promises

meager knot
#

whats the minimum payment cost for a scripter to script a whole bgs game?

#

with some precision

quaint wind
#

do you guys think if i was to make a roblox executor would help me on my portfolio

stiff saddle
# quaint wind do you guys think if i was to make a roblox executor would help me on my portfol...

Creating an exploit is a challenging task that typically requires a full team and can take months to complete. If you're working alone, it may be even more difficult. However, successfully developing such an exploit would demonstrate your coding skills and commitment. While I don't necessarily recommend pursuing this path, it could be a valuable addition to your portfolio as it showcases your abilities.

#

those who saying this msg was by chatgpt it is wrong see img

valid crypt
#

yo how do u script yall? 🥹 ✌️

stiff saddle
#

but..

stiff saddle
#

i never made one so i don't know

stiff saddle
valid crypt
#

local find child = i know what im doing

#

thoughts?

stiff saddle
#

;-;

#

one challenge for u

#

u goota decode what i send

valid crypt
#

come

#

alr

stiff saddle
#

but i can't send link over here soo

valid crypt
#

i know my shit

stiff saddle
#

dm lets seeeee

valid crypt
#

im not an actual coder 🥹

#

if u diddnt notice yet 😭

stiff saddle
#

ye ik

#

;-;

#

i noticed it there

#

local Workspace = game:GetService("Workspace")

#

u could do this to prove

#

;-;

valid crypt
#

i should lokwye hire u man

stiff saddle
#

;-;

stiff saddle
#

that's on u 😭

valid crypt
#

how many years or month have u been coding?

stiff saddle
#

1 year

quaint wind
#

im almost done

sacred widget
#

making an exploit has nothing to do with ur roblox dev expertise

stiff saddle
neat thorn
#

WHOEVER CAN MAKE AKINATOR 1:1 IN PYTHON — I’M PAYING 15K.

stiff saddle
#

ye

quaint wind
#

could take about 2 days

neat thorn
#

its not ez

quaint wind
#

depends then

#

dm more info

neat thorn
#

i want like many ppl in it images of them

stiff saddle
quaint wind
#

on it and i think i can help

stiff saddle
trim onyx
#

if you can help me with a script on the heath bar i give 100 robux not complicated but im new

#

dm me if intested

trim onyx
#

hu

#

nah ur crazy

twin cairn
#

I might be crazy, and I am still very much learning LUAU but I want to sort through a list of modifiers and add those to my cache. These modifiers are all effects of certain items in the game. I currently run if / elseif loops for each of the upgrades to sort through what kind of added bonus they should have. Is there a more efficient way to handle this? My current code (Snippet)

    for itemId, _ in pairs(result.Inventory.ownedUpgrades) do
        local upgradeStats = gameConfig.Upgrades[itemId] or nil
        if upgradeStats and upgradeStats.Effect then
            local effect = upgradeStats.Effect
            if effect.Type == "BaseClickAdd" then
                mods.ClickAdd += effect.Amount
            elseif effect.Type == "ClickMult" then
                mods.ClickMult += effect.Amount
            elseif effect.Type == "BuildingBoost" then
                mods.BuildingSpecific[effect.Target] = (mods.BuildingSpecific[effect.Target] or 1) + effect.Amount
            else
                warn("Add effect type:"..effect.Type)
            end
        else
            warn("Missing upgrade or effect, refering to:"..itemId)
        end
    end
#

If I where to add a new boost I'd have to add it to this logic and to the gameConfig, is that the best way to do it or would there be a better way to do it?

edgy venture
#

yall think im allowed to send 10 billion requests in 5 seconds or nah

mild mist
#

Hey I got a question wat is the site where you can see the graph representation of a function?

median flame
quaint wind
#

bot lmoa

#

@somber vault

#

please ban this bot

#

hes avertising

#

and its a virus

slender mantle
#

i aint a bot

fair mantle
#

“I ain’t a bot”
Proceeds to paste a message like a bot

stiff saddle
#

@trim onyx dm

#

Yep real booot

#

Bot ....

#

🥀 bro had one job....

nocturne onyx
#

it automatically knows what workspace is

mossy lynx
lunar mist
#

Looking for investors for my new game which is releasing soon, DM me if you want to see the game or invest. SERIOUSE ONLY

frozen cypress
#

guys
how much would it approx cost
to hire a scripter to script game like rivals, we have a lead scripter but need someone who can do module and sh uk
and spend like good time on it
I am thinking like 40k to 30k is it possible?

unkempt rivet
#

whats the general opinion on usin ai to learn

mossy lynx
#

it can be confusing for more advanced stuff tho?

#

yo why isnt my code working, it dont even play animation

local tool = script.Parent
local character = nil
local part = game.ReplicatedStorage.Models.WaveModel

tool.Equipped:Connect(function()
character = tool.Parent
end)

tool.Activated:Connect(function()
local humanoid = character:FindFirstChild("Humanoid")

local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://79679148125725"

local track = humanoid:LoadAnimation(anim)
track:Play()
wait(1.2)
local clone = part:Clone()
clone.Parent = workspace
local HRP = character:FindFirstChild("HumanoidRootPart")
local direction = HRP.CFrame.LookVector

clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
wait(0.2)

local connection
local RunService = game:GetService("RunService")
connection = RunService.Heartbeat:Connect(function(dt)
    clone.CFrame = clone.CFrame + direction * 10 * dt
end)

end)

white seal
untold sierra
#

Hello everyone! I'm brand new to game making and working on a cool project where the player slides down a fixed ramp/track and has to move left and right to dodge obstacles and jump, I'm currently stuck on the main movement mechanic (the sliding and lane switching). I've tried many tutorials over the last week, but nothing seems to work well for this style of game. If anyone has experience with endless runner/sliding mechanics (like a downhill roller coaster path), could you please lend a hand?Any advice or link to a relevant tutorial would be amazing! Thanks! DM me or reply below! THK 🙂

short galleon
#

I think we can work here too

untold sierra
golden sedge
#

paying 500 rbx if somone can code my punching animation to the player

#

like a tool

worn ridge
#

I’m thinking about prolly completing my story mode first

#

Then I’ll get Npc ai for like 30$

#

and call it a day

deft coral
# worn ridge The greed

did u rlly follow me into another chat after 30 minutes to just say "the greed" and give me some kind of report like im your boss lol

cunning trail
worn ridge
deft coral
#

he asked how much for ai that makes npcs walk around and i said like 200 bucks cuz of the setup and hes calling me greedy over and over lol

cunning trail
#

check that again

cunning trail
#

also you didnt close your heartbeat

mossy lynx
cunning trail
#

make sure to connection:Disconnect() somewhere

mossy lynx
#

why? it works fine without it

cunning trail
#

memory leak

#

itll run forever

#

Unless im out of the loop here

mossy lynx
#

oh

#

is that why I tried putting a cd

#

look at this new code rq?

#

local tool = script.Parent
local character
local part = game.ReplicatedStorage.Models.WaveModel
local Debris = game:GetService("Debris")
local cd = false

tool.Equipped:Connect(function()
character = tool.Parent
end)

tool.Activated:Connect(function()
if cd == false then
cd = true

local humanoid = character:FindFirstChild("Humanoid")
humanoid.WalkSpeed = 0

local forcefield = Instance.new("ForceField")
forcefield.Parent = character

local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://79679148125725"

local track = humanoid:LoadAnimation(anim)
track:Play()
wait(1.2)
local clone = part:Clone()
Debris:AddItem(clone, 1)
clone.Parent = workspace
local HRP = character:FindFirstChild("HumanoidRootPart")
local direction = HRP.CFrame.LookVector

clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
wait(0.2)

local connection
local RunService = game:GetService("RunService")
connection = RunService.Heartbeat:Connect(function(dt)
    clone.CFrame = clone.CFrame + direction * 21 * dt
    wait(0.5)
    humanoid.WalkSpeed = 16
    forcefield:Destroy()
        wait(3)
        cd = false
        if cd == true then
    
                end

            end)
        end
    end)
#

dont mind the forcefield stuff aidn the extras

#

but the cd, it doesnt work, it works at first but then it has no cd after it goes off cd

#

i use it once, theres a cd i use it again when its off cd and theres no more cd

#

is it cz i dont close it

cunning trail
#

you have wait(0.5) under heartbeat

#

heartbeat happens every frame

#

which means your wait, walkspeed, ff, and cd are being called every frame

mossy lynx
#

which would do?

cunning trail
#

hold on

mossy lynx
#

it works perfectly fine to me but maybe theres stuff im mising

cunning trail
#
local tool = script.Parent
local character
local part = game.ReplicatedStorage.Models.WaveModel
local Debris = game:GetService("Debris")
local RunService = game:GetService("RunService")
local cd = false

tool.Equipped:Connect(function()
    character = tool.Parent
end)

tool.Activated:Connect(function()
    if cd == true then return end  
    
    cd = true
    local humanoid = character:FindFirstChild("Humanoid")
    humanoid.WalkSpeed = 0
    
    local forcefield = Instance.new("ForceField")
    forcefield.Parent = character
    
    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://79679148125725"
    local track = humanoid:LoadAnimation(anim)
    track:Play()
    
    wait(1.2)
   
    local clone = part:Clone()
    clone.Parent = workspace
    Debris:AddItem(clone, 1)
    
    local HRP = character:FindFirstChild("HumanoidRootPart")
    local direction = HRP.CFrame.LookVector
    clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
    
    local connection
    connection = RunService.Heartbeat:Connect(function(dt) -- this runs every frame
        if clone.Parent then  
            clone.CFrame = clone.CFrame + direction * 21 * dt
        else
            connection:Disconnect()  -- this closes it for good
        end
    end)
    
    -- call this after and it only runs the once. done.
    wait(0.5)
    humanoid.WalkSpeed = 16
    forcefield:Destroy()
    
    wait(3)
    cd = false
end)
#

try that

#

see what i mean

#

you stick the wait, walkspeed, and ff:destroy after you close the heartbeat

mossy lynx
#

do I need to use the ends, can I justg put connection:Disconnect()

#

*move

#

my bad

#

I js added a connection:Disconnect() seems to work

cunning trail
#

the one that closes the function or the one that closes the if?

mossy lynx
#

but cd still broken

#
   else
            connection:Disconnect()  -- this closes it for good
        end
    end)
#

you did this, I added connection:Disconnect() only and it worked kept the ends at the bottom like this

cunning trail
#

end IF, end the function wait walkspeed ff wait(3) cd = false end the outer function so yeah that should be good

mossy lynx
#

wait

#

it doesnt play the code

#

I need to add the wait before I close the heartbeat

#

disconnect it

#

if i dont, it wont have time to run

#

clone.CFrame = clone.CFrame + direction * 21 * dt
wait(1)
connection:Disconnect()
humanoid.WalkSpeed = 16
forcefield:Destroy()
wait(3)
cd = false
if cd == true then

                end

            end)
        end
    end)
#
clone.CFrame = clone.CFrame + direction * 21 * dt
            wait(1)
            connection:Disconnect()
        humanoid.WalkSpeed = 16
        forcefield:Destroy()
            wait(3)
            cd = false
            if cd == true then
        
                    end
    
                end)
            end
        end)
#

this is what I did, if I dont use the wait then it automatically disconnects without playing the whole thing

#

but if I use the wait then my cd is broken

cunning trail
#

heartbeat should play no matter what if thats what you mean. you dont need to finish the wave before disconnecting. Are you having issues getting rid of the clone?

#

if so just use debris

mossy lynx
#

no I alkr used that

#

=so basically

cunning trail
#

Debris:AddItem(clone, 1)

#

odd

mossy lynx
#

when I disconnect right after it like this

#
clone.CFrame = clone.CFrame + direction * 21 * dt
            connection:Disconnect()
#

it doesn't play the full thing, it doesnt move for 21 studs it stays in 1 spot

#

if I don't do it or put a wait, it works and does the whikle thing but my cd stops working

cunning trail
#

oh shit isee what you mean

#

its disconnecting before it has a chance to move

mossy lynx
#

yeah

cunning trail
#

Is the model anchored?

mossy lynx
#

yeah

tall sedge
#

How can I “extend scripts” (Godot) but in Roblox?

cunning trail
#

its odd becuase adding the model to debris after 1 second should nil the clone.Parent and it shouldnt dissapear until then

#

wtf

#

im gonna play around with this some more

mossy lynx
#

alr appreciate it

#

@cunning trail tbh even if u cant get it, this is js a test ability im makinmg

#

its my first ability i ever made

#

im learning so it doesnt rlly matter that much

potent igloo
peak jolt
boreal musk
#

@frigid flax are you looking for animator ? I’m nxy friend btw

mossy lynx
# cunning trail im gonna play around with this some more

I figured it out, I js thought of it, I could do the disconnect outside of the script because im pretty sure the other stuff was INSIDE the heartbeat but i was disconnecting the script mid heartbeat script so the rest didn't play

#

i js did this

#
connection = RunService.Heartbeat:Connect(function(dt)
        clone.CFrame = clone.CFrame + direction * 21 * dt
    end)
    task.wait(1)
            connection:Disconnect()
        humanoid.WalkSpeed = 16
            wait(3)
            cd = false
            if cd == true then
charred pulsar
cyan canyon
# charred pulsar cause luau is not an OOP language

Noticed theres no way to represent booleans as bits in Lua so here’s a bit class! You’re welcome guys

type Bit = {
       value: (0 | 1)
}

local bit = {}
bit.__index = bit

function bit.new()
       local self = setmetatable({}, bit)
       self.value = 0
       return self
end

return bit
tired socket
#

Can someone here help me out real quick please

somber vault
#

anyone know a tool that checks my code line count excluding spaces and comments?

cyan canyon
#

Plugin lines of code

charred pulsar
somber vault
#

nvm got it barely hit 200

dense geode
dense geode
spice summit
chilly canyon
cyan canyon
snow bramble
#

Sorta not code but more physics related

#

If everything is welded together, do parts with collisions still get calculated individually?

median flame
#

yes

snow bramble
#

Or is the welded object have a combined physical calculation

snow bramble
#

So in that case, instead of a bunch of parts, would making specific collision hitbox meshes be better?

median flame
#

for performance reasons no

#

but yes it would work

snow bramble
#

This is my collision model currently

#

Maybe I could just union everything or is that even worse

median flame
#

union is even worse

#

is the mesh not accurate enough?

quaint thunder
#

can someone tell me if the size of my hitbox is good

tame ibex
wraith nymph
elder abyss
#

Dm me if ur a good active scripter, dm me, payment usd

snow bramble
dense geode
#

did he want pathfinding or what

#

how optimized did he want it to be

tall sedge
# dense geode wdym

Question was already answered. “there is no inheritance built in to luau if you want it you need to implement it yourself”

deft coral
#

thus why i gave a reasonable quote for an actually good pathfinding npc* system

#

he complained to me cuz someone else random without any merit said "30 bucks" so he just decided thats what a normal price is lol

dense geode
deft coral
#

yeah literally

dense geode
#

it really depends but 30 bucks is crazy

haughty trail
#

imagine using oop

charred pulsar
haughty trail
#

oop and amazing in one sentence

#

😂

remote bear
#

my code works but if i keep walking the animation don't update until i stop then move again

haughty trail
#

sure sure xd

#

oop is the ultimate showcase of how advanced roblox scripter is

#

oop is the god

#

the paradigm so advanced its so good

native sail
#

suggest some games or things to make for my portfolio i am bored no comms atm

remote bear
haughty trail
#

oop sucks ass

#

its disgusting

#

its slow and complex

remote bear
haughty trail
#

i feel like there is no point elaborating on this

#

cuz u wouldnt get it

tribal meadow
#

Does anyone have a good car developing video I can follow?

remote bear
haughty trail
#

im not worried about it

#

and its both

#

format and performance

native sail
#

w data tabel lol

remote bear
native sail
#

DEFAULT_DATA means we have to not change things under it.

#

It is the default value which should not be changed

remote bear
native sail
#

ok

balmy sorrel
#

@warm bloom is your projectile code framerate dependant?

warm bloom
balmy sorrel
balmy sorrel
warm bloom
balmy sorrel
balmy sorrel
# warm bloom wdym by that

Normally when a projectile tumbles, it rotates pretty unpredictably. So it's reasonable to just randomize the drag coefficient as well as adding some randomness to the velocity. However using math.random doesn't really allow for a result that can be replicated perfectly since math.random's seed is the unix time it was called at. That being said, using Random.new() allows you to set the seed and get the same exact results every single time. So that's you can use it to replicate trajectories.

#

I've used it for projectile trajectory validation and it works pretty well

#

The only issue is moving parts

#

my workaround for it was using a secondary recursive cast to detect if the cast did pass through players. From there you can determine how much power to lose and store that any way you want

deft coral
#

if u have the collision snapshot time u can get the same result on all machines

#

though i wont discourage the newer Random library at all, it is better, just math.random does have a seed parameter

balmy sorrel
balmy sorrel
#

oh

deft coral
#

math.randomseed sets the seed for math.random

balmy sorrel
#

yeah it does, but Random.new sets a seed for a specific random object (no clue what to call it)

deft coral
#

it is called a Random object yes

balmy sorrel
#

oh ok

deft coral
#

and yeah again im not discouraging Random you should def just use it

balmy sorrel
#

nah ofc I get what you're saying

deft coral
#

i was just clarifyting cuz i say you say math.random uses unix time as the seed and thats not always true yea

#

u get it

balmy sorrel
#

I shouldn't have said you can't set the seed because you can

#

it just modifies it for your own run context

stiff saddle
#

who pinged me

stiff saddle
#

???

tardy pasture
#

why u ping me ?

stiff saddle
#

because u did

tardy pasture
#

i didnt ?

stiff saddle
#

where did i pinged

#

i never pinged u

tardy pasture
#

u be trippin

stiff saddle
#

caught

tardy pasture
#

photoshop

stiff saddle
#

let me show some nwe ones

tardy pasture
stiff saddle
tardy pasture
stiff saddle
#

figmaa

tardy pasture
#

oof i was thinking

#

figma way better for ui

stiff saddle
#

im borke so i don't have photoshop

#

yes

lean radish
#

how much would yall charge for a semi-complex omni directional mobility gear system from attack on titan?

lean radish
smoky frost
#

Goated tool, completely free

topaz pulsar
#

So i am making a battlegrounds game and im not sure how to sync all the animations. Because i've tried starting it local and then sending it to server, but this is not syncing at all. I've tried also to do a remote event and having then the animation starting local, but this is also not syncing correctly. What is the best way to sync the animation, so like a attack animation and a hit animation...

deft coral
topaz pulsar
deft coral
#

U do that by playing it from clients

static forum
#

Hey guys I am looking for a partner who can help me finish my game currently need to be monetised and some bugs thats all

noble tartan
#

whats sum cool to script that would get accepted for scripter application?

smoky frost
#

Requirements are delusional

noble tartan
smoky frost
noble tartan
#

what was it that u submitted

smoky frost
#

I explained in media why I got denied 3 times

#

And what i submitted

smoky frost
#

Yeah

#

I can code better than like, idk, 99% of this shitty server prob, but "uh u don't have enough LoC"
Roblox is trash either way, so whatever

noble tartan
#

the requirements are ode ngl

fresh oak
#

Mine got declined for not using comments properly sad_hamster

noble tartan
#

😭

#

i commented on every single line explaining everything, used guard clauses

#

n all the functions were for the combat like swing, block, critical, etc

#

which was simple n easy to follow btw

fresh oak
peak jolt
#

post the code

noble tartan
#

bro i was lit takin every precausion

peak jolt
#

you dont need comments for every single line neither in real life nor in your application

noble tartan
#

i was onna mission to get accepted

lilac gale
#

if it’s complaining about code quality and your usage of the roblox api maybe focus on that over commenting

noble tartan
#

code quality was fine

#

imo lol

peak jolt
#

post it then

noble tartan
#

hollon

lilac gale
#

that’s the first thing they mention

noble tartan
#

ill js post sum current combat code

#

this was like 6-7 months ago

#

i never bothered to apply again

peak jolt
#

i mean you are of the opinion that the old code unfairly got denied so im asking for the code you submitted to the application to see for myself

crimson plank
#

are vfx on client too heavy

noble tartan
#

no

smoky frost
noble tartan
crimson plank
noble tartan
#

i lowkey forgot idk if its this

crimson plank
#

on server vfx r heavy?

smoky frost
#

Tf does this even mean? U render VFX client-side always

noble tartan
#

but the framework was hella similar to that

crimson plank
smoky frost
#

U can't render them on server tho

#

In terms of actual rendering

crimson plank
#

hm

smoky frost
#

It gets replicated and drawn on the client

noble tartan
#

ngl now that i see it that code is a lil dookie

#

but lmk croski

peak jolt
#

i mean i can criticize it but i dont really know what the app readers are looking for

#

if their only problem was "not enough roblox api" then you just picked a "too boring" script

#

i can nitpick a bunch of architectural and code problems but those werent listed on the decline reasons

smoky frost
#

Those applications are like HRs reviewing ur CV

#

Complete idiots reviewing something that they don't understand

noble tartan
#

oof i found the og code i submitted

fresh oak
#

So if u make it too complex for them to understand, u pass??? cathello

noble tartan
#

bra i was puttin guard clauses everywhere

#
-- Guard clauses to check player states, swinging debounce, and if the player has the sword equipped and if the player has a root and character exists
        if not Character or not Root or not Humanoid or Humanoid.Health <= 0 then return end
        if not GlobalData.Equipped then return end
        if GlobalData.SwingDebounce then return end
        if StateManager:GetState(Character, "Stunned") then return end
        if StateManager:GetState(Character,"CombatStun") then return end
        if StateManager:GetState(Character,"Blocking") then return end
peak jolt
#

post it

#

the whole thing

noble tartan
peak jolt
noble tartan
#

its mostly the exact same js minor changes n guard clauses ode

#

cus the 2nd time i got denied for a combat they complained abt <200 lines and that i wasnt using guard clauses

#

what was rlly frying me is that idek how some scripters got the role ive skimmed thru scripter hireable n some ppls stuff literally looks chips 😭

peak jolt
#

you have a thing called statemanager but it doesnt actually manage state its just a value registry

#

your sword script does the job of "managing" the state

peak jolt
#

when they ask for guard clauses that doesnt mean needing to put 20 returns you can still just use "and"

smoky frost
#

People that review don't know shit they are doing

noble tartan
#

the statemanager is js to check the state, and change it

signal crest
#

What's this for?

peak jolt
#

you have a lot of repeated code for example all methods need the character, root and humanoid

noble tartan
#

i mean its lit all functions for the combat

peak jolt
#

you have a lot of numbers that arguably can be refactored out into a data source or just global variable

noble tartan
#

can i see some of ur code

#

if u dont mind

peak jolt
#

all of the functions do this:

            local Character = Player.Character
            local Root,Humanoid = Character:FindFirstChild("HumanoidRootPart"),Character:FindFirstChild("Humanoid")
            
            -- Block running if the player is in any other sort of combat state
            if not Character or 
```this is just going to error if character is nil on the 2nd line, your "if not character" check is entirely redundant
peak jolt
#

in one of your functions you check if "'s Sword" exists but in another you rely on its existence:

Character:FindFirstChild(Character.Name.."'s Sword"):Destroy()
```this may as well never error but you have implicit control flow here that is hard to debug or work on later
fresh oak
#

Classes are handy :)

peak jolt
#

you have task.delays that reference the sword and its children after defensive checks, but those defensive checks could fail 0.4 seconds later if you aren't storing the actual instances into the closure

#
task.delay(.4, function()
    Sword.Handle.Trail.Enabled = false
end)```
noble tartan
#

i alr made a check for that

#

in the server event

peak jolt
#

then none of them should be checking for "if not Character" if you are so sure

#

wasted lines wasted lookup

peak jolt
#

if this is required from a server script that already checks for the character all of these methods could just take the character (or Player with a guaranteed .Character field) as a parameter to make it less stateful

#

same with root and humanoid to save yourself more lines

#

depending on the lifetime the whole module could take those 3 parameters on creation and then reuse them across function calls

#

hard-coded WalkSpeed overrides make it very hard later on to add more things that modify the walkspeed

noble tartan
#

u right

#

btw

#

what did u submit when u applied

edgy pike
#

I'm not really used to type checking (not in roblox at least)

type Matrix = {
    matrix  : {{number}},
    rowSize : number,
    colSize : number
}

is this the right way to check for arrays of number arrays for the variable matrix

peak jolt
edgy pike
#

ok felt a bit odd so I wasn't sure

#

thank you

peak jolt
noble tartan
#

ah

peak jolt
noble tartan
stiff saddle
#

'-[

native sail
#

should i script this type of system for my portfolio??
i'd also make it open source

native sail
#

A mobile type bank system mainly

somber vault
native sail
#

Yes Obv it's my level

somber vault
#

I'm asking because a 'bank system' would just mean making transactions and logging them

deep oyster
#

Scripting the system itself won't be hard.

floral zenith
#

Guys, I have no ideas for what to make in scripting. How can I get ideas so they never run out?

mighty veldt
#

guys i need help

#

letme show you my video

#

i acnt upload vids

#

that sad