#code-discussion
1 messages · Page 226 of 1
i had some templates but I've deiced to rework them because they were created when i was newer
but i can always make some systems for you for free
i lowkey need the experience
This good for begginer ??? @graceful vale ???
That looks really hood
has anyone experienced ragdolling while falling down sometimes causes flying?
Guys, if i want to make a combat animation, do i need to do 1 animation per M1, or just make the whole M1 combo in the same animation ?
yo guys what should I add into a framework for a game (basically base networking, data, utils) like stuff every game will need so I can speed up my dev proccess
U only need the luau lsp server plugin for typechecking and maybe selene
Then you can manage rojo with rokit
a toolchain manager
and what is selene
You can search it's github repository
A linter for luau
The thing that gives you typechecking
(it's a vs code plugin btw)
Selene, stylus, luau language server
if inputn == Gates:FindFirstChild(inputn) then.
why does this not work when the inputn value is the exact same as the child of Gates name
local Gates = workspace.GateLocations
would i js get rid of the first bit?
print(typeof(inputn) == typeof(Gates:FindFirstChild(inputn)))
and youll see
what does typeof do
try it
what is inputn
you are comparing a string and an instance i presume
itll give you +1 year of experience
if yu learn what typoeof means
input is a text that is inputted to a gui
and then inputn is just made into lower case
yea youre comparing a string with an instance
oh
you have to read the name of Gates:FindFirstChild(inputn)
so Gates:FindFirstChild(inputn).Name
do this "if nil ~= Gates:FindFirstChild(inputn) then"
solved
what is this form of autism
asparagus
thank you
thanks
that is goifg to break
i lowkey need to remember that i need to get the value and not just the instance
because you cant guarantee it exists
it always exists 😔
technically you just have to do if Gates:FindFirstChild(inputn) then so then you are checking for the existence of the input thing
not if you have streaming enabled on
your way better then me
i have no idea wha that does and how to enable ts still
guys can anyone send playlist or smth for me to learn coding? im intrested in learning it but im still bad at it
when you have many parts in your game you can make it so only the parts within render distance are loaded to improve performance
if a script required a part would the part load in or would i have to make a process that manually did that?
I think so
i just know what streaming does, but i have never used it personally
harsh truth... u cant sell shit to people, doing comms is much more efficient
ok maybe if ppl start answering 😭
like i have dmed BUNCH of people showed my port and allat
and none of them wanna comm me even tho my works r good
have your portfolio on your bio
and post on #⭐creations
5k-50k robux, depending on how good the code is and how easy it would be to integrate with the rest of the codebase
the problem with selling stuff no one comissioned you for is that youre probably gonna have to underprice your work
Could someone explain to me when u would want to use GetChildren and WaitForChild?
Watch brawldev’s beginner tutorials playlist on yt
already did
but i still dont know what to do next
U don’t need more tutorials for any fundamentals then
im stuck on what to do
I mean u can try scripting random things and as u improve, u could try scripting functional games
If u ever get stuck on something due to a lack of knowledge, do some research. U could look at the Roblox forums, watch more advanced tutorials, or simply look something up
can you maybe give me an idea?
All that matters is u develop ur skills and improve overtime
Sure
Just gimme 1 sec gotta hit my set
Aight, u could attempt to design a very intricate obby where nothing goes as expected
Obviously this wouldn’t be for other ppl to play, it would mainly be for u to get better
okay thanks!
Np
is it ok if i read dev forums tho?
No reason for it not to be ok
As long as u truly understand the material and retain the information ur good
i am making a combat game, so obviously, all the vfx are on the server to boost performance. should the animations be run on the client aswell, or can I run it on the server?
do you mean that the vfx is on the client?
oh yh mb. it is on the client
you should play animations on the client aswell
GetChildren returns a table of all objects that are directly parented to the object that you called it on. WaitForChild will yield (pause script) until a child with the given name is found under the object you called it on or until the optional timeout expired
yo guys how can i make it so that my pathfinding script will follow the player even if the player moves because rn my pathfinding script moves the NPC to the last place that the player was marked
pls help me anyone
Ok but what would be a good scenario to use those in
simplest is to update path repeatedly
could u give me an example script or smth so i can see what u did? ive been doing luau for like 7 months but im just getting into pathfinding
GetChildren can be used for many reasons, searching for and filtering instances, modifying all children of an object, destroying certain children of an object, modifying children that meet a certain criteria or are of a certain class, etc. WaitForChild can be used to wait for things to load on client or u can literally wait until a child with a certain name is parented to the object, but i would not recommend doing that
im on mobile
and i dont even do pathfinding
thats just the simplest solution i could think of
search on youtube
ive tried but i dont get how their shit works cus i copied his script exactly and my script worked completely differently and i cant find any devforum shit
Aight thanks
dont just copy it if you are trying to learn
evaluate and look what everything does
and why everything is there
and also look up the docs for pathfinding and humanoids
no i copied it to compare to the one i made but i dont get what makes his work better than mines.
how does his work better
@gentle sparrow i dmed you
Ok
@gentle sparrow can you help with ts?
local teleporterin = script.Parent
local teleporterOut = game.Workspace.TeleporterOut
local function teleport(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
character:MoveTo(teleporterOut.Position + Vector3.new(0, 2, 0))
end
end
teleporterin.Touched:Connect(teleport)
What’s wrong with it?
Yo i wouldnt be giving help if i were u
?
If you don’t know when to use WaitForChild and GetChildren then u should learn sum more before helping with code
Oh u meant helping in general
I agree ofc, but he just needed help with sum basic
No not at all
Just send your own code and copied code to the chatgpt(if you can't find difference) and ask him what are differences. But really read what you did wrong
yah
HELLO
vega is here
whats the convo
wheres the usual skid asking for help with a steal a ____ game
ROBLOX PLS RELEASE QUERYDESCENDANTS
querydescendants is gonna be so peak
and nobody knows abt it
upcoming function
Very niche
seen in docs
Nice
Dog side eye
who wants to playtest a 2d raycasting test i made
hi
Side is crazy
Yuh
what else should i make, like something very simple since im getting a hang of scripting
does anyone wanna get hired to fix a car system ill pay
not the whole thing but one bug
Change the while true to task.wait(0.1) or your Game crashes
Why not use wait(. 1)
Instead of task.wait(. 1)
Just asking
You can use that too personaly I only use task.wait()
Whats the difference tho
yoo isthis a game your working on? this looks super cool lol
can someone explain on how to make a auto morph system that turns something into a morph, its already rigged and stuff just im really lazy because theres going to be lots of morphs
makes no difference
what do u yall use for knockbacks
lv?
or tweening
aw 😭
fr though if u could help it would be appretiated
cause lv is doin the job but not satisfactory enough
according to an unknown source wait() is a really old method and should be replaced with task.wait() as it's more stable
its less accurate
wait() is closer to like 0.95 seconds (for 1s) while task.waif is like 0.97s
probably more even
yo are block hitboxes alot worse than circle
Cube hitboxes are generally more versatile. Spheres are generally for spherical objects like… spheres
SPHERICAL OBJECTS LIKE SPHERES
NO SHIT
ita about double the precision yea
client or server for sprinting system
its movement so client
sprinting on server is so ass
well
any movement on server is
"Spherical objects like spheres"
0.05S LOST EVERY ONE SECOND? HOLY INFLATION!!

Cant have shit in this economy bro
Doesn’t task.wait scales with your fps
So the amount of time stays the same regardless of your fps
yes
uhhh ths is bad u create like over 10000 connections to the touch function
whast the bug
look dm
I have experience, just disable the default one and it’s pretty self explanatory after that
What's the order you guys normally code in? Imagine, a trello board full of features you want to implement. What do you do first?
If you are worried about server security relating to a project that is 100% client side, I can see why you don’t think this is simple
feedback
guys how to make a part's size change when you touch it
for dragging: use ui events to detect when input starts on a slot that contains an item and then make it follow the mouse (just check simple yt tutorial for dragging ui)
for swapping: make a global variable for currently dragged slot. then when dragging input ends while hovering over a slot, the dragged item will go into the slot and if there was anything else in the slot, it will go in the slot of the item you were dragging
for security just make sure that the player actually has the item in their backpack
So for a battlegrounds cube would be better or
click on the part, go to the UI and click on the scale option.
cube would be better
or watch a tutorial on yt
Can u give an example of what circle will be better for
ranges or things like attack or blast radiuses
Hello guys. Is it possible to make R6 cape ANIMATED without adding BONES in BLENDER?
yo guys
yes
is anyone here interested in making a rpg game with me for % pls we need a scripter and its a very good game and concept
we got animator and ui and modeler
i can accept u ig
can u make inventory and stuff like that?
u got experience in makin games
yup
not rlly famous but
dms?
sure
Bro make a post in #scripter-hiring
this is cool as hell
rate my code
wait() is slower than task.wait() thats it
Guys how long will it take to be scripter good enough to make a car customization system with bodykits and you need to pay for the bodykits
1 and a half year maybe
you should disconnect the touched connections to unclog your game's drainage pipe
anyone wanna increase there playtime u can hire me for cheap as it my first work
wait() is deprecated and not as accurate as task.wait(), if you get the average of their accuracies with a constant of a 1 second wait, you'll see that wait() is a few miliseconds off from an actual second. task.wait() is MUCH more accurate to 1 second, almost to the thousandth digit. this is 'cause task.wait() is part of the new task library, it is much more "engraved" into the task scheduler. also, wait() is slower. task.wait() is better in all scenarios
is my assests game tuff?
I like these!
:))
Must Be A Real Drag Waking Up And Being You
Looks goood
top bar + fell HARD
looking for FRESH new scripters
i need scripter to icl just to work on one thing which is probs easy for scripters lol
Hello guys, I got LocalScript for my tool that has idle animation playing, but if tool being destroyed then the animation doesn't stop. .Destroying doesn't work
i need help i was using rojo i have made a module script in shared but when i call it or try to use it its just doesnt show up and vs shows it as unknown the code calling it is local ReplicatedStorage = game:GetService("ReplicatedStorage")
wait(4)
local MyModule = require(ReplicatedStorage:WaitForChild("MyModule"))
MyModule.foo()
sup chat, using motor 6d to attach gun to player. Why does the animation i created missaligns with the result i get?like as u can see the left arm is off
animation weight
set up properly. could it be since its r15 and the scale of the avatars differ it will just missalign bc of proportions?
yeah maybe
in that case for two handed you would have to rely on ik for the second hand
no simpler fix? i wanna have full controll over the animations and ik kinda doesnt give me that
nothing except restricting the proportions
cause like what are you gonna do, the animation is telling the arm to point inward and downward, its gonna keep doing that
i think in real games they have parametrized animations where you can pass in e.g. a "gun length" parameter and the animation adapts to that, if you could do the opposite depending on character scale that might work but also sounds like the same effort as ik
this is a game from 2020 and they also managed to do it, ik wasnt even out back then
and it works with any avatar type / scale
might also be scale
ik is like a thing
IKControl the roblox native implementation came later yes but math-based ik has been used since forever
but i wouldnt exclude that they had a kind of fix you're looking for. if it exists, i just dont know that fix lol
never really messed with humanoid scale like that
its largely not that huge of an issue to where it requires a ton of attention
you think they used ik?
doubt it
i mean in theory i could just adjust the model
yeah but the anims align perfectly on models that dont use special meshes but only different scales
or just make all of your animations around one preferred scale
IK is a mathematical procedural model
The object in roblox just automates it
And implements it
;-; Um What is IK
Inverse kinematics
@deft coral Hi im new
yea i wanna give players freedom of avatar type tho
Jolo
Then just dw about it
Its such a minor thing that hardly anyone is going to notice
you think my gun system would look ass when i use ik
in 2025 you can have a bone/attachment on the gun and animate the gun normally and then disable/set influence of that IKControl joint based on the animation
IKs blend with animations
so holding the handguard with IK but still having a normal reload animation
So yeah that
wait i can have my animations and apply ik over it for like adjusting the position of the left arm?
Yes
They're specifically designed to work with animations and blend with them
Thats why they're an instance
coolio
you can use animation events to control the behavior in more detail
elaborate?
What usually happens is torso aims to the mouse while the arms are animated in a pose
So the gun aims to the point
for like a reload you could use an anim event to set if the ikcontrol is enabled for when the character takes their hand off the handguard
Torso would be IK
in specific parts of animations you define triggers or whatever theyre called and in a script you change the ik behavior when triggers are reached
Arms animation
If u wanna do it raw with IK
Then use constraints too
So u get actual limb movement
No elbows breaking
doesnt r15 come with that by default
No
or was that if you had a bone mesh
U gotta rig it with constraints
Havent tried it with bones just r15
bones inherit from attachments so its pracdtically exactly the same thing i just dont remember if you had to use constraints to get a chain of bones to move
i think you dont cause ikcontrol has that depth property
No constraints dont enable anything tmk
They restrict movement so the IK dont act unrealistically
Idk whatever it has by default
It can vary cuz of body type
wait where can i restrict my game to only default r15 without all these new r15 features
this new avatar setting tab is ass
or do i check that with a script?
anybody know how prison life ip bans? its impossible to make a new acc and play the game if youve been banned from it
Top right
Of the avatar window
Itll do a drop down
Set r15 only
Ban API
Its a roblox service
yeah but it still lets me to join like this
BanAsync
Thats r15
yeah but if i want to limit the avatar and dont spawn with special body parts i have to use a script?
this game turned this avatar into this one
is there a model for it?
but i think ban api is bypassable
since it ip banned only on client ahah
maybe but it would stop majority of exploiters that get banned though not all of them would find out how to bypass
true
Does anyone know of any methods for keeping api keys safe in an experience
secrets
hey guys thought about learning any package that could be helpful while scripting, does anyone know a very useful package to use except for knit ?
especially if it could help on networking, really tired of using remote events manually
can anybody help me fix like two scripts bc i ben tryna fix them for HOURS , they js dont work the silly knobs
whats the problem ?
im tryna make a chat notification for any time anyone Donates but like
its js not working
ive got a donation board that works and everything
its just the chat notis
Like what part isn’t working
No
It bans your account, and through fingerprinting any other account you use
and it can't be bypassed
No
Avatar tab can set limits no code
Theres api docs just feed it to chatgpt and let it make one lol
you need to use a script
someone send me backtick pls
yea that's why I used a VPN and I could instantly play again
someone give me an idea for something that would take over 200 lines and would be complex enough to get the skill role here
all my modules are under 200 lines even with white space
Just saw this in the Roblox Developers hiring channel, I think this is the final straw for that god awful server
don't worry guys, he's gonna pay your gamepass
all is well
physics
script a whole game for a grand total of $0.90 😭
anyone can give me a system to try to make for practice
how to switch off black box
press ins
thx
anyone wanna work with me on my lil music creation tycoon game thing:
can you script decently
yea
sure
bet
I did some testing and found out that trivial operations with Vector3’s are much faster than trivial operations with tables with x, y, and z and if I remember correctly even faster than having x, y, and z as upvalues
whats the value for like letters, like if i wanted a value "Epic" what would i use
what the FUCK are u talkijng about
genuinely
Does anyone have ideas for levels for a +1 Jump Every Second game
Idk what to add I already have 2 levels
it was a string value lol
still dont know what u mean explain buddy
like i was using an intvalue for my rarity check and it kept being 0
uh
my brain aint processing rn mb still dopnt undersatnd
but dont try explaining it again
Ohh
it said 0
instead of EPIC
lemme be a dev fr
I don't got any money
free
Idk
let drrxco4 in
you will never find anyone more willing to help u succeed
guys work with me on my game instead
im making the best apocalyptical survival game
@wise turtle how do i get image perms
I have a question... what could help my portfolio?
having completed games

ok, thx
wat is this
docker env
lemme work
lowkey I want to make a game but got no ideas
and I cant make some high lvk fighting game cz uim not that experienced it would take me years
u can work with me but only if u can code
a year atleast, and I don't want to spednd all that time on my game
yeah I code
dm me
i would show u my game but i dont have image perrms
alr
finally think im getting the hang of scripting ❤️ anything I can improve?
No need to localize duration coulda js put 10
ok
Alr
Oh also Joshua
Joshie
Idt that frame is right
U can’t ppen a frame from a script
where and how will i learn scripting from scratch? ive been wanting to make a car customisation system. if you have some tips or some youtube vid or links please let know!
whats wrong with localizing the duration there?
wdym
oh wait
aint I supposed to use playergui or smth
i cant rmr
i bought two books on it ❤️
Or use remote event
U didn’t have to
If you know a little already use chat gpt to learn u can ask it to tell u scripts to write look at examples or be like “how do I affect all players” smth like that and add it and if u don’t know anything, go on scratch or any coding website thats kinda like u can use blocks u can understand it that way because u needa understand what to write to be able to write
I haven’t learned about remote events yet but I’ll keep it in mind for when I complete the book
The point of scratch is to show u like “oh if I put this block here and this block here then they will affect each other and do this” kinda
this is my datastore script and I added a while true loop to infinitely add strength every sec to my player however even tho the print statement I had for debugging is printed everytime the leaderstat value for strength doesnt change any advice?
Don’t js use chat GPT also remote events u js create one, fire it, and detect when a remote is fired in a different script where u need it
I don’t know data stores kinda confusing to me so I don’t bother
I haven’t touched ChatGPT since I’ve started learning, I also plan to only use it as a tool to help me create new systems and stuff so yeah
No
Use chat gpt to learn
Ask it how to use remote events and give an example so fast and easy
Let’s say u want something to happen to all players in the game
U can ask chat GPT how to do that and get an answer in 5 seconds and boom u know it now
Ok, but for rn I don’t wanna skip anything in the book. Just tryna go with the flow
K
Cause I got 2 of em and the second one is thicc
What typa book u got
I mean that works too tbh I don’t rlly know many stuff
But I js learn for frrr ain’t planning on spending money for now
Free
Alr
Roblox coding is very easy to learn so if I were to spend money it would be later on
Advanced Roblox coding book an unofficial guide, and coding Roblox games made easy
Mhm
Might needa get one
If I do I’ll get it online
For free
U could prolly find a copy somewhere
The second book has a lot more than the first tho. It has combat systems, ui, round systems, vehicles, and multiple game designs
It’s pretty good
Chat got id not bad
Ur not using it to write scripts js asking questions to learn ofc it’s not gon teach u advanced stuff but it still works for most stuff
Oh that’s not bad
Joshie dm me rq
Alr
Ok
Use pcalls
Anyone wanna help make a deepwoken copy
how do I make it so you can't hold space to jump instead u have to actually press it
make a what
yes
Your script make waitforchild on strength which is wrong. It is leader stats and then strength
And your script didn't have calls etc
There are videos like from Brawldev which is definitely better than a book
He explains really good for beginners
bookis in Luau is jus insane
would anyone like to help me make my myth game? (you will not get paid, for now
Funny that you made sure the not getting paid part is unbolded
wdym
Oh aight
Yes
how does a blockcast behave when you stand on two materials, does it not return both?
so both on clients?
Yes
Don’t shape cast return a table of hits?
Spatial queries do ya
Run anims and physics on clients
Youre supposed to be deprecated
Real mfers know what my name actually means
U failed the real mfer test unfort..
🙏
Sorry
any1 down to script a tds like game for me (w pay ofc)
https://medal.tv/games/roblox-studio/clips/lbpBKOIcUWaNmC5b_?invite=cr-MSxWZlIsNjE5NjA4NjU&v=21 something like this?
9 Views - Watch td by frosty cat and millions of other Roblox Studio videos on Medal. #robloxstudio
kindaa
ur comms open?
yea
dm me
has anyone here ever made procedural maps before? Like in Skyven
no
animations dont replicate every frame like tweens do, they are replicated once and then played by the client and with knockbacks, regardless of how much force is applied to character the character replication will still stay the same
wait u have luau role
yuh
thanks
Bro have no ides how he got it i guess🥀😭
should i use promises
whats the minimum payment cost for a scripter to script a whole bgs game?
with some precision
do yk?
do yk?
do you guys think if i was to make a roblox executor would help me on my portfolio
Creating an exploit is a challenging task that typically requires a full team and can take months to complete. If you're working alone, it may be even more difficult. However, successfully developing such an exploit would demonstrate your coding skills and commitment. While I don't necessarily recommend pursuing this path, it could be a valuable addition to your portfolio as it showcases your abilities.
those who saying this msg was by chatgpt it is wrong see img
Not challenging at all
yo how do u script yall? 🥹 ✌️
i never made one so i don't know
😭
Bro literally asked this in a scripting-based channel 😭
ay chill bruh, i could outcode you 😡
local find child = i know what im doing
thoughts?
but i can't send link over here soo
u sure u wanna do this? 😂
i know my shit
ye ik
;-;
i noticed it there
local Workspace = game:GetService("Workspace")
u could do this to prove
;-;
i should lokwye hire u man
;-;
how many years or month have u been coding?
1 year
iv been working on it for like 2years now
im almost done
making an exploit has nothing to do with ur roblox dev expertise
;-; bro...
WHOEVER CAN MAKE AKINATOR 1:1 IN PYTHON — I’M PAYING 15K.
ye
i can
could take about 2 days
its not ez
i want like many ppl in it images of them
ye
on it and i think i can help
if you can help me with a script on the heath bar i give 100 robux not complicated but im new
dm me if intested
100 million dollars
I might be crazy, and I am still very much learning LUAU but I want to sort through a list of modifiers and add those to my cache. These modifiers are all effects of certain items in the game. I currently run if / elseif loops for each of the upgrades to sort through what kind of added bonus they should have. Is there a more efficient way to handle this? My current code (Snippet)
for itemId, _ in pairs(result.Inventory.ownedUpgrades) do
local upgradeStats = gameConfig.Upgrades[itemId] or nil
if upgradeStats and upgradeStats.Effect then
local effect = upgradeStats.Effect
if effect.Type == "BaseClickAdd" then
mods.ClickAdd += effect.Amount
elseif effect.Type == "ClickMult" then
mods.ClickMult += effect.Amount
elseif effect.Type == "BuildingBoost" then
mods.BuildingSpecific[effect.Target] = (mods.BuildingSpecific[effect.Target] or 1) + effect.Amount
else
warn("Add effect type:"..effect.Type)
end
else
warn("Missing upgrade or effect, refering to:"..itemId)
end
end
If I where to add a new boost I'd have to add it to this logic and to the gameConfig, is that the best way to do it or would there be a better way to do it?
yall think im allowed to send 10 billion requests in 5 seconds or nah
Hey I got a question wat is the site where you can see the graph representation of a function?
Any suggestions on making this better
“I ain’t a bot”
Proceeds to paste a message like a bot
that's stupid though
it automatically knows what workspace is
make the person stunned while using the move
Looking for investors for my new game which is releasing soon, DM me if you want to see the game or invest. SERIOUSE ONLY
guys
how much would it approx cost
to hire a scripter to script game like rivals, we have a lead scripter but need someone who can do module and sh uk
and spend like good time on it
I am thinking like 40k to 30k is it possible?
whats the general opinion on usin ai to learn
W
it can be confusing for more advanced stuff tho?
yo why isnt my code working, it dont even play animation
local tool = script.Parent
local character = nil
local part = game.ReplicatedStorage.Models.WaveModel
tool.Equipped:Connect(function()
character = tool.Parent
end)
tool.Activated:Connect(function()
local humanoid = character:FindFirstChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://79679148125725"
local track = humanoid:LoadAnimation(anim)
track:Play()
wait(1.2)
local clone = part:Clone()
clone.Parent = workspace
local HRP = character:FindFirstChild("HumanoidRootPart")
local direction = HRP.CFrame.LookVector
clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
wait(0.2)
local connection
local RunService = game:GetService("RunService")
connection = RunService.Heartbeat:Connect(function(dt)
clone.CFrame = clone.CFrame + direction * 10 * dt
end)
end)
Good for a begginer i am a builder so yeh 😄
Hello everyone! I'm brand new to game making and working on a cool project where the player slides down a fixed ramp/track and has to move left and right to dodge obstacles and jump, I'm currently stuck on the main movement mechanic (the sliding and lane switching). I've tried many tutorials over the last week, but nothing seems to work well for this style of game. If anyone has experience with endless runner/sliding mechanics (like a downhill roller coaster path), could you please lend a hand?Any advice or link to a relevant tutorial would be amazing! Thanks! DM me or reply below! THK 🙂
I just sent u a dm
I think we can work here too

my bad 
nice
The greed
I’m thinking about prolly completing my story mode first
Then I’ll get Npc ai for like 30$
and call it a day
did u rlly follow me into another chat after 30 minutes to just say "the greed" and give me some kind of report like im your boss lol
did u really say "did u rlly follow me into another chat after 30 minutes to just say "the greed" and give me some kind of report like im your boss lol" when he followed you into another chat after 30 minutes lol
I was just giving a greedy little guy some info about my future plans
i did lol
he asked how much for ai that makes npcs walk around and i said like 200 bucks cuz of the setup and hes calling me greedy over and over lol
you sure about that animationID?
check that again
ok blocked
also you didnt close your heartbeat
yeah I alr figured it out i had handles needed to activate
make sure to connection:Disconnect() somewhere
why? it works fine without it
oh
is that why I tried putting a cd
look at this new code rq?
local tool = script.Parent
local character
local part = game.ReplicatedStorage.Models.WaveModel
local Debris = game:GetService("Debris")
local cd = false
tool.Equipped:Connect(function()
character = tool.Parent
end)
tool.Activated:Connect(function()
if cd == false then
cd = true
local humanoid = character:FindFirstChild("Humanoid")
humanoid.WalkSpeed = 0
local forcefield = Instance.new("ForceField")
forcefield.Parent = character
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://79679148125725"
local track = humanoid:LoadAnimation(anim)
track:Play()
wait(1.2)
local clone = part:Clone()
Debris:AddItem(clone, 1)
clone.Parent = workspace
local HRP = character:FindFirstChild("HumanoidRootPart")
local direction = HRP.CFrame.LookVector
clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
wait(0.2)
local connection
local RunService = game:GetService("RunService")
connection = RunService.Heartbeat:Connect(function(dt)
clone.CFrame = clone.CFrame + direction * 21 * dt
wait(0.5)
humanoid.WalkSpeed = 16
forcefield:Destroy()
wait(3)
cd = false
if cd == true then
end
end)
end
end)
dont mind the forcefield stuff aidn the extras
but the cd, it doesnt work, it works at first but then it has no cd after it goes off cd
i use it once, theres a cd i use it again when its off cd and theres no more cd
is it cz i dont close it
you have wait(0.5) under heartbeat
heartbeat happens every frame
which means your wait, walkspeed, ff, and cd are being called every frame
which would do?
hold on
it works perfectly fine to me but maybe theres stuff im mising
local tool = script.Parent
local character
local part = game.ReplicatedStorage.Models.WaveModel
local Debris = game:GetService("Debris")
local RunService = game:GetService("RunService")
local cd = false
tool.Equipped:Connect(function()
character = tool.Parent
end)
tool.Activated:Connect(function()
if cd == true then return end
cd = true
local humanoid = character:FindFirstChild("Humanoid")
humanoid.WalkSpeed = 0
local forcefield = Instance.new("ForceField")
forcefield.Parent = character
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://79679148125725"
local track = humanoid:LoadAnimation(anim)
track:Play()
wait(1.2)
local clone = part:Clone()
clone.Parent = workspace
Debris:AddItem(clone, 1)
local HRP = character:FindFirstChild("HumanoidRootPart")
local direction = HRP.CFrame.LookVector
clone.CFrame = HRP.CFrame * CFrame.new(0, 0, -2)
local connection
connection = RunService.Heartbeat:Connect(function(dt) -- this runs every frame
if clone.Parent then
clone.CFrame = clone.CFrame + direction * 21 * dt
else
connection:Disconnect() -- this closes it for good
end
end)
-- call this after and it only runs the once. done.
wait(0.5)
humanoid.WalkSpeed = 16
forcefield:Destroy()
wait(3)
cd = false
end)
try that
see what i mean
you stick the wait, walkspeed, and ff:destroy after you close the heartbeat
do I need to use the ends, can I justg put connection:Disconnect()
*move
my bad
I js added a connection:Disconnect() seems to work
the one that closes the function or the one that closes the if?
but cd still broken
else
connection:Disconnect() -- this closes it for good
end
end)
you did this, I added connection:Disconnect() only and it worked kept the ends at the bottom like this
end IF, end the function wait walkspeed ff wait(3) cd = false end the outer function so yeah that should be good
wait
it doesnt play the code
I need to add the wait before I close the heartbeat
disconnect it
if i dont, it wont have time to run
clone.CFrame = clone.CFrame + direction * 21 * dt
wait(1)
connection:Disconnect()
humanoid.WalkSpeed = 16
forcefield:Destroy()
wait(3)
cd = false
if cd == true then
end
end)
end
end)
clone.CFrame = clone.CFrame + direction * 21 * dt
wait(1)
connection:Disconnect()
humanoid.WalkSpeed = 16
forcefield:Destroy()
wait(3)
cd = false
if cd == true then
end
end)
end
end)
this is what I did, if I dont use the wait then it automatically disconnects without playing the whole thing
but if I use the wait then my cd is broken
heartbeat should play no matter what if thats what you mean. you dont need to finish the wave before disconnecting. Are you having issues getting rid of the clone?
if so just use debris
when I disconnect right after it like this
clone.CFrame = clone.CFrame + direction * 21 * dt
connection:Disconnect()
it doesn't play the full thing, it doesnt move for 21 studs it stays in 1 spot
if I don't do it or put a wait, it works and does the whikle thing but my cd stops working
yeah
Is the model anchored?
yeah
How can I “extend scripts” (Godot) but in Roblox?
its odd becuase adding the model to debris after 1 second should nil the clone.Parent and it shouldnt dissapear until then
wtf
im gonna play around with this some more
alr appreciate it
@cunning trail tbh even if u cant get it, this is js a test ability im makinmg
its my first ability i ever made
im learning so it doesnt rlly matter that much
idk what extending a script is but you probably mean using stuff from other scripts on roblox which is what modulescripts are for
there is no inheritance built in to luau if you want it you need to implement it yourself
@frigid flax are you looking for animator ? I’m nxy friend btw
I figured it out, I js thought of it, I could do the disconnect outside of the script because im pretty sure the other stuff was INSIDE the heartbeat but i was disconnecting the script mid heartbeat script so the rest didn't play
i js did this
connection = RunService.Heartbeat:Connect(function(dt)
clone.CFrame = clone.CFrame + direction * 21 * dt
end)
task.wait(1)
connection:Disconnect()
humanoid.WalkSpeed = 16
wait(3)
cd = false
if cd == true then
I see
cause luau is not an OOP language
Noticed theres no way to represent booleans as bits in Lua so here’s a bit class! You’re welcome guys
type Bit = {
value: (0 | 1)
}
local bit = {}
bit.__index = bit
function bit.new()
local self = setmetatable({}, bit)
self.value = 0
return self
end
return bit
Can someone here help me out real quick please
anyone know a tool that checks my code line count excluding spaces and comments?
Plugin lines of code
idk why u replied to my message with this 😭
how do i check for one script it just gives me total for all scripts in the game
nvm got it barely hit 200
why tf
nvm fixed by subtracting by ScreenGui.AbsolutePos.Y
subtract by ScreenGui.AbsolutePos.Y
subtract by ScreenGui.AbsolutePos.Y
subtract by ScreenGui.AbsolutePos.Y
Sorta not code but more physics related
If everything is welded together, do parts with collisions still get calculated individually?
yes
Or is the welded object have a combined physical calculation
2nd part if I may:
So in that case, instead of a bunch of parts, would making specific collision hitbox meshes be better?
What if its a really low poly collision mesh for a complex model, say a vehicle
This is my collision model currently
Maybe I could just union everything or is that even worse
can someone tell me if the size of my hitbox is good
All roads lead to Rome
Well said Mr Shellrisen
Dm me if ur a good active scripter, dm me, payment usd
Has interior
do we have bitwise ops in lua
wdym
to be honest though it depends
did he want pathfinding or what
how optimized did he want it to be
Question was already answered. “there is no inheritance built in to luau if you want it you need to implement it yourself”
oh alright
Use metatables
he didnrt actually say
thus why i gave a reasonable quote for an actually good pathfinding npc* system
he complained to me cuz someone else random without any merit said "30 bucks" so he just decided thats what a normal price is lol
I'd charge 125 minimum for a npc system that uses regular humanoids with some simple pathfinding
yeah literally
it's gonna be very laggy tho, for 200-250 I'd make a npc system thats like fully optimized with no humanoids at all, just physics and animation managers + full client side syncing and OOP class declarations for each npc for futureproofing
it really depends but 30 bucks is crazy
OOP is amazing, it's just that luau only has OOP patterns
my code works but if i keep walking the animation don't update until i stop then move again
sure sure xd
oop is the ultimate showcase of how advanced roblox scripter is
oop is the god
the paradigm so advanced its so good
suggest some games or things to make for my portfolio i am bored no comms atm
its really not. Most other languages use a bit of a oop format, some more then others
how is it slow? i would say its faster since its easy to read if you use it right
Does anyone have a good car developing video I can follow?
so wait is it the format or performance you are worried about?
im not worried about it
and its both
format and performance
although its not really a Roblox problem since luau is already slow in its regular format
w data tabel lol
depends. It says default_data does that mean there are similar tables? or is this the only one
I Never Said That i got bug?
DEFAULT_DATA means we have to not change things under it.
It is the default value which should not be changed
i was talking about the format
ok
@warm bloom is your projectile code framerate dependant?
no, i was able to utilize delta time to make sure it didnt end up like that
Something similar to this?
local function UpdateActiveCasts(dt)
timeDelta += os.clock() - lastStepTime
lastStepTime = os.clock()
while timeDelta >= frameRate do
for _, cast in casts do
StepCast(cast, frameRate)
end
timeDelta -= frameRate
end
end
yep
nice have you tried adding projectile tumbling?
thats a good idea ngl
I recommend using Random.new() so you can replicate cast on the server and other clients
wdym by that
Normally when a projectile tumbles, it rotates pretty unpredictably. So it's reasonable to just randomize the drag coefficient as well as adding some randomness to the velocity. However using math.random doesn't really allow for a result that can be replicated perfectly since math.random's seed is the unix time it was called at. That being said, using Random.new() allows you to set the seed and get the same exact results every single time. So that's you can use it to replicate trajectories.
I've used it for projectile trajectory validation and it works pretty well
The only issue is moving parts
my workaround for it was using a secondary recursive cast to detect if the cast did pass through players. From there you can determine how much power to lose and store that any way you want
ah, i like that
thank you
math.random takes a seed
if u have the collision snapshot time u can get the same result on all machines
though i wont discourage the newer Random library at all, it is better, just math.random does have a seed parameter
are you talking about math.randomseed or something else?
oh
math.randomseed sets the seed for math.random
yeah it does, but Random.new sets a seed for a specific random object (no clue what to call it)
it is called a Random object yes
oh ok
and yeah again im not discouraging Random you should def just use it
nah ofc I get what you're saying
i was just clarifyting cuz i say you say math.random uses unix time as the seed and thats not always true yea
u get it
I shouldn't have said you can't set the seed because you can
it just modifies it for your own run context
who pinged me
???
why u ping me ?
because u did
i didnt ?
u be trippin
photoshop
ah i forgot to upd my portfolio it is old
let me show some nwe ones
and thats clearly not me
see
u did that with photoshop ?
figmaa
how much would yall charge for a semi-complex omni directional mobility gear system from attack on titan?
whats odm ?
Oh hell nah
🙏
fym
Use Krita
Goated tool, completely free
So i am making a battlegrounds game and im not sure how to sync all the animations. Because i've tried starting it local and then sending it to server, but this is not syncing at all. I've tried also to do a remote event and having then the animation starting local, but this is also not syncing correctly. What is the best way to sync the animation, so like a attack animation and a hit animation...
Clients should always play their own animations
so how to sync the animation, so that it looks smooth
U do that by playing it from clients
Hey guys I am looking for a partner who can help me finish my game currently need to be monetised and some bugs thats all
whats sum cool to script that would get accepted for scripter application?
Nothing
Requirements are delusional
u got denied?
Yes
what was it that u submitted
ah i see
i submitted a combat they told me to kick rocks
Yeah
I can code better than like, idk, 99% of this shitty server prob, but "uh u don't have enough LoC"
Roblox is trash either way, so whatever
the requirements are ode ngl
Mine got declined for not using comments properly 
😭
i commented on every single line explaining everything, used guard clauses
n all the functions were for the combat like swing, block, critical, etc
which was simple n easy to follow btw
Isn't that excessive?? 🥲
post the code
you dont need comments for every single line neither in real life nor in your application
i was onna mission to get accepted
if it’s complaining about code quality and your usage of the roblox api maybe focus on that over commenting
post it then
hollon
that’s the first thing they mention
ill js post sum current combat code
this was like 6-7 months ago
i never bothered to apply again
i mean you are of the opinion that the old code unfairly got denied so im asking for the code you submitted to the application to see for myself
are vfx on client too heavy
no
U want to render them on server or what?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yes
i lowkey forgot idk if its this
on server vfx r heavy?
Tf does this even mean? U render VFX client-side always
but the framework was hella similar to that
I accidentally said client 😭
hm
It gets replicated and drawn on the client
i mean i can criticize it but i dont really know what the app readers are looking for
if their only problem was "not enough roblox api" then you just picked a "too boring" script
i can nitpick a bunch of architectural and code problems but those werent listed on the decline reasons
Those applications are like HRs reviewing ur CV
Complete idiots reviewing something that they don't understand
oof i found the og code i submitted
So if u make it too complex for them to understand, u pass??? 
bra i was puttin guard clauses everywhere
-- Guard clauses to check player states, swinging debounce, and if the player has the sword equipped and if the player has a root and character exists
if not Character or not Root or not Humanoid or Humanoid.Health <= 0 then return end
if not GlobalData.Equipped then return end
if GlobalData.SwingDebounce then return end
if StateManager:GetState(Character, "Stunned") then return end
if StateManager:GetState(Character,"CombatStun") then return end
if StateManager:GetState(Character,"Blocking") then return end
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
dont think so cause at least back in the day some of the luau app readers were competent so your script would just be sitting there until one of those competent ones read it
its mostly the exact same js minor changes n guard clauses ode
cus the 2nd time i got denied for a combat they complained abt <200 lines and that i wasnt using guard clauses
what was rlly frying me is that idek how some scripters got the role ive skimmed thru scripter hireable n some ppls stuff literally looks chips 😭
you have a thing called statemanager but it doesnt actually manage state its just a value registry
your sword script does the job of "managing" the state
Because
when they ask for guard clauses that doesnt mean needing to put 20 returns you can still just use "and"
People that review don't know shit they are doing
ya u right
the statemanager is js to check the state, and change it
What's this for?
you have a lot of repeated code for example all methods need the character, root and humanoid
i mean its lit all functions for the combat
you have a lot of numbers that arguably can be refactored out into a data source or just global variable
all of the functions do this:
local Character = Player.Character
local Root,Humanoid = Character:FindFirstChild("HumanoidRootPart"),Character:FindFirstChild("Humanoid")
-- Block running if the player is in any other sort of combat state
if not Character or
```this is just going to error if character is nil on the 2nd line, your "if not character" check is entirely redundant

in one of your functions you check if "'s Sword" exists but in another you rely on its existence:
Character:FindFirstChild(Character.Name.."'s Sword"):Destroy()
```this may as well never error but you have implicit control flow here that is hard to debug or work on later
Create a combat class that gets the char, hrp and him once constructed and then use it on all ur methods 
Classes are handy :)
you have task.delays that reference the sword and its children after defensive checks, but those defensive checks could fail 0.4 seconds later if you aren't storing the actual instances into the closure
task.delay(.4, function()
Sword.Handle.Trail.Enabled = false
end)```
these functions arent fired if the character doesnt exist
i alr made a check for that
in the server event
then none of them should be checking for "if not Character" if you are so sure
wasted lines wasted lookup
if this is required from a server script that already checks for the character all of these methods could just take the character (or Player with a guaranteed .Character field) as a parameter to make it less stateful
same with root and humanoid to save yourself more lines
depending on the lifetime the whole module could take those 3 parameters on creation and then reuse them across function calls
hard-coded WalkSpeed overrides make it very hard later on to add more things that modify the walkspeed
I'm not really used to type checking (not in roblox at least)
type Matrix = {
matrix : {{number}},
rowSize : number,
colSize : number
}
is this the right way to check for arrays of number arrays for the variable matrix
if it doesnt verify state transitions on its own then its pointless to refactor it out
yes
i cant tell you for certain cause its an expired hastebin link
ah
based on the date and amount of comments i believe it was this, do consider this was more than 3 years ago
bet ima read it later i got off pc so i can’t even see
'-[
should i script this type of system for my portfolio??
i'd also make it open source
That is a UI
I am saying show I make a bank system
A mobile type bank system mainly
If you think that's the level you're at sure
Yes Obv it's my level
I'm asking because a 'bank system' would just mean making transactions and logging them
Scripting the system itself won't be hard.
Guys, I have no ideas for what to make in scripting. How can I get ideas so they never run out?
