#code-discussion
1 messages · Page 325 of 1
My friend has 8 years of experience but he is like newborn baby at developing
HE ONLY USES KITS
8 years experience in what
Developing
I mean I have 2 years of experience but i am wayy better than him
Modeling
Don't you have some UI that you made?
Did you say that he was bad in front of him?
Hi
And he said he was "better" than me
Sup
Experience ~= level, I got 1 year experience in coding and I'm not that bad
Dam
I can do this at coding
And bro I swear im good at coding too
what's a metatable?
Hello World("print")
local game:GetService("Workspace") = Workspace
Alr jokes away
Im bad at scripting
So don't swear.
2 years experience, how much money you made?
0..
I just.m
Ykoe
Ykow
Im solo and I cant know which type is my best one and even if I am i am not SUPERRRRRR good and I cant know how to make a portfolio
I just joined hd to talk and show my creations
Ngl instead of remaking tsumani thing you should really learn something
Just show your best creations
Can I see it
Let me see footages then
How old r u
Yh
How?
Get yourself a objective to follow
Great, but if you don't work smart, those hours spent will be useless
You consider that you upgraded now?
Didnt even know how to anchor a part 
So much
What's the difference between you and someone that use free assets and AI for coding?
i dont use free assets
All the time
I use templates
And upgrade them
Starting from scratch
Only by using ai
Is hard.
Have your PC charged?
you have it so hard man
1 and a half hour
Ngl right now I don't see the diff between and a other young dev, first making everything is improving at nothing
did you just say vibe coding is hard 
this is the game dev equivalent of remixing music with AI
grokgpt add 500 hours of content and fix all the bugs
LOL
make no mistakes
make sure it's super optimized and ban all the hackers please
yep, that part where you have sit down, ditch the A.I and start from scratch
there's decent uses for AI but it's really not capable of what companies market it for
every week they find a new way to misuse it completely
if i dont feel like waiting for someone here to respond i ask ai to guide me to debug my code
but its dire situations only
it's like stackoverflow but it oscillates between good and bad
in terms of coding I'd say AI is okay at describing your code but in terms of writing it there's a million different issues that cannot be resolved no matter how good it gets in the future
what's the state of big roblox studios and ai usage?
if it ever evolves far enough to become reliable enough to fully construct a quality game by itself it'll cost a million times more than just hiring a human dev
it's only really cheap because it's not that good
When scripting, if one function calls another function, is it better to get the player's profile and validate it in both functions (if not profile then return end), or only in the first function and then pass the profile as a parameter to the second function?
if the profille hasn't changed in between the execution of the two functions, then just pass it on I think, question is vague though.
will they reject me if i submit a 9k line game for the luau application? The rules say that 1k+ is prohibitsd
I might have been the one who suggested that rule
🥶 👍
I used to be an application reader
wow thx
do i js submit snippets of the game's code thrn
Yeah, I think that works
alr perfect
yes we will
and you should only submit 1 script
do you see my messeges?
yeah as long as we can easily access the demonstration of it
and the script follows the guidelines
yes
wym?
like the luau codr itself
oh alr
but my messege is red - This can't be posted because it contains content blocked by this server. This may also be viewed by server owners.
then youre sending something that breaks the server rules based on the automod keywords
i thought you just meant that one message, but i dont see anything you sent before that
there can be false positives but it's usually not
im not really sure what is that breaks the server rules, can you reveiew it please
i can't see automod messages
sent you in private
hi guys, i have a question - what is the best architecture to build a movement system in lua?
for now, i using an OOP like architecture in my project with metatables
im trying to build an rpg game and want to focus on smooth gameply with the best optimaztion so i will have more room for bigger VFX an ect
I want to hear your opinion!
like custom character movement?
excatly
oop could work quite well if you needed multiple things to share the movement
but like if it's just player movement you wouldn't necessarily need it
i just got to a point that its really messes me up when it gets complicated
im trying to build an anime game
bleach style
yeah somtimes it can be quite complicated
oop is really powerful but you have to refactor it a lot most of the time because it's hard to make perfect
i would, but my microphone doesn't work well lmao
mine neither
i can some other time tho when im on my phone
sure thing
can someone code my brain to create a game idea
If u guys had a basketball game, thats like locked how would u do the dribbling system all suggestions i take in dms pls help me out (anime roblox game btw kuroko no basket)
Yo novvv
hello
can be easier to test in Edit mode with something like UI Labs or Hoarcekat
do you guys think when working with someone else the second worse is objectively worse than the first one
0 difference but i find the first one to be 100x worse on my eyes (or anything with no gaps)
just a quick easy code to explain
so just for testing
print(if a % 2 == 0 then "even" else "odd")
i like to make functions for everything
no, I just said what I knew
Why would you make a function that's just one really short expression
for production even short expressions might be repeated alot
just make a function once and forget ab it
like you wouldn't have a
local function add(x, y)
return x + y
end
, right?
function isEven(v)
return a % 2 == 0
end
no no no it needs to print
and i mean with all the academic questions ive been solving for python its been rooted in my instinct to make a function for everything ever

how often are you checking if a number is even
also yeah if you just need a function that returns if something is even, I hope you at least have the structure of the one Novinity sent
1 is better in every way how do you even find 2 easier to read? also there's something else we should discuss about (the flashbang theme)
an emoji from "E-girl world"? yes I need this one
just like the distorted flushed face emoji
why do you need a function to check if a number is even

this itches my mind because no white space
which is fine on lua but i still feel weird looking at it
as i said
print((a % 2 == 0) and "even" or "odd")
readability
¯_(ツ)_/¯
^^
we're talking about a function that prints if a number is even
it really depends ok
has anyone made custom physic movers in roblox with either spherecast or spatial query?
which one would yall prefer
yo if im making a hero shooter system
how do i do it without oop
some dude was explaining this to me a while back but i dont think i understood
readability my ass
readable code is code thati s commented properly with instructions
id rather not
not shit like // yeah this does something
nvm u just baiting
you are one of these type of people to overcomplicate ur code to act cool and then 1 month later ask in here why it breaks
the human species never failed to surprise me
guys if I were to theoretically make a hitbox for a punch, how would that work? If I make it so whenever the part is touched, that does constant damage even if it's there for half a second
how do you want it to work
just do like 10 damage or sum
az one hitbox or a one itme hitbox
when the animation is played
then you need a boolean or a table
if you want to pierce thru players then you need a table
if you want it so if it hits only one player then a boolean
if you want to go simple
theres many other ways but yeah
could I get an example of how the bool would look
Sorry if I sound stupid, im like not the smartest when it comes to scripting
man im too lazy to get my keyboard into english just to show it for now
can you come in dms vc
ill show you there
ok
i think you can use get parts bound in box for the actual detection. you'd probably also want a hurt box on the thing that can get hurt unless you are fine with just using like the player parts or whatever. then if you wanted constant damage you could do it every frame with something like heartbeat
if you wanted like a dps you can multiply some damage constant by delta and you would get that damage per second
I tried doing it and I accidently discovered constant damage but I wanted singular
how do i add drag and friction to a sliding system
but my brain blanked and I forgot how to detect a mousebutton1click
oh ok then you would probably need some sort of damage state for the player getting hit and make it so that they can't get hit again
i might be stupid
there's a friction equation you can just use that
like genuinely
what
if it's too aggressive you can go for something more simpler
friction equation or do u mean api
no i mean just take the velocity, experiment with a friction constant and just edit the velocity by passing it into a friction equation
nvm I got it now lol
v² = u² − 2ft just use this
how do i not know about this whatt
f is the dynamic friction coeff?
yeah
and t is delta
actulaly for simplicity you can just do v = u - 2ft
you can really just use whatever
just something to decrease velocity over time
the heuristic bros be like:
fr
i was thinking to do this
v = force * acceleration
oh in smt i made i literally just did v = u * f where f was between 0 and 1
if I had characters in a table (local script), and I also had folders for them in replicatedstorage that have their modulescripts, how would I get their module scripts using the table without using a specific characters name. Like if I had 4 characters and I just wanted to say Character.Modulescript so whatever character you're using, it will always get their module script
probably wanna include a delta somewhere in there tho so it gets applied correctly
so that would be like v = u * (f ^ t)
that's probably teh simplest you can get it
yo so did u make f depend on the floor
id rather keep it constant for now
but interesting
no but that wouldn't be too hard either just change the constant
but yeah use this one i think it's the simplest
but things would get weird with change of material mid slide if u dont account for that
thanks man
where f is between 0 and 1
1 is no friction and then 0 is like comes to a stop instantly
💀 ?!?!?!?!?!
I have my animation id but how would the script work?
wdym
u want to play the animation?
no i want to make it th defualt walking animation for my game
oh
playtest, go into workspace
get the "Animate" local script from your character model
Put it in startercharacterscripts
and go in and change the walkanimation id
ok
Guys would someone be interested in watching videos teaching math programming such as Bezier curves, spread and more in a serie, I'm just asking cause I'm probably making videos for no one.
Animations are always buggy
yea my first one looked so werid
yo btw the in house roblox math.random isnt truly random right
the same seed value will output the same value
Is PRNG
so cant it be cheated very easily
nope, its not truly random
everything in computation is pseudo rng
that's how rng works
except what cloudfare does maybe
😭
Yes but who said it was RNG?
no so there are better ways to get true random
yeah
Actually computer can't generate random numbers and even in life randomness is impossible
so what i wanted to ask was, has anyone made a true rng library maybe
the other part is debated
Well, do you have some things that are clearly random
majority of quantum physics
Do you have an example in Quantum physics that is random, I most learned Astro-physics so I don't really know QP so you're probably right
well nuclear decay
or where a photon lands can be said too
I never heard about nuclear decay, do you more informations about it
and i mean the main jist of quantum physics is that a small particle like an electron will be truly random
that is basically what qp is all about
yeah so basically unstable atoms emit electrons
to become stable
Forces can be predictable, something in the atom that moves, can move something else
no so qp says that you can never pinpoint where an electron will be
so an isolated electron will always be probabilistic
hence we also call it a wave
**i have made an admin panel with lots of commands and i can add more dm me if interested **
Why, how can't you predict the position of a electron if you know what's going on in the atom
heisenberg uncertainty theorem
I should go look it but let's go back to what we were talking about first, RNG in computers are impossible with our actual level of technology
cloudfare does infact create true rng to keep the whole internet running
pretty interesting
How?
Is it a library?
isn't everything predictable as long as everything follows the laws of reality? if we know the exact state of when the universe was starting we can just recreate the present and history
yes its open source
We already recreated the past
Interesting, but how does it work to make true RNG?
i think quantum physics partially disproved this
🔥
basically they have a wall of lava lamps and a few camera detect the movement in the bubbles and then multiples whatever ur prng was with those changing numbers they get from the movement of the bubbles
now u CAN say that lava lamps bubbles arent rng
BUT its soooo chaotic its basically rng
for practicality
heuristic bros at it again
Pratically, it's RNG, theorically it's PRNG
So IT IS not true RNG, but have they been some researchs to implement true RNG in computers, even though it's seems useless?
i think people being in the room or something affects it as well
Everything impacts it
i don't remember the details
even small temperature changes to the second decimal affects it
you're never really going to predict that
it doesnt have to be more 'rng' than what the lava lamps do
Even a particle that interacts with one of this bubble can change the process
there's way too much going on
yeah
Ye, that's like in qp or physics in general, nothing gets created or nothing gets destroyed, it just gets transformed, you could burn a book, pratically you can't make it back, theorically you can
Comments are like 15% of readable code max
It's really how you structure the code
they were just ragebaiting
there should still be comments
in many cases
For libraries and team works unless you're in that situation it's useless
maybe just like above a function to explain what it does but that's about it
u dont rly need to explain how every line works
local variable = 0 -- this is a variable.
even solo you might sometimes need to remember something important about a function that isn't clear from just reading the code itself
ye
Try to get really clear names for variables and functions, even if it's really long
that's not really a great idea and wouldn't cover what i mentioned
Having a clear function name could make you remember what it was about instead of writing what is does, but in your topic, you should write something, so that you know 100% what it was about
you can still keep the function name short with a simple comment that can go into way more detail than the longest function name ever
whats the most complex in house api?
but it depends on what you're think is small, like for an example, this is the name of one my functions : GenerateRandomVectorBasedOnAxis
what's house API?
I saw in the documentation, the advanced section was talking about Multi-threading, queus and stuff but I don't know if that's what you're talking about
Ye it uses MemoryStore
I didn't go through it but it doesn't seems really complex but it could
Yes you can, but it depends on what do you want to store
yo how much should i charge weekly for a full-stack website with moderately good design, fast processing, database efficiency, robust security, and well documented APIs, its my first time freelancing
if 1 website is accomplishable in 3 months for me
$1000
preciate it, have a wonderful day
it really depends on your clien t
realistically the price for these professional websites ranges from 5k$ or more like he said
i lowk smell like feet
but clients will cheap out if youre an individual
that is why you build a reputation first
start out cheap
once youve done quite a bit then u can start charging more
once u get more and more offers
supply and demand ahh
is it good to post within this server for 1.5k final just to make a name for myself
how do i add jump fatigue and slide fatigue
do i sell ts
your websites look vibe coded son
look at his post in #programming-hirable tell me if im trippin
SON IM CRINE
HELP
STRAIGHT OUT OF CLAUDE 😭🙏
daughter
*hates on AI*
*uses AI to prove that it was AI generated*

what
AI check thingies arent accurate a lot of the time anyway
half will say its ai generated and half will say its not
oh yeah for sure there arent accurate
look at his websites for his portfolio
but 100% mate comeon
its ai bro the percent is made up
use your own brain and figure out if its ai or not
yeah even then
this does not look human written
who are you his second account?
get off mate
???
his second website looks so vide coded
people who replace their critical thinking for AI deserve the natural selection coming for them
didnt u just read what i said
where you used ai to "prove" their resume is ai generated?
even without using a detector like that, no human writes like that
sonfetti
reading comprehension of a sonion
youre right but dont back it up with ai
ai immediately defeats your credibility
AI detectors analyze writing and image patterns using two core metrics: perplexity (how predictable the word choices are) and burstiness (the variation in sentence length and rhythm). Because AI is mathematically optimized to predict the most probable next word, detectors look for patterns that are suspiciously perfect.
oh man
its ai 
i absolutely cooked you there
brosquini alfrini it is not that deep
no its from google
its an ai checker that you found on google
where you found it doesnt change that the website was ai
all vibe coded websites use purple i swear
ts ragebait 💔
why are you bringing up typescript
they DONT
havent you asked ai for help on calculus homework before
it makes shit up
its AI 
yeah ur just embarrasing urself
i hope nobody pays that guy 2k a week for vibe coding
😂
2k for typing claude prompt
yeah
on his portfolio website it says recent case studies and lists his examples . is that on purpose or the ai mess up
from the code btw
no human would ever type that 😭
that obviously makes sense. the cyberpunk background is 0 dollars
i type like this. please be nicer
*bes nice to you*
thank you
// ULTRA-PREMIUM TECHBLOG EXPERIENCE
// Advanced Interactive Effects & Animations
dose every advanced web developer do this?
yeah 😃
yes bro i do it in ALL my work 💔
lmao
itsa black screen
Yo guys
hi stove
Hi how you doing
🤸
how do i script a door ?
depends, do you wanna have actual rotation? then do it with a hinge constraint
if you wanna have more advanced door animations you should animate them
if you just want a door that doesnt have any rotation and just dissappears change transparency and cancollide of the door
you could also do it with rotation and position, then the door would not have animations, the door is simply open or close and no inbetween like it does with a hinge
what i want complex movements
like those pirate bars doors
To get skill roles (luau programmer) I see that it says to submit 1 script through GitHub. And a Roblox game associated with the script. I’m a systems developer and make packages how would I submit one of these with a working demo game associated some of my packages are extremely abstract and are built for more of a backend/framework use?
why you want Luau skill role
Just to have it
just send a system, the better the architecture and code the more chance you'll get to be a Luau programmer
I get this but it also says it should have a demo game associated I don’t fully get what they might want to see even if it is really abstract
👋
DMs
I think that those guys probably don't know how to rate scripters, the better the game looks the better the scripter is their mindset, so if your game has bad builds or animations but Kernel level architecture you'll probably don't get the role
Amazing
absolute cinema
absolut vodka
does anyone how to do editable meshes like a squishy type
needoh tower 💀
dumpling squishy asmr rng grows offline
any place i can read about all the apis
cus for most practicle stuff i feel its just getting familiar with apis
documentation
no one knows all of the roblox api though
so yall just learn about the thing u need?
on the go?
kinda of
what main apis do i learn for advanced movement and camera
its just that not all of the roblox api is useful
then what
it really depends on the specifics on what youre making
to move the camera you just need to understand how cframes and properties work
you kind of just know what to use
but depending on what features you wanna add, you will have to learn other things
you just needa know the main services and stuff
yeah
it all comes down to breaking down your goal into smaller steps
like if you want your camera to not go through surfaces for example, you would probably need to study how to detect surfaces in a straight line, which will make you learn about raycasting
what would those services and stuff be
then raycasting will become a tool in your arsenal and youll remember it in the future
i was following this tutorial and i thought i knew enough but gyatt im lost
just dont follow tutorials on specific systems
does anyone here know how to make combat systems?
whattt
like if you wanna make a fireball, dont search how to make a fireball, search how to detect inputs, how to make a vfx appear, how to detect collisions and how to deal damage
break down your final goal into more steps
right
so that you actually learn what each of the services do
so if i wanna make momentum based dashing
with deceleration based on the frictional constant
what are the steps
thats the part where you think for yourself
i think i sent the website im working on in the wrong channel ok
hi
people
check this out
could somone teach me how to get my gun model into blender so i can animate it
"orbital mechanics"
now make the planets move with gravity and see if you can get a stable orbit with 3 of them
Can sm1 tell me how to script a destruction system like jjs my scripter was so confused when i asked him
I don't blame your scripter
the easiest way is to just build the map with destructible parts and unanchor + add force when they should get destroyed
if you want to do it dynamically, you could create a bunch of smaller parts across the surface area of where you want to destroy, then duplicate, subtract, and union them with the wall to remove the area, then fling those smaller parts, but i can't say how optimized that would be
i'm sure there are better ways to do it dynamically but it seems complicated and beyond me
the easiest way is not the way most battlegrounds games work
usually it requires you to calculate new parts to make holes and stuff
like if you had a wall, you would make multiple new wall parts that make up a wall with a hole in it
then smaller parts would be broken off of it
unioning might be pretty costly so i imagine most battlegrounds just do this instead
Low kirkingly how do you guys properly setup and use VS Code / Rojo, I can’t figure out how to get a folder with scripts made in starterplayerscripts and prevent things from getting deleted
and to prevent things from getting deleted you just don't have anything besides the scripts in these folders
and nothing as child of the scripts
add $ignoreUnknownInstances into each service you wanna prevent unknown instances from getting removed
i forgot about that
does output give an error if a data save gets dropped from queue?
Ty
Ty
np
n\
i must really iqmaxx to learn proper coding
does anyone how to do editable meshes like a squishy type
what are you up to sir
did u play that one obby
with the needoh
you just gave me an idea.
i think it would crash studio
You cant know until you try
local mouse = Player:GetMouse()
local Highlight = Instance.new("Highlight")
Highlight.Parent = workspace
Highlight.FillColor = Color3.fromRGB(255,0,0)
Highlight.FillTransparency = 0.8
Highlight.OutlineColor = Color3.fromRGB(255,0,0)
mouse.Move:Connect(function()
local target = mouse.Target
if target and target:IsA("BasePart") and target ~= workspace.BasePlate then
Highlight.Adornee = target
else
Highlight.Adornee = nil
end
end)``` help me please it keeps highlighting the baseplate
print(target:GetFullName())?
maybe you have multiple copies of the baseplate?
Did u manage to organize it
Cuz i lwk need help with that too
Has your issue been resolved?
anyone need help scripting??
is base plate even spelled that way
i thought it was Baseplate
that might be your problem
what does output says?
Gang do u like how my website looks
I need to fix the text but, those random shapes do float across the screen n background also slides
Putting it in workspace highlights everything
What is ts
Here:
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
local Highlight = Instance.new("Highlight")
Highlight.Parent = workspace
Highlight.FillColor = Color3.fromRGB(255, 0, 0)
Highlight.FillTransparency = 0.8
Highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
Highlight.Enabled = false
mouse.Move:Connect(function()
local target = mouse.Target
if target and target:IsA("BasePart") and target.Name ~= "Baseplate" then
Highlight.Adornee = target
Highlight.Enabled = true
else
Highlight.Enabled = false
Highlight.Adornee = nil
end
end)
Just needed to add your enables.
Where do you learn to start scripting
can i also get that playlist
Debris:AddItem(Debris,1)
😭
where do you learn to code
what type of code?
i mean games and scripting (gui) animation or so
If roblox then there are many tutorials online that show you basic stuff ... after that i would say most of it is based on your understanding and imagination
something that can help me in any type of codinjg
There are different materials available online, you also find some in roblox documentation
There is like a basic understanding of coding ( lua , python etc) the formats and the other one is stuff which is roblox related like services and stuff
wow i see so what should i learn to use first python or lua?
uhh if you are trying to study roblox studio Lua is better imo
its not really that hard to learn
however if u want to do web development or something python is better
If roblox isnt something u want
i want to create like games / maybe exploit / just scripting 
script sync vs rojo?
Hello.
where can i learn (youtube doesnt really help)
they explain badly
then learn Luau
mmm what the diff?
Luau is roblox-specific and the only supported language on roblox
and how do i do an exploit let say for test
i do not know how to exploit on roblox
i see
i know how to code exploits, don't know how to run them outside of studio
learn luau
i have amazing games idea that can do 200k player but im bad at doing games
can you teach me luau
whats the idea
someone
what reference point do you have for that ccu estimation?
idk if i can give lmao
Publishing a game right now is the worst thing to do
dont worry i know what player like
why
its just an idea
?? 😭
have you seen the recent updates?
yeah but i mean i can do it for myself
Impossible to get 500 engaged players
ok i can give yall an idea
code
any idea what engaged players means
yo
16+ verified, history of activity on roblox + purchases
Someone who played for a bit, like 5-10 mins and is 16+
Saw someone who spent $960 on ads and only got like 150 highly engaged
Wild
thats pretty insane
i want to say its certain this will be tweaked but reverted is unlikely
You shouldnt be spending on ads like that,
it hasnt been nearly that rough for me
Depends on game niche
but i want to think he was testing the new algo too
No need to even test it its trash
You need something that can actually grab the attention of 16+ players
i have a game thats had 150 visits the past month and has 15 highly engaged
Since im one i atleast have a vague understanding of what 16+ players do wanna play
Something new, thats it
Maybe a horror game that is advanced
if you buy ads does it cost the same for less if you dont have it open to all ages?
Anything new
you know what people want they want to explore and find new stuff almost most games that have the mystery and rogue like aspect to them have seen success
shut up
nah
Yea
Im gonna die screaming while coding an inventory system where user can find a random hidden CD on the website, bring it into the inventory, take it to home page, put it in the DVD player and have a new song playing
I will die once again for the random pet that’ll appear on the website and have a feed button above, and once clicked it’ll rain pet feed on only the pet for 3 seconds

Well
It works so
What velocity do you guys use to make a character go forward
Linear velocity
Guys i have a question
Assembly?
Linear velocity is an instance
If you add an attachment to the part you want to move then set the linearvelocity attachment to that toy can change the vector velocity property of the linear velocity to move the part
ok
You can use assembly linear velocity too
But linear velocity gives you more control
Alright gotcha thanks
what about knock backs
Np
.-.
magnitude
ask chatgpt how do iimplement .Magnitude into my dash system or wtv and itll explain
fym magnitude
the stuff that makes it so u tween instead of being bale to move ur camera to change the direction
i asked gpt said body velcoity cus prev i was using assembly linear velocity which was giving ass results
basicaly gets scalar length so u cant change the direction of it when it has started
i rn cant anyway
magnitude is a property of a vector that is its lenght
ye its its length without the direction
basically if u do w magnitude and like dash in direction 45* even if u spin around u will still continue dashing in the same direction
anyways have uguys seen the pokemon brainrot game its lowk good
so you're saying that the lenght of a vector is the best way for dashing
broder
when u get the length of it u also get its only ONE direction from the moment u pressed the dask key or wtv u h ave it set to
if u spin aruond mid dash u wont be able to change the direciton
u will continue in the starting direction since magnitude gets scalar not vector
you're getting a number that is the lenght of a vector, not the direction
scalar = only number; vector = number + direction
yeah exactly
u KINDA get the only starting directino frmo when u started dashing cuz thats where ur camera was rotatedto ykwim?
the direction is the vector itself but normalized
using magnitude for something makes u launch not move towrads iykwim
no i don't know what you're saying..
he asked what's the best thing to use for dashing instead of body velocity
ok just forget it
anyways
hhwo do some games make ur viewmodel not clip
no way its viewport frames
fym
viewport frames have no lighting
and look shit
how do mainstream shooters on roblox make it not clip
viewport frames has light
no they dont
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.LeftShift then
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(100000, 0, 100000)
bodyVelocity.Velocity = rootPart.CFrame.LookVector * 35
bodyVelocity.Parent = rootPart
task.wait(0.5)
bodyVelocity:Destroy()
end
end)
``` this is what im doing for a dash system rn
but you can't add vfx
yes they has light but not really customizable
they have lighting but like wayyyyy worse
idk if you can on roblox
check out the cs2 copy game it does it well
not the old one
blockstrike
i think
local UIS = game:service("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid")
local rootPart = char:WaitForChild("HumanoidRootPart")
local debounce = false
local cooldown_between = 0.6
local dashSpeed = 100
local dashDuration = 0.5
local dashCooldown = 5
local dashCount = 3
UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.LeftShift and dashCount > 0 and not debounce then
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(100000, 0, 100000)
bodyVelocity.Velocity = rootPart.CFrame.LookVector * 35
bodyVelocity.Parent = rootPart
dashCount = dashCount - 1
task.wait(dashDuration)
bodyVelocity:Destroy()
wait(dashCooldown)
dashCount = dashCount + 1
if dashCount >3 then
dashCount = 3
end
end)
``` why does it feel so rigid
ive given so many variables for dash numbers cus diff sitations will change those numbers
so just a base refrence
BodyVelocity is deprecated
Wait too
can u elaborate
he proly used ai#
no ai
cap
im sure ai could do wayy better stuff than this bug filled inefficient code
prove yourself by ellobarating it to them
i think bro forgot the part where i said i need help with it
the amount of ai responses i saw in these channels is crazy
this code is way to easy for ai to mess up
BodyVelocity is rigid and deprecated, use LinearVelocity and wait isn't precise, use task.wait() but you stop the script doing that so you can't have any actions running in the script during that time to wait asynchronously
english
What do you mean?
you talking like a bot, he needs more info
i tried linearvelocity and it wasnt doing any better
i didnt try magnitude tho
idk ab it cus
Maybe, update max force by math.huge
wait what
Magnitude is not for forces
wont that be too much
there may be other methods you could use to substitute 'linearvelocity'
check the documentation
No, everything depends on the velocity you're setting
wait so whats the optimal thing for a dash system if not linearvelocity
That was really clear
from the main documentation
The LinearVelocity constraint applies force on an assembly to maintain a constant linear velocity. It can be set to apply force along a Vector3, line, or 2D plane. Alternatively:
If you want to control the amount of force applied, use a VectorForce constraint.
If you only need initial linear velocity, set the AssemblyLinearVelocity property directly on the assembly.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
and what do u mean by bodyvelocity is depreciated
and what do u by wait isnt precise
oh thats kinda bad if its constant
i want deceleration
just use task.wait instead of wait
ofc
Use interpolation
read the documentation if you want to be sure
alr
idk
maybe then try to set AssignLinearVelocity to player root part
i did try that but it kept breaking
No, like if you want to decelerate you should use something like cosine interpolation or cubic interpolation but there's not much difference between those 2
choose linear interpolation, Narest neighbour set, cubic spine interpolation, shape interp method, many more
pick the one you need
im gonna act like i know that to sound tuff
if not in this list look up the interp you need
It's not that hard, I could explain some that are the most commons
its just js a technique used to estimate the unknown value/s that fall within a dataset (range)
etc, etc...
i think i should still try to get AssemblyLinearVelocity
cus thats what would fit right
if u put something in something that something will be something else
for what i want
true
Not really, ALV is more for stuff like acceleration and deceleration, dashes are forces, not acceleration
dashes are acceleration tho
wasnt it body force that does acceleration
inspect the body properties, locaate the part you need
I don't know I don't use Body force
Not really
yeah i think body force is the one that does accelration
see i want my dash to instantly snap to a given velocity THEN decelerate to normal in like 0.5 seconds time
alv is more for instant velocity ig im not that into roblox physics
here
Application of velocity can be controlled through the constraint's RelativeTo property. If set to World, force will be applied in world coordinates, independent of the parent or attachment orientations. If set to Attachment0 or Attachment1, force will be applied relative to Attachment0 or Attachment1 respectively.
`its a copy from the main website
uh just larp
Linear velocity and Lerp is all you need for this
yo remember when you told me i should know metatables and oop by now? well i really dont i mean i know how to make a table and store data inside that but like metatables i watched videos and hell nah
use the twinservice
💀
we giving them the wrong impression
as i remember in roblox template platformer using tweens for dash
Meta tables are really simple to understand, I could explian you if you want
one says 1 method, me the other, you another
theyll get it eventually
i think ill go with AssemblyLinearVelocity
you can try but idk man i might need more practice
just say and let him try 1
tbh im just saying the other guy's thing but with a different thing
it's maybe looks a bit hard to learn, but it gonna x2 improve ur skills
how much time it takes to learn like from 0
it is
cause roblox is very bad at physics
humanoid and its amazing reality bending properties
just reinvent physics, (roblox)
2-3 small systems to feel comfortable
Meta tables are simple, you just assign a kid table to a parent table, when you interact with the kid table looking for a value, if it's not there then it'll watch the parent table, look through its methods, if the robot of luau sees a __index method for example it will execute it with the given parameters
should i not do alot of movement stuff then if im an amateur
do it or ull be bad
what is it used for tho
Depends on the method
its gonna look bad anyway even if its scripted nicely cus i got 0 anims
movement systems properly help with learninh how to make other things work together without messing it up
just make it a bean and animate the camera very nicely
i mean hes considering new ones
i've been learning luau since 4 months now and i still dont know metatables
u might be on to something 🤔
and that self thingy
AssemblyLinearVelocity?
Everyone learn at their speed
probably read that introduction to oop document in devforum
pick 1 method, stick with if it does not work come back
i thankfully know oop in python so i wont be that cooked
devforum better than yt tuts?
depends on the brain
alr AssemblyLinearVelocity it is
You can open roblox platformer template and look at ReplicatedStorage-Platformer-Scripts-Actions-Dash and look how roblox devs made it
but yeah
Meta tables documentation is really clear, you should read it
oh i forgot those exist
basically you can ask "Tutor me" chat gpt to help you. I learnet a lot of thinks in roblox using it
yeah i need to learn these stuff asap
the problem im facing the most is getting around roblox apis and roblox api logic
its really annoying
cus i already have a bit of python background so i dont face problems with core logic but im getting capped so hard 🙏
Studio has a LinearVelocity you can add to the part
AssemblyLinearvelocity is good for knockback logic
Combo LinearVelocity with Vector3
isnt it linear tho
yes it is, thats why you should apply mathematicall logic to it using Vector3
if you are dashing
you would want to use linear for going forward and if the direction changes apply an angular velocity
just use applyimpulse then lol
roblox offers both linear and angular as objects you can add to your part
ur thinking way too difficult mate
The resulting velocity from the impulse relies on the assembly's mass. So a higher impulse is required to move more massive assemblies. Impulses are useful for cases where developers want a force applied instantly, such as an explosion or collision.
it would be good for stepping back when dashing your applyimpulse
fair response 😭
It's sounds good but hard thing of this is that dash gonna work different in air and on ground due friction
chagpt had a lot of updates it has far surpassed many AI's, alot of them use the Ghatgptmini models
Idk about this, i just recommended because i still use this model sometimes and it usually help's me very well
the api is very good, i should have added that in the previous message
thats good
yeah true,i thought as dashing that its on the ground i didnt think of air dashing because i normally dont see it in games
help me uwu
Yeah, i tried make movement system like i deadlock 2 months ago
i DONT want linear dashes i want dashes which decelerates
i used linearvelocity a lot
im using acs
i will kiss you
1 for directional movement and 1 for gravity
it only happens when i try to take aim idk why
yo but thats wrong 🤨
I used linearvelocity and changed it speed every frame
isnt that too
heavy
so it how i was decelerating
use Tick() to identify how much time has passed before changing over to a decelerating module
for it to know when to decel
is there a module for decelerating
module as in a part of your script, an independent piece of code
i can uncopylock my game and give link, but code is gonna be very messy ahaha
can i just see ur stuff in action
crazy if u got deadlock movement on ground it seems very hard
let everyone know your actions may shut roblox server down before doing so
so when do i use bodyvelocit
It's not gonna recieve any update anymore and can break, so i think you shouldn't use it
anything except linearvelocity which can be used for what i want
js watch this its super short https://youtu.be/vR0RqbGe-UA?si=MpChwR1KyCMDULy6
This video teaches you how to implement Body Velocity into a script!
but the other guy said dont use bodyvelocity 😭
I did mention people were suggesting many methods so you should stick to 1 and try it
people have a personnal preference, when it comes to methods
so can u tell me one
alot of times i go back more confused then what i was previously was when i come here to ask something 😹
@shrewd marten you got this i believe in you, you can save @waxen dew
I can't sent roblox link here ahaha
pm @waxen dew if needed
Yeah you mogged me
Holy flex
whats the paidrandomitem policy
determines if someone can purchase lootboxes with robux
anyone wanna rate my website?
use it or you'll get banned if caught
alr but how do i bug test it
lil bit bland
i just set attributes to the player when they join the game and then use those attributes to determine stuff and then if you wanna test it just enable or disable those attributes
tyy might try and work on that
add a bit of padding to the text, uhhh yeah just populate it with actual things but other than that it has a unique theme
alrr bet
actually
anyone wanna have me add their ad
all i need is a 1:1 png and url
is making grid systems by using thin parts as a grid reliable or is there another alternative?
yo i found this clip a while back where the dude used a scope of a sniper and when the dude was scoped in everything went in impact frames like mode
like black n white and shi
and like 2d art
how do u do that
yoo thats cool
thanks, go react
i meant react on the post in #⭐creations
oh sorry
ur good, ty for the star and the heart
no worries ❤️
could you help me with something btw?
wsp
lemme send you the video in dms
Guys, is this how you use profile store?
is anyone here an intermediate scripter
I am
do u want to join a gc of intermediate devs??
its just for practice tho
nah
meee
😭
whats wrong
lemme in
are we deadass bro
i'd just ask for vibecoders for that
That's crazy
All you have to do is figure out message service api and the use of api keys or long pooling
I did long pooling
go like the creation post tho
Meh noting really complex for me so sure it’s nice he did it but in my opinion it’s just using js components and api keys
Which are not hard to learn in 30m max
I’m rn trying to make my own version of http service
haha true, tbf i also used a rich text module to give it some more flare.
Tbf you can just find rich text modules anywhere aswell
and im going to add more features in the future
Future features: Add Codes, Admin Abuse, Restart Servers, Limited Time Buffs, Ban/Kick.
sure
I was gonna do it but ehh you might be able to do it
Yk botghost right?
Or like the discord bots that allow you to make ur own using node mapping
For events and what not
yeah
That act as components
I was gonna essentially try to emulate that but in Roblox
So you handle configuring it in Roblox
Run a thing on like railway or whatever
To run the bot live
And then you use it like a regular discord bot boring stuff
You’d probably put the code base of the component tree in some GitHub or private repo
To host the code from
For the bot to handle
Do what you want with the idea @hollow turtle
buying % in games dm me