#code-help
350 messages · Page 1 of 1 (latest)
evil mind virus
what do i do when making a combat system and when multiple people punch at once only one hitbox comes out
yeah but like the files he wants are like 1 script
idk why he doesnt jsut copy them and do it himself if that's what he's after 💀
sure that works
real reason is cuz the people who make libs that get put on wally or pesde dont rlly care to
you mean like
wally registry is public
wally has a download button that gives you a ready to use rbmx
its a game design decision
you can make the hits clash
you can make the first hit interrupt the other character
yes but this should be the job of the manager
wally is like
you can make both hits hit
im tryna do something where theres no hitstun but they can punch each other
a barely maintained project
isnt that what you already have
right now yeah but only one hitbox comes out
oh
did anyone else connect their microphone to chat gpt so when you say "make this work" it sends the code to chat gpt and chat gpt fixes it
no not really
i used remote events if that changes anything
i think its something wrong with the fireserver thing
and it only working for one person
contrib to pesde or wally tbh
lazy
My keyframes for animating rigs arent showing up in roblox default animation edtior does anyone know why
im gonna make my own thing n ill do it then
not for roblox though
for what
our engine
who is our
awesom
make el mujer chico simulator
thanks! looks like it would help ill probably try it later. even if it works i'll probably end up not using them out of spite, though
should clarify spite out of them not adding prebuilt rbx files not you
who needs help with their code
wtf u can do this 😭 https://gyazo.com/43180f895ae4d65f828978f8623a3e5f
why u got 5 studio tabs
close them
stop
wait thats cool
Why write code on roblox studio ☠️
your not tuff bro bro
it's counter intutive
you think your cool cuz you use a different app to write your roblox code
No I think I'm just better than you
🐒
anobody can do it, its low effort
claude might be the goat he just wrote 900 lines of dog shit
that's much more intuitive
better autocomplete
looks better
if you're not using emacs you're not actually programming
it depends on your project
hey dm me
thats shit
clunky af
maybe ur taste
i just dont like people who think you need to use an IDE to make a roblox game
it's primitive
its better for larger projects, tho for small ones you might as well set it up in studio
I never said you need to
you surely acted like it based off your first reply to me
"Why write code on roblox studio ☠️"
this guy doesn't even use emacs
that doesnt imply necessity
why are u talking to him like he's a programmer
he's clearly larping
2 acceptable code editors.
emacs & nano
maybe ratty too if ur a goat
whats the point of using one?
nobody cares about what editor you write your code in
whats a reliable way of checking if a player is in the air? i tried humanoid state type but it worked 50/50
better
the editor and terminal emulator a programmer uses decides whether or not you can take them seriously.
they care if the game is actually good, and runs es expected
cursor or any 'ai first' editor and u know to just ignore them
that's too reductive
is it alright if i abuse while not?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DataManager = require(game.ServerScriptService.Datainit.DataManager)
local GetInventoryFunction = ReplicatedStorage.Functions.GetInventory
GetInventoryFunction.OnServerInvoke = function(player: Player)
while not DataManager.Profiles[player] do
task.wait()
end
local InventoryData = DataManager.Profiles[player].Data.Inventory
print(InventoryData)
return InventoryData
end
Hey all i currently have got a dance game released but i noticed our animations over time are chunking 2-3gb into the animation memory cache and no matter what i do i can't clear it or keep it clear so it doesn't just pile up
dose anyone have some insite or ways we can keep it from stop piling up without havving to reset the chars animatior every time
bad
it's just a potential memory leak, but it's not really like it matters.
you should opt to use a signal to convey when a profile is added
or manage the thread.
or add a time out
alright thanks!
if the profile is not loaded, you put the request in a queue, once the profile loads you resolve the queue
he doesn't know what a queue is.
DMS
besides, it's not like a memory leak like that would actually impact anything
why is my gpt tweaking
gimme a few i will send one your waay
first mistake was using the gpt
^^ anyone know?
memory leak?
how can it work 50/50 it's quite accurate for me
raycast down 2.2 studs every physics tick
@jaunty flame dm me!
it just doesnt always catch whenever the player changes states it isnt reliable for me
its where a game exploads with memory like 5-6 gig s and eventually makes the game unplayable cough cough deepwoken
oh wait you gotta check the floor material == air not check states
Cache the anim object
u can do that??
or if its from hrp i think it's 3.2
idk its been a while since ive done shit on this assform
gpt on acid
humanoid.FloorMaterial == Enum.Material.Air
i assume its from humanoid root part but ill experiment with the numbers until i find something that satisfies me
i had no idea 😭 have u tried it before to know if it works well?
ill try that too thank u
what's the math behind the number 2.2/3.2
😵💫
middle of hrp to ground + .2 studs cuz it feel right
that's actually super clever
you can basically skip the "is in air" raycast just by measuring the if (abs(y) > 0)
i never thought of that
or if it's > a certain value but ig that only works if players aren't holding x or if the game only uses normal jumps with no flight
but that'd also give false positives when you're walking down a slope
ig it isn't that clever nvm
HOW DO I FIX THIS "[Rebirth] Using saved auth token... Roblox ID: 7922483799" Ai no help
its not enough
that's what i said :d
I said and
raycast AND check that the upward velocity is not zero
raycast gives false positives
no it doesnt
you can be on an edge
mayb if u misconfigure
they r poor on perf
honestly just do 1 center raycast and then one at each leg's midpoint down
even with velocity check and raycast a slope on an edge would be a false positive
so boxcast is the only solution
or AABB
still doesnt work
just boxcast
who gave chatgpt consciousness
-- GAMEVARS
local Acceleration = 10
local Friction = 5
local WASD = {"W", "A", "S", "D"}
local IsMoving = false
local MaxSpeed = 20
-- CREATE ACCELERATION / DEACCELERATION
RunService.Stepped:Connect(function(DT)
local PlayerGrounded = game.Workspace:Raycast(rootPart.Position, -rootPart.CFrame.UpVector * 3.2 , raycastParams)
if PlayerGrounded then
print("working")
local PlayerDirection = humanoid.MoveDirection
local Velocity = PlayerDirection * Acceleration * DT
rootPart.AssemblyLinearVelocity = Velocity
end
end)``` how would i clamp velocity if its a vector 3 💔
take magnitude and clamp it then multiply that by the unit vector
and uh do checks before using the unit vector if the magnitude is ~0, cus then you get NaN vectors and everything blows up
i went on a 17 hour date with my gf
@solar eagle check your dms
@velvet sparrow is that roblox catan in ur pfp
its a game im working on!
is it roblox catan tho
its an rts game, I guess its somewhat similar to catan
it worked until the 0 im frying
its fine ill just try an if statement or something
i have a math module that does edge case shit like this, and sometimes im too lazy to go pull it from a package or copy / paste between projects and i always end up rewriting the clampMag function
dude how do i manage to write luau types so convoluted that claude can't parse this shit
he does NOT understand what im doing at all
show
how do i disable that white annoying thing when am writing codes?
thank you
using generics to extend behavior
claaude just bad
basically just advanced composition shit
if you do anything fancier than C style structs in typed luau its eventually gonna be unworkable
wdym
that's what it is lol
export type Entity<Extension = {}> = Extension & {
Update: (self: Entity<Extension>, dt: number) -> ()?,
CleanUp: (self: Entity<Extension>) -> ()?,
Owner: Player,
Coordinate: CFrame,
Extensions: {string},
Id: string,
Intent: {[string]: string}
}
export type BulletExtension = ModelExtension & {
OriginEntity: Entity<CharacterExtension>,
FiredAt: number,
Origin: Vector3,
Velocity: Vector3
}
export type CharacterExtension = {
Character: Model,
}
So much ceremony
I almost thought this was typescript while I'm on mobile
i see generics right there
: Vector3 and not vector 🤢
also whats going on w/ the = inside the generic brackets
did they add generic type restrictions?
yeah
it enforces that the exntension be a table
i feel like im almost 2x as fast
ok lk thats kinda hot
as claude is at implimenting stuff into my own codebase
like
claude can do the basic outline for features
but i still gotta go in and fix a bunch of bullshit
it'd almost be faster if i just wrote it myself
like it burnt through 7% of my usage thinking for 10 minutes
and then didn't even do the problem correctly.
(the problem was write a fuzzy auto complete)
they're making claude more like a project manager
caan't do shit with llms bro
is it effective if I lets say I wanna build something and dont know how to build it, i could ask ai and it could direct me on what videos/sources/etc i would need to read or stuff i would need to know and how I'd structure the script, or would it just slow me down and be unneffective?
kinda cus all the search engines are getting enshittified more and more
No
why
Hm
if what you're interested in is getting better, avoiding ai entirely is the move.
yes, this + google is a smart move. you can learn to do anything online, most of it relatively quickly by doing this.
I find this works better than starting by watching videos.
f
i disagree, it is especially useful to a beginner if you are responsible enough to avoid vibecoding
@cyan crypt are you taking comms rn
not all beginners are but some are
sorry brother im not :(
Avoid AI if you're a newbie
noo sorry i already got a long term project set up
this guy be tryna hire everyday. How is your game going I wonder
i think it is probably more useful to a beginner than anyone else tbh
Strictly avoid AI if you're a newbie because it will just highly demotivate you to learn scripting
this is a reasonable thing to be careful against tho
its very easy to start vibecoding trash and getting nowhere
ive learnt the basics
You need basic understanding of certain terminologies and the functionality of it which can't be all fetched by using AI
how do I unlock the skill to make my own scripts?
what's a variable
like complicated ones
Then you haven't learnt the basics
yes
a value you can give data to, it can be a string, boolean or an integer
it comes out of making modifications. Expect to google things 50-60 times before you start remembering how to write them from scratch.
Coding involves a lot of copy and paste, a lot of google. its normal to need to look up how to write something every time.
I was heavily relying on AI for creating a viewmodel which shows fake arms in my screen because I was lazy to learn it and I was in a big remorse
At the end, I had to watch several videos, ask tons of people and then make my own working viewmodel
i see
this really just comes from making stuff, making games. so long as you are consistently making stuff you will improve very quickly.
Ai is useful too, just dont vibecode (use mystery code a lot and ask it to fix all your bugs)
Yes, use AI to do all the necessary testing and fixing all issues
the most annoying shit about ai is that it's just suprisingly incapable for the cost
Don't use AI to make fresh projects from scratch
well, i actually think fixing bugs is how most of the learning is done. i would say use it to help with your bugs but dont just let it do the fixes for you.
you can get 10x better work from some indian
im talking about using ai to learn or simplify concepts
i do this often, its very good at this.
my gpt today is so peak
ai over simplifies math to the point of just lying to you so you think you understand it
it's mental
its ideas about "how to learn" are not great. it will say silly cliche stuff like "start from the basics" etc.
but its knowledge is very vast. it has good knowledge on almost any topic. i ask it questions about all kinds of things all of the time
llms are such bad teachers
like if you want a "guide for tasks to do to learn lua" its probably beter to just make games
because they're designed to make u think you're smart
but if you wanna know how most people say. Fetch the character. its REALLY good for that.
wdym
idk i dont trust it much so i find i dont have too many problems with hallucinations. it is a tool
i would say its not too useful to ask it to
-Make you a lesson plan
-Choose your next project
But extremely useful for
-Seeing common methods of doing things
-Explaining concepts/topics
-Getting keywords to google
if youre wondering what to do next, just keep making games. games provide you with a huge variety of tasks and are probably just overall the best way to learn
never trust a program that can't count the amount of rs in strawberry to teach you integration
some guy in here the other day was clowning on me for not knowing integration
ya octodecagon's a larping weirdo
no
howd you know it was him 😭
that guy has been larping for a while
he was the most likely person i knew of to do something like that
there's only like a few people here who regularly talk down to people
and that guy's the one who doesn't know how to do anything
only a few
I can't find anyone good
ive done enough irrepairable harm to this codebase for a night.
lol good luck, im also making some kind of rts + tower defense but Im doing it solo only
why are you +1500 in 1 commit
no api daily session looks like
oh fire
show me!
nah it's not so presentable rn
aw
if you can't integrate you shouldnt be talking about physics
🤢
lmao i was just lookin at that
it gets counter productive if intellisense cant just automatically pick up on ur types
ask knit why it had to reinvent the wheel
use claude
claude's code is bloated
how to convert my game to knit or aero?
u dont its obselete now
so what do i do about multiple places?
multiple places?
yea as in my basketball game itll have park and mycourt etc and dont want to paste code all around
just keep the same pattern, but without knit
i have a main menu and things of that nature. should i just sync all of them together and require whats needed?
if you still want those "knit features" like partioned and timed code executions just make urself or use a custom bootstrapper
dis game does architecture well
i just heard using Knit or Aero would be good for that i really dont know i never tried 🤷♀️
look at this
even without knit u shouldnt be pasting code around lol
keep low levels code (ex. detecting player region, ui transformation, data transformation) portioned off in ur game
architecture is probably the hardest part of programming and requires the most practice to build an effective intuition
or problem solving process
and its arguably the most important part
so u will learn more by doing
once u have low levels API you can start building into high level code, that uses these API on the surface
so ideally on the surface level code, it should be simple and easy to understand
thanks man i read it and im realizing
yea after you said that i noticed
thanks
looking for coders asap for a game jam
im down
dm
i know script.parent would access key but how do i access value like the child
script.value
when i do that it says theres an error
idk if .value is a reserved word or not
btw to get the value of the instance it needs to be
script.instancename.Value
i was doing if script.value = true then but it need to be if script.value.Value = true then
im actually so stupid
thank you
i really dont tho
also who knows maybe i know integration but just not the name u never know
at least they try to explain it
compared to wikipedia
@paper anchor are you taking comms rn?
depends on what you need and how long
I am working on an rts game
I'd need you long term
the project itself is 85% done
no thank you, not interested in long term
no problem
cant forget not
xor
i mean thats just made of and, ors, and nots
ok
can anyone solve this problem of mine? I was making a door system on Roblox Studio; for that, I used a hinge constraint and tween service. Before it, I used a weld and tween service for the door, and it also didn't work. Can you guys tell me where i am wrong. local model = script.Parent
local hinge = model.Hinge
local hingeconstraint = hinge.HingeConstraint
local base = model.base
local prompt = base.ProximityPrompt
local TweenService = game:GetService("TweenService")
local IsOpen = false
local tweenInfo = TweenInfo.new(1)
local tweenOpenGoal = {
TargetAngle = 90
}
local tweenCloseGoal = {
TargetAngle = 0
}
local openTween = TweenService:Create(
hingeconstraint,
tweenInfo,
tweenOpenGoal
)
local closeTween = TweenService:Create(
hingeconstraint,
tweenInfo,
tweenCloseGoal
)
prompt.Triggered:Connect(function()
if not IsOpen then
openTween:Play()
IsOpen = true
else
closeTween:Play()
IsOpen = false
end
end)
Who remembers the infinity stones
is it a servo hinge
is it anchored
well the hinge is anchored
but the door is not
Also, before doing this, I tried to use hinge constraint and CFrame with the TweenService to make the door. It worked, but not in the way I expected.
the hinge constraint kept pulling the door towards him
kinda interesting you get to know he's the one who made the image
can anyone solve my doubt
can we not play animations on server anymore?
You can, but you shouldn't be
why
In some cases yes. If you can't, then use a RemoteEvent to have all clients play the animations locally
how does roblox physics revive this superball back to life im scared
please someone explain
Do you mean this in the sense when you attack it will make every other player attack too lol
yes
lol
Son 😭
Should you be making a bg game if you don’t understand simple concepts liek this
idk what else to do
oh wi\ait
does fireallclients make it so that every client can see the anim
Yeah that’s what you need to do so you can replicate your animation to other people on their clients
this too i swear this shit is possessed
yo
whats this game
still something i havent dropped after 3 years 
its just me and my friends
looks nice
feedback?
WDYM??????????????????
stop ignoring the black cat
huh oh
I was inserting some animations into my module script to run them into another function but then I get this error I check the animation IDs and they are fine, what could be the cause of this?
very cool, what are you using for the knockback?
events.PlayAnim.OnClientEvent:Connect(function(comboIndex)
local char = player.Character
local hum = char:FindFirstChild("Humanoid")
local anim = punchAnimCycle:FindFirstChild(tostring(comboIndex))
if not anim then
print("Not anim")
return
end
local loaded = hum.Animator:LoadAnimation(anim)
print("Length:", loaded.Length)
loaded:Play()
end)
why does this not wwork. (Combo index is int value with the punch sequence)
(horizontal direction force) + (upward force)
kinda looks goofy tho
but its alright I did this in like 10 min
just for port
thats so cool
ty
Hi
how do you exactly use it
yo how are u getting the anims to work man
is it an instance or do you use the target's hrp
Thats what I do:
local dir = attackerRoot.CFrame.LookVector
velocity.Velocity = dir * 55 + Vector3.new(0, 25, 0)
So basically LookVector * Force and dir * 55
did u publish the game? is it under your game?
the anims
i published the game
cool
it eliminates lag
can I get some help on this error?
do u get an error?
for some reason the length is printing 0
nah no errors
show code
rbxassetid://123456 make sure its like that
and inside strings
el gato
yoo everything works but my camera isnt offset does anyone know why?
Thats the part where I stop helpin to make my own project.. @tranquil apex
you dont understand how helpful it is when people support each other there could be so much improvement from both parties cause you teach and force urself to understand the concept and the other person learns
why is tweenservice IS above and below you do TS:Create(...)
Tbh i dont even know I thought about doing that but its legit genius
im a beginner
what I made in the clips were mine
ye?
and the animation looks stiff because the default animations are overlapping with it
what can I do to prevent that
change priority
ye
change it to action
in the animation itself?
How to make a working infinite ocean with drowning system and swim system with waves
ask gpt
or can I change it on the go
yes
oh
gpt is ahh
so I have to make a new one?
bro no one is going to tell u here how to make that its not smth u do in 2 clicks 😭
can I code it in my script or do I have to go to the animator thingy
click the three dots and change priority
bruh im experienced but idk this
both is okay
whats the code for it
experienced in larping?
.AnimationPriority?
yes
yes ur the goat its fixed now
experienced in art,gfx,scripting,animating,modeling,building,vfx
Then u should have no problem doing that bro is the master of larping
you can change it in the animator or inside a script
no bro
i can show u my game if u dont trust
i recommend changing it in the animator and republishing it as an existing asset because it's universal
not bout trust bout acutally knowing how to script lol
if U dont know how to do those then you
so if you're running the animation multiple times you dont have to change .AnimationPriority every time
're just not experienced
i know
but i did not learn how to make gerstner waves...
then y do u know help doing it
any tips to scripting a gun system for th first timeeeee
"experienced" lol
use raycast
spatial partitioning.. noise terrain generation.. animations.. damage.. sinking.. boom
obv
"experienced"
what the FUCK
LMAOOOO
Lmao saved
bro is not experienced in all those things
i gotta admit my biggest game (which is also my first game) was scripted like this
it somehow works
which game is it?
you are a strong man, dake
like what abt
takes a lot of courage to admit something that egregious
..
can i have a monke fact
I WAS A BEGINNER OKAY BRUDDA??
oh yeah and every script does the same thing just written in a different way
We were all there 💔
it's literally for dashing
give me a monke fact right now 😡
monkes like to eat bananas very long ones
liar
Rookie numbers bro ✌️💔🥀
i genuinely dont know which one of the 5 scripts actually does the dashing because whenever i delete one the dashing just does not work
guys, is there a way to do complete game data saving, or do you have to do inventory, leaderstats, gamepasses, seperat;y;
YES I've tried deleting every single one and it all doesnt work
So peak
the polishing mogs my whole career of scripting holy shit
id buy that walking trails vfx off you
I'd need to learn from you seriously man
the walk trails are just trails... its not complicated 😭
i mean im making a blade ball something something type game
except there's
no ball.,..,,.
yes only blades
i think you get it now
🤯
uhm the body doesnt move with the camera and i dont get a error, help pls
i mean.. yeah.. but there’s a save/query limit.. and you don’t have to save game passes.. you can just use marketplace service
could it be.. “humanoidRootPart”
LISTEN TO HIM!!
wait how is he getting no errors
oh
waitforchild returns a warning
find first child returns a boolean, waitforchild yield, which can lead to error
parent.nonexistingchild returns an error when handling it
second move of the gauntlet character there is no vfx yet kind of laggy need to fix
the animation😭
it feels so robotic
oh wait not the animation
its not the anim its jsut cause it jitters in the air
the jump
you magically speed up in the air for some reason
ye ik
hey it doesnt work
idk what u even meeant by that
2 server script? 
nope 2 modules
the root part variable in the function to rotate the character towards the camera
the open scripts tab hurts me
how do i do a print?
so what am i supposed to change?
nvm
lol
the lowercase h to an uppercase
i changed that
local function RotateCharacterToCamera()
...
local rootPart = character:FindFirstChild("humanoidRootPart") -- False, it's named "HumanoidRootPart" with a capital H in the beginning
are there enough springs 
i plan to add icons next to the currency labels in the lobby mode
what is it supposed to do btw
UILABS DOES THAT??
THAT SHIT DIDNT EVEN OPEN FOR ME
maybe you’re looking for CFrame.lookAt?
it's for previewing ui yeah
what’s erroring? lol
what's ui lab
is it a paid plugin?
free
it's free
can u send link
yeah one sec
bro i installed uilabs and i was super confused and just uninstalled it
u mean roact
oh
there's a version of react for lua?
ty
https://ui-labs.luau.page doc page
Storybook plugin for Roblox
yeah it's a 1:1 port
damn already? 😭
What is React? React-lua is a Roblox-compatible Lua port of the well known React UI library that is widely used in web and mobile. React-lua is maintained by Roblox. Currently most studio plugins and the Roblox Universal App (the desktop console and mobile app where you browse for your favorite Roblox games) are all written in react-lua. In ad...
wowzers i was wondering why my ui was so shit
i dont really like react-lua or react with roblox in general tbh
unless youre working in rbxts vide is a better option
what do you personally use
vide
alr i'll lookup the docs
someone just asked me to script them a whole steal or split brainrot game 
for how much
10k
insanely low amount
still doesntt work
thats nothing my friend he's an animator he gets like 5k per good anim or more
yes does your brain like electromagnetic fields to send messages to your friends cuz like doing it normally on your phone requires code too
rejected him
yeah it's nothing
IT WAS UPPERCASE
i dont do comms below like 200k robux
well not in that ss it isnt
did you do it in playtest mode
Positon 🤓
Positon 😭
Positon
w hitbox 
☕️
Typo
where
rootPart.Positon
Positon instead of Position
positon, postion 😭
pls pls pls read over your script for any typos or case mismatches
😭 😭
.
just use ai atp
bro pls use the autocomplete
i genuinely dont know why you would do that
like it there to minimize typos and make typing faster
also guys i got a little question
in blade ball there's a problem where if you got high ping and try to parry you'll most likely die anyway because it took too much time for the remote event to reach the server. i tried to fix this in my own game by making the block time window start earlier for high-ping players. that may sound like an unfair advantage for laggier players but that's not the case cuz it only starts earlier, which doesnt make it necessarily longer. and this is completely server side and the client only has a prediction mechanism for where the projectile is going, so if they parry it's completely instant without waiting for server response.
is there a better way than this??
holy paragraph
Holy yap sesh
i’m pretty sure deathball has projectile prediction too
they limited the ball max speed
I need help with something... I downloaded a dynamic main menu by develuper and i tweaked some stuff in it including deleting the camreset code since I'm making a chapters option after pressing play instead of straight up resetting the camera and letting you move around.
But after trying to make the option to reset the camera on the start button from one of the chapters im making, i dont know how to make it work. Ive only been coding for a month and im trying to figure out how to fix it so im here asking help and hope maybe i can get answers 🥹
in blade ball, sometimes you just have to pre parry
yea i tried my best not to make this an open hole for exploiters to go through
More words then my game's scripts
yea
how can it start earlier if it starts when another player hit it
it predicts it on the client
before, the server validates the block first
then it can be deflected
🧠
but that becomes unplayable as the player gets laggier
so
i made the player predict the block
then the server validates
the server subtracts the player's ping from the block window, as it already started on the client
so that way, it started earlier without being longer
therefore no unfair advantage
now i wonder if exploiters could abuse this
that's what im asking
I guess it's possible to make that but you gotta be good at understanding timestamp and networking
anyone? 🥹
would help to include some code
and be a bit more specific
lol bro is literally like me, making main menu as my first script except I didn't download stuff
would people care about being able to place units too close to a building/wall
bro why homura cost 67 million
I dont think so, these type of game is brainrot anyway
idk the atd space is super competitive
aa and av have had like 20 page long stat calculation spread sheets with tourney strats
100%
iirc there was a universal desync issue going around for a bit
you could also try doing some rollback.. like.. say a client gets hit.. and they parry data finally reached the server and the timestamp shows they triggered it beforehand.. then revive them.. and parry i guess
that was a roblox physics flag issue tbf
ouu
choppy
and kinda confusing
i mean if the knife reached them before they parry they'll definitely die
well you just gotta watch out of z-fighting
cant exploiters just spoof the timestamp??
i thought of that
yeah
that's why they should be clamped
rollback net code is normal among network-reliant games
only prediction is fine though
the changes i made is like
the client predicts the parried
the server verifies
if the parry is valid, continue using the client's prediction
if not
cancel the parry and kill the client
that's all
how does that work tho, if i ever make another game that relies heavily on the server
overwatch has an unlisted gdc talk on rollback net code
or you can look at how 2d fighting games implement them
if you can't find it I can send it to you later
can you like give me a brief explanation of what it does
yeah this is enough for a roblox game, some larger scale games or fighting games benefit from it more
and why it's better than my prediction system
because it actually effects the server's calculation and validation
Scripters can anyone helP me ?>
you will need timestamp, prediction is for the effects, timestamp will be used by the server to check where you actually hit and calculates what you saw
I really want help
Do yall know the high performance water made by gpm
again, can be spoofed
you rollback the server's state to a clamped timestamp and perform the validation based on that time's state
ORRRR
Im ffacing problem in that
that's why you clamp it
it should not make a feasible different or give an advantage to exploiters
Guys any1 Listening to me ?>
do you mean like if parrying was possible at that timestamp??
there is no better way but you can just clamp the timestamp, and why spoof when they can just auto parry script which is more simple
its normal among AAA online competitive gaming
@honest verge @cunning urchin @frigid cloud @tranquil apex @lilac badger ?
are yall even listening Can yall Help me ?
yes, but the difference in the timestamp is obviously validated so its not too far away
dude chill we're having a convo about coding too
just run your own mesh for water, idk about external water libraries from people
they could just send timestamps that are all possible. when the knife is close, just fire a parry remoteevent with a perfect timestamp
I understand but i am just asking for help if yall have some time can yall look for my problem ! I would be thankful
this is nearly unavoidable if it's just parry based
oh yah my game is about throwing knives btw
the client can already have its own prediction based on network
yeah that's why my only option is to just use prediction
what do you need help with? I know you mentioned that water util but what about it specifically
im saying even then the parry system is exploitable
im not saying you should use rollback netcode either fyi, prediction is good enough for your project
Like When i click space while moving in the water I get to the surface very quick
they can predict vel and just parry it anyways
looks like the dev forum has a whole guide on implementing this. what’s your issue
Heres the custom water plugin i m using
you cant
its an unavoidable thing with that kinda game
i mean does blade ball have the same problem
I visited that page but Nothings working Even im changing the char density and char density up but when i click space while moving in the water I get to surface very fast
fr,
- uncollidable part
- check if player in part
- play swim anim
- add linear velocity to hrp
- wire up inputs
- custom behaviors that makes it cool
roblox water is shit
make your own water like a sigma
i dont think it's that hard
i mean
just
make the character move up constantly
and that's it
can anyone between u guys help me solve this problem !
?
If yall need payment i will pay
@cunning urchin @frigid cloud @tranquil apex @honest verge ?
nah im chilling and eating burger
Go chill thanks for your time I aprecciate
brudda just make your own water
it's not that hard (supposedly)
at most it should take like 20 minutes
Its my own water bro Thats just the script to make any custom water swimmable
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")
local events = rs:WaitForChild("Events")
local player = game.Players.LocalPlayer
local isBlocking = false
local ClickAttackDebounces = {}
uis.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 and not isBlocking then
local char = player.Character
local hum = char:FindFirstChild("Humanoid")
if char == nil then
return
end
if hum == nil then
return
end
if hum.Health <= 0 then
return
end
if ClickAttackDebounces[player] then
return
end
ClickAttackDebounces[player] = true
local punchAnimCycle = rs.PunchAnimCycle
local punchCombo = player.Values.PunchCombo
local comboIndex = punchCombo.Value
if punchCombo.Value >= #punchAnimCycle:GetChildren() then
punchCombo.Value = 1
else
punchCombo.Value += 1
end
local anim = punchAnimCycle[tostring((punchCombo.Value))]
local track = hum.Animator:LoadAnimation(anim)
task.wait()
track:Play()
print(track.IsPlaying)
if ClickAttackDebounces[player] then
ClickAttackDebounces[player] = nil
end
end
if input.KeyCode == Enum.KeyCode.F then
isBlocking = true
events.Block:FireServer(true)
end
end)
uis.InputEnded:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.F then
isBlocking = false
events.Block:FireServer(false)
end
end)
``` why do i not see my anim playing 😭😭
my system is highly extensible. This added like 3 objects to it.
to be more specific
It refactored 3 typescript objects into luau
it prints track.IsPlaying as true but doesnt rlly show the anim playing, did anyone have the same problem as me at some point
make putting units on players a gamepass
Or like a round modifier
what’s the animation priority
If its an anime waifu game players would buy
Hey guys
OH BET
Guys can anyone help me with my game
Hey
Come dms
What’s ur problem
I can try
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")
local events = rs:WaitForChild("Events")
local player = game.Players.LocalPlayer
local isBlocking = false
local ClickAttackDebounces = {}
uis.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 and not isBlocking then
local char = player.Character
local hum = char:FindFirstChild("Humanoid")
if char == nil then
return
end
if hum == nil then
return
end
if hum.Health <= 0 then
return
end
if ClickAttackDebounces[player] then
return
end
ClickAttackDebounces[player] = true
local punchAnimCycle = rs.PunchAnimCycle
local punchCombo = player.Values.PunchCombo
local comboIndex = punchCombo.Value
if punchCombo.Value >= #punchAnimCycle:GetChildren() then
punchCombo.Value = 1
else
punchCombo.Value += 1
end
local anim = punchAnimCycle[tostring((punchCombo.Value))]
local track = hum.Animator:LoadAnimation(anim)
task.wait()
track:Play()
print(track.IsPlaying)
if ClickAttackDebounces[player] then
ClickAttackDebounces[player] = nil
end
end
if input.KeyCode == Enum.KeyCode.F then
isBlocking = true
events.Block:FireServer(true)
end
end)
uis.InputEnded:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.F then
isBlocking = false
events.Block:FireServer(false)
end
end)
``` why do i not see my anim playing 😭😭
What are the requirements for scripter roles?
mom said anim has to do his homework first before he can play
You are playing the next combo animation before it loads.
@amber hawk
Yea
ok but isnt it supposed to play some anim?
it also prints track.IsPrinting as true so idk why i dont see the anim
can anyone here help build and script slaps for my game you will be paid (Dm for more information)
i think u have to send a thing u made to someone, but idk where
check animation priority
do ur animations have the animationids and proper animation priority
might be a thing where you forgot to set the ids
oh shit you didnt even load it
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local IS = game:GetService("TweenService")
local RS = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local TI = TweenInfo.new(0.3, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut)
local renderConnection = nil
local shiftLockEnabled = false
local activeKeys = {
W = false,
A = false,
S = false,
D = false
}
UIS.MouseIcon = "rbxassetid://129875024"
local FrontWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.FrontWalkAnim)
local LeftWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.LeftWalkAnim)
local BackWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.BackWalkAnim)
local RightWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.RightWalkAnim)
end
if input.KeyCode == Enum.KeyCode.W then
FrontWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.A then
LeftWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.S then
BackWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.D then
RightWalkAnimation:Play()
end
end) why does shi not work?
Load animations using an animator
i did
i mean all animations work
Lemme c
it's deprecated
i mean
where’s the function
it used to work
for uis
is this the full code?
here where do you get input from
i mean the animations works if i dont use this script
but when i do use the script
my playyer looks like a junkie
if u want we can get in a private chat and i'll screenshare
Well you see
based on the code alone I can see that
lmao
in ur case if you press A and then press W it doesn't really stop the other animation
rather it plays both at the same time no?
and he's playing music too
l;emme check
stop all animations when pressing another button easy
i think i need to add task.wait somewhere
sincewhen the animations plays once it wont stop
look at the ss
if you want to replace the default walking animations and add strafing anim why not use the animate script?
im standing still yet the animations is on
you don't have a case for when the input ends + the animations conflict with each other
the code is telling you:
when you press W play the animation
i do
where
i use the animate script it self too
added my custom anim,s
but the script i send
makes it unplayable
uhm yh i think i found the reasn
Guys is 2.7k robux decent for getting a scripter
i need to add active keys
Action, all of them, and yes, proper animIDs asw
you gotta edit the onRunning function in the animate script instead of scripting your own input like that
you just gave me a genius idea, not that exactly but yes
can someone help me with loading different lightnings without delay
what do u mean
i cant really explain but i got the video of the gameplay can you go in dms rq
you also just gave me a genius idea for an open world tower defense game
ok
thats a good movie
accept my fq i cant send you dms
what's the best data replication module
is it from Berlin
idk where it was made
but i believe its called the final hour or sum like that
no its called der untergang
I need help with something... I downloaded a dynamic main menu by develuper and i tweaked some stuff in it including deleting the camreset code since I'm making a chapters option after pressing play instead of straight up resetting the camera and letting you move around.
But after trying to make the option to reset the camera on the start button from one of the chapters im making, i dont know how to make it work. Ive only been coding for a month and im trying to figure out how to fix it so im here asking help and hope maybe i can get answers 🥹
I have the code and maybe more details if needed, dms is open for help 🥹🥹
then learn to code instead off trying to create a game
guys is there a way to reference the player inside the players service using the player's model?
i tried doing it this way but i feel like it's wrong or there could be another way
Yea a vibecoder
considering that the enemy variable is a model
no need to be rude
wouldnt even get that
getplayerfromcharacter
players:GetPlayerFromCharacter
GetPlayerFromCharacter if it's the actual character of that player
yo do you know what's one of the best data replication module, i saw replica service made by the same guy who made profilestore but idk if there are better choices
I just handle my own replication
blink
i think the only famous lib to replicate player data is replica
Lyra
gng thats a data store module
and this is a networking module
my bad I just woke up
stopped reading after data 😭
people on roblox use networking and replication interchangeably on this hellcord.
honestly I wouldn’t use this 😭
this seems kinda overcomplicated tbh
why
i ended up making a custom one myself but i think replica probably works fine
idk if it’s good or not I never used it but if it works for u then cool
everything written by loleris is bloated asf lol
Why is this not working even when i touch the part nothing pops up in the output
local part = script.Parent
local Debris = game:GetService("Debris")
part.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(player)
if player then
part.BrickColor = BrickColor.new("Really red")
print("it shall be destroyd")
Debris(part, 5)
end
end)
local player = game.Players:GetPlayerFromCharacter(player)
u put player in the get players from character instead of character
no problem
Literally doing homework on my phone in preop lol