#code-discussion

1 messages · Page 272 of 1

smoky flare
#

wym by temporary data storage

prisma vigil
#

Hm

#

Say you have a number I guess, and please anyone correct me if i'm wrong, that you want to save for a few seconds and discard it

#

a userID for example

smoky flare
#

uh huh

prisma vigil
#

you store the userID in some sort of table to be used in a function one time

smoky flare
#

oh ok so cache is like storing things in tables?

prisma vigil
#

lowkey don't know how to describe that

prisma vigil
#

i'll say tables are the means of storing that data to be used temporarily, and the cache is where it goes

smoky flare
prisma vigil
#

im a beginner though so i'd also read or learn more about it via articles

prisma vigil
#

thats how cpu memory works 😭

#

and like memory down to a super-fine detail

smoky flare
#

ooo maybe it might help

prisma vigil
#

i have that bookmarked too lmao

smoky flare
#

i dont know these . boofers , caches, replica

#

anywhere i can learn those

distant hamlet
#

replica 💔

smoky flare
#

yes

distant hamlet
#

we left replica in 2020

smoky flare
#

its not good?

distant hamlet
#

its ass

#

just replicate manually

smoky flare
#

alr

distant hamlet
#

sure it pretends to simplify ur shit

#

but its just an unnecessary indirection

smoky flare
#

mmm

#

what about object poolin

distant hamlet
#

thats fine

smoky flare
#

whats the best way to optimize code...

#

im bad at optimization ;/

tribal meadow
#

hi guys

#

I'm trying to make an ODM gear for my portfolio and I just can't seem to get the physics right

smoky flare
#

whats ODM

tribal meadow
prisma vigil
ashen narwhal
#

dm me

tribal meadow
#

I want to fly

tardy mason
cloud atlas
quasi urchin
#

guys hiw can i make it so these messages don't appear?

kindred sonnet
#

anyone got advice for scripting in general, like
something thats helpful to get to know early

quasi urchin
#

What stage u at

smoky flare
#

yo

smoky flare
kindred sonnet
# smoky flare what do u know

really basic stuff, started like a week ago,like my biggest code is a randomizer for items from different rarity pools, don't know the direction yet in which i should be heading

smoky flare
#

u should start by getting the fundamentals

#

its like a language basically , learn words and you can make sentences

quasi urchin
hard terrace
#

how are games able to see if you liked it or not

serene zenith
heady sluice
#

One message removed from a suspended account.

distant hamlet
#

just send delta changes

west tendon
#

and others such as RemoteTable

heady sluice
#

One message removed from a suspended account.

west tendon
#

np

west tendon
shy cipher
#

like stack memory

buoyant crater
wise birch
#

does anyone know how I would make aniamtions for something like a basketball dribble. I tried using a motor6d but its giving me issues and tweening it doesnt look right

shy cipher
sullen yarrow
#

Is this script ai made ?

shy cipher
#

70% positive this is ai

sullen yarrow
#

Thanks for helping

wise birch
#

does anyone know how I would make aniamtions for something like a basketball dribble. I tried using a motor6d but its giving me issues and tweening it doesnt look right

copper cape
#

https://medal.tv/games/roblox-studio/clips/mday9xoNTNi5u-bNk?invite=cr-MSxtVm8sNjczNjE4MTE&v=8
why is this not working 🙏

self.Character.Humanoid.WalkSpeed = 12
        self.Character.Humanoid.JumpHeight = 0
        Events.SetState:Fire("Add",self.Character,"Action",.4)
        local CharacterConfig = CSInfo.GetInfo(self.EquipedCharacter)
        CooldownManager:AddCooldown(self.Character,"M1",self.Character:GetAttribute("Combo") == 3 and 1.7 or CharacterConfig.M1Cooldown)
        
        local AnimationFolder = Rs.Assets.Animations[self.EquipedCharacter].M1s
        local Track: AnimationTrack = AnimationHandler:playAnimation(self.Character,AnimationFolder[self.Character:GetAttribute("Combo")])
        
        self.Trove:Add(Track:GetMarkerReachedSignal("hitreg"):Once(function()
            if StateManager.RetrieveState(self.Character,"Stunned") then
                Events.SetState:Fire("Remove",self.Character,"Action")
                AnimationHandler:stopAnimation(self.Character,Track)
                return
            end
            local ServerArgs = {
                Module = "Combat",
                Action = "Hit",
                Character = self.Character,
                EquipedCharacter = self.EquipedCharacter,
                Combo = self.Character:GetAttribute("Combo")
            }
            Events.Server:Fire(ServerArgs)
            if self.Character:GetAttribute("Combo") == 3 then
                SetCombo(self.Character,1)
            else
                SetCombo(self.Character,self.Character:GetAttribute("Combo")+1)
            end
        end))
        task.wait(Track.Length)
        self.Character.Humanoid.WalkSpeed = 16
        self.Character.Humanoid.JumpHeight = 7.2

Watch Untitled by CHERR1 and millions of other Roblox Studio videos on Medal. #robloxstudio

▶ Play video
opal spear
#

I dont even see closing brackets

#

but at least it needs to be using modules and trove which is good

#

I mean maybe, but some people like to code it all to keep it in rojo / github instead of doing it and saving it in repstorage

copper cape
# opal spear dawg send the entire thing

oh mb i forgot to send the main part

print(tick()- self.LastM1)
    if tick() - self.LastM1 >= 1.5 then
        SetCombo(self.Character,1)
    end
    self.LastM1 = tick()
    print(self.Character:GetAttribute("Combo"))
    print(tick()- self.LastM1)
#

this is where i handle the combo reset

#
local function SetCombo(Character,Amount)
    Events.SetCombo:Fire(Character,Amount)
end

Events.SetCombo.OnServerEvent:Connect(function(player,Character,Amount)
        Character:SetAttribute("Combo",Amount)
        if Amount == 1 then
            print("Reset Combo")
        end
    end)
opal spear
#

is there a reason ur setting the attribute

#

is that for UI purposes

copper cape
#

no bro am dumb

#

i am never doing that again

#

idk why i tried to be different this time

novel parrot
copper cape
#

i always used variable

novel parrot
#

I always forget what RS is

#

(its runservice)

opal spear
#

No I mean I use attributes HEAVY because theyre innately replicated server to client but I was wondering if theres a reason

shy cipher
shy cipher
copper cape
#

bro i couldnt use attributes in server anyway

#

i had to send combo as an data part

#

to access it without any missallignments

#

😭

opal spear
shy cipher
opal spear
#

Yeah unless you set them ALL in one place on start up with nil or empty values I never ever set attribute unless its at startup, but this requires careful system planning and knowing what ur gonna be doing, only times I do is on mobs for example if I need to mark it dead for a prox prompt to show up or something

#

Attributes made me not quit dev, I dont like remote events for communication with UI, I only accept them for server to client or clitent to server under specific situations..

opal spear
#

I dont use remotes for UI, I refuse, I use them for other things

copper cape
#

for ui isnt signals best approach

void tusk
#

there is no such thing as best approach

opal spear
#

signals are kind of like bindables

copper cape
#

ye

opal spear
#

they can only go server to server or client to client

copper cape
#

i mean signals are better then using runservice and other heavy loops

#

imo

opal spear
#

but UI needs server info alot

void tusk
#

signals can be messy but ig similar to them observables can be helpful

#

using a networking library / compiler can make working with remotes a lot nicer

opal spear
#

Every single project I start I just copy past my bootstrapper initiation for server and client module scripts with a registry, they all work off dependencies so I can easily just self._ them

copper cape
#

yo so can someone help 😭

opal spear
copper cape
#

ok we can dm

opal spear
#

also tell me what type of script the code is in

#

module script or reg script

void tusk
void tusk
#

i wish more people would dm me for help with the end result of payment

shy cipher
#

mods, seize him

void tusk
#

it aint a crime to get paid

cinder siren
#

getting paid minimum wage is like robbing banks

void tusk
#

they call me al capone

cinder siren
#

just you

ember turret
west tendon
#

however your question isn't wrong, yes you will, perhaps 80% at least

final harness
#

Hi guys

#

Can i ask

#

Oh nvm real man dont ask if they can ask

#

To start a game and hire scripter what should u do ?

#

Or u guys use a specific place

west tendon
#

that's the specific place

tall bramble
#

can you skip the learning feature on game ads

thick mica
#

i really need someone to help me abt this, how should i start learning roblox lua scripting?, any tips as to how to begin? i wish to continue until im good with combat mechs and etc

strange wind
tribal meadow
#

Also I want to make it so that the player can rotate too

strange wind
#

I made something like a grapple hook system like that it came out deceny

tribal meadow
#

oh okay

strange wind
#

How can i send vids

#

💔

tribal meadow
tribal meadow
strange wind
strange wind
tribal meadow
tribal meadow
#

can you send it by uploading it on yt or something

#

that will help alot

strange wind
#

It deleted it

#

Wow

tribal meadow
#

Send it in DMs

#

Hiddendevs does that for some reason 💔

rustic coral
#

are you able to do procedural generation with pre-made islands that have terrain?

heady spire
#

but also try out stuff that they talk about yourself

#

and after that just experiment trying to make little things with whta u know and if u dont know ask around or check devfourm or lua reference and if all else fails ask chatgpt but dont rely on it to write you code, save ai as a last resort

elfin timber
#

if i wanna make a coin rotate just for visuals, do i run that on the server?

#

no right?

elfin timber
sly dome
elfin timber
#

im not even new to scripting

#

😭

sly dome
elfin timber
#

infact i made hella robux with just scripting

sly dome
#

For example my friend forgot yesterday how to make some leaderstats and he's been coding for around 4 years

elfin timber
#

i was just 0% locked in

elfin timber
#

my first time on studio since 2 months, school been hard

#

i remember misspelling leaderstats

#

and i couldnt figure it out

sly dome
sly dome
somber vault
#

Hey mans, someaone worked with battleground or pvp games?

The animations are doing on client , and visual effects are repllied to all clients?
I really want to see the structure and how its organized to i learn better

somber vault
#

Hmm i understand, so have a module that gonna say

"Hey, reply this vfx on that location pleas :>" or..?

whole trench
#

i need some help with dev products

for some reason it works fine in studio but doesn’t work in team test - is this normal?

stone garden
elfin timber
#

@sly dome ok this is funny

#

i forgot how to duplicate things in a script

#

nvm its clone

#

oh my days

stone garden
#

imagine learning how to script in 2026

elfin timber
#

made millions of robux too

stone garden
elfin timber
#

im just washed

stone garden
elfin timber
#

and we were just talking about this typa stuff

elfin timber
stone garden
elfin timber
stone garden
#

from small to a big clean module

elfin timber
#

i have some more but i self deved games

stone garden
#

i m making a build battle right now,

elfin timber
#

im just now getting back in

#

finals in 2 months tho

#

i used to have 2 games

#

2 anime slop games

#

sadly i cant devex about half of my robux cus roblox doesnt like me

#

so im kinda stuck with over 20 mil

stone garden
#

i made

#

4.5m

elfin timber
#

i think my most selling cloth had 300

#

sales

#

i never understood how the hell people made a lot with cloths

stone garden
#

sales are declining a lil bit so

elfin timber
#

i also tried ugc but i just didnt like it so i had like 7 ugcs which made me 200k total

elfin timber
#

W

stone garden
#

look

elfin timber
#

thats cool

#

gl man

stone garden
torn holly
#

u just build and rate it?

stone garden
#

A lobby and so

torn holly
#

maps?

stone garden
torn holly
#

so the building environment changes according to ex. theme?

torn holly
#

that's cool. add player plates

#

i presume this is like a rating game, hypixel or like that one dress up game?

torn holly
#

add plates then, when build is review player can customize their player plate, which is just their general info stuff next to the rating ui

#

add particle emitter blocks with a set limit for each build to negate performance worries

stone garden
#

Everyone build on the same map on client, so they dont see eachother, once the time is done, there blocks position and color get packed inside a table and sent to server to be render and so people can rate there build

stone garden
torn holly
#

whats the ccu and release date?

stone garden
#

I m busy with school

torn holly
#

o, thought its already released

stone garden
#

I dont need robux, its just a fun project for myself

#

Oh no

torn holly
#

one thing though

#

add hotkeys

#

dragging a mouse cursor over to ui is pretty low level

#

efficiency during a time constrained build is very important

#

will excel the builds in ur game

stone garden
#

Chill bro, i m alone making that game

torn holly
#

im talking specific color

#

zzzzzzzz busy

stone garden
stone garden
#

I dont understand what your saying

pure python
#

The dreaded datastore queue!!!

daring solar
#

do i still need to use ipars and pairs or not

#

i found conflicting information online

thorny tundra
iron kraken
#

for i, v in myTable do
print("cuh")
end

heady spire
#

i was asking about this earlier but got some mixed answers, ive got this script to get ability vfx modules + preload animations for the abilities upon switching movesets. the modules clear and change when moveset is changed but how do i like get rid of the loaded animations as someone had said there is a limit to how many animations can be loaded onto a players animator

#

table.clear anims dont work because they are instances so what can i do to like unload the animations

#

or does it even matter someone had said they unload themselves if not referenced but i didnt get entirely what that meant like what counts as it not being referenced

cold walrus
#

can someone help me learn coding ik the basics

daring solar
#

then ive been making good code for the past year

#

lol

rapid eagle
#

soo

cold walrus
#

can someone help me learn coding ik the basics

thorny tundra
# cold walrus can someone help me learn coding ik the basics

I can't help you learn to code, but if you're seeking to escape tutorial hell, here's what I did (and still do!):

  • Learned the most critical ROBLOX API from YT (I used tutorials from BrawlDev) and the ROBLOX API Documentation.
  • Code 1 tiny project per day, always ensuring the project you do contains something you're uncomfortable with/don't understand yet.
  • Track your progress daily, noting down how your trajectory toward expertise is, and adjusting if you're off-track.
  • When you get stuck, ask AI such as ChatGPT, Claude, and Gemini for help with debugging - they aren't perfect, but they provide fast, digestible explanations that are perfect for beginners.
  • Grab tutorial/open-source systems/scripts, and study them when you start reaching an intermediate level. You'll notice programming patterns that you can apply in your own code.

Overall, it comes down to repeatedly doing things you don't know how to do so you guarantee daily growth. Expect to feel stupid, confused, or hopeless at times, as struggle is a part of growth.

Also, asking developers in servers like this one is important, as people with more experience are amazing troves of knowledge.

rapid eagle
#

ok

pale sand
#

roblox scripter 10+ yrs of experience dm or ping me to get started on a comission

dire egret
#

could i ask you gays to help me when my ai code get santa error

west tendon
#

also load animations using the respective Animator not the Humanoid

storm nacelle
#

I’m planning on making simple mobs for my game maybe like 3-4 different ones. I should do OOP for that sort of thing right? It shouldn’t be hard either right? How would you guys go about that. I would have them spawning from a model every X seconds.

rapid eagle
heady spire
#

how can i call destroy on all of them tho

rapid eagle
#

loop?

heady spire
#

it doesnt let me loop through for some reason but maybe because i didnt have it loaded onto the animators themselves

west tendon
#

what do you mean it doesn't let you loop through

heady spire
#

the table i have it setting to

west tendon
#

just run a for-loop on the anims table before clearing it

weak radish
heady spire
#

so like this

#

doesnt work @west tendon

rapid eagle
#

what is that?

west tendon
heady spire
west tendon
#

you initially create anims as a table and later make it a reference to an AnimationTrack itself

#

hence on clean up it's no longer a table

#

and you can't perform a for-loop

heady spire
#

do u see what i wanna do tho like i want all the animationtracks in a table

#

and then i just clear it but is that not possible]

terse stone
#

Hey looking for a scripter that would be intrested in making a game. Looking for a scripter that would be actually intrested in the project and someone that is active and engade in the ide. I have an idea so DM if intrested.

west tendon
#

you're resetting the anims variable every time to a new AnimationTrack

#

instead of storing them in the table

heady spire
#

ohhhh yea shi

west tendon
#

you should still do table.clear on the anims table after the for-loop though

heady spire
#

i forgot how to set it properly to a table bruh i just added this and its working now

#

no errors so must be fine

#

yea and i added .clear

#

thanks

#

also tho if theyre all loaded in this script (the script is just that what i sent), how do i reference the animation track here in a modulescript elsewhere for a specific ability to actually play the animation

#

should i change the script to be a modulescript and return the animations table would dat work

west tendon
# heady spire also tho if theyre all loaded in this script (the script is just that what i sen...

your purpose with this is only preloading the animations, right? if so it isn't a big issue to just load again the animation in the module skills

however, ideally, you shouldn't even be doing this. every skill in a game is divided in 2-3 steps (at least): initialization, activation, and deactivation (for skills that do have a way to deactivate). during the initialization of a skill is when you should load the required AnimationTrack. doesn't really matter destroying the AnimationTrack after the player changes to a different moveset

most importantly I don't think the limit on the Animator is for simply loaded tracks, but active (playing) tracks instead. I'm not too sure but regardless you aren't hitting 256 loaded AnimationTracks unless you cause a bug. I have over 60 skills in my game that as the owner I have access to all (therefore all of them initialize for my character), some loading 2-3 AnimationTracks, alongside items and others that load more animations into the Animator. even with access to all items, skills & tools at the same time I never got a warning about this limit

heady spire
#

wait yea

#

i got a solution

#

the only reason i was doing this was because the animations would appear delayed but i think i know what i can do

pale cloak
#

most serious channel

heady spire
#

nvm

heady spire
#

i can obv load the animation when the ability is called but the first use always has the animation delayed and messed up then so do u not preload the animations or if u do then how

west tendon
#

the moment you require the moveset module is when the AnimationTracks should be loaded for each skill

#

then you're able to use the functions you have in the module to activate the skills

#

let me give you an example

heady spire
#

if i require the modulescript on a local script can i get the player in the modulescript from localplayer

west tendon
#
local myActions = {}

myActions.Fireball = function(character: Model)
  local animTrack = -- ...
  
  return {
    Activate = function()
      -- fires
    end,
  }
end
#

this is an example of a global actions module

heady spire
west tendon
#

you shouldn't require it in the client

fluid coral
#

rate my script 🙏

local function HelloWorld(message)
  message("HelloWorld")
end
HelloWorld(print)
heady spire
#

hmmmmm

west tendon
# heady spire yea i have it somewhat like this but im just not sure how u load the tracks onto...

you'll have to set it up similarly to how I did. an example of how to trigger the Fireball actions using that template:

local actionsModule = require(path.to.myActions)
local fireballAction = actionsModule.Fireball(character)

-- upon fire skill event is fired
fireballAction.Activate()

this way the AnimationTrack for the Fireball action was loaded when the action was set up, and it's only effectively played when Activate() is called

#

or if you have a single module for each moveset, you can do it similar to this:

return function(character: Model)
  local punchTrack = -- ...

  return {
    Punch = function()
      -- do punch
    end
  }
end```
#

and then require it this way:

local movesetModule = require(path.to.module)(character)
elder turret
#

how many ccu does 10 ad credits/ day get u

iron kraken
stray crypt
#

What’s the best way to learn scripting step by step? Cuz I’ve been stuck watching tutorial after tutorial, I’ve read the Roblox docs but it’s difficult to understand. Like I get the basics, like making part instances and functions. But the skill curve is too steep to understand much else. And if I try using my current knowledge to make any game mechanic, I can’t. And simple mechanics like collecting coins and adding it to a leaderboard can take 100+ lines and multiple types of scripts. Is it worth following tutorials, or is it better to buy a book or take a course?

celest whale
#

Hello everyone, which way is more optimized and better to make animations?

while true do
script.Parent.Rotation += 1
wait(0.1)
end

or

game:GetService("RunService").RenderStepped:Connect(function(dt)
script.Parent.Rotation += 1 * dt
end)

or any other way?

tulip seal
#

This allows you to preload anything including animations so you don’t have a delay

tulip seal
# stray crypt What’s the best way to learn scripting step by step? Cuz I’ve been stuck watchin...

Put that mindset away. Think of something that you want to create. And just start doing it. Start with the absolute base and work from there. When you have an idea. Sketch out what you need to do, and maybe make a flowchart of all the things you might need to program. Than just get started. If you run into things you don’t understand. Ask AI to explain the concept to you, don’t let it generate code unless you need to check for syntax etc

mild badge
#

anyone know how to make this more efficient?

urban folio
#

Am I doing my plot system correct

#

Nah I Am Good

urban folio
lofty kiln
#

can someone help me with send tutorials for scripting pls

fiery vapor
# mild badge

it'z not bad but heres my suggestions! stop using waitforchild on the server, for the resize function everything will already be there, swap from values & tweens to a single spring on the client instead of the server, and put ur tweeninfo higher in the script so it's a constant instead of being newly created every time

sonic fractal
#

`loop

teleport player to part in workspace
wait 10 seconds
spawn copper roof tiles tool in replicatedstorage to player
wait 255 seconds
give money to player

loopend`

modern sandal
#

if i have no robux then

#

give robux easy

modern seal
#

/e robux

tawny jungle
#

yo hello yall, what thing can i learn that is asked a lot? im a intermediate scripter

plush zenith
tame halo
#

Yo how’d you all originally learn to script? Which websites, tools, etc did you use? Looking for advice as a beginner.

plush zenith
tame halo
tiny zephyr
upper jay
#

practice is the only way to get better

#

if u never apply what u read or watch, ur never learning anything

#

only memorizing

plush zenith
#

i have some ideas on what it might be though

#

no

gray mauve
#

then roblox-ts once u get good

sonic furnace
#

If somebody need 5usd very fast to fix something in my game dm pe

#

me

hot nymph
#

how do I do bitwise comparison in rblx?

void tusk
hot nymph
#

or is it not possible

void tusk
hot nymph
#

ohhh

void tusk
hot nymph
#

ty

gray mauve
#

typescript my beloved

hot nymph
#

is it worth making data compressor (or whatever its called)?

edgy grail
#

I wanted to create connections for buttons and store all the connections with their assigned buttons to a table so I can manage it later on, I know how to use tables and stuff I just haven't had time to figure it out cause I want to create a module for it so I can use it for projects in the future

#

any fixes??

nocturne crater
#

Did Roblox Studio recently updated .lua to .luau chat?

thorn sigil
#

yo do yall got any tips for me like i know what each things do like remote events remote functions how server and client works but i don’t know how to pull all that together to make a working script praysob praysob

void tusk
void tusk
hot nymph
#

making a encoder I think it's called? so larger data structures are less storage wise

void tusk
#

for player data most of the time you do not need to compress data

hot nymph
#

so then I can roll it back

void tusk
#

roblox has versioning for datastores

nocturne crater
#

Anyway, I'm just curious. Not that it would broke anything

void tusk
#

both work luau is the filetype for luau scripts tho

#

would just stick to em by convention

#

(doesnt rlly matter)

nocturne crater
#

Yeah at the end of the day they're both lua

fallow river
#

It's always been luau

vagrant cedar
#

im lowk confused

are classes (like itemclasses) allowed to be in replicated storage or strictly only server sided?

hot nymph
void tusk
#

ProfileStore is just a wrapper on top of the default DataStoreService

#

you should be fine

hot nymph
#

alr

crisp bay
#

yo ho wmuch % do scripters get for cash grab games, like the market expectation

plush zenith
civic garnet
#

% and $ if theyre really smart

crisp bay
#

hes a freind

#

i needa know

#

how much i should offer

#

games got preety good game loop, rlly similar to tsunami, but nothing to do with tsunami

civic garnet
odd knot
#
task.delay(IMPACT_DELAY, function()

        local humanoid = character:FindFirstChild("Humanoid")
        if not humanoid then return end
        humanoid.PlatformStand = true
        humanoid.AutoRotate = false
        task.wait()

        local direction = (targetHRP.Position - hrp.Position).Unit
        direction = Vector3.new(direction.X, 0, direction.Z).Unit
        targetHRP.AssemblyLinearVelocity = (direction * KNOCKBACK_SPEED) + Vector3.new(0, UPWARD_SPEED, 0)

        local tripAxis = direction:Cross(Vector3.new(0, 1, 0))
        targetHRP.AssemblyAngularVelocity = tripAxis * 6

        -- Recovery
        task.delay(RAGDOLL_TIME, function()
            if targetHum and targetHRP then
                -- Kill all velocity BEFORE disabling ragdoll
                targetHRP.AssemblyLinearVelocity = Vector3.zero
                targetHRP.AssemblyAngularVelocity = Vector3.zero
                task.wait() -- one frame to let physics settle

                if not humanoid then return end
                humanoid.PlatformStand = false
                humanoid.AutoRotate = true
                targetHum:ChangeState(Enum.HumanoidStateType.GettingUp)
                targetChar:SetAttribute("IsStunned", nil)

                if player then
                    pcall(function() targetHRP:SetNetworkOwner(player) end)
                end
            end
        end)
    end)
end
#

I am trying to create a knockback mechanism where the npc slaps the player and player falls on his back.
the initial part works fine where the player gets slapped and is knockbacked to the ground, but when the player tries getting up, he keeps spinning.
i tried other methods, such as linear velocity but in those methods the player is flung and enters infinite spinning and flies in the air.
so i am using this method now.
please help me create a good and stable knockback effect from a npc slap.

crisp bay
#

how much is the normal

civic garnet
fickle igloo
#

wyd if #Table returns -1?

broken grove
broken grove
distant hamlet
odd knot
broken grove
#

you could've just used a task.wait for the second one

#

dont need a new thread as theres no code after it

odd knot
#

ok i can try that

fickle igloo
#

bro is getting optimization tips

#

w hd

distant hamlet
#

its called common sense

odd knot
# broken grove dont need a new thread as theres no code after it

but during the recovery phase, when the character gets up, they go into infinite spinning, when
if not humanoid then return end
humanoid.PlatformStand = false
humanoid.AutoRotate = true

if player then
pcall(function() targetHRP:SetNetworkOwner(player) end)
end

odd knot
# broken grove dont need a new thread as theres no code after it

i cant figure out how to make them fall when knockbacked and properly stand. they either go spinning when i use linearvelocity or bodyvelocity.
but when i use applyimpulse it works fine although when they try to get up thats when they go spinning like crazy.

#
local function performAttack(zombie, targetChar)
    local hum = zombie:FindFirstChild("Humanoid")
    local hrp = zombie:FindFirstChild("HumanoidRootPart")
    local animator = hum:WaitForChild("Animator")
    local animObj = zombie:FindFirstChild("SlapAnim")
    if not animObj then return end
    local track = animator:LoadAnimation(animObj)

    if targetChar:GetAttribute("IsStunned") then return end
    targetChar:SetAttribute("IsStunned", true)

    track:Play()

    task.spawn(function()
        task.wait(IMPACT_DELAY)
        if not targetChar or not targetChar.Parent then return end
        local targetHum = targetChar:FindFirstChild("Humanoid")
        local targetHRP = targetChar:FindFirstChild("HumanoidRootPart")
        if not targetHum or not targetHRP then return end

        local sound = hrp:FindFirstChild("AttackSound")
        if sound then sound:Play() end

        targetHum:TakeDamage(DAMAGE)

        local player = Players:GetPlayerFromCharacter(targetChar)
        if player then targetHRP:SetNetworkOwner(nil) end

        enableRagdoll(targetChar)
        task.wait()

        local direction = (targetHRP.Position - hrp.Position).Unit
        direction = Vector3.new(direction.X, 0, direction.Z).Unit
        targetHRP.AssemblyLinearVelocity = direction * KNOCKBACK_SPEED
        targetHRP.AssemblyAngularVelocity = Vector3.zero

        task.wait(RAGDOLL_TIME)

        if targetHum and targetHRP then
            targetHRP.AssemblyLinearVelocity = Vector3.zero
            targetHRP.AssemblyAngularVelocity = Vector3.zero
            task.wait()
            disableRagdoll(targetChar)
            targetHum:ChangeState(Enum.HumanoidStateType.GettingUp)
            targetChar:SetAttribute("IsStunned", nil)
            if player then
                pcall(function() targetHRP:SetNetworkOwner(player) end)
            end
        end
    end)
end
odd knot
#

this is disable ragdoll function:

local function disableRagdoll(character)
    local humanoid = character:FindFirstChild("Humanoid")
    if not humanoid then return end
    humanoid.PlatformStand = false
    humanoid.AutoRotate = true
end
broken grove
#

im not an expert for this but ill try to help

#

could it be related to platform stand

odd knot
#

yea thats the only problem

#

but i cant find another method to trip them over

broken grove
#

set their humanoid state to physics

odd knot
#

i use this to trip them

    -- Tip them backward so they fall over
        local tripAxis = direction:Cross(Vector3.new(0, 1, 0))
        targetHRP.AssemblyAngularVelocity = tripAxis * 6

#

without this the character doesnt fall over

odd knot
#

let me try

odd knot
#

tysm

junior night
#

Hiii

astral crown
#

what i need to do if my starter custom characted cant move

#

no part is anchored\

#

no welds

pine plinth
small prawn
#

Lowkey anyone wanna team up and try create a new original game (no ai slop, brainrot etc) Im a scripter, we can split profit equally. (I cant vc tho). We will come up with an idea together. Hoping to get 2-3 people. I have a group we can put the game on, currently has 80 members

small prawn
#

Second time i tried using it it wouldn’t connect

pine plinth
#

its kinda amazing

#

i know nothing about scripting and its making me systems that work

civic garnet
astral crown
#

can anyone heelp

compact spoke
#

But only if we have full endocrine simulation for players

astral crown
#

I created my character with my animations,custom rig, I created my Animate by Claude Ai script instead of the one that is always placed in the player

#

i can jump

#

but cant walk

#

jump animation can play

compact spoke
#

This guy talk like me

civic garnet
#

why are there so many ai skidders coming to hiddendevs for help with their ai slop

compact spoke
#

IDK

astral crown
#

idc is it ai or not

compact spoke
#

I find it crazy that people can prompt ai to maek them stuff but then cant figure out how to make it work ;-; with the ai tool

astral crown
#

i just need to make cashgrab game

civic garnet
small prawn
#

Then wtf do u mean unwould join but cuz of the no ai

civic garnet
#

bad game = no players

#

no players = no money

astral crown
#

no

compact spoke
#

@small prawn You said no ai slop

civic garnet
astral crown
#

bad game = kid players

#

kidplayers

#

=

#

whattt

compact spoke
#

Me: STAB STAB STAB because I'd be stabbing you with, well, my nife

small prawn
compact spoke
civic garnet
#

what the hell

compact spoke
#

Yea

civic garnet
#

ANY ai use = i WILL NOT join

compact spoke
#

You said that @civic garnet Why did you say that

civic garnet
#

stop Putting words in my Mouth

small prawn
compact spoke
#

@civic garnet But he said no ai

#

LOL you turn out to be the fool

small prawn
compact spoke
#

And I laugh at you beacuse its hilarious

civic garnet
compact spoke
#

No money

small prawn
#

I tried lemonade ai

compact spoke
#

For free because it's awesome

small prawn
#

Ages ago

civic garnet
#

No money = ABSOLUTELY no join

compact spoke
#

No mney = join

#

I would join for no money beacuse I am kind

civic garnet
#

man this is complicated

#

what if i just made my own team and competed with this guy

astral crown
#

help

compact spoke
#

But only if we can do full endocrine simulation for players @small prawn And model their blood pressure and interals

astral crown
#

i can send the script

civic garnet
#

@compact spoke join my team for 1 billion/hour

astral crown
#

300 lines

compact spoke
#

No if you used AI to generate it use AI to fix it

civic garnet
compact spoke
#

I'm not going to spend time fixing shit you dont even realy care about

compact spoke
civic garnet
#

meaning you are going to be SPOONFEEDING them?!

small prawn
compact spoke
small prawn
#

What even is endocrine

compact spoke
#

Like hormones

astral crown
#

i making simulator

#

and i created

#

but i need to fix the character

small prawn
astral crown
#

i tried to set hipheight to 0 , 0.2, 12

compact spoke
#

I think he is liek tabbing back in to skim the chat and then react

civic garnet
small prawn
compact spoke
#

Wel we would have to make sure each player has internal organ first

compact spoke
#

Listen close becuase this will then tie into the surgery system @small prawn

civic garnet
astral crown
#

why

#

please

compact spoke
#

If you used AI to genreate it use AI to fix it

astral crown
#

after 10 years ill give u 10000 dollars

#

oreven more

civic garnet
astral crown
compact spoke
astral crown
#

but he cant

#

he saying the samee thing

compact spoke
#

And make sure that the heart realistically simulate each of its chambers

civic garnet
#

i dont think AI has a gender man

compact spoke
#

To give accurate blood pressure reading

civic garnet
#

stop assuming AI gender

small prawn
small prawn
civic garnet
compact spoke
#

After we do that we can start to model brain function and use parts of the brain to control different aspects of the character controller

#

Well hold on @small prawn Its about to get good

civic garnet
#

@compact spoke i will happily create this and OPEN SOURCE it

compact spoke
#

So

#

I don't care

#

It's not a compeition

#

Sometimes we are all just having fun you know

civic garnet
#

who said that this game was specifically a competition

#

open source = contributors = FREE LABOR

compact spoke
#

What

#

It not a competition to see who can make a thing

#

Im just talking about my cool idea

small prawn
#

Are u a scripter or what

compact spoke
#

Yea

small prawn
#

Cuz deadass do yk how hard that is gonna be to script

compact spoke
#

So

#

I make thing like that all the time because its fun and I'm cool

small prawn
#

So like whats the goal of the game

compact spoke
#

Idk

#

Maybe you can shoot people

small prawn
#

Seems cool ig

compact spoke
#

And then there would be realistic medical systems

#

And you could do organ transplants

#

Wait,thats awesome

small prawn
#

We would peob have to keep out blood otherwise roblox would make it 18+ or whatever

#

And less of players then

#

But yeah the bullets can like disable the organs and stuff it hits

civic garnet
small prawn
#

True

civic garnet
#

this is why you SHOULDNT use AI

small prawn
#

Is ts rage bait🙏

compact spoke
#

Blood is a part of reality so we have to includ it

#

For the surgery part

small prawn
#

Wait so whats the surgery for

compact spoke
#

Fun

#

Oh

small prawn
#

Are we makinf a surgery simulator lol

compact spoke
#

IDK maybe I like surgery system in video game

#

Im a paramedic

#

No

#

I'm a pathological liar though

small prawn
#

So the game is we simulate the full human body

#

And then

compact spoke
#

Haha idk that's pretty cool though

small prawn
#

Tou can shoot people

compact spoke
#

To have all that

small prawn
#

Thats gonna be laggy af

#

Lol

compact spoke
#

Yeah maybe

#

Maybe I'll just do it by myself

small prawn
#

K

remote bear
astral crown
#

i have an idea instead of spawning like strater character ill just do mount and make plaers body transparency

#

its geniusly

#

im a genius

astral crown
#

No people can't imagine this imagination skills in 2014

strong sigil
astral crown
#

lets ill be owner

#

and i giveu co owner

chilly canyon
warm flicker
#

would anyone like to join my dev group :D

jade crown
warm flicker
dense spade
strong sigil
# dense spade free?

The module itself was made by GluGPU on devforum. It is free, but my version is far more optimised and realistic (factors size scaling and realistic occlusion).

alpine dirge
#

Why in every channel

dense spade
#

ah i see,is urs open sourced 👀

alpine dirge
#

Not about other people, but sorta against the rules to advertise in channels here

#

#rules is here incase you haven't read

granite salmon
#

.

alpine dirge
granite salmon
#

.

alpine dirge
#

Alright

spare bay
strong sigil
#

Not my latest iteration atleast

royal pebble
#

roblox is genuinely just turning off the ai "assistant" every fucking time i open studio bro

#

it feels sofucking forced

somber vault
#

any ideas for a past work?

#

just trying to improve my folio

royal pebble
#

not that i hate autocomplete but its so fucking annoying like when i need it it doesnt do anything and when i dont it just gives me useless suggestions

weak radish
somber vault
#

i did a tornado

#

thats it tho

weak radish
# somber vault thats it tho

Do stuff that cover the basics of programming like rng, data managing, physics (Maybe the tornado could cover that idk, and similar things

rotund pawn
#

What happened to setpriamrypartCFrame? PivotTo is stupid, I want to set model CFrame by the primary part...

distant hamlet
#

pivot to

somber vault
rotund pawn
#

Yeah but how? PivotTo isnt working as intentended

distant hamlet
#

"pivot to is stupid" followed by "i want to set model cframe by primary part"

rotund pawn
#

okay then explain

distant hamlet
#

just use the damn method bro

somber vault
#

lol

rotund pawn
#

Damn, that is helpful

remote root
distant hamlet
#

maybe read the fucking docs

remote root
distant hamlet
#

sure whatever makes u happy bro

rotund pawn
#

Always happy to see unhelpful idiots here. This chat is for those discussions.

remote root
#

ong

distant hamlet
dim compass
#

pretty sure pivot to already sets it by primary part if there is one

#

else it uses the world pivot of the model

#

pretty sure about that

regal salmon
dim compass
#

thank god i thought you were gonna say i was wrong and that i should quit roblox and stop larping or some shit 😌

regal salmon
#

yeah i don't do that lol

dim compass
#

😌

sinful arrow
#

Anyone here that has an finished project / almost finished / or an nice idea?

still wadi
#

can sm1 dm me and tell me me if this is stolen?

potent igloo
#

is there any way to get more details on recieved data in game? like what remotes are being fired or what is being replicated? im getting a lot of recieved data in game but it looks fine in studio

tardy mason
shy galleon
sinful arrow
shy galleon
oak oxide
#

is anyone familiar with the module3D github module?

sinful arrow
woven palm
#

this server is a joke bru are they expecting me to pay a lead scritper role chump change??? praysob

#

this has to be some jealousy

weak radish
weak radish
#

Normally people dont come along offering 10k in hidden devs tho

#

Is there a marketplace rule you cant post over 5k or something?

woven palm
#

then whats the point

#

like i see why so many big devs told me not to even bother

weak radish
#

Maybe file a ticket or something idk

woven palm
#

theres no rule they just mad

woven palm
weak radish
woven palm
#

stragiht up told me in my face that he THINKS that im not willing to pay

weak radish
#

I dont post in hiring

woven palm
#

like how tf do you know what i got or not

#

swear this server is a joke

weak radish
woven palm
#

which they dont

weak radish
#

I think they want 50% of the payment as proof

#

fs

woven palm
weak radish
#

delete that

#

Crop out the payment and "lead scripter needed" part or just dm me idk

#

Dont give them a good reason to punish u

woven palm
#

sent it in dm

#

read it and see if it breaks anything

#

cuzz to me it dont seem to break nothing

heady spire
dark ginkgo
#

anyone can help me quick i cant give persons permision for team create pls dm me it says: Users can only receive playtest-level permissions for group-owned experiences.

tulip seal
unreal vine
#

hey

verbal stratus
#

anyone mind helping me out im just a beginner and need help with some things

dire egret
#

1million ciggarets

sacred bison
honest fern
#

Give them a role in the group called like Developer or something and have the role have access to editing studio places

dark ginkgo
cold walrus
#

can someone teacvh me scripting ik the basics

shy cipher
twilit steeple
jovial crown
modern mulch
twilit steeple
modern mulch
#

isnt a dictionary basically a table inside of a table but its assigned to a varriable

bright siren
bright siren
jaunty hollow
vivid yacht
#

does anyone have like an aracdey vibe vehicle system they made?

bright siren
#

they're really useful

#

you can also add/replace by indexing a key and giving it a value

#
dictionary[Hello] = "Skibidi" -- searches for Hello key and replaces the value with "Skibidi" if it exists, else it adds a new key to the table witht he value of "Skibidi"
#
dictionary[Hello] = nil -- removes a key and value from the table
bright siren
#

and ipairs() for indexed tables

#

ipairs = index pairs
pairs = key index pairs

modern mulch
#

so each value in a regular table is a index pair while each value in a dictionary is a key of a index pair?

bright siren
#

but the index is a string

#

so for example

#

if you wanted to store which characters have touched an object you could use the character as the key and the value as true

bright siren
# modern mulch so each value in a regular table is a index pair while each value in a dictionar...
local touchedChars = {}
local cooldown = 2

part.Touched:Connect(function(hit)
  local character = hit:FindFirstAncestorWhichIsA("Model")
  if not character then return end

  local humanoid = character:FindFirstChildOfClass("Humanoid")
  if not humanoid then return end
  
  if touchedChars[character] then return end
  touchedChars[character] = true
  -- Code when they touch it

  task.delay(cooldown, function()
    touchedChars[character] = nil
  )
)
#

a dictionary could be useful for something like this

#

so that people cant spam touch a button

#

if stores their character in a table and if it detects that they're inside the table then the event cancels and after 2 seconds they are removed from the table

#

i used it recently for a portal script

#

so it wouldnt spam teleport them

deep niche
#

is it possible to change the render distance on particle emitters via code

royal marten
#

Why

game:GetService("Players")

and not

game.Players

rancid sigil
#

guys

#

i need help with my code

#

''insert: sigma labubu''

#

why isnt this working

#

😡

dark ginkgo
#

anyone can help me quick i cant give persons permision for team create pls dm me it says: Users can only receive playtest-level permissions for group-owned experiences.

hollow turtle
#

what's that one feature in roblox studio that lets you draw/make pictures with scripts?

polar hollow
#

how can i make a fall damage script?

bright siren
#

or get the difference in y positions if the gravity is weird or smth idk

storm sorrel
bright siren
storm sorrel
#

js use general iteration gang

somber vault
#

how can I learn scripting, and like get good at it whether its like videos or like docs or something

#

websites, AI

#

anything

dark juniper
bright siren
dark juniper
#

😭

bright siren
#

idk why u would need allat but

#

i guess

storm sorrel
dark juniper
#

I don’t think u need to do all that

bright siren
bright siren
twilit steeple
dark juniper
#

And still be as useful

twilit steeple
dark juniper
twilit steeple
icy heron
#

chat, what do we think about component based (i think? like you get a bunch of things, then "craft" a spell) magic/abilities

dark juniper
#

also the fact that these can be nil means they still need a conditional check regardless

#

I suppose I get somewhat easier access to the important things in the character

#

But yet again all I do is tab findfirstchild name and I’m basically doing that in around the same time

#

I’m pretty sure that doesn’t lint either

#

Unless ur class module does something abt that

#

@twilit steeple

twilit steeple
# dark juniper I’m pretty sure that doesn’t lint either

You just export type, plus you can also have setters which can do some stuff and theres inheritance

local api = {}

export type xPlayer = {
    player: Player,
    character: Model,
    hrp: BasePart,
    humanoid: Humanoid,
    isAlive: boolean,
    
    kill: (self: xPlayer)->(),    
}

function api.new(player: Player): xPlayer
    return xPlayerConstructor.new(player) :: xPlayer
end

return api
dark juniper
#

But those types aren’t exactly right

#

I’d add a question mark to them

twilit steeple
#

yeah ik I just made it quickly to show off what the ccClass can do

dark juniper
#

but like eh it just doesn’t feel useful, here’s what I think would make it better

#

Add booleans for if certain collections of classes are loaded

#

That way you can use the module to quickly check for the existence of character parts

twilit steeple
#

maybe

astral geyser
#

hello gang. i am looking for stuff to put in my portfolio so i can finally get some commissions.

i've finished my first mini project which is a small radial menu system (i also have some interests in UI)

im not sure what to work on next. has anyone got any recommendations for some relatively simple systems which i could make which could be good to show off?

dark juniper
# twilit steeple maybe

Your script utilitizes wait for child all you would need to do is flip an internal Boolean when they are loaded and also for when they are destroyed

#

That effects some main Boolean that can be checked externally

twilit steeple
twilit steeple
subtle finch
#

is it possible to crash somebodys pc and how would you do it

twilit steeple
icy heron
subtle finch
icy heron
#

Wait no

#

It wouldnt even work

#

Execution timeout 💀

subtle finch
subtle finch
twilit steeple
icy heron
subtle finch
icy heron
subtle finch
#

bro i

icy heron
subtle finch
#

idk how to trick roblox into thinking the bytes is 0

dark juniper
icy heron
dark juniper
#

I’m sure someone in OSS would’ve made it by now

#

And every scripter would be using it

twilit steeple
subtle finch
twilit steeple
#

im working on a seccond version rn

indigo torrent
#

It crashes ur whole pc?

twilit steeple
#

no it just makes your ram go really high it might crash bad devices tough

twilit steeple
subtle finch
#

😭

#

but it will spike back down to only 2k sometimes

twilit steeple
#

yeah idk roblox is like cleaning it up I think idk

pearl tulip
#

there used to be this game to learn luau I used I can check if it exists still, and eventually open uncopylocked projects and really try to understand what's being coded

subtle finch
# twilit steeple yeah idk roblox is like cleaning it up I think idk
local aaa = buffer.create(2^30)

local function con(aaa, ...)
    game:GetService("RunService").RenderStepped:Connect(con, ..., buffer.create(2^30), aaa)
end

local function con2(aaa, ...)
    game:GetService("RunService").RenderStepped:Connect(con, ..., buffer.create(2^30), aaa)
end

con()
con2()
#

i just added another buffer

#

if u put it as 2 scripts it go mad fast

twilit steeple
#

lol

local function con(...)
    game:GetService("RunService").RenderStepped:Connect(con, ..., ..., ..., buffer.create(2^30))
end

task.delay(20, function()
    script:Destroy()
end)

con()
pearl tulip
earnest storm
#

are there any skilled coders willing to work w me on a big game project?

twilit steeple
subtle finch
#

how would it go for cpu

#

i dont see alot of cpu crashes

#

@twilit steeple

twilit steeple
twilit steeple
# subtle finch oh

Yeah but there isnt really a way to crash someones pc via roblox unless you find a solid hole through their barriers yk

#

doing the con thing still has some protections

#

This bypasses the cant copy script 3 times

#

But theres probably some protections so that it doesnt crash ur pc anyways

subtle finch
#

alr

devout shore
#

use this very optimized code to count in your game it will totally not freeze

local counter = 1

while counter <= 5 do
print(1)
print(2)
print(3)
end

civic crown
#

Can i get some help guys 😭

delicate nest
tall bramble
#

Is anyone here a scripter who has worked with big games that’s have had a couple hundred+ unique users

slate vapor
#

yea

tall bramble
# regal salmon why might you be asking?

I made a global leaderboard and it used to work but I gained over 300 new users yesterday and the data store got overwhelmed and now the leaderboard doesn’t work

regal salmon
#

datastores should be able to handle that, if they cant then i cant imagine what games like steal a brainrot go through on a daily basis

tall bramble
regal salmon
tall bramble
junior axle
devout shore
royal marten
#

It’s hard, I’m trying to mobilize every knowledge I have from scripting but I’m stuck here

Player is the humanoid, now how do I call the humanoid

royal marten
mild cloak
royal marten
small prawn
#

Make a variable like this

local character = Player.Character or Player.CharacterAdded:Wait()

#

All on one line

#

Put that right below the player variable

#

And then do
local humanoid = character.Humanoid

main bronze
dense spade
#

and a bunch of other problems

small prawn
#

That is true i thought it was a client lol

#

And then the problem is why would u kill them on the client

daring shale
#

Is there anyone here who is well-versed with physics simulation that's willing to VC and go over some stuff 😭

small prawn
#

local Players = game:GetService("Players")

function Kill(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = Character:WaitForChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end

small prawn
small prawn
#

for example

local Players = game:GetService("Players")

function Kill(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = Character:WaitForChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end

Players.PlayerAdded:Connect(function(Player))
Kill(Player)
end)

daring shale
#

Question*

small prawn
daring shale
#

You're trying to kill a player?

small prawn
daring shale
#

Oh

chilly canyon
daring shale
#

Obviously you want to make sure that the character and humanoid exists

daring shale
small prawn
#

although when you are trying to kill the player, the humanoid would prob already be loaded so ig u dont really need the :WaitForChild()

molten condor
#

can someone script an entire game for free for me it’s i’ll only take maybe 200 hours of work

molten condor
small prawn
#

is this fr

#

lol

molten condor
#

250 robux is the max

#

1 robux for every hour

#

1.25

small prawn
#

and why cant i just make my own game in that time ?

molten condor
#

and you don’t have my ideas

dense spade
molten condor
#

just need someone to script

dense spade
molten condor
#

anyone

molten condor
small prawn
#

whats the idea

molten condor
#

if you wanna know you need to sign an NDA

molten condor
molten condor
small prawn
#

this is ragebait

molten condor
#

this is game changing for roblox

molten condor
#

you would need to sign an NDA and prove you’re over 18, if you are under 18 your parent or legal guardian would have to sign it on your behalf

broken grove
molten condor
#

okay whatever call my genius ideas ragebait

#

not like i care when i have a $30k a month game

small prawn
#

🙏

dense spade
molten condor
#

what’s the hype about gta 6 anywyas

#

i don’t think most of these people have ever played gta in their lives

dense spade
molten condor
#

a lot of games do that

#

it’s not a big deal

dense spade
molten condor
#

what’s that is it a riddle

dense spade
#

a loop would instantly push it to the limit

molten condor
dense spade
dense spade
#

sure why not

#

but wait im not at home on my pc

small prawn
#

that will reduce lag

small prawn
#

thats to reduce ur lag

molten condor
dense spade
small prawn
#

yeah but it can make it better