#code-discussion
1 messages · Page 177 of 1
Theres no necessary bad way to fire to a server, there's simply sanity checks on the server
it only works when i press Z+ctrl
bro 😭
holy shit im going crazy
its cause before i never sent it to server and it worked fine
Hi
which key combos u want
local userInput = game:GetService("UserInputService")
local keysDown = {}
userInput.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
keysDown[input.KeyCode] = true
if keysDown[Enum.KeyCode.Z] and (keysDown[Enum.KeyCode.LeftControl] or keysDown[Enum.KeyCode.RightControl]) then
print("HAHAHA")
end
end)
userInput.InputEnded:Connect(function(input)
keysDown[input.KeyCode] = nil
end)
look
ctrl+z
😭
hi
maybe ctr+z doesn't work in studio
It does
only in client
dude what do you mean sometimes
Like during testing
does it work or not
just do keysdown[leftctrl] and z if uw ant it liek that
SO U NEAN NORMALLY OR WHEJ U CLICK PLAY
Well if you are worrying about exploiters taking advantage of your remotes you validate it on the server after the event is fired and return if they do not meet the proper conditions
ohh alright
oh wait I might be stupid idk anymore I thought u meant control z asin undo
local userInput = game:GetService("UserInputService")
local keysDown = {}
userInput.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
keysDown[input.KeyCode] = true
keysDown[input.UserInputType] = true
if keysDown[Enum.KeyCode.Z] and keysDown[Enum.KeyCode.LeftControl] then
print("HAHAHA")
end
end)
userInput.InputEnded:Connect(function(input)
keysDown[input.KeyCode] = nil
keysDown[input.UserInputType] = nil
end)
it works
alright whatever you say bro
copy and paste
i copied and pasted
z + contorl will work
if u want control + z
then change z to control, control to z
i am scripter if anyone want to hire me DM me
and what fucking psychopath does z+ctrl
ye please 🥺
yay
local userInput = game:GetService("UserInputService")
local keysDown = {}
userInput.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
keysDown[input.KeyCode] = true
keysDown[input.UserInputType] = true
if keysDown[Enum.KeyCode.Z] or keysDown[Enum.KeyCode.LeftControl] and keysDown[Enum.KeyCode.Z] or keysDown[Enum.KeyCode.LeftControl] then
print("HAHAHA")
end
end)
userInput.InputEnded:Connect(function(input)
keysDown[input.KeyCode] = nil
keysDown[input.UserInputType] = nil
end)
here u go
lmaooo
i don't think it will matter but let me try anyways
idk interesting key combo
i dont think you know anything abotu luau
im making a build mode
learn basics first
whatever you say gng
what the helly is this
holy skid
i didnt make that
wdym
also if its works dont touch unless u want change anything
you dont even know simple logic on if statements 😭
all im gonna say is you got ego man
Nah @hidden sable tries to help you for 10 min on a problem you're not capable of solving yourself and you switch up on him
what do yall think, first time making a combat system
thanks man
how to stop someone from jumping
cool
he's trying to ego me dude
"you don't know anything about luau" like what the fuck 🥀
JumpHeight = 0
if keysDown[Enum.KeyCode.Z] or keysDown[Enum.KeyCode.LeftControl] and keysDown[Enum.KeyCode.Z] or keysDown[Enum.KeyCode.LeftControl] then
print("HAHAHA")
end
punch animations are slow
whats the regualr height
for JumpHeights 7.2
its working well
let me the egotistical one here for once
thanks
are you stupid 🥀
any1 need a discord server made dm me
you're being egotistical for no reason
im sending you code and you being ungreatful
did you test your code
like holy shit
im convinced this is ragebait
test it again
z + leftcontrol, leftcontrol + z
i thought you knew about if statements
does the character / humanoid have a cframe or positio n
what do you mean?
so if u know then fix it
cframe contains position and orientation
the reason it wasn't working was because of studio
roblox studio just doesn't detect anything when ctrl is pressed
just stop being egotistical man
it was weird how you said "you don't know anything about luau"
im trying to put the parts cframe with the humanoid position or wtv
the humanoid doesn't have a "position" property
cframe?
im tryna put the part to the character/player position or wtv
to get the position of the character you should look for a certain part inside it called "HumanoidRootPart"
ok
thanksforgot about that
this is a localscript but when a player sits down the other players camera switches?
--Services--
local players = game:GetService("Players")
local workspace = game:GetService("Workspace")
local repStorage = game:GetService("ReplicatedStorage")
--Variables
local group1 = workspace.Group1
local seat1 = group1:WaitForChild("Chair1"):WaitForChild("Seat")
local otherSeat = group1:WaitForChild("Chair2"):FindFirstChild("Seat")
local player = players.LocalPlayer
local currentcam = workspace.CurrentCamera
local newCamera = group1:WaitForChild("CameraPart")
local playerGui = player:WaitForChild("PlayerGui")
local TableGuisFolder = playerGui:WaitForChild("TableGuis")
local LeaveGui = TableGuisFolder:FindFirstChild("LeaveGui")
local debounce = false
seat1:GetPropertyChangedSignal("Occupant"):Connect(function()
if debounce then return end
debounce = true
LeaveGui.Enabled = true
if seat1.Occupant ~= nil then
currentcam.CameraType = Enum.CameraType.Scriptable
currentcam.CFrame = newCamera.CFrame
else
currentcam.CameraType = Enum.CameraType.Custom
end
debounce = false
end)
otherSeat:GetPropertyChangedSignal("Occupant"):Connect(function()
if debounce then return end
debounce = true
LeaveGui.Enabled = true
if otherSeat.Occupant ~= nil then
currentcam.CameraType = Enum.CameraType.Scriptable
currentcam.CFrame = newCamera.CFrame
else
currentcam.CameraType = Enum.CameraType.Custom
end
debounce = false
end)
How many of you guys use ai for coding?
not for coding but for debug
but usually ai cant find the bug
so i do everything myself
Never heard of cursor. Is it good?
yeah its just 20$
are we making the same game
local function onSeated(isSeated, seat)
if isSeated then
Humanoid.WalkSpeed = 0
Humanoid.JumpHeight = 0
LeaveButton.Visible = true
-- Create the CameraPart
local CameraPart = Instance.new("Part")
CameraPart.Name = "CameraPart"
CameraPart.Size = Vector3.new(1,1,1)
CameraPart.Anchored = true
CameraPart.CanCollide = false
CameraPart.Transparency = 1
CameraPart.Parent = workspace
local HumanoidRootPart = Humanoid:FindFirstChild("HumanoidRootPart")
if HumanoidRootPart then
CameraPart.CFrame = HumanoidRootPart.CFrame * CFrame.new(0, 3, 6) * CFrame.Angles(0, math.rad(180), 0)
end
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CameraPart.CFrame
LeaveButton.TextButton.MouseButton1Click:Connect(function()
Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
Humanoid.WalkSpeed = 16
Humanoid.JumpHeight = 7.2
LeaveButton.Visible = false
camera.CameraType = Enum.CameraType.Custom
CameraPart:Destroy()
end)
end
end im tryna offset the part its not offseting
👍
wasted a day on trying to do animation weights only to realize fade is better with just more animations
hey if i want to disable the jump when im using a dash or a skill or smth else what should i do ?
JumpHeight = 0
I’m tryna make a game like poison candy for fun lol
same lol
so u put the current camera (client) to it
do you want a template
i have a template from a guy i worked with
how do i have to do if i want my body to dash according to my body rotaion like if i dash to the front but moove my cam/body to the right the velocity go to the right becase now im just going only front even if i turn
Advertising games in videos until I get enough subscribers to start charging! DM me if you want your game in one.
can i see
for 5000 bucks yes
jk but its 1 am for me and i am not on my pc
why this looks so like chatgpt
kinda is i was tryna figure out how to get the humanoidrootpart.cframe
are you modyinf the humanoidroot part to make that view?
its kinda
more diffuclt than that
bc i got other chairs
but i kinda dont want to do that since im alr been doing this for like an hour
setattribute
sigh man
im js gonna do it
but still the angle wont be right
im tryna have a top down overview
plus im tryna make it scaleable
Anyone want to team up and make a game?
i am looking for scripters that are interested in working for a studio (milk a brainrot) (it has an investor), dm me for more
ai code?
wym
Fix the xyz
i js deleted the top down idea
i js put the camera in front of the player
Could anyone teach me how to script, basically just teach me the basics and the build up? I have no experience, would you be willing to do it for free?
all u need
Any scripters that are advanced, want to help me understand how to set up your game scripta like a proffesional. Why do I need to create my own ”services” and how does a normal ”service” set up look like with :init and stuff. I have tried looking around but none of the explanations I have found makes me understand
Search up OOP or frameworks and i think that will help
bro im serious
same
be self taught
set yourself a goal and work towards it learning on the go
ok
I know what oop is, and I can code in my way with classes. But i dont think I code in the roblox standard way.
Thank you Kosak, if I even get good, Its because of you.
amazing
go slay
To buy?
What I did was make each group och chairs and table a model then put a part in it and then just make that the camera
och?
Huh?
theres essentially all variations of poison candy atp
u said och
Oh I meant of
its just so easy to make
ohh
Yep
I don't know what to make for my portfolio any ideas?
Systems?
What kind of systems give me examples (idm any difficulty)
deepwoken sharko
Is this channel for just lua discussion?
no
No
obv applies
Is a python journey worth it in 2025 or do i stick with java
java my beloved
stick with java
(im biased af)
Im honestly making bad progress
I started exactly a year ago today
And its going pretty bad tho i can code simple stuff just not things a normal 1 year journey should be able to do
I dont think python should give me that problem
what do you think a "normal 1 year journey" should look like?
Game development, being comfortable and confident in the start of a project
ive been coding for 5 years and only recently do i actually feel comfortable and confident in making a game on roblox
The thing is i used to code on roblox when i was a kid and i have the same amount of knowledge in java as i did in lua and i only did lua for 2 months
Im starting to think java isnt for me
java 
Do you manage to have a decent game?
Nope not even the start of a game, but it was different when it came to lua i made simple stuff and even tutored my friends in a matter of two months of progress
the moment you give up is the moment you mess up. i was interested in video game design since 2015, and it took me until 2020 until i could start to make my own scripts (they were terrible; but it was a start). dont worry about "do i know enough" or "is this enough progress." everyone learns at their own pace, and if you stick with it, you come out on the other side
weak
I understand but when it comes to looking at a programming language and it being annoying makes it harder to make progress maybe that is “weak”
How many programming languages do u specialize in
lua and java
i learned java 2 years ago and only recently started to use it to make minecraft plugins
Want to try out my game?
If it can run on a phone sure
is not completed but I need someone to try it with me
it can but is prefferable for Pc Lol
But were you in a hurry or did you learn it in your own pace
Is it a roblox game or a game you programmed in java
a roblox game
i learned java through a highschool class. i was exicted to start coding stuff with it
Same i took an AP course
AP Computer Science A?
Yeah
yup
Honestly most dreadful thing ive been through
felt a bit relieving reading this
been kinda struggling with my own imposter syndrome when it came to my own coding level in the timeframe i gave myself
really? i found it really fun
Do any of you guys major in CS
When i looked at the frq questions i didnt feel confident enough in knowing how to solve them and thats why I mean in bad progress
yeah. you never want to put yourself in the position. i feel like most of it comes from comparing yourself to others which is terrible to do. just focus on yourself. but you could also learn from others
i dont
it'll come with time. when i was first introduced to oop, i was so confused. but now, it like the most natural thing when i think of java
yh that is def part of the problem
started to understand my own pace at which i work and employ discipline more and its been doing wonders
still trying to crack down on the whole frameworks of building games with oop tho
I hope so. I really wanna go back to luau but my computer cant even handle roblox studio so i gave up on that and saw the AP course as an opportunity
i dont like to force oop in lua. i like to just stick to its "functional" way of doing things
did my discord freak out? or did someone send a message that got auto deleted?
I saw it too
hmm wym?
lua has its own paradigm and i like to stick with it. when i try to use oop with metatables, it breaks my flow that i have with it. but each to their own. as long as it's not spaghetti code
they're sending scams or something
not sure if it's a bot
same in #code-help
yeah i think it was that mr beast one
From what i remember the only part of lua that freaked me out was the physics part
like cframes and stuff?
cframes werent bad
But there was this physics part about it
There was this guy with five years of lua experience that helped me code something
And it had physics in it
It said something like physics.(34,56) or something along the lines
idk what you're talking about
Ill show u in the morning its somewhere in my computer
_G my goat 😍
i forgot how to script
ill pay 3k if someone helps me recolor stuff its super easy just time consuming
function chunking:Start() globalConnection = RunService.RenderStepped:Connect(function() local hrpPos = HumanoidRootPart.Position if hrpPos.Z >= Limit then Effect:ClearVFXCharacter(Character) HumanoidRootPart.Velocity = Vector3.new(0, 0, 0) Character:PivotTo(CFrame.new(hrpPos.X, hrpPos.Y, Back) * CFrame.Angles(0, math.rad(180), 0)) end end) end
why does player flicker when teleporting
If it’s properly named then you can run code to help with it
\
Rolve wouldnt be that dumb. i hope atleast
its like 90% prone to false positive depending on the users specs
rolve put racial slurs in their code i wouldnt be surprised if they would be that dumb
on the clientside btw
that doesnt make them dumb coding wise just idiots
who watched hxh before and is interested in making a hxh game (I mainly script and ui)
Just make a system that’s on ur skill level idk
half upfront
How does one know what to code when they have a task
i was thinking abt making a Slash hitbox in front of player and i was thinking abt using GetPartBoundsInBox 2 times at client and then server and if client hits a player it calculates the distance between both server and client's distance to hit target and if it is in radius it does the dmg what do yall think im not a pro scripter and i wonrder if this will work?
What's preferred way of starting playback of several Sounds at the same time(with high regard for sync)? I see SoundGroup only gives me a Volume.
Is answer anything other than iterating through array of Sounds?
How can i make a ragdol slap like steal a brainrot
I feel like this should. At least for preventing range exploits
i am looking for scripters that are interested in working for a studio (milk a brainrot) (it has an investor), dm me for more info
my gane spamming purchase prompt for 3rd party strange gamepasses when not in studio, and can't find any source code for purchase prompt or marketplaceservice or sus require, anyone knows how to find out the virus?
code can be obfuscated, remember that. try searching for code with require(), getfenv() and more of these
what are more of these?
can also be a plugin
its ok u need a certain levcel of autism to write everything in OOP
OOP isnt always the way too sometimes it over complicates the simplest things but it is nice
its the other way around
we prefer to have it our own way and be lazy
which is actually pretty efficient
saves time and also less to process
Idk i just need one that can show my skills
embrace json
Anybody want to invest
Anyone wanna buy some full game
-
This server no longer supports investors, and it was removed due to the majority of the investments being scams or donation requests.
-
Asking for an investor in any of our channels classifies as channel misuse, and may be punished as such.
@valid olive ^^^^^^^^^^^^^^^^^^^ look at this message above ⬆️ ⬆️ ⬆️
what kind of recoloring?
can somone help me change the speed on the felipe r15 killer model
Humanoid.WalkSpeed = any value u want
Dm me
im.. not investing?
What you ping me for
so you can look at the tag
bro didn’t even read the message
should I use something like react-lua or fusion?
Good day everyone, i am currently looking for a scripter for my studio titled “one line of code” we specialise in making slop games which earn a lot of robux. our current project is a game called “milk a brainrot”.
So there's a conveyor with random brainrots in there. if you have enough cash you can pick up the brainrots, put them on the platform, and then milk them. over time they collect milk, and you get the milk and sell it. then with the sold milk you can buy more brainrots.
I need a scripter to script various systems, including offline earning, rarity in the conveyor system, milking system,and other similar systems.
As we already have a pretty big investor for the game ads (he is going to invest 100k+ robux), I am offering a % of the game earnings. considering poop a brainrot has 2k CCU, this game won’t really fail, especially with the ads. If it fails, then I offer a 250$ or a 25k robux compensation.
hi guys does someone know how to change character of a player to a part properly? i am currently doing just player.Character = part and i am getting ~1 second lag on empty baseplate which is nasty
Is this seriously the only way to detect plugin context
local isPlugin = pcall(function() RunService:IsEdit() end)
Could you explain more please?
You want youre character to spawn as another character or?
just switch character at any moment i want
and there is a lag when i am doing it prob u can see it
You can do that by putting the chatacter you want in "StarterPlayer"
And giving it name "StarterCharacter"
nah nah nah i don't want to make it startercharacter
i want just be able to change it while i am in the game
Yes that could work also if you make it in the script.
Explain how you are making that part
Is it being made on the server?
no i just put it under a local script as an example
If it's being put as a child of a local script, and that local script is in starter character scripts, it's being made by the server
since it has to be initially copied in
so I don't know exactly why this happens because logically it shouldn't, but i believe it's because of network ownership
yea okey i understand but i have a delay so it should be already loaded and as you see it immediately appears and the lag starts only after some time
it seems like more a humanoid lag
Yeah I know. It makes zero sense, because characters are supposed to contain only owned things
I've run into this exact issue before
your options are to put the reference part in replicatedstorage and clone it in client side, then propagate it with a remote
or create it on the server outside the character, ensure you set the network owner to the player, then you can probably parent it to the character
Option 1 is probably best. Network ownership in roblox is screwed up
put it into a model and name it "StarterCharacter" and put it in starterplayer
make sure it got humanoid
i am not doing starter character, i am doing switching character any time i want
oh
i think its probably some script that is connected to runservice then or a loop
maybe try setting camera type to scriptable before switching and then switch it back
I believe it lets you move it a little because of prediction
or make custom character system
Then eventually the server catches up, properly assigns it to the client and the client re-adjusts
as far i know roblox doesn't have predictions, that's exact reason why u can lag switch
No, it does have lag prediction on characters. If it didn't, moving around would feel awful
it is loading descriptions which support only standard characters
I don't know exactly how your character authority is replicated- just know messing around with your character like that is gonna lead to big problems down the line. Solvable problems, but weird ones
What's the best way to dash? Battlegrounds style
Im not sure if you wanted that, so I sent it.
With velocitys.
Parabéns meu amigo, te nomeio como don comedia
Dashing is another difficult problem to solve. woo
Its not at all.
Getting it consistent is
I haven't found a reliable way to use velocity and impulses to overcome the friction consistently
Using either CSA or UIS getting a key you want for dashing and making it go where camera points at with velocity, its easy.
imo the best way is tweening with an alignposition. it isn't ideal
how do you account for differences in friction on surfaces?
My friend said to use bodyvelocity but it's a bit buggy when you jump, I think I'll try with lerp or tweenService
yeah bodyvelocity is deprecated
I know
But does it matters?
uhhh another way is to shapecast your route and stop if you hit smth
FUCK YOU MEAN MILK A BRAINROT
honestly? no, lmao. I can't disagree. you can just ensure all of your surfaces have the same friction and use a different constant if you're airborned
but what can I say, I like to over-engineer
I mean even if the surface has a friction, Isnt it used to make player hard to dash?
yeah, but the edge case is if you want a surface to have very little friction, but still make you dash consistently in the same way
or on uneven terrain
HTTP service as I see.
yes
I won't disagree it's easy to just design around that constraint
I think there is more velocitys to choose from, so either way you can use the one that fits with you.
well then you're designating a ton of velocities for each surface
Onde vc moras?
I can agree with you here.
I hate how friction works. I wish I could just set something to have an override friction
Exactly the same problem I countered while I was making one system.
Do you like it?
Yes! I love to use HTTP service a lot also, I even made a game using them.
ofc you can set assemblylinearvelocity each frame too, I guess
It's so beautiful
Thats how I fixed it, using assembly linear velocity.
I totaly agree.
or... raycast the next frame you'll walk to, hide an alignposition inside your character, and float them very slightly above the floor with jumping turned off. 
😰
@vagrant saddle
Yes?
I have made that aswell in the past, using webhook from a discord bot and sending data to it.
did you know every turkish person under the age of 40 has played mount and blade
Yes, I think it's very nice, I just did it for fun, it can be improved but it seems unusable.
Well it could be unstable if it feel in the wrong hands.
bro I am also a Turk ...
and you've played mount and blade haven't you lol
(sick ass game)
lol
I wish it was easier to move a ton of parts at once in roblox. ive always wanted something like m and b but run into tech limitations quick
I agree.
yea
is there something im doing wrong here which makes it so if a player sits all cameras move?
seat1:GetPropertyChangedSignal("Occupant"):Connect(function()
if debounce then return end
debounce = true
LeaveGui.Enabled = true
if seat1.Occupant ~= nil then
currentcam.CameraType = Enum.CameraType.Scriptable
currentcam.CFrame = newCamera.CFrame
else
currentcam.CameraType = Enum.CameraType.Custom
end
debounce = false
end)
Hey guys, I found a tool that copies any (game + script) from any Roblox game. If you want, send me a DM
im new to oop and i was wondering how i can implement profilestore to an oop based framework
Youre not checking if the player that sitted is the localplayer
So whenever the sit gets occupied, all local scripts detect it and change the camera position
You can save any table to profile store so idk whats the problem youre facing
NO WAY REALLY
not really, you can track the exact memory usage for each item, for example when exploits load and start their environment
its not the overall memory usage
yeah i fixed that but now i need to check when the player leaves to adjust the camera back to normal
is using the PlayerModule good?
how can i use theme on studio pls anyone say
You mean dark theme?
Could you explain what you are referring to when you mention "theme"?
i mean they
my english bad
them
its folder formate
ok
Chatgpt
you mena like a windows theme on studio?
for folders
id recommend js using rojo at that point if youre a scripter
the files would be locally stored
i mean that files ar on windows i wanna put them on roblox studio
i cant drag n drop
open the rbx file
thats not roblox file its a folder
whats in the folders
like in rep storage
in the services
yeah js use rojo
Today we look at how to setup and use the amazing development tool Rojo for easily creating Roblox games! Rojo enables us to create our Roblox games inside of Visual Studio Code, which has tons of advantages over using Roblox Studio's IDE.
Subscribe for more Roblox development tutorials!
Visual Studio Code (VSC):
https://code.visualstudio.com/
...
Recommended also in roblox studio. 😁
for _,v in pairs(workspace:GetDescendants())do if v:IsA(ParticleEmitter)then v:Emit(v:GetAttribute(EmitCount))end end
me when pairs
(i just know they are needed in .000111% of all scenarios)
hey guys i have a part in my game where if it gets destroyed it respawns back after some time the problem is when it comes back and a player happens to be inside while it respawns it traps them inside, any ideas to fix this?
MoveTo()
i should just move the player?
need help lads, how can I grip my tools? I tried a plugin but didnt work, I only see the handle, not the rest of my slapping hand.
if anyone needs help with scripting for a reasanble price dm me
i tried it, its only useful when you have a ready system and you want to add it to another game.
otherwise its useless
this is cool but how do u secure ur panel?
Gm coders
thx
If you are talking about the site panel, windows 11 no longer has windows 10, you can now put 4x4 le on tabs like this
:d
Imma try and start learning to code
how do ppl make hitbox without server-client delay ?
can anyone help me with some really complicated code
omg my market simulation is working
luau?
rblx lua
send
just send the part u need help with
then maybe send any other parts that may be relevant
also remember u can ctrl scroll
for zoom
ok so what is the problem
@obsidian gale
it doesent detect the GoodMop
it says its not in character nor player
but it clearly is
the tool names are all correct
show in explorer
cant rn but im really confident its in the players backpack
also gang ts is chatgpt 🥀
the code in mine, i asked chatgpt whats wrong and it gave me a shitty script
also the elseif block is useless you can just do startCleaning(player, tool.Name)
then do validation in the startCleaning function
u should maybe just rescript it
its quite hardcoded
guys what could be the logic behind having a procedural burst effect?
like if i explode a building
how does that work on roblox?
is that supposed to be pre recorded?
physics?
preferably not unless its a cutscene maybe
yeah well like say bug eggs
or should always happen the exact same
ohh
so like a preloaded effect for that particular model maybe
personal preference then. you can either make a few loose parts and then animate them bursting, or you can just apply some force on all the loose parts
you can use animation
or an arc
yeah should be fine
i assume animation is pretty light on the memory instead of physics
depends, animation will be best for either client or server because animations are always replicated and played on client only (default anims system atleast) but physics will have to be replicated every frame if done on server
tweens will also be replicated every frame
if done on server
im having a client-sided hitbox system, is these check enough to test if the client isnt altering the combos? im kind of slow, and cant really evaluate on my own rn 😭 (total 5 combos btw)
server should preferably determine when a combo will happen
i think u should move the combo counter to the server
i have a client sided and server sided state module that keeps track of the combo step
because its responsive
so yeah u have 2 ways for checking
the client uses the combo from the assigned by the server im just making a check in case they alter the combo number
hmm
then u just make ur server smarter
to assume that after this combo it'll be that
the client either stops doing combo or does the next one
which the server is already aware off and if that isnt the case they are busted anywawy
ahh
im sure ur passing some kind of token to make a series of the combo
then i can assign a value when its validating the combo and then make it have the values like the next combo or the first combo (in case combo reset). this works right?
im not sure what you mean by token ;-;
it is like an attack Id to keep track of what the client is using at the moment since i have very complex combat
air attacks, light attacks, heavy attcks, heavy air attacks etc
ah, bet. i already have a lastcombo var. imma change the validation to check if the new combo sent is +1 of the server combo count of just 1 (reset)
i passes a string based value from scripts which validates the combos
oh ;-;
mine is a simple system, so i aint using tokens
damn ;-;
so when i have the tokens being sent
server and client should match that static module
for the attack to be even valid
yeah but thats basically it
ooooh
so if the server passes a different token then it would cancel out the attack? thats genius
yeah it cant go outside the defined tokens
or series
since my L3 has 18 damage and my L1 has 10 damage
i need to prevent player from skipping L2 and spamming L1 L3 L1 L3
lol
i see :O
Network.RangedHitRequest = Packet("C_RangedHitRequest",
Packet.Static1, -- attackId (e.g., "L1")
Packet.Vector3F32 -- The world position the crosshair hit
)
like this
that would be so bad if the players can just skip combos 😭
this is my version of remoteevents
lol
nice lol
imma go make the changes rq :P
what just happened


Can anyone fix my issue when player jumps he can't move he will jump on his position
task.spawn(function()
if not StealDb then return end
for i, part in pairs(StolenThing:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
part.CanQuery = false
part.CanTouch = false
part.Massless = true
part.Anchored = false
end
end
local PrimaryPartStolen = StolenThing.PrimaryPart
if PrimaryPartStolen then
local StealingoffsetCFrame = CFrame.new(0,1, -1.5)
PrimaryPartStolen.CFrame = TriggeringHumanoidRootPart.CFrame * StealingoffsetCFrame
local Weld = Instance.new("WeldConstraint")
Weld.Name = "StealWeld"
Weld.Part0 = TriggeringHumanoidRootPart
Weld.Part1 = StolenThing.PrimaryPart
Weld.Parent = StolenThing.PrimaryPart
end
end)
ur using a weld
use a motor6d
Whats the diff ?
when u use weld it acts as 1 rigid object, if one of them is anchored
it'll stop u from moving n stuff
in air
they are both unachored but will try the motor
One works for what youre doing the other dont
give me an idea of a UI based game plesa
gambling rng
fireboy and watergirl

battleship
cookie clicker
minesweeper
papa’s cookerias
that would be so tuff to make
hmm yea those games were like isometric graphics
Anyone want to team up and make games?
how should a coding portfoilo look like
does anybody have some video on how to make a movement system similar to how tower defense simulator does for enemies?
because im just wondering how they do it
search up suphi kaner tower defense tutorial
you probably want non humanoids model that play anims using animationcontroller
then you move them by anchoring their hrp and tweening
the movevent on the enemies look clean tysm
especially on like curves
that what i was worried about
you will never learn by copying tutorials btw
ik thats why i stopped doing that i want to understand it
i might copy it but i want to understand it first
very cool
yes but will probably not understand all but i will try
hopefully its not too hard
nah its not too much complex
you can use workspace:GetServerTimeNow() to sync enemies between client and server
server its just a cframe
with some stuff like health walkspeed etc
as u can see received is very low
Anyone Voulenteer for video editing? 20 sec video.
no
guys my scripts in roblox studio aren’t saving i was making a combat system and it said data will not be saved because this is a test game how can i fix this
You were in a testing session while making the scripts. Make sure to end testing before writing stuff. It ain’t that hard
ok thanks
@lost pebble
if v:IsA("BasePart") then game.PhysicsService:SetPartCollisionGroup(v,"c") end
game:GetService("PhysicsService"):CreateCollisionGroup("c")
game:GetService("PhysicsService"):CollisionGroupSetCollidable("c","c",false)
How much should I pay scripter for fully working car system (drifting/touge)
You can use some critical thinking to figure out how
can anyone help me i have a rent house system and it makes the door transparent once u buy it and i have a door that works opens and closes and im trying to combine them but its not working
Just combine them.
i tried it’s not working
What seems to be a problem of combining them?
i just watched a yt video for both i’m not good at scripting
idk i just added the script from the rent thing into the door and it didn’t work
im guessing this is in a for looplua if v:IsA("BasePart") then --(Depracated) Sets a BasePart's collision group. First argument is the BasePart; second is the name of the group. game.PhysicsService:SetPartCollisionGroup(v,"c") end --(Depreacted) Creates a new collision group. Argument is the name of the group. game:GetService("PhysicsService"):CreateCollisionGroup("c") --Sets the collision group's collision between 2 groups. game:GetService("PhysicsService"):CollisionGroupSetCollidable("c","c",false)btw im confused on why the group and its properties are created after the if statement. i feel like they should be created outside the for loop
Tell me how the door is opening?
can i vc and share my screen to show u
Sure.
which r u in
what should i script that gives experience?
if anybody could help me
to get the player from the seat you dont use the seat itself you use the humanoid
the humanoid is the .Occupant of the seat and you can get the character from the humanoid then the player from the character
for _, Seat in SeatList do
if Seat.Occupant then
local humanoid = Seat.Occupant
local character = humanoid.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player then
startEvent:FireClient(player)
end
end
end
thats the fixed code
aye
thanks
np
hey
yo guys i need some help im learning to code right and im gonna use isntance.new to spawn a part but how do i know what to put the position as?
im trying to make a dash script should i put in starter character scripts or starter player scripts
player
i think
no character
js search it up
some guy answerd thanks
I made a procedural maze system that can generate a random maze each time and i've also got a bot that i can spawn pressing a button and make it solve the maze with the BFS algorithm
I need to know what to add to it
I know you going to hate me but I’m looking for a scripter speczailsing in combat and movment systems for percantage please flame me but we have progress on the game
should i code like leif?
?
Want to make Roblox games like the pros? In this tutorial, I’ll walk you through the exact structure and code setup professionals use, with services, modules, UI, and packages that scale.
Previous Tutorial: https://youtu.be/IJDg6tRJmHo?si=2BV3Sicra_1XcPKf
GitHub: https://github.com/leifstout
Oh
Are you open?
For scripter
scripting ye
bro dms
Got a bit bored so I made an ascii art gif thingy with C#
how d u "refresh"
You can do Console.Clear(); in C# to empty out the console
3 years of exp btw
I haven't tried it in any other language yet so idk how to do with Lua or java
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local equip = {}
local Remotes = ReplicatedStorage:WaitForChild("Remotes")
-- // Modules // --
local Data = require(ServerScriptService.Modules.Data.Loader.Data)
local Plot = require(ServerScriptService.Modules.Plot.Plot)
local plotShared = require(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Services"):WaitForChild("Plot"):WaitForChild("PlotFunctions"))
function equip:Init()
Remotes:WaitForChild('EquipCannon').OnServerEvent:Connect(function(player,name)
local OwnedCannons = Data:GetCannonIndex(player)
local CannonEquip = player.Cannon
if table.find(OwnedCannons,name) then
local playerPlot = plotShared:GetPlot(player)
Remotes:WaitForChild("StrokeCannon"):FireClient(player,CannonEquip.Value,name)
CannonEquip.Value = name
if playerPlot then
for _, cannon in playerPlot.Cannon:GetChildren() do
cannon:Destroy()
end
Plot.loadCannon(name,playerPlot)
end
end
end)
end
return equip
cooked or cooking
cooking
Does this look good?
im tryna code like leif can u give me some tips\
ya
Thank you
module loader
np it look better than the real tube clone
self made
damn i wanna make one u got some tips
someone help bru process receipt aint workin for me
send the code
put it into two sections
k
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local purchaseHistoryStore = DataStoreService:GetDataStore("PurchaseHistory")
local productIdByName = {
cash2500 = 3387422369,
}
local grantPurchaseHandlerByProductId = {
[productIdByName.cash2500] = function(_receipt, player)
local leaderstats = player:FindFirstChild("leaderstats")
local cashStat = leaderstats and leaderstats:FindFirstChild("Cash")
if not cashStat then
return false
end
cashStat.Value += 2500
return true
end,
}```
Destroy() aint working anymore ig
local success, result = pcall(
purchaseHistoryStore.UpdateAsync,
purchaseHistoryStore,
receiptInfo.PurchaseId,
function(isPurchased)
if isPurchased then
return isPurchased
end
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return nil
end
local grantPurchaseHandler = grantPurchaseHandlerByProductId[receiptInfo.ProductId]
if not grantPurchaseHandler then
warn(`No purchase handler defined for product ID '{receiptInfo.ProductId}'`)
return nil
end
local handlerSucceeded, handlerResult = pcall(grantPurchaseHandler, receiptInfo, player)
if not handlerSucceeded or handlerResult ~= true then
warn(`Grant purchase handler failed for '{player.Name}' of product ID '{receiptInfo.ProductId}'`)
return nil
end
return true
end
)
if not success then
local errorMessage = result
warn(`Failed to process receipt due to data store error: {errorMessage}`)
return Enum.ProductPurchaseDecision.NotProcessedYet
end
local didGrantPurchase = result == true
return if didGrantPurchase
then Enum.ProductPurchaseDecision.PurchaseGranted
else Enum.ProductPurchaseDecision.NotProcessedYet
end
MarketplaceService.ProcessReceipt = processReceipt
this is what i use to prompt mps:PromptProductPurchase(player, productId)
nothin in output
it's not giving me the cash
local didGrantPurchase = result == true
return if didGrantPurchase think this is the problem
the format is weridf
maybe
dgp = true/false if dgp = true and result then..... return result
if didGrantPurchase == true then
return Enum.ProductPurchaseDecision.PurchaseGranted
else
warn(`Purchase already granted for purchase ID '{receiptInfo.PurchaseId}'`)
return Enum.ProductPurchaseDecision.NotProcessedYet
end```
this better?
yeah i just followed what u said
ight bet run it
debug
then
find with line it doesnt work on
and go from there
i gotta go shower
ok
im not sure tbh
thanks for your help
np
10k rbx
Dms
what
No no, they were all scattered in multiple scripts i just combined them all here
oh. well it's just using methods of PhysicsService (some deprecated):
Class.PhysicsService primarily contains methods for working with collision
groups which define whether a set of parts may or may not collide with parts
in other collision groups. You can register a collision group through
Class.PhysicsService:RegisterCollisionGroup()|RegisterCollisionGroup() and
assign parts to it by setting those parts'...
Question, im trying to make my first game where basically blocks flying towards the map to target players and players have to dodge the blocks to survive however im not sure where to start in terms of scripting i did a few attempts but it just wont work, anyone mind helping?
u didnt forget to call the function like with an event connectedf to it
Looking for a scripter to Fix up some scripts and Fox bugs in my game (Paying with Robux) dm me if interested
i dont FUCKING UDNERSTAND THIS shit
im crashing out
why the fuck is it not working
thats not the right channel for this
What channel
u need to use /post
yo whats the problem
U have to do script
is one modulescript with 1635 lines of code good?
primarily, I just put different functions into one module script
are said functions similar
They are similar, for instance from my StatusEffectHandler: applyPoisonEffect <> applyBurningEffect
you could try splitting the module into 2-3 parts if there are some functions that aren't similar
these 2 functions go in the same module tho
So, like splitting them into different modules? For instance: ModuleScripts>{PoisonModule, BurningModule}
sure if you want, but are there any other functions that arent similar to these 2
i recommended keeping those 2 functions in the same module
and also any other effect function
Got it, although, I'll just keep it as one module script and organizing them through comments
How much do you know? Do you got the basics down for lua? That's a good place to start. And how much do you know about roblox's luau stuff, like RemoteEvents all that stuff?
any recommendation on how to learn Luau?
i told u alrdy
Sorry for ping
My timeplayed leaderboard is broken some players reported to have their timeplayed suddenly resetted
Loads of hitting your head against a wall and then googling how other people jumped over it
Find something cool you wanna do at varying levels in Roblox studio and then once you get stumped after trying your hardest search how other people did it and try using that info for more than verbatim what they did it for
Like say for instance you didn't know how to do a fling script so you searched up verbatim "fling script" figured it out, and now you gotta repurpose it to something else like if you touch a cube now it flings instead of you
That helps drill ideas into your head
you cant track when exploit enviroment starts
best way to clear exploiters is with honeypot remote events and delayed ban waves
yo can someone help me with a script to change character models?
Does anyone want to make a my singing zombie game with me payments in percentage
Roblox isnt even a kids game anymore
why delayed
so they have a harder time figuring out what caused it
Who wants to invest in my game dm me
it has never been a game in the first place...
how to counter
anyone for hire
??
Who is pro dev Or who help me with some script
@hearty robin someone w the skills roles green of scripters purple music composers
is it possible to make a non-spatial audio emitter?
what do people use to have a responsive camera for movement systems?
im trying to start a small community of devs for talking and helpin anyone interested dm me
@frosty moat This server is jus wha t u typed
seconds script ive done by myself W
Selling full games dms
i was messing around a little and it kinda works
local function RainyByMe ()
local part3 = Instance.new("Part")
local Tweening = game:GetService("TweenService")
local goalTween = {Position = Vector3.new(math.random(-81, 63), -40, -74)}
local infoTween = TweenInfo.new(7, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1000, true)
local moveTween = Tweening:Create(part3, infoTween, goalTween)
part3.Parent = game.Workspace
part3.Name = "RainPart"
part3.Anchored = false
part3.Position = Vector3.new(math.random(-55, 55), 100 , math.random(-55, 55))
part3.Material = "SmoothPlastic"
part3.BrickColor = BrickColor.new("Toothpaste")
part3.Transparency = 0.7
part3.Size = Vector3.new(0.08, 4.5, 0.08)
part3.CanCollide = false
part3.CastShadow = false
moveTween:Play()
end
while true do
task.wait(0.01)
RainyByMe()
RainyByMe()
RainyByMe()
RainyByMe()
end
i just dont know how to rotate the parts inside a script
!codeblock
whats that supposed to do?
;codeblock
Aaah
undefined - Please use a codeblock so your code can be more easily read by helpers.
You can copy and paste the following:
```lua
print("Hello, world!")
```
Output:
print("Hello, world!")
If you're having trouble finding the tilde key on your keyboard, see the attached image which has the key boxed in red.
the spaces are cooked 😞
how can i make a drag system like the 99 nights in the forest?
BRO
WHY ARE U CALLING IT SPACES
AHH
it's called Indentation
sorry!
script
is this a good layout
- ability to think ❌
- google access ❌
- cooked ✅ ✅ ✅
I already know but to make sure what’s ipairs and pairs again?
okay thank you 🙏
whats the difference between type and export type
Things that you dont use since luau has its own default iterator
Does anybody know where you can find like
How do I say that
Learning objectives?
Like "Write an If statement that does x"
For practice
Really? That’s great. So even while looping through tables no need?
The “default” is just the normal for loop?
you can just ask ai but if you dont like that just ask your friends for some
like it doesnt need to be complicated they can just say for example make a working flying platform
alr tysm
U can access the type outside the script
no doesn't mean u can just do : type
so like if u have a moduule storing types
or sm
Who wants to invest in my game already have 1
is there any pro pro scripters here
I have preformance quesiton about code
and roblox forums is taking a year
I'm wasting this zyn
which one is more preformance friendly this will be runned in a renderstepped connection
type is only within the scope of the script and export type makes it a public type, but it only works for modulescripts. so then you can say
local typemodule = require("...")
local a: typemodule.typename
chatgpt
is this on server or on client
would it really matter
yes
it's having an else statement vs changing a variable
which one is more preformance friendly
make it native function then
free performance boost
and i dont see that you are using much roblox api so its eligible
what's a native function lol
also i think the second is more optimized
it means the function will compile into machine code before it is executed instead of being interpreted
but you should use them carefully
I'm good
api heavy operations and some other things will deoptimize it
but thanks for the mention
and it will use more memory
hm
you can do it like this:
@native function native()
end
you should use it its simple
just add native tag
and it will execute faster
what the flip
and also
im not sure if lua is smart enough to cache it but i think pre declaring your variables before a loop will be faster than declaring them in every iteration, for example
local current
for i = 1, 10 do
current = i
end
instead of
for i = 1, 10 do
local current = i
end
also @hearty summit when using native, use type annotations
it will make it even more optimized
its just specifying the data type of your variables
ah
ohhhhhh
I've seen it be used before
but never understood the use of it
seems so extra to me
but yeah it makes sense now 😭
okay thanks gangster I will learn how to do all that now
example
local num: number = 0
local str: string = "hello"
local buf: buffer = buffer.create(1024)
local OptionalNumber: number? = nil
local StringOrNum: string | number
before you do
and you can do those in tables?
let me get the luau typechecking docs for you
for tables the syntax is
local EmptyTable: {}
local StringTable: {string}
local StringOrNumberTable: {string | number}
local dict: {[string]: number}
--note that not specifying the key type will default it to number
there is also much more you can do with tables
oh
but thats the basic dict and array like table types
here
A fast, small, safe, gradually typed embeddable scripting language derived from Lua
it explains everything about typechecking
hm
also
dont worry about type functions, types library or generic types rn as you dont need them for what you are trying to do (probably)
unless you really want to learn about them
type annotations make your code tuff
do you guys got any ideas why the 2nd code is not functional- 1 week into scripting
firstly dont use pairs or ipairs
next
remember when your character touches a part
alright I go now thanks king
the "hit" part will be the body part that touched
so you are trying to get the player from the character's foot
and for the method you need to pass in the player's character model
so you should instead do
hit:FindFirstAncestorOfClass("Model")
then if checks
@sharp python
why not using it