#code-discussion
1 messages · Page 43 of 1
Learn a little then try applying it to something
on what to do
thats good
I've made a door, a drawer and a window so far
i was watching that a couple days ago 😭
Probably going to try making a house with all the stuff
You can't watch it all in one sitting
You have to practice and use what you learn on other things
I went about it a different route
Like if I watch a tutorial I always try to put my own spin on it so I'm doing more than following steps
Which is why I HATE 🤢 prox prompt
Is he good I keep seeing him
started my own project, and just kept going
Yeah hes really good
Well well well
by the time I finished both his beginners and advanced, I knew how to code anything on my mind
you just have to practice
never heard of him personally but everyone learns differently
Yea
I'm a visual learner so I HAVE to see it work to really understand it
And I get overwhelmed when there's not a set structure
check him out, his beginners and advanced covers basically everything you need besides OOP
So learning on my own would end in disaster 😭
Yeah brawldev is that set structure you want, I also cant really learn without a set structure
speaking of oop, im literally so done with this game (its in oop) every single time 1 little thing isnt absolutely perfect whole game breaks
but i will say, it makes the outcome way better since its pretty good with longevity
wdym though, shouldnt you add like checks to make sure it doesnt crash
yeah of course, scalabilty and maintanability
that only works for specific things, like a statemanager for example that just doesnt work for specific things, i added a new state (literally nothing connected to the state yet) and when i attempted to test something else, every other state broke
but when i made the same system outside of oop i didnt have any problems
dang, I dont know never worked with state managers, or as in like a whole module just for state managing. So never encounted that problem
its horrible
and my other scripter had the bright idea to use state managers for the player so im not gonna like tear down the whole thing and restart
youd crash out
u watch these tutorials only to be more confused to end up less confused the more u try
how it worked out for me
unlucky dawg, but really if your system is that fragile, I think you should probably consider refactoring the code. Or just tear down that state manager module tbh
yeah a state manager module is like a centralized module for your states
oh so like blocking for instance
What are some examples of states
ok i understand
Yeah like blocking
I’m creating an fps system rn so something like reloading is a state or sprinting
makes sense yea
yea u make them depending on what you want ur players being able to do
Yeah and you can decide what are you allowed to do and not in that specific state
Does it only apply when in the state or can you stretch it?
lf scripter im broke rn so no pay ig
Ohh

I started a week ago 🥺 🥺
Damn 💀 a week ago?? Yeah you’d prob not want to worry about state managers rn
worry about
Wow
Worry about threads, they're fun once you get it
Def tables,
i forogt yea
oop is more
advanced
functional will do as fine
oop could require metatables if u wanna have a more readable approach
Well yeah but like the first step was lua syntax in general such as variables loops function and tables and all that
Then I went to utilizing all the Roblox api
Then I went to OOP, that was kinda how I progressed
Same tbh, I made 2 projects but never finished them because it got too messy and I was sending remote events and bindable events everywhere before I discovered oop
Yo where did you learn how to do ui like that
im noob how to u open the right side script thing
view -> explorer
ty
does someone know a good scripting guide?
Scripting Roadmap The scripting roadmap has three categories, the basics must everyone know to continue with other more difficult categories. Intermediate is someone who maybe does already commissions and is already not really anymore a new programmer. It is also useful to check what you maybe never knew and now found out through the lists Bas...
thank you so much
np
most normal bug
WHEN IS RELEASE
btw you got any tips for learning
idk man there are alot of thing i want to improve 
want help
"im just gonna ruin it"
hey i can add a part to the baseplate
What baseplate is bro talking about
lol, your game hates going up on the y axis
not if i do that first
its not that. it does that fine its just a chunk loading bug
ah I see
great work tho looks really good and unique
not rlly. But if ur watching videos or reading sutff, I suggest to take your own personal notes as you read
actually ima learn designing now i was tryna find something to learn
?
lol the reason it broke is i forgot to capitalize a single letter
its fixed now
lool
Is there any websites where I can learn Lua interactively? I've been looking at the basics on YouTube and honestly it's the most mundane and boring thing which is a stark contrast to when I learned web development via interactive lessons
This is most definitely going to be on those underrated Roblox game videos
I had an epiphany. It's a game that will become the next big money maker for roblox. The scripting is hard and challenging though, it has to do with Marketplace, Player created items, and systems like pls donate. If anyone wants to learn more or is interested then dm me.
Am I allowed to DM if I'm just curious?
Eh, for now no in order to not give anyone else any ideas for the game and beat me to the development of it lmao
When you're more into development then message me 😭
I'm kind of just learning lua so I can work on a small passion project, I don't have the hardware for game development (my laptop can barely run studio and dies without bloxstrap) so I'm kinda just trying to cram a bit of knowledge so i can get straight to business
"if anyone wants to learn more dm me"
"can i dm you to learn more"
"no"
lol, I see the irony
Nah it's just that this idea could be taken easily. If you aren't like very much free for a project or interested in working with it then I'm not gonna tell you too many details
If you have any questions here though if they aren't super revealing I would love to answer them
No, please donate meets the roblox marketplace meets starving artists
Plus an advertisement game
isnt this already a thing tho
No it's not! Which is surprising
Wait isn't this already in catalog avatar creator
?
That's painting
Can't you sell outfits?
isnt yours the same?
what would they be selling?
cuz you can't mesh in roblox
Nah, You can create your own clothes to sell in the game through painting, or you can take the items uploaded to the roblox marketplace and showcase them in shops for players to buy and look at
ohhh
That's already a thing, I have a friend who uses this to promote their stuff 😭
I can ask them more about it
Can you send the link to the game?
I don't remember it off the top of my head, but it's basically just for clothing groups right?
It doesn't have to be
It can be for UGC
i kinda just taught myself, i use photoshop
She described it as "Kind of like rate my avatar but not toxic and for clothing and ugc"
Yeah this has a much different set up than that
I see
guys what does :GetService mean
i keep seeing it in other codes
wait nvm
i got it
Ray cast, hitbox, or animation events?
i personally use a mix of animation events and hitboxes
makes the animation fit the feedback
local character = player.Character or player:WaitForChild("Character")
if not character then return end
does character include models with humanoid
so like npcs
Is the purchase Id of dev products different for the same dev product, assuming you buy the same one twice?
wym
does the character have to include humanoid and humanoid root part?
like every character should have those two inside them
yes all characters have that
does anyone have go to useful libraries for simplifing scripts
anyone tryna be a mod in my server, we looking for devs that can help us improve our roblox game as well! DeLuX CHILL is a laid-back server for meeting new people and making friends. The game we’ve got in the works is similar to Mic Up but with a fresh map and some new mechanics. If you’re up for it
Ill do it for $24.75 an hour
old system vs new system
need to make a system where the user gets to place their building anywhere inside of a certain area. It cant be placed in the same area of another building and it should be able to rotate. Any tips on the easiest way to implement this
Adding more libraries isn’t going to simplify your scripts
someone please help me with attaching this weapon to my rig
staff device
its a method of game
Anyone know how to make a flight system
like what?
hd admin fly
Hate to break it to you…
BodyVelocity, trigonometry, and pray
Hypothetically....
For a character customizer (roleplay game) I am looking for accessory customization (scaling. rotating, moving) WITH visual axes to move it, how complex would this be for a scripter and how much would you reckon is a reasonable price to get this paid for?
So I still can't figure out how to make my walkspeed UI display only two digits at a time rather than 16.32932 lol can't get anything to work.
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local label = script.Parent
humanoid.Running:Connect(function(speed)
label.Text = ""..speed
end)
Math.floor(speed/(10**(Math.floor(Math.log(speed))-1))
Ya I tried that but didn't work think script is fucked
Did the label change?
Is the text showing, just the number is wrong?
With my suggestion?
When I add yours it'll stop reading completely, it's probably met not properly implementing it
Lemme tweak it rq with more parentheses
ty bb
Did it not not work?
Still doesn’t show anything?
Doesn't move
Dude. It's a simple function: math.floor
Either I’m using the wrong syntax or my math skills are trash
Apply it to the number you assign to your TextLabel
Oh wait I’m actually slow
I jus started learning recently, I don't know much lol hence why I'm here
Overengineering moment
Yeah so basically, I don't understand this
When I say I'm new I mean I'm new 😭
This is why i shouldn’t be yapping at 2am
math.floor(number)
I am throwing the towel in for the night
This really shouldn't be that hard for you
It is 💀
It's the difference between
walkSpeedDisplay.Text = walkSpeed
And
walkSpeedDisplay.Text = math.floor(walkSpeed)
Take a moment to reflect on your critical thinking skills
^
As simple as a baking instruction
I just started this like two days ago, I don't know shit lol
I only ever built and did some modeling
Fair enough
Hm?
Guys, I need some help, which I can’t figure out. I have block on ”F”, but when I type F on the chat, it uses the block.
Check the second argument on userinput service
gameprocessedevent
drop one line on top of the script
have the second arg then
type if arg then return end
local function onInputBegan(input: InputObject, gameProcessedEvent: boolean)
if gameProcessedEvent then
return
end
if input.KeyCode ~= Enum.KeyCode.F then
return
end
-- Block
end
https://create.roblox.com/docs/reference/engine/classes/UserInputService#InputBegan
@tired hamlet yoooooooooooooooooooo
Am I tripping or is this code like harderroring cause I have stared at this checking forums for like 15 minutes and still dont understand why its broken
oh wait hold up
Yup nvm
its still broken
fixed i had to anchor the part cus it needed to be anchored for what reason
whatever
makes no sense since it had cantouch cancollide off but whatever
what should i show u]
its 10k rbx
for this simple thing
he said its very simple
its not simple because the codebase is from 2017
if you dont script, youre not fixing it
do u script
i do
do yk how i can fix this
yo
i js told you
its an ass codebase
youre not gonna be able to fix it without digging through code written in 2017
and you dont script
so youre not gonna be able to fix it
aww dang i needa find a scripter
Ur gonna get urself banned 😿
how
pokemon brick bronze reupload
its not my game
then youre fine
Eh not always
They go for people with tc access from time 2 time
Use an alt if possible
is aman doing for it for another and prozying? Vadixal y
Stop it
hello geeks
what does RemoteEvents do? I couldnt understand what it was saying in the roblox script docs
Server-Client communication
No
anyone know how to zoom in/out the microprofiler on a touchpad (mac)
Hacks
looking for a script for a pvp gun game thats can have a lot off succes, we will do 50% 50% on all sell
No
userinputservice
anyone knows how to fix it? i'm still able to use shiftlock even this option is disabled
Has anyone used viewports without a camera instance? I was testing some things and found out that models still render inside a camera-less viewport as long as they are positioned relative to a 0,0,0 world position and I based part of my item frames ui on it
I have yet to find any mention of this behavior on the devforum or anywhere else
Reason I'm asking is that I'm running into a lot of unexpected behavior, for example: manually copying a model from one viewport into another viewport results into the second viewport displaying the model differently (it basically gets flipped upside down)
I know this is a hacky way to do this but was wondering if anyone tried it before and if I'm just doing something wrong or if it's just not meant to work like this at all
Do not do this with bindaction
Whats the Best blind buy best ever laptop for roblox developers ?
damn are any good scripters here 
anyone know like a youtube tutorial to make a survival game
anyone know the easiest way to round something to two decimal places every time
who ping me
ok my link got deleted but just google it, you should find an article
me, sorry, bot deleted a link
alr
become a solo dev, learn how to do everything yourself, and keep 100% of profits 😎
i dont have that much time sadly, im using game to make enough funds to invest into a game which has potential
ive rewrote and added handshake lmk! if u wana test
edit: wasnt using those btw just env take overs targeted to awp, now its pretty much any exector
Is this good so far for a m1 script
why not use proper frame work resource such as netray or some other like "packet" for those
reason i mention those is that because they have buffers and faster reponse time
its alright i personally wont do it, if its ur first time great job!
It is thank you!
learn this frame work if you need anything to understand lmk!
Hmh okay!
also dont use netray its DEPRECATED now i forgot i mean its good but you prolly wont need it, its only event based
Oh,what do I replace with it?
hmh depends im not sure if you can make combat via packet let me check
Alrighty
i mean u could use packet it has both invoke,fire event and clients for both method (fire client, invokeclient)
Discord: https://discord.gg/bEn49K5JUt
Patreon: https://www.patreon.com/Suphi
Donate: https://www.roblox.com/games/7532473490
Forum: https://devforum.roblox.com/t/packet-networking-library/3573907
Download: https://create.roblox.com/store/asset/104116977416770
0:00:00 - Intro
0:00:17 - Start
0:09:17 - Tables
0:13:14 - RemoteFunction
0:18:50 - P...
you'll understand
Ah alr
Maybe,I'm still learning from brawldev beginner guide
it isnt that hard mainly since its just making roblox default namemethods ( fire,invoke etc) better
Yeah,I'm really falling in love with scripting as a 3 month old animator

can any1 help me with a datastore script i hve to msg it to you bc its too long
Its ok not how i would do it thi
Thanks
barely anything works lol
is this ragebait
holy crap 😭
local pointPart = script.Parent
-- Color
local pointPart = script.Parent
local blue = Color3.fromRGB(0,0,255)
local green = Color3.fromRGB(0,255,0)
local red = Color3.fromRGB(255,0,0)
-- Points value
local smallPoints = 10
local largePoints = 50
local losePoints = 100
-- Referencing our service that will be needed
local Players = game:GetService("Players")
local function givePoints(Player)
local currentColor = pointPart.Color
local playerStats = Player:WaitForChild("leaderstats")
local playerPoints = playerStats:WaitForChild("Points")
if currentColor == blue then
playerPoints.Value += smallPoints
elseif currentColor == green then
playerPoints.Value += largePoints
else
playerPoints.Value += losePoints
end
pointPart:Destroy()
local particle = Instance.new("ParticleEmitter")
particle.Color = ColorSequence.new(currentColor)
local playerCharacter = Player.Character
particle.Parent = playerCharacter:WaitForChild("Head")
task.wait(5)
particle:Destroy()
end
local function partTouched(otherPart)
local player = Players:GetPlayerFromCharacter(otherPart.Parent)
if player then
givePoints(player)
end
end
pointPart.Touched:Connect(partTouched)
-- Creating a loop for the changing colors
while true do
pointPart.Color = blue
task.wait(1)
pointPart.Color = green
task.wait(1)
pointPart.Color = red
task.wait(1)
end
To make a game that has potential you need experience, I still encourage trying to make some things on your own just to understand the process
yo
lmao
Quick question fellas! I've made my own data replication service and this is my setup (PlayerController requires all these child modules once data has been loaded). When handling state updates, should I process everything inside PlayerController or inside each individual child module?
For example, as of right now each module is listening to event updates
how to fix that error? im working on a local plugin and the toolbar/button doesnt show up
alright i fixed it
do anybody how to make players walk like thier drunk
yeah motor 6d
I can’t pay out of pocket, it would be through game revenue. How do I tell them that
you can only offer FGR if you have a game that's currently profiting or you can offer FGR with robux
Alr
How do I optimize .Touched events
Does someone know why my group is verified but i aint ?
Maybe its to do with how many members it has and how many followers you have
ask roblox bro its so chopped
did they deprecate AnimationPriority?
Doesn't look like it
how do i add when you click it go back to hold animation?
local tool = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local holdAnimationId = "rbxassetid://79494928146312"
local clickAnimationId = "rbxassetid://108638884066291"
local holdAnimTrack
local clickAnimTrack
local function loadAnimation(animationId)
local animation = Instance.new("Animation")
animation.AnimationId = animationId
return animator:LoadAnimation(animation)
end
local function disableDefaultToolAnimation()
local animate = character:FindFirstChild("Animate")
if animate and animate:FindFirstChild("toolnone") then
animate.toolnone:Destroy()
end
end
tool.Equipped:Connect(function()
disableDefaultToolAnimation()
if not holdAnimTrack then
holdAnimTrack = loadAnimation(holdAnimationId)
holdAnimTrack.Priority = Enum.AnimationPriority.Action
end
holdAnimTrack:Play()
end)
tool.Activated:Connect(function()
if not clickAnimTrack then
clickAnimTrack = loadAnimation(clickAnimationId)
clickAnimTrack.Priority = Enum.AnimationPriority.Action
end
if holdAnimTrack.IsPlaying then
holdAnimTrack:Stop()
end
clickAnimTrack:Play()
clickAnimTrack.Stopped:Once(function()
if tool.Parent == character then
holdAnimTrack:Play()
end
end)
end)
tool.Unequipped:Connect(function()
if holdAnimTrack and holdAnimTrack.IsPlaying then
holdAnimTrack:Stop()
end
if clickAnimTrack and clickAnimTrack.IsPlaying then
clickAnimTrack:Stop()
end
end)
tonumber("Five")
😈
Please stop
No begging use our channels properly
Just find someone to do it for free at that point, ask a friend
print(1 + "1")
hii
do body velocities not work on big objects?
you can find jobs in the marketplace #marketplace-info
they all need years of experience and portfolios and stuff
i made some money doing a commission for a guy who asked for a small thing in normal chat
Suphi goated
can someone send their portfolio so I can get an example
Make a for hire post
u need to apply on the website and show past games
Oh what’s I didn’t know that
But
Do that
i tried but it was confusing
Fair
Yup
if I do free commissions to build my portfolio, is that smart or nah
does anyone know how Randomizer gets all of their guns
u tryna help me bug fix for ur portfolio 😏
can someone explain collection service
very very very great service to have
basically collection service works by tagging whatever instance you'd like with a specific tag, almost like an attribute
however it makes it much easier to access with certain functions like "GetTagged"
say for example in my game we use it to control the kill bricks, so that all we have to do is add a tag to the kill brick (using a tag editor plugin) and that will automatically make it a kill brick
like here you can see it running each tag for the kill brick, and setting up the touched event for it etc etc
how can i create a table with it i know how to add tags and loop over a table
how do i get the table
wdym
i believe ur looking for the gettagged function which i've given you the exact code up there
what does :tagged do
that loops through every single tagged item
ofc man 🙂
i will use it
yep also
can you tell me if
here this is good
if i use a touched event and theres constantly other parts touching parts
is that gonna effect performance
im checking for humanoids
but
still it triggers when something touches it
so
add a touched cooldown to it
what do you say to that?
will it still trigger every second for example
No you can alter the code so that it cooldowns
or roblox automatically undoes
i dont know
so say for us when a player touches a portal it checks if they are on cooldown, if they are then they have to wait 5 seconds before itll fire again
wait
plenty of resources online, but your looking for anything to do with "cooldowns" or "debounces"
however I don't use the os feature, just task.wait is sufficient
can anyone spare 1k rbx 💔
HELLO CHAT how do i check a player's team in a server script?
ask youtube
i did smartass
why do you specify server script (im not judging just asking)
is it not possible in a normal sense
ok here is context: I have 2 teams and 2 corresponding tags on parts, and i want to check both tags (done) and teams (can't figure out) and part is only collide if it's the right team for the tag
first get players service game:GetService("Players")
then check when someone joins
define players service before that tho
PLAYERSERVICE = game:GetService("Players")
local Collect = game:GetService("CollectionService")
local Players = game:GetService("Players")
for _, part in Collect:GetTagged("Red") do
part.Touched:Connect(function(hit)
print("hi")
wait(10)
end)
end
what i have so far
where
each added player is gonna be added in the argument you put
hmm
if you put player as the argument in the function its gonna be player each added
well if you dont even understand i understand because im not good at explaining
i might even not know what im doing
ask ai maybe?
i get the general idea
game.Players.PlayerAdded:Connect(function(plyr)
end) this is something from devforum
when a player is added its plyr
right?
@remote mirage what are you trying to do
team only collisions
ok here is context: I have 2 teams and 2 corresponding tags on parts, and i want to check both tags (done) and teams (can't figure out) and part is only collide if it's the right team for the tag
yeah but in a server script
why would u do that in a serverside script?
because im using tags
wait im doing a script on that
CHAT I DID IT
serverside
script.Parent.Touched:Connect(function(hit)
local Tag = Instance.new("Tag")
Tag.Name = "Team"
if game.Players:GetPlayerFromCharacter(hit.Parent) then
Tag.Value = 1 --Just change it if you want a team name
Tag.Parent = hit.Parent
end
end)
localscript
local Wall = game.Workspace:WaitForChild("Wall")
local LocalPlayer = game:GetService("Players").LocalPlayer
Wall.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
if game.Workspace[tostring(LocalPlayer.Name)].Team.Value == 1 then
Wall.CanCollide = false
end
end
end)
mf
idk if that works tho i wrote it inside here
i did this if anyone is curious
local function onTouch(part, hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
local team = player.Team
if player and team.TeamColor == BrickColor.new("Persimmon") then
print("Player on team " .. team.Name .. " touched the part")
else
print("Blue touched")
end
end
wait(10)
end
thanks for the effort man
local TeamService = game:GetService("Teams") local Tagser = game:GetService("CollectionService")
local Team1 = TeamService.TeamCollisionTeam
local Team2 = TeamService.TeamUncollide
function tagscript(Added)
workspace.PartYOUCHOOSE.Touched:Connect(function(touchedthingthattoucheditbasically)
if touchedthingthattoucheditbasically == Added then
workspace.PartYOUCHOOSE.CanCollide = false
end
end)
end
Team1.ChildAdded:Connect(tagscript(Added))
@remote mirage
its not correct there might be errors
its not part i choose its a collection of parts with tags'
thanks for trying though
i thought u wanted to work with tags 
general idea is when a player from that team touches that part it becomes uncollidable
no worries
i did work with tags
youre gonna have to do that yourself
you can change it
yuh ik
use collection servervice
the thing is if you do it through a serverscript its not gonna work that good as its gonna be for every player
its suppose to be for every player
do yaall know how much robux i need for a game to blow?
depends on game genre
10k minimum gng
definitely ai
?
you used ai for that i can just tell 🙏
not rlly but ok
whats the point of that wait?
he wouldnt know because he asked ai for that 😭💔
cause it was printing too much
i tried to reduce it with wait but realized i don't care if it's printing
the wait would do absolutely nothing
yeah thats what i said buddy
no you didnt
you a hoe fr 
you said you added the wait because it was printing too much
except thats just what the ai told you
and thats what you went with
god you a fan
say on god thats not ai
use a dictionary and use task.delay instead as the normal wait will pause the function in general
i can just tell
yeah im not saying its bad or anything but atleast be truthful 🙏
same way i can tell you lack a father
fr
and sometimes its mid
or doesnt work
it's a basic ahh script and you trying to tell me its ai 😭
but you need actual knowledge to use ai
bro.
i can TELL
ai is for L mans
yeah bro you can TELL
yeah its as smart as you are in a sense but its not better than me
everytime ive ever asked ai to code something because i was lazy, it coded exactly like that
it makes so many unnecessary variable and things
its just so obvious
why try hide it 🥀
its obviously when it does if thing then
its better to do if not then return end
yeah its just very obvious yet he still denies it
Hey could I get y'alls feedback on implementation? I'm hitting a wall with a physics sim problem and would aprpeciate a different perspective
lets see
dodgeModule.dodgeHandler = function(dodgeType: string, player: Player, humanoid: Humanoid, Character: Model)
local dodgeSettings = dodgeModule.dodgeSettings[dodgeType]
local dodgeParallelSettings = dodgeModule.dodgeSettings[dodgeType .. "Parallel"]
local globalSettings = dodgeModule.dodgeSettings.global
dodgeUpdate:InvokeServer(true)
--Prep Humanoid
humanoid.AutoRotate = false
--Init main vector
local LV = Instance.new("LinearVelocity", Character)
local Att0 = Instance.new("Attachment", Character.HumanoidRootPart)
LV.Attachment0 = Att0
LV.RelativeTo = dodgeSettings.RelativeTo
LV.MaxForce = dodgeSettings.MaxForce
LV.VectorVelocity = dodgeSettings.VectorVelocity
--Init parallel forces to restirct movement in directions parallel to main vector.
local LV_1, LV_2 = Instance.new("LinearVelocity", Character), Instance.new("LinearVelocity", Character)
LV_1.Attachment0, LV_2.Attachment0 = Att0, Att0
LV_1.RelativeTo, LV_2.RelativeTo = dodgeParallelSettings.RelativeTo, dodgeParallelSettings.RelativeTo
LV_1.MaxForce, LV_2.MaxForce = dodgeSettings.MaxForce * dodgeParallelSettings.MaxForce, dodgeSettings.MaxForce * dodgeParallelSettings.MaxForce
LV_1.VectorVelocity, LV_2.VectorVelocity = dodgeParallelSettings.LV1_VectorVelocity, dodgeParallelSettings.LV2_VectorVelocity
--Cleanup
Debris:AddItem(LV, globalSettings.force_ttl)
LV.Destroying:Connect(function()
--Clear humanoid state changes
humanoid.AutoRotate = true
--Destroy parallel instance
LV_1:Destroy()
LV_2:Destroy()
task.wait(globalSettings.cooldown)
dodgeUpdate:InvokeServer(false)
end)
end
Core code itself is functional
issue is the results. Theres two difference force directions based on Hum state (running or midair)
the midAir forces dont apply consistently, depending on how long youve been in free-fall
how do i make my hitbox deal damage? im making a simple combat system
humanoid.Health - whatever
im trying to standardize the results of the LinearForces applying in midair but I havent had any success
whats the actual code like to register people touching the hitbox
if its an actual part then touched
btw i recommend you say this in #code-help @dim rock alot of them are alot smarter then ppl here id say
all good
part.touched:connect(function(hit)
check if player then remove player health and add debounce
end)
hey uh
Im going through this old alvinblox video because i wanna learn how to make a projectile, but im not sure how to change its property from just killing you outright to applying velocity to the person hit
how do i check if its a player and remove health
hella new to this kinda thing heres what the code looks like currently
victor
yeah try LookVector
bodyvelocity is also depricated
in replacement for where ive put LinearVelocity?
yea its an old tutorial
ive replaced with linear
for the velocity its just a spelling mistake
wait wha
na like
the code doesnt work currently i just am tryna make it work
ln 11 lookVector -> LookVector
doesnt matter im pretty sure
oh shit ur right
i think its case sensitive like a lot of things in roblox
oh i see
uhh last error im getting is
this
kinda basic but small steps, I also figured out a way to eliminate the awkward delay of player touching the part and the part having to change collision properties (very obvious and can cause gameplay issues)
https://gyazo.com/9f42221ad730c1336b5f84d98eedda0d
player.Character is the issue
and madbukscripts can keep on hating
yeah ofcourse lua is case sensitive with some things but with that im pretty sure its not
do game.Players.LocalPlayer

i got this error instead
is it cus im only running it in playtest rather than team test
no on the player variable at the top
that's ai
game.Players.localPlayer
local char = player.Character
o mb
what is
everytime ive ever asked ai to code something because i was lazy, it coded exactly like that
it makes so many unnecessary variable and things
its just so obvious
why try hide it 🥀
thats obviously not ai
oh im using an alvinblox video
😭🙏
bro.
i can TELL
no he salty
its his fireball magic from 2019
im not even sure why people hate on AI
people who hate on ai are usually bad scripters
lol im joking bro
mb
because he used ai earlier and thats what i said
im just pasting what madbukscripts was saying to me
and i didnt use ai
and now his pride is hurt
dumbass
alr trying now

youre still so hurt about it and youre still so defensive
its pretty obvious
do you guys use trove, janitor, or maid
yup
tysm bro it works
now i need to figure out how to make it apply velocity to people on-hit
i use them but integrated in a framework
all 3? seems overkill
oh nah there is way more 🙏
what r these
cleanup modules
awesome
ill show you all them that are in it
oh you use rbxutil?
i wanna figure out how to make line 21 apply velocity on-hit
because clearly it didnt work unless it did and i just havent checked properly
nah
cus i kinda just slapped it in there and let jesus take the wheel but it didnt work
framework called knit
so pretty much yeah
as knit was made by the guy who made rbxutil
fr?
modules that do something
yeh
i made a punch and now i have made a projectile
rbxutil doesnt have janitor
im usually an animator but im tryna learn code as fast as i can for a game my friends helping me make
deadass?
i prefer janitor over trove
ah i thought it did
deadass
not a big promise person unless its like js
thanks dawg that means alot
yeah which is why i dont use it
oh
i can show u my punch code if u want
its something i made and im still gonna work on it soon
i use packets for communcation instead
but you can disable it
i saw it
oh thats the projectile
the punch is like
my first shit LOL
all good bro
keep practicing it took me a few months to get here
the plan is
one thing a day
whatever the thing is
im not sure
learn actual things instead of making something
i tend to just find out on the day
then apply it
i tend to learn best by making shit and fuckin up
then not doing that next time
in 7 days you will use rojo
no but in just 2 days thats genuinely really impressive
i shall see...
dont complicate things 😭
it was mostly tutorial help with this one i just am tryna edit it to make it my own
just learn how to code dont worry about all the extras for a while
my coder friend told me task.wait was better than wait
yeah thats the best way
yea
so i exclusively use task.wait
and also yes
its quicker
W
pretty sure wait() is like 0.087 and task.wait() is like 0.02 ms
probably less
i kinda forgot
its just better tho
wait is depedant on frame rate i think which is why its just less accurate
i usually just use task.delay instead
is that better than task.wait
hmm
as i can cancel it and have it not delay the rest of the function
depends
yeah
depends
task.delay is better for functions
outside of functions task.wait is better id say
i want code to run after a second but code also runs after, so it delays
my main issue is tryna get it to interact properly
youre not changing anything
the maxforce already was that
oh wait mb it wasnt
1 less 0
thats of the projectile
Im tryna figure out how to uhh
make it apply that force
to the victim hit
right yeah ik
mb
i dont really use force so idk how to help
no its fine its my fault
thats what i was about to say
😭
all good
furk
never have and never will make combat stuff
ive genuinely never
do u know how to make it so it ummm
makes them like sit down
bro i was just about to say this aswell
im exclusively working in conbat stuff
🥹
😭
yeah
you can change the humanoid state
to sitting
i think
yes
so do i just do like
hit.Humanoid:ChangeState()
or smthn
oh wait its even easier
Humanoid.Sit = true
its a property of the humanoid i think
yea
uh yeah but theres no guarantee that hit.Humanoid will be the humanoid
if hit is the leg for example
the leg has no humanoid in it
you can loop the parent till the parent finds a humanoid
yeah theres defo a better way but i forgot
strange i haven’t been able to assign it to any tracks
oh yeah
o
so do i be like
hit.FindFirstChild:Humanoid or smthn
wait i thought of smth
hit.Parent.FindFirstChildOfClass("Humanoid") :: Humanoid iirc
hmm idk maybe
exactly
thats why i suggested the loop
wait ik how
/e :Destroy()
give sec
findfirstancestor
muahaha
is that just by being like
"local PlayerService"
Game:Getservice
local plr = PlayerService:GetPlayerFromCharacter(hit.Parent)
local humanoid = plr.Character.Humanoid
Someone hit me up with a Beam slash script
local PlayerService = game:GetService("PlayerService")```
looks a little complex but
its not i promise
its aight im diving in head first with this kinda thing
put this near the start of the script
all good youre doing really well
What function makes it a custom rig can be animated
yeah always define constants at the top
do i just replace like
20 or 21 or smthn
😭
then i just write ur shit in
either use themes or rojo to become a degen
oh i see
but this at the very top
of everything
and 10% skill boost
yurr dw i got that
-50% efficiency
not themes
did i do sum wrong or
it did that when i removed the if
oh real
and then the end at 28
wicked
it did not like line 1
so real
Players
Its just players
?! 😳
when the type assertion doesnt work 
show me like 1
Yeah
the one you defined
But shouldnt really matter
can be anything
Its just a variable
yeah but then you gotta do bragh:GetPlayerFromCharacter
ye
no because you cant have variables that go to other scripts
how much Robux do u think a game on average could get from 1 million views, a cash grab
_G hello there
otherwise every variable would be local
oh fairs
it fixed the error when i changed the "Players" to "PlayersService"
hm ig
!!??!
sho wme
same issue as before
deep nested hit
or the hit just didnt happen i guess
i'd give you a better advice. stop what you're doing go study a bit and get some knowledge of what you're doin cuz you wont go far away with try and error
i tend to learn from trial and error pretty well but ill probably do some reading on it
I learnt from existing scripts.
i know A WAY to get this to work but i dont know how to make it ignore the owner
me too
i meant to respond to icedev
one day i was where you are, trust me
do i just read the documentation
if Plr id = something something then do something something
i looked at code
Pretty much
oh
so if plr id = = the users then end or something
ye read the doc and also do whatever is better for you like watching videos, just practice and you'll get better
Pretty much
the way i got the projectile to shoot was from a vid
never nest more than 3 times or you get executed on the spot
unwritten code rule, just listen to him
local me = game.Workspace.icedev
local clickdetector = script.Parent.ClickDetector
clickdetector.MouseClick:Connect(function()
me:Destroy()
wait(1)
print("Me Destroyed")
end)
Does anybody know the purpose of streaming enabled? When I use it, it just causes a bunch of module errors and a bunch of script related issues since the object isnt there until rendered.
YOOO i found the error replace Players to PlayersService you did define PlayersService but not Players alright
@novel island
hi can you try using waitforchild
alr
Bruh where can I find useTimer() and useRem() roact hook in lua
Does anybody know of any good coding tutorials?
Brawl dev combined with doing commissions
hey i need help seriously i have a weird issue going on where when i load into my game all textlabels uner playergui are invisible (false for visible) i dont know what is causing this, i have not recently done anytthing that couldve done this and i am working solo so it wasnt anyone else. im thinking there has to be a script that is setting all textlabels to false thru get descendants but i never added ant of theat.... can someone please help me figure out why this is happening? is there any way to dug and go back in time???/
why is my game still broken after i reverted
Are you going to pay them?
this is my first upload so not rn
cant say. u wanna take part?
Well you can't really look for developers and not pay them
Maybe contact one of those from #scripter-hirable and ask for free and say it's for a YouTube video
yh mb
part = workspace:WaitForChild("Pa1rt")
part.Touched:Connect(function(x)
if x.Parent:FindFirstChild("Humanoid") then
x.Parent = HumanoidObject
HumanoidObject.Character.Health = 0
end
end)
Wot
Hey 👋 lets debug this very quick
First go check your input what is it reading
lying its for a youtube video is DIABOLICAL

Why is _G not used? Is it cause its slow or not secure?
ModuleScript just make it all more organized
I could be wrong, they might have a decent use case
why is my script not working
@winter forge you fixed it right?
I think it’s mostly performance
Or security
And its just overall better to use module script or remote events
Need 1 more dev for video (i got 6/7)
why waitfor child
trying to get this animation to play when the player chats "/drop", this is a localscript that gets placed into the playergui, anyone know why this isn't working (it doesn't even print)
wait(.3)
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")
local MainGui = script.Parent.Parent
local ScrollingGui = script.Parent
local AnimationIDs = require(script:WaitForChild("AnimationIDs"))
local MainAnimationHolder = Instance.new("Animation")
MainAnimationHolder.Parent = Character
MainAnimationHolder.Name = "EmoteAnimation"
local CurrentlyPlayingAnimation = false
local CurrentAnimation = nil
Player.Chatted:Connect(function(msg)
if msg:sub(1, 5) == "/drop" then --// assetid 127834406270796
print("found msg for dropping")
local AnimationID = 127834406270796
CurrentlyPlayingAnimation = true
MainAnimationHolder.AnimationId = "rbxassetid://"..AnimationID
CurrentAnimation = Animator:LoadAnimation(MainAnimationHolder)
if CurrentAnimation then
CurrentAnimation.Priority = Enum.AnimationPriority.Action3
CurrentAnimation:Play(.2)
end
end
end)
nice
function updateGui()
local screenCorners, corners = getScreenBounds(target)
updateSelectionBox(highlight, screenCorners, false)
updateSelectionBox(gui.OldContainer, screenCorners, false)
updateBackgroundFillFrames(screenCorners)
end
workspace.Parent:FindFirstChildOfClass("ReplicatedStorage").Parent:WaitForChild("Run Service"):BindToRenderStep("SelectionUpdate", 10, function(dt)
updateGui()
end)
is this a good way of scheduiling gui updates?
i welded this part to another part and i want to do something like
cannonBarrel.CFrame = cannonBarrel.CFrame * CFrame.Angles(math.rad(-0.5), 0, 0)
me
im bored..
what's the issue?
i want to rotate this part
by using
i welded this part to another part and i want to do something like
cannonBarrel.CFrame = cannonBarrel.CFrame * CFrame.Angles(math.rad(-0.5), 0, 0)
but when i do this the whole thing rotating
try rotating it from the weld
Because when welding it to another part both of the parts that were welded will act as one big part
okay
so cahnge the weild to like
a weild that will let me cahnge orientation
like a motor6d
try using something like this
weld.C1.CFrame *= CFrame.Angles(math.rad(-0.5), 0, 0)
so did it work out?\
it keeps saying
Orientation is not a valid member of CFrame
cannonBarrel.Motor6D.C1.Orientation = cannonBarrel.CFrame * CFrame.Angles(0, math.rad(0.5), 0)
is the roblox stupid
does it think c1 is a cframe
oh yeah change Orientation to CFrame my bad
do it like this
thats right
cause it doesnt matter
as long as u use cframeangles
and c1 is a cframe
just a differnt name
so.. did it work out?
mind showing me a vid
can i screenshare
go to private 2a
im just gona show u
ion feel like plugging this microphone in
It makes it so everything doesn't load in at once instead its whatever is closest to you I believe.
Yea
For object errors you can change parts to perservered so it is always loaded in.
And does it only do it server side?
I mean proberly since its in workspacee.
So it would save memory client side since it’s avoiding server side rendering right
But then won’t any client scripts involving using an object fail?
I mean I'm not sure I'm not an expert I would reccomend looking at the documentation
I would say it depends
if the script does it on its own maybe
but if it is an interaction from the player like holding e on something close then it should be fine
solved it
by multiplying the c frame
while i alread had a position set
why so many hackers in this server
most people use hacks to test their cyber security
great
fair enough
what is the shortest implementation of fib possible in python
isnt this a star glitcher code?
or smthing like that
wdym
is that code used in a star glitcher script
no
oh alr
someone else needs help
if u need scripts done for free dm me
anyone here know how to add crash physics to f1 car?
I need a script where the cars wheels, rear wing, front wing disjoint when crashed.
the damage should depend on speed/force it crashes
please help
you could attach a part the player can walk through (cancolide off) as a hitbox and when a player is detected going a specific speed and in the driver seat it does a script.
the whole exploding thing idk you could use c frames for that though