#code-discussion
1 messages ยท Page 77 of 1
If you want less janky check #1278154978598326406
alr
Should I create my own input system or port my input to the IAS system?
Alright I need yall's opinion
making a grab move, should I
- Do the hitbox on the server, keeping protection but if the player turns during the move the hitbox will be delayed
- Do it on the client, binding it to the animation keyframe, but risk it being delayed if it takes that player longer (Right now, it plays the animation on all clients seperately in order to bind VFX to keyframe reached)
I currently have the server system right now and it is slightly noticeable
whats the easiest way to start learning?
Watch hiatus
whoโs that
people just be naming themselves after nouns and verbs bro ๐ญ
holy edit merchant
alr
How relevant is quantum computing to making Roblox. Games
everyone should i watch dev kings advanced tutorial or begenner tutorial
not even close
too many things need to be made before its beneficial
was a joke question
anyways
I wonder how many print statements I can fit in my mouth
swing and a miss
Yk what would be really awesome
Actually nvm it canโt be achieved in Roblox
what if Roblox had python instead
Hmmmm I wonddd
Wonder
Probably wouldnโt be the same game
awful GC and slower execution speed
- most libaries and capabilities are just redundant for roblox
idk i didnt really learn anything from it i had a much easier time just reading free model scripts instead
thats def a new one
cuz it shows you different ways of structuring scripts (well depends on the free models you view)
theres the spaghetti code then theres the code with 90 module scripts embedded in
how would you know what each one does tho
documentation
or just like.. read the title of the script if it has any
is there a way yall do npc replication?
is it that yall place the npc on the server and do the checks on the server
or do you only have a position and approximate it on the server, while the client interpolates values
or do yall send values frequently
i watched suphi kaner's video on npc replication
but im not sure if this is what i should really do, because it makes combat harder since the npc is rarely standing still in one place for the server to register it as a "hit"
where would you guys recommend how to script?
i got bored so i made a replica with a 3d decal of the spawn location. ๐ญ
scripted it too. idk why i made this.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local humrootpart = char:WaitForChild("HumanoidRootPart")
local spawnLoc = script.Parent
char:PivotTo(spawnLoc.CFrame)
end)
end)
Yt
YouTube or u can get a tutor
that's ong next level bored
can someone script a speed o meter for my bike game i will pay usd (cashapp/paypal)
how much?
wahhahaa
the upper torso looking up and down
shi mb gang for the 4 day response the soccer system all ive made is a welding system
so rotate the torso?
ok ill try that
How can I get the script to find one of the two on if section?
for example
if text == "IfChar" or "IfBackpack" then
it would search one of the two, and if statement is true, they would run, but only one of them will work which is IfChar, How can i fix it?
if text == "IfChar" or text == "IfBackpack" then
Who is a legit scripter?
wdym
Just looking for someone to work part time on my game.
That isnt a person you hire then they dont work, or take partial payment and dont do anything for a week.
Hey, i've gotten to a point with my scripting knowledge where I think I can make a decent amount of things, Any tips on what I should learn past the fundamentals? (I'm looking into oop and frameworks rn)
whats the best method of learning lua for ADVANCE scripts
real
deadass just typing the shit u can copy
making the subconscious connections
there are no tools in the shed that are inherently advanced
if you know the tools you can do 'advanced' projects
but there are no advanced tools
raycasts and whatnot (thinks that i think are often considered 'advanced' by new programmers) are really simple if you know other things like instances and vectors
dissecting codes posted on devforum
Whatโs your current script look like, that controls this 3rd person stuff (paste pls)?
i wanna do like combat system and shi
this playlist aint working out for m
me
Me lol
how? it works fine for me
Ye
thanks
give me your fast track study guide for LUAU
what's that
parent the ParticleEmitters under the part. not the attachment
probably wont work but worth a shot
We are also Looking for an experienced scripter for make a hide or die related game
With what pay?
Dms
you can also trying checking if the properties are right (like if the speed and such is actually set to something that's not 0)
300k+50k if donw well
Alright. DM me with the GDD
the first thing you sed didnt work
Done
and also
i tired using the script some where else and it worked
maybe if you could take a look at the whole script?
had a feeling
where is it rn and where did you move it to?
its a slash

so like the hrp
wierd thing is when i enable it
it shows it but uh it looks bad i want to emit it
full script btw

im not sure why it's not emitting. we know it's reaching it by the print statement printing. so idk why it wouldnt emit it
is anyone famillar with datastore editor plugins? Any rececomendations on which one to use / buy?
where did you move the script that it worked?
btw, i would try having vfx and animations on the client and not the server
hmmm
but
other players should be able to see it
there's a free one
data delve or smth
was pretty good for my usage
yes
easy to find keys and edits
theres a free one
guys if i do animation and vfx on client side other players arent gonna see it right
yes
nope
alr thanks
more spider stuff
itโs been really fun to make
it uses procedural animations
very cool
make it bit slow
maybe make him slower
just for showcase atleast so we see the animation better
make it lay eggs inside you
is this bad lol
you would have every client run the same script (like having the local script under StarterCharacterScripts)
๐
the naturality in procedural animations is best
legs kinda like jello though
oh
well it is under there
so i would just make the switch from a server to a local script
but the hitbox and stuff should still be on server right
God damn terrifying
it lays eggs inside you
depends. if you want it to be basically exploit proof, yeah. but this might cause latency and such
hitbox can be handled on client too
if you implment it correctly and they cant abuse your remotes
seriously whts the point f hacking in rblx
being retarterd ๐
yh
oh alr
like man go learn real cyber security and earn
hmmm imgonna move them onto client scrip t
the game is alr laggy so i dont want scripts to make it worse
oh the particle is emitting ;D
yipe
that's basically the number 1 reason to have things like animations and vfx on the client. it takes strain off the server
nice
ty ๐
you're welcome
to have advantage in games?
idk what mesh vfx are
but its not gonna be fun
oh
leme send example
oh it doesnt let me send link
erm
ill look it up
wait illsend it to you on dms
its fun + why not
quite a few reasons. main one being you ruin the experience for others (assuming you're doing those types of exploits)
do yall use roblox studio or visual studio
developing anticheats is fun so idm exploiters tbf
if you're developing an anitcheat, you care to an extent
if they are ruining my games then ofc i care
link ur game i wanna test my own scripts ๐
vs code then integrates it
(i guess they integrate it with wally/rojo or whatever its called)
yes rojo why ?
wdym tandem ?
like with them
u mean together in 1 script ?
no ?
oh i guess i just dont understand rojo then
whats the point of using vs code
i presume ppl are more familiar with it
coming into roblox
sound fancy
lol
ngl i use sometimes vs studio
then js call roblox studio
rs code
but only if i aint at home
rah
i wanna learn wth full stack scripting is
but ion wanna research rn
front end and back end
oh so
thos dumb ahh tweens
?
ts pmo icl
well i mean i am learning to create websites from scratch
i hate php the most it just doesnt make any sense at all
y
for port?
its easier
port ?
portfolio
dont you gotta pay to have webstes up?
and now i am stuck in it
stumbled is crazy
btw the wireframe is enabled
i get 3 for free using combell
mmm
no its common
oh okay
we gotta secure the payements dont we
90% of roblox devs use carrd
does that mean its good orr
is it just for rblx
a website maker ig?
for portfolios for eg
hm
not to glaze but
i saw someone's who used carrd
https://cortexrbx.carrd.co/# @south prism sorry for ping but
free promo ig?
his looks p good
idk tht thing tht makes portfolios
really?
btw guys yall know where i can find investors for my game ( i need 100 k bobux )
mate get me comm pls ๐
or some sort of ASCII anim
i like the uniqueness
i was boutta say
cool
hm
so youre saying
for it to be pretty its not like
the efficiency but rather the quality/love they put into it?
guys cmon where can i find investors ?
idk
wrong chat i think
there is no chat
all those youtubers be like u gotta find an investor WHERE TF DO I FIND ONE
damn bro thts a steal for free
well obv
just like getting hired as a scripter
you need a portfolio right?
so to find an investor
there is no investor hiring thingy
you need evidence to them
hmm
creations bru
i got an entire game
post it then
in creations and maybe you'll get lucky
wich is about to release after bug fixes
btw wanna join vitaxia (development studio) ๐ซ
and an investor see it
roblox game electron apps and websites
but rmb
r what we make
theres a difference between advertising your game and posting screenshots of it @tardy pasture
cuz advertising is banned in creations
dont tell me u wouldnt wanna play this game :
just the thumbnail from my game
ai gen ๐ฅ
this is beautiful
sush i aint rich
?
especially if you branch out of roblox
thnx
im
not my cup of tea bru ๐ฅ
i dont folllow tutorials
dope website! i would love if the little circles would pop out even if the mouse stays still
a pirate game ??? ur more a dress to impress player huh ?
noted
nu bru
then itd be too much
you gotta balance it yfm
they are boring asf and i ;like uniqueness not to follow something a million others r
naah, its just a little blue circle
man i hardly saw a color theory video
"โ" --shut up
i can see
might help
i hab magik
lmao, no hard feelings brother
i wanted to say syaub but i cant
should both fe and back end be a must for all scripters?
like back end seems like the more fun aspect
while fe is just regular indie game dev stuff
it is
fe and be of websites? absolutely not, ui and backend in lua of roblox games then absolutely!
fe on games is so repetetive
nah for games
websites is a bit much
icl
what part of backend is fun duh
evrything
for games then yeah, a competent scripter should be able to do both, i also find back end more fun
bro theres stuff that teaches this on the internet
wytb?
the problem solving aspect and the performance optimization, front end is mostly the same stuff, it is more rewarding because you actually see progress but back end is way more interesting from like an alghoritmic pov
programming is like art
.
its a website
programming is like war thunder if i think about it its nice if i do it its giving me braindamage
willi get banned for hiring ppl in chat?
nah
yes
people do that all of the time, you might get some "desperate" comment in the chat tho
should look into the hiring channels
its too ahrd to get the damn thing accepted
yeah
use chatgpt
hell give u a good form
luas dynamic vs any other language's static
is a p sharp jump
then pushing in cpp i hear is bad too
amen
we were talking about getting his form accepted not programming
naah why so?
is there any anti cheat to prevent exploiters from using saveinstance() and saving your game?
im agreeing
what does it do?
saveinstance()
idk they always reject for some stupid reason
like everything, but the server scripts cant be decompiled
there is not really a way to protect things on the client side
well i think that just comes down to organization
well yea
unfortunate
but i doubt
ive seen the
entire deepwoken map
in smb's studio
if it cld happen to deepwoken it'll happen to every game
well u can constantly check for changes in client side and revert theme
besides obfuscation*
but that's hell
i believe exploiters can stop the constant checking cant they ?
well too bad so sad
bro just make the game so good

that they wanna come back
only thing an exploiter cant get is inside serverscript service and serverstorage
and not steal and try their own thing
yea
i mean in erlc
they invented some anti cheat
all the other stuff they can do what they want with it
time for roblox to add firewall
if you open any kind of third party app
actually, maybe chat gpt can obfuscate code for you
they're cracking down on allat
idk when but when they do itll be headlines
fs
they invented some ban api?
?
i saw that recently
yes
inventing* im p sure
oh
its the same as :kick but then instead :ban
yeah
oh
hardcoded
yeah inventing then
hardcoded ?
p sure its this
roblox itself handles bans now
no bro
yes
i mean alot of executors bypass byfron l
or whatever other executers
they're making either a system/lib for devs to use OR its hardcoded
p sure byfron is hardcoded so whatever they're inventing rn would also be hardcoded
thats nice then
idk if they'll ever get to it
@hoary cedar Chevk Your Dmss
but they're also making server authoritative movement
so stuff like chickynoid but >>>
since chickynoid only works with amazing ping
great then
that's impossible to protect against
jk i got the best anticheat ever in my game
you need to send that information to clients no matter what
i put a label in the players ui with
idk what hackers use thats just the first exploit that came to mind
what funcs they can use i mean*
if u exploit = gay
lol
never got any exploiters
right, now
idek what executors they inventin atm
like nezur bypasses byfron
solara and others got cooked
its like rock paper scissors atp
fr
can u explain wth full stack is?
both client and server
?
oh
wth is lua stack then
like some errors output wrong stack or sum i think
and wth is a VM / virtual manager
idek
not possible and will never be possible to prevent that
so im p sure i saw sum like
theres two types of stacks
one where data is taken from the top
the other where its taken from the bottom
wth is that then
?
ahh
if roblox makes byfron unbypassable maybe at that time it will be preventable
yeah you right im misremembering it
i have so much to talk about bro
do yall know how rell seas did their ship combat?
i have an idea
where the ship/platform/whatever moves using a parametric eqn
It's not possbile to make byfron unbypassable as long as the game is running on your computer
the server approximates the clients pos, and the client smoothens out their pos
and the same for all other replication (like the ship itself)
then our games cooked
nah
how
theres nothing wrong with exploiters, if an exploiter is able to somehow hurt another players experience its the developers fault
the game is singleplayer my only worry is if someone saves my game
idc if they use flying cheats or noclip and that
but roblox should still do their best to prevent them, or at least make an effort
yea
you can probably come up where thats not the case but imo it is most of the time
bro all games have cheaters
fr


even off roblox
yeah for sure and they've been doing pretty good with that
wdym
pretty decent, but they like bots, it helps with boosting the player count and its a marketing move for investors
skull
yeah, you could do that, but the checks for it should be on the server side, it should never happen
the top simulators rn have so many bots its insane
bgsi and pet sim 99
right
fr fr phish too
and middlewares are also used to verify a person is an exploiter?
oh so like
if they change their atk to be uncapped
that event would be sent?
or if they used an "uncapped" attack
thanks
ok
js has the perfect syntax imo
nah
I mean I'm not talking about the code I'm talking about like the languages syntax itself
isnt this what i said though?
or am i still confused?
yeah
not on the client obv
Name a language that has better syntax
only once they request a move to be done by doing the input
the middleware parses it
well i mean i thought you meant: "if a person does this restricted move while not being an admin, you could safely asusme they're an exploiter"
it has white space scopes + no anonymous functions
hm
so what i said only works if
the input sent to the server applies to them themselves
ohh
i get the disconnect
we were discribing two different scenarios
ok ok
lord
so middlewares perform intermediate checks to make sure something is valid
?
but they dont do more than that
so [client] /click -> [server middleware] parses input and verifies -> whatever condition done?
mhm
why is the organization of it important
isnt it just folders and ports?
imma watch like a 2 min vid and see if i get it
okay...
and MW is middleware
so it only checks to see if something went wrong
so youre clarifying that
middleware isnt necessarily client -> server? it can also be server -> server?
hm
so then
this is locally too?
which is why it cant be used to see if a person is an exploiter
.
hm
so then
OH
im dumb
you said it so many times and i didnt get it
the check is done on the client
.
then you know from the anti-cheat which is its own separate checks
that they're exploiting
okay,
is it bad then for an exploiter to see the checks performed?
i mean
yeah
is it?
mhm
right
like a whole system for giving attributes??
hm
if the edge case is this
why not make a system for devs to use
then if they dont
thats a strike/ban
thats apart of the system too
mhm
mhm
mhm
so?
real ๐ญ
im saying bruh
every time its some genius
but okay
what i was doing before
was for each change possible
have the server detect the discrepancy
mmm
no like the server script
itself checks once the event is sent off
ion get wym then
exactly
thats why what ur saying is game fr
where did you learn ts
was there llike a big forum post or sum that details more abt stuff?
how did you learn about
these paradigms
hm
id need to know what check is done
and get past it
its like the fact that players can respawn but bosses only get 1 death
hm
besides middlewares
(and ports are made automatically by roblox im p sure)
oh so this by itself is 1 paradigm?
can you like
lay it out for me
mhm
which is all in the res/resolve func
?
oh
mhm
Asynchronous functions are functions which take time to produce an output. To prevent the script from yielding, it returns a promise of an output. That promise can be used to prepare for the output upon its arrivial, and for any issues that may arrise during its preparation
You can opt in to yield via the await keyword
okay great
what are functions call that run on a different thread
i thought thats what async meant
They're synchronous functions
like coroutines
Asynchronous means non-simultaneous. Hence why a promise is involved to prevent the script from yielding (stopping)
they run on a different "thread" of the cpu
They don't
ion have a set definition for what a thread is
then what do they do?
if coroutines are sync.
then they run on the same thread i presume?
(still dk what a thread is)
nope
is it the same thing?
and you handle the error however you do right?
so what do you do?
Coroutines are Luau's asynchronous functions. They are pseudo-simultaneous. They're based on the cooperatively multitasked threads. These threads are more abstract than code divided out onto CPU cores. In cooperative multitasking, only one thread of execution exists at any given time, as all code is being ran on a single core. These threads can choose to yield (pause), relinquishing the execution spotlight. This is done to signify downtime, such as when making an API request that can take time to be met with a response. While the thread is yielding, another thread is resumed so work can continue to be done during that downtime
@sonic juniper
so the equivalent of time-sharing processing?
Think of it like heating food in a microwave. Normally, you'd wait until the food is heated, then move onto doing something else. With cooperative multitasking, you do something else while you wait for your food to heat
mhm
so a thread is abstract because
the main thread is always time
We do this in real life, so its time-saving properties is measureable. This is what gives the impression of simultaneous code execution
but we do different things at different points in time
and for async functions that yeild
we have alot of time to do extra stuff
?
well
right
of course
because thats just another way of it yeilding?
mhm
how does that relate to this though?
mhm
mhm
mhm
mhm
which is what a promise is used for
which is what
the guy was aying
.
.
im p sure we all said the same thing ๐ญ
hm
so
the top one
prints yo cuh ---3secs---> meow
wait not
mb
yk what i meant bro
This. This just pisses me off
I wish languages would provide better support for thread-yielding
It's just ugly
wth is a thread then
if its so abstract
At least make the function more objective
This is my biggest issue with coding. These language developers could care less about native readability
Rust, amazing
fn, die.
you can do the same in lua with coroutines
same

??
that comes from the C naming scheme, which is the most atrocious thing i have ever seen
you have not seen C...
Try writing
name = input("Enter name: ")
print(f"Hello, {name}!")
In C, from scratch.
yeah but brainfuck is for the memes, C is actually used
does its speed only come from its lack of readability?
My implementation was ~90 lines
hahaha funny take, the more a language is unreadable the more its fast
I pissed myself laughing when Dr. David Malan apologized to his CS-50 students for making them use C in the first few weeks of the course 
which is why you have >> :: and whatever
"interact with hardware directly" is a bit missleading but yeah, way more low level then lua
... people code in assembly seriously??
i thought the only one was the guy that made that roller coaster game
๐ญ
because it really doesn't work with hardware directly, its still a "high level" programming language compared to assembly
people, unfortunately, still do, in the big 25
OSs are made with all sorts of languages, mostly C and sometimes rust, you really don't need pure assembly
of the fact that they code them in assembly
bru ion even listen to hiphop/ whatever the hell kanye makes
yo! coded a cool customizable cutscene in roblox
interesting
in my it class
it said c was high level
wsg
but everyone else was saying it was really low level
very nice!!!
pls rate
there is really no need to haha, lower than C + assembly there is little to nothing
why does it being close to assembly even matter
does it shorten compile time or sum
Chat i made a skill system in where you can handle server sided stuff and client sided stuff in one singular script am i cold like is that nice
also anim
the beginning seems a bit janky
yeah the anim is like very rough
**someone answer **
like most cutscene are a tween between point a to point b yk but i tried to make it like animatable
??
How are inputs read if its on the server
public side? you mean client and also no its not exploitable i made it as secure as possible they legit cant do anything even if its in replicated storage i do not use remotes i use modules i made a clean system that you can handle server sided stuff and client sided stuff in one singular module so basically you can do client vfx and client anim and server hitbox in one script
No way its just in a local script
wdym in one singular script? like a module script?
Imo
i use modules so for example i have one whole system that automatically handles inputs and everything and then i have another module which is the skill basically in that skill i have functions like client.start client.end and server.start server.end
(Or moon animator/blender obv)
yep one module script that handles everything smoothly and fully automatic and then the skill as another module
yeah ik like i made a model who has a part with a bone so i can animate it and save it to roblox and put that id in the script and when i touch something it plays the animation, i dont think most ppl do that they just set points and make a cutscene that way yk
hm?
Well buddy
If the player can require the module
They can see what the server does
where is the module script located? because exploiters can just modify the module scripts code
Which is never good
yep
That gives hackers alot more leeway to figure out how to cheat
He said public side because of this
The code is basically privvy to everyone so might as well make it public
Yeah
Cooked icl ๐ฅ
like i wanted a cutscene kinda like god of war where the camera seamlessly smooths in a cutscene rather than cutscene having cuts yk
i can't stop winning ๐ฆ
derive a formula for the two tangents that intersect a given point
how many years of maths education
nah like i made this animation way before thinking of something like this and randomly thought this could be a fun lil thing to do and like set up the camera and stuff this cutscene wont be used in any game or such just wanted a little something to pass time
preschool didn't teach you your number bonds?
i am on week 5 of learning maths pluh let me have my wins
pulling out the "i did that before"
no ๐
you are built for rage bait
atan2(b, a)ยฑarcos(r/โaยฒ+bยฒ)
here bro sorry i missed a C atan2(b, a)ยฑcosโปยน(r/โaยฒ+bยฒ)
just to spite you not even going to arccos it
Whatโs the derivative of time
can welds be rotated with scripts incase i wanna set like offset
curous
Welds yea
Weld constraints you just move the part
ill try figure it out
oh yea i understand but is there any method to keep my current system but move it all to sss or ss
Took me forever to find the timestamp. Was searching through a newer version for a good 40 minutes 
Learn the basics of computer science from Harvard University. This is CS50, an introduction to the intellectual enterprises of computer science and the art of programming.
๐ป Slides, source code, and more at https://cs50.harvard.edu/x.
โค๏ธ Support for this channel comes from our friends at Scrimba โ the coding platform that's reinvente...

dm if u can script with luau i have a game idea and all i need is a scripter (i do other stuff like ui modelling map building) i have 200k robux for ads i can show proof of my funds profit will be split 60 to you 40 to me. do not dm if u want me to invest into you're personal project/want to make a simulator or cash grab (i dont make cashgrabs)
Whats the rate of change of time
That's me ;)
Good job
But usually u take derivatives with respect to time
Yes!
No im too busy understanding Einstein's field equations
I like physics
Which pretty much means i like math
Yes
Textbooks are always helpful
I like computation
Since im a physics major I got into coding mainly cuz coding is very important when it comes to computations
I like roblox too
dm if u can script with luau i have a game idea and all i need is a scripter (i do other stuff like ui modelling map building) i have 200k robux for ads i can show proof of my funds profit will be split 60 to you 40 to me. do not dm if u want me to invest into you're personal project/want to make a simulator or cash grab (i dont make cashgrabs)
I am only a year into coding but most of it has just been programs to solve math problems
Like i have some that solves eigenvalues for you, inverts a matrix for you, finds integral for you,
The tedious parts
Nice nice
No lol
Have you tried emulating hand-long-division? 
The irony is that I used division to emulate division
Hot take, i like long division better than synthetic division
There was this one teacher i had in HS that just grained long division into my brain
The last time I used long division in a math class was to confirm whether or not a number was rational or irrational
I need help
data store works on roblox studio
but not on roblox live
And that was when I was being taught number systems, lol
Who can join my new coming game i wanna test my hammer
please anyone help me with this
It works COMPLETLY fine on roblox studio
I took an analysis class next semester, i figured id get out of the computations and build up my logic
but on roblox itself its not
Computations are the death of me
Can't do much without your code
huh?
I remember talking to my 7th grade math teacher about solving the same problem that UIListLayouts do nowadays 
Also the new input system roblox have? Omg its so good and so easy to use
I was building a custom chat back then. Needed to offset variable-size chat messages with a constant padding
Childsplay
I hate UI with my live bro i hate calculating their positions and everything
UIListLayout is my best friend
Yes but its tedious
I remember accidentally discovering the binomial theorum before being taught it
Damn we got some geniuses in here ๐ญ
Talking bout binomial theorem in 6th grade ๐ญ
MAN I WAS DOING NEGATIVE AND POSITIVE INTEGERS
I remember finding a way (not on my own) to calculate the coefficients for factoring by grouping
While I was being taught that, the teacher said we simply had to brute force the coefficients
Generalized the formula, then converted it into a program for my TI-84
Abused that shit during exams
This was before being taught the quadratic formula
Muah
Didn't matter that my calculator was cleared
Understood that shit down to its core
Helped that it wasn't an overly complex formula
tasted so good
ice tea is the best drink ever
can someone help me? my game player keeps falling under the map
Peppermint or mint tea is the drink oat
I would say I disagree but its an objective fact
make them not fall
easy
its crazy tough i got the most amazing snack ever and yall be talking about the drink
need someone proffesional at GUI to help me please dm!
yeah like im making a ui dependant game n im struggling
what is roblox-lua...? do u mean react-lua?
that would be called luau
and is universally known as luau
do you have any ideas on how rell seas got their ship movement so fluid?
???????
failed mahoraga summon bru
he aint show up
but ig what i could assume is
the ship moves via a parametric func, and the character's position is updated using: current position + that position that they should be at, based on the func
the only problem is
if you apply it on the client, since that'd smoothen it out, how do you make the ship move smoothly too
if the character is moving smoothly, how do you move the ship smoothly
bro i barely know how to declare a variable bro
since the ship is also on the server
well have you seen the game?
no but im sure its great
Probably some mangenkeyo scriptigan type shit
That our scripting brains would have trouble understanding
The guys who code there really know their shit
They can practically dedicate incredibly experienced scripters to one feature to make it perfect
is there anyway to make sure the client is loaded before firing scripts because people with slow internet wont load like 90% of the local scripts
game.Loaded
nope
scripts are like preloading
its weird if u have slow internet none of the camera scripts either start before the camera isnt loaded or they dont start at all
bro what ๐ญ๐ญ๐ญ
Whats the best way to learn roblox coding.
local RunService = game:GetService("RunService")
local Character = script.Parent
local Humanoid : Humanoid = Character:WaitForChild("Humanoid")
local RootPart : Part = Character:WaitForChild("HumanoidRootPart")
local Animator : Animator = Humanoid:WaitForChild("Animator")
local WalkingBodyVelocity = Instance.new("BodyVelocity")
WalkingBodyVelocity.MaxForce = Vector3.new(1e9, 0, 1e9)
WalkingBodyVelocity.Parent = RootPart
local BodyGyro = Instance.new("BodyGyro")
BodyGyro.MaxTorque = Vector3.new(0, 1e9, 0)
BodyGyro.D = 2000
BodyGyro.P = 10000
BodyGyro.Parent = RootPart
local Settings = {
Speed = 16,
RunSpeed = 24,
JumpPower = 50
}
local WalkVelocityGoal = Vector3.zero
local Alpha = 0.5
function DisableDefaultMovement()
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
end
RunService.RenderStepped:Connect(function(delta)
local MoveDirection = Humanoid.MoveDirection
if Humanoid:GetState() == Enum.HumanoidStateType.Running then
WalkVelocityGoal = MoveDirection * Settings.Speed
if MoveDirection.Magnitude > 0.1 then
local LookDirection = MoveDirection.Unit
BodyGyro.CFrame = CFrame.lookAt(Vector3.zero, LookDirection)
end
else
WalkVelocityGoal = Vector3.zero
end
WalkingBodyVelocity.Velocity = WalkingBodyVelocity.Velocity:Lerp(WalkVelocityGoal, Alpha * delta * 10)
end)
DisableDefaultMovement()
help
with what
lol
i cant figure out how to make the character look at where he going
@hallow crag
u here?
does anyone know how I can include this in my aura. Currently these don't show at all when I test but the other particles show.
local Character = script.Parent
local Humanoid: Humanoid = Character:WaitForChild("Humanoid")
local RootPart: Part = Character:WaitForChild("HumanoidRootPart")
local Animator: Animator = Humanoid:WaitForChild("Animator")
local WalkingBodyVelocity = Instance.new("BodyVelocity")
WalkingBodyVelocity.MaxForce = Vector3.new(1e9, 0, 1e9)
WalkingBodyVelocity.Parent = RootPart
local AlignOrientation = Instance.new("AlignOrientation")
AlignOrientation.MaxTorque = 1e9
AlignOrientation.Responsiveness = 200
AlignOrientation.PrimaryAxisOnly = false
AlignOrientation.Parent = RootPart
local RootAttachment = Instance.new("Attachment")
RootAttachment.Parent = RootPart
local AlignTarget = Instance.new("Part")
AlignTarget.Anchored = true
AlignTarget.CanCollide = false
AlignTarget.Transparency = 1
AlignTarget.Size = Vector3.new(1, 1, 1)
AlignTarget.Parent = workspace
local AlignTargetAttachment = Instance.new("Attachment")
AlignTargetAttachment.Parent = AlignTarget
AlignOrientation.Attachment0 = RootAttachment
AlignOrientation.Attachment1 = AlignTargetAttachment
local CurrentCamera = workspace.CurrentCamera
local Settings = {
Speed = 16,
RunSpeed = 24,
JumpPower = 50
}
local WalkVelocityGoal = Vector3.zero
local Alpha = 0.5
function DisableDefaultMovement()
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
end
RunService.RenderStepped:Connect(function(delta)
local MoveDirection = Humanoid.MoveDirection
if Humanoid:GetState() == Enum.HumanoidStateType.Running then
WalkVelocityGoal = MoveDirection * Settings.Speed
if MoveDirection.Magnitude > 0.1 then
local lookVector = CurrentCamera.CFrame.LookVector * Vector3.new(1, 0, 1)
if lookVector.Magnitude > 0 then
AlignTarget.CFrame = CFrame.lookAt(AlignTarget.Position, AlignTarget.Position + lookVector)
end
end
else
WalkVelocityGoal = Vector3.zero
end
WalkingBodyVelocity.Velocity = WalkingBodyVelocity.Velocity:Lerp(WalkVelocityGoal, Alpha * delta * 10)
end)
DisableDefaultMovement()```
should be fixed
it kind of worked but not the way i wanted im ttyna us the movedirection property and the script u did was making what ever direction the character will face its back to the camera
ty anyways
oh i get it one second
alr tysm
not roblox related but i dont have access to advanced,
how the HELL is appy bot able to ping within an embed and it register as a real ping?
for reference.
skill
i still cant find how did u get it?
u need to use the players move vector
somehow
require(LocalPlayer:WaitForChild("PlayerScripts").PlayerModule:WaitForChild("ControlModule")):GetMoveVector()
thats how u get the movevector
how i can set it tho?
use it*
wait nvm
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = script.Parent
local Humanoid: Humanoid = Character:WaitForChild("Humanoid")
local RootPart: Part = Character:WaitForChild("HumanoidRootPart")
local Animator: Animator = Humanoid:WaitForChild("Animator")
local WalkingBodyVelocity = Instance.new("BodyVelocity")
WalkingBodyVelocity.MaxForce = Vector3.new(1e9, 0, 1e9)
WalkingBodyVelocity.Parent = RootPart
local AlignTargetAttachment = Instance.new("Attachment")
AlignTargetAttachment.Parent = RootPart
local AlignOrientation = Instance.new("AlignOrientation")
AlignOrientation.MaxTorque = 1e9
AlignOrientation.Responsiveness = 200
AlignOrientation.PrimaryAxisOnly = false
AlignOrientation.Parent = RootPart
AlignOrientation.Attachment0 = RootPart.RootAttachment
AlignOrientation.Attachment1 = AlignTargetAttachment
local CurrentCamera = workspace.CurrentCamera
local Settings = {
Speed = 16,
RunSpeed = 24,
JumpPower = 50
}
local WalkVelocityGoal = Vector3.zero
local Alpha = 0.5
function DisableDefaultMovement()
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
end
RunService.RenderStepped:Connect(function(delta)
local MoveDirection = Humanoid.MoveDirection
if Humanoid:GetState() == Enum.HumanoidStateType.Running then
WalkVelocityGoal = MoveDirection * Settings.Speed
if MoveDirection.Magnitude > 0 then
RootPart.CFrame = CFrame.lookAt(RootPart.Position, RootPart.Position + MoveDirection)
end
else
WalkVelocityGoal = Vector3.zero
end
WalkingBodyVelocity.Velocity = WalkingBodyVelocity.Velocity:Lerp(WalkVelocityGoal, Alpha * delta * 10)
end)
DisableDefaultMovement()```
should be fixed
@shy bronze
u just had to add the movedirection
๐
yoooo
it work thanks it look like some retro game ๐ญ
ill lerp it
@hallow crag thank you so much it look so good now
btw u can remove the align orientation bs
its not needed
i did
alr
I'm trying to make a system similar to Hero's BG. I'm just really confused
For their grab moves, even when your extremely laggy (400ms ping testing) if you snap your camera last second, it still lands the hitbox correctly.
Could this be that everything is handled on the client and the server just exists for sanity checks and replication?
Yeah ngl when i was typing this out I kinda just answered my own question
btw i recommend using a linear velocity instead of a body velocity (its depricated)
fuck it turns out the game im inpired from it face the character back to the camera
i have a hard time dealing with it
whats the game
u inspired from
nah ill check it now
its a great game try it out
i think i can use however u did in the first version of the script and update the character orientation when he moves (exactly ur old script but i lerp it)
ur goated โค๏ธ
Im cooked
BodyVelocity and Vector3.new(1,1,1) ๐
unanchor the door part
its still there
@foggy fulcrum
no escape
can someone help me doing that when the target looks left or right or up or whatever and deflect that the ball makes a curve to the next target guys can someone help me i want that when im the target like when a player is a target and he looks left right behind or something that the ball makes a curve to the next target
i dont understand
sorry i think it's not related to this channel so i deleted it
Chat I need a lil help, im editing the camera to set it on a part, but when I want it to track the player again, it just mess up and I canโt even tell whats going on, as it seems the player velocity got higher
wym?
After editing the camera
And set it back so it follows the plr again
Itโs not like before
The player floats
what u mean the player floats?
send pics or video if possible
@solar inlet
