#code-discussion
1 messages · Page 152 of 1
ok thank you
How?
oop would make it easier if you have multiple characters but they all need a base combat system @kindred pulsar
is learning combat systems a good move?
alr
I’m not telling you
wouldnt modules also work for this? just wondering btw not saying ur wrong
Incase I have to check one of your scripts later on
yea, but this what oop stands for
Why would you check my scripts?
does any1 know how to make a custom player model hold a tool, ive tried wth motor6D and welds but doesnt work
I am always saying I use AI alot to generate tween templates
wdym? just drsg it in there
so whats a good move i should do if i want to get ready for commissions?
?
uppercut
shower
dodge
tf js drag it in there
oh i thought u meant ur move
this happens
is this code good?
Tool is anchored?
i just realised what i said😭😭
i mean like what should i learn for commissions
nope
When you can script whole game, you can
and apply for scripter role in here
how?
Just learn how to script, you have to provide a good 200-lines code
can anyone tell me if the code is good and readable?
and what can I improve
what type of game, like simulator, battleground?
memory leak
whats that?
you are creating the StateChanged event connection multiple times
as its under Heartbeat
Is there any way to detect memory leak in Roblox?
ohh yeah
what type of game should i make, combat based action or like a simulator?
are there any other bugs?
move it out of the Heartbeat
yeah I did
memory spiking
but is there anything other
i didn't notice any
k thanks
Roblox really should do some memore leak check tool
its easier said than done
Ofc, but it would be really helpful
how to get super good at cframes
by doing super stuffs with cframes
alr
learn, youtube, dev forums, learn shortcuts, do small stuff and keep grinding
ok thx
if you don't have a handle turn off require handle in propties.
nicee
tell chatgpt he did a good job
unless thats actually how you write comments, just looks eh
that isn't how chatgpt comments either
maybe not, but those that just send code blocks like this asking vague questions usually did not write it themselves
Making dialogue systems for 300rbx
he probably wrote it himself, and was asking if it’s optimised
Guys whenever the player is tp'd to another place in my game it kicks them with code 302
Increase price
i'm uhh
having a little trouble with my module.............
it's turned into spaghetti
wait one sec
essentially it's a pathfind script that has a couple features like teleporting or jumpnig if stuck
and idk if it's just me but it's getting a little hard to read so i need recommendations for how to optimise it (i'm a pretty beginner at scripting and im trying ot make this as versatile as possible which is why it might be so overcomplicated)
(yes i did use chatgpt, but obviously not to write the entire thing, kind of as a task manager so im not copying out code)
(and also im trying to stick to naming conventions but its inconsistent throughout the code so)
i've tried to use these commented signs to organise it but tbh it's like putting bandages on a broken glass
i also forgot to mention the teleportation part doesn't work as expected
@inland idol tldr
ive not finished all the mechanics yet, there is sfx but my recorder didnt pick the SFX up,
Why
How dare you question me
Srry sir
So I just found out local script > LinearVelo & VectorForce is replicated to server, how about align Orientation?
All physics constraints get replicated.
this looks awesome, how many years did ya script for?
Should I keep AlignOrientation in tool handle?
I mean, you can, but considering you need attachments for them to actually work, why not parent your physics constraints in said attachment0?
Yeah I will do that when I figure out how it works 😄
AlignOrientation & AlignPosition (depending on the mode), usually takes 2 attachments, attachment0, and attachment1
I switched to one Atachment mode
Thats 🔥, keep putting in that work, man
okay, then it takes one attachment, pretty much the same thing
So I would like the AO to control only X axis of said part, What would be the settings? (The arrows are not helpful :D)
how do i make my game r6
How would I set it?
x, y, z
X
how i can start scripting
I do I like code that is readable
And chatgpt doesn't write comments this way anyways lol
If you can read it, it's readable
Pretty sure client is looking under the player for the value to be changed, it’s not look at the correct value in workspace where the server is actually changing it
can someone just tell me if this code is optimised (it probably isn’t) and how to optimise it
Any help welcomed 😄
😅
If I pay someone can someone finally help me?
of course
Question was posted, then reply
no
What does this even mean?
Can I get some help please? it needs to be done asap
@coarse panther
aren't there only 2 things in the table?
idk thats just the error
and if i write it individually for the 2 things, it gives the exact same error to the next loop, and then the next, and so on
how much would it cost to hire a dev here to use CSS to design this Miraheze wiki? Generally speaking, need a fair starting number
I know CSS to a basic extent but no idea what the fuck im doing when it comes to that platform
do you have a variable limit in a script?
it seems like if i remove 2 variables, no matter which, the error goes away
CSS? So you want a website created off-platform?
hao helped me fix it
Thx for your help tho 
not sure what Miraheze is, but you’re probably better off looking elsewhere, considering Roblox doesn’t use CSS to my knowledge (I know they’re releasing stylesheets, but that’s not external nor is it full css)
it's a wiki platform
And Im aware roblox generally doesnt use CSS but i figured with #programmer-hiring for off platform work existing as opposed to #scripter-hiring, there'd be people who know
I have a close friend who's a scripter who knows CSS, java, etc on top of LUA so I know theres plenty others like that. But I cant ask him because he's busy\
well Lua is one of, if not the easiest language, so anyone who knows programming, basically knows Lua lmao
But if you can find anything useful here, maybe try other sites like Fiverr, I know they have a lot of websites designers.
CSS is even easier than LUA
It depends on definition, but I don’t think CSS or HTML are really considered programming languages.
I would know because I managed to learn enough CSS to make a profile for an old ass browser game lol. But I couldnt learn LUA
yes it's markup language or whatever, hence why it shouldnt be hard to find someone
How can I create glider tool that follows mouse?
The bigger hurdle is someone who knows the Miraheze website
I guess, but I was making a correlation between programming languages, it was a joke that if anyone knows Java, JavaScript, C#, etc, then they know Lua.
why can my clones not die?
Whats the best way to learn how to script (im a modeler)
trying to get my dream bat or godly please help
msg me
watch my tutorials 😂
trying to get my dream bat or godly please help
Go to sleep and dream
the best way in my opinion is to make things and different things, not just watching tutorials or reading articles, if it becomes a chore, you’re less likely to remember or care about whatever you’re just reading.
Ah so just throw myself into projects? and how long do you think it will take if i spend maybe 2 hours a day?
impossible to say really, it really depends on how much you challenge yourself / your learning speed
it depends on you, everyone learns at a different pace .
but you can surely get pretty good after a few months I'd say
no, try making things, especially things you’ve never made or looks challenging.
Ah! I think im a pretty quick learner (school wise) and ive previously learnt python to a certain level
So like scripting a UI? for example
Planning to properly throw myself into it
nice, there are def some similarities between the two so you'll have kind of a head start with tables and functions etc
Ah perfect and
I find the code discussion really useful for tips
it is!
python took me around 13 days
i always go to code help when i need help with something and can't figure it out (only ask advanced questions there though they can be rude if not 😂 )
but i spent around 9 hours each day on it
Lol fair enough i mean
what does that mean though?
To learn completely ish
Oh like main stream scripting
ah
13 days averaging 9 hours each day
well i recommend starting with my "how to script in roblox studio #1" now then #2 then you'll understand a bit of studio
feel free to watch other people's videos but if you watch mine im here all the time to answer questions
I am fairly fimilar with studio as ive used it for close to 2 years now i run VISIOn studio but i always have to out source scripting work
ah
and my profit margins are pretty rubish so if i do the work myself i can make more
well 'Emilki' if you need it 👍
im partnered now so that's why im asking u i want the money lmao
im only 14 btw
ah gives me hope
now im 18 and its my job
yeah
im started.
lets say 2 week ago.
is it normal that i still havent updated to the new roblox studio version yet?
is the new layout good?
How should I handle multiple datastores needed? I need one for base, 2nd for inventory. Should I merge them?
i like it you can make your own tabs and stuff now
ppl hate on it cuz they dont want to get used to something new
ooh i might update it then
yea id say im pretty open minded so i'll give it a go
its def an adjustment but its honestly better, easier to navigate
also more consistent with icons apperance etc
paid and fun ofc
why doesnt your dude optimize his own code
always good to get a second opinion
i completely understand
Use the marketplace for hiring
only people dming are scammers
u guys meed to make it so that only the people who are verified to post, can view the channels
thats true
You can find people in #scripter-hirable
i believe that my idea is pretty popular though so would u be able to see if u can make a change to prevent us from losing more money because we cant verify the authenticity of those dming us?
When I get hired, I usually check their profiles on discord and roblox, then check them in the scam logs here https://hiddendevs.com/scamlogs
We're a community of skilled creators. From programmers to graphic designers - we provide a platform to communicate, share, and transact amongst other fellow creators.
You can make suggestions for the server if you have any
where
Can anyone tell me how to code a currency popup ( I mean in words, not code) is it just putting it in a random position and tweening it to go up or is there more logic to it?
exactly that
just clone an invisible textlabel you have ready, and math.random() for the pos (scale) then tween its size to pop
thanks I just wanted to be sure so I wont waste time
ah alr
Yo
there is no sripter's channel?
Yeah
Iam a scripter
is that scripters chat?
Yes
This is the scripters channel
if you thought about it why didn't you already put it into practice before asking
so I wont waste time
then wouldn't it be a bigger waste of time to go out of your way to ask first despite the fact you already had an overall idea on how to do it?
no I dont think so
is it alright if I have all my guis in player gui and make them not visible then have them visible when a player does something? Or should I put them in replicated storage and clone them
how can i type ` without copying and pasting
Mobile?
just learn about your keyboard layout
it can't be that complicated
us keyboard or?
here, `.
hope that helps!
i found out (chatgpt) that i can only use Alt + 96
cuz italian keyboard
how does an italian keyboard not have `
can you actually look it up instead of asking an ai
there wasnt an actual answer
just trash answers which didnt work
chatgpt helped me instead
i usually search up things
this time it didnt help
try altgr + your key for apostrophe
what about i?
it doesnt work
fuck nvm this is a guide for edited keyboard layouts
yo
i updated and its not there
only alt + 96
@marsh urchin did u figure out how to toggle it?
better than nothing ig
it's literally just next gen studio
on the beta features
ty
how do u optimize a game
just dont have a million parts
local FrameTween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition})
local ImgTween = TweenService:Create(newPopUp.ImageLabel, TweenInfo, {ImageTransparency = 1})
local TextTween = TweenService:Create(newPopUp.TextLabel, TweenInfo, {TextTransparency = 1})
local TextStrokeTween = TweenService:Create(newPopUp.TextLabel.UIStroke, TweenInfo, {Transparency = 1})``` do I have to make a different tween for every of this or is this possible to do in a better way?
what about bones
yeah
maybe put in table
they cause fps drops right
bones?
well what type of game you making
maybe its ur computer?
so having a buncha rigs dont matter?
u could do a canvasgroup but i dont rly like them
no bro its not my pc
whats that?
never heard of it
like a frame, but changing its property "CanvasTransparency" or "GroupTransparency" (i dont remember the name), will change all descendants' transparencies
oh that would be really helpful cuz I literally used frame to keep image and text in 1 place
thanks
yeah
np
i also made an open sourced module for this like a few yrs ago if u dont wanna use canvas groups
local tween
function(object, goal)
tween = TweenService:Create(object, TweenInfo, goal)
--tween:Play()
end
nvm i didnt even read ur question right
local RS = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local event = RS:FindFirstChild("PopGui")
local PopUp = RS.PopUp
local Text = PopUp.TextLabel
local plr = game.Players.LocalPlayer
local DataFile = plr:WaitForChild("DataFile")
local Jump = DataFile:WaitForChild("Jump")
local Wins = DataFile:WaitForChild("Wins")
local TweenInfo = TweenInfo.new(
1.5,
Enum.EasingStyle.Quart,
Enum.EasingDirection.Out
)
Jump.Changed:Connect(function()
local newPopUp = PopUp:Clone()
newPopUp.Parent = script.Parent
newPopUp.Position = UDim2.new(math.random(25, 75) / 100, 0, math.random(45, 75) / 100, 0)
local targetPosition = newPopUp.Position - UDim2.new(0, 0, 0, 100)
local tween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition, GroupTransparency = 1})
tween:Play()
tween.Completed:Wait()
newPopUp:Destroy()
end)``` is this code good? is there anything I can improve
dont use changed
what should I use?
GetPropertyChangedSignal("Value")
yeah but what else would change
.Changed can be anything
yeah
yeah but what else could change
so if u have other attributes or sum
I dont
anyways its not good practice
alr alr
Jump:GetPropertyChangedSignal("Value").Changed:Connect(function()``` so this right?
yep
k
why at the end?
XD
it saves some performance i can send a link if u wanna read it
is jump and wins value bases? personally id just use attributes under DataFile
whys that so funny 😭
its leaderstats value
almost
oh huh
ok
with int values
um
my main leaderstats are string for this purpose
alr i mean up to you
oh wait when I do popups
should I use remote event for it
or how do I trigger it
cuz if I set value to 0 it will also count as value change
but then ofc I dont want a popup
I want it when increasing value
should I make a lastvalue value to check if its increased or decreased or how do I approach this?
just create a variable for this
yeah that was the first thing I thought about
Im just learning writing the most optimal code so I ask a lot
Jump:GetPropertyChangedSignal("Value"):Connect(function()
if lastValue < Jump.Value then
lastValue = Jump.Value
return
end
local newPopUp = PopUp:Clone()
newPopUp.Position = UDim2.new(math.random(25, 75) / 100, 0, math.random(45, 75) / 100, 0)
newPopUp.Parent = script.Parent
local targetPosition = newPopUp.Position - UDim2.new(0, 0, 0, 100)
local tween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition, GroupTransparency = 1})
tween:Play()
tween.Completed:Wait()
newPopUp:Destroy()
end)``` @ripe plume so this right?
why only change the last value if that is true?
shouldnt you always change it anyway? but at the end
oh yeah wrong sign mb
if lastValue > Jump.Value then
lastValue = Jump.Value
return
end```
now?
not rly
whats still wrong?
here:
u didnt send anything
i was too lazy to sry im playing a game lmao
but make sure the lastValue variable is always changed
ohh yeah forgot
Jump:GetPropertyChangedSignal("Value"):Connect(function()
if lastValue > Jump.Value then
lastValue = Jump.Value
return
end
lastValue = Jump.Value
local newPopUp = PopUp:Clone()
newPopUp.Position = UDim2.new(math.random(25, 75) / 100, 0, math.random(45, 75) / 100, 0)
newPopUp.Parent = script.Parent
local targetPosition = newPopUp.Position - UDim2.new(0, 0, 0, 100)
local tween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition, GroupTransparency = 1})
tween:Play()
tween.Completed:Wait()
newPopUp:Destroy()
end)``` now?
oh wait I can improve it
yup
Jump:GetPropertyChangedSignal("Value"):Connect(function()
lastValue = Jump.Value
if lastValue > Jump.Value then return end
local newPopUp = PopUp:Clone()
newPopUp.Position = UDim2.new(math.random(25, 75) / 100, 0, math.random(45, 75) / 100, 0)
newPopUp.Parent = script.Parent
local targetPosition = newPopUp.Position - UDim2.new(0, 0, 0, 100)
local tween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition, GroupTransparency = 1})
tween:Play()
tween.Completed:Wait()
newPopUp:Destroy()
end)```
now?
nah dw
Jump:GetPropertyChangedSignal("Value"):Connect(function()
if lastValue > Jump.Value then
lastValue = Jump.Value
return
end
lastValue = Jump.Value
local newPopUp = PopUp:Clone()
newPopUp.Position = UDim2.new(math.random(25, 75) / 100, 0, math.random(45, 75) / 100, 0)
newPopUp.Parent = script.Parent
local targetPosition = newPopUp.Position - UDim2.new(0, 0, 0, 100)
local tween = TweenService:Create(newPopUp, TweenInfo, {Position = targetPosition, GroupTransparency = 1})
tween:Play()
tween.Completed:Wait()
newPopUp:Destroy()
end)```
so this is the best way?
maybe not the best way but its alr tho
what could be improved?
btw sorry for sending so much, I tend to make the most stupid mistakes that exist lol
noo dw!
hey you wanna watch my tutorials so i can get some ad money? its roblox studio tutorials 👉 👈
want to ask
how can i make an item where you can place a structure like in 99 nights in the forest?
it's a one time use and does not require a placement system, i also need to know how can i make an area unbuildable.
sorry Ive never worked with placing anything
im a beginner cuz even tho I code since 3 years I do it for like 2 weeks and return to it after 2months lol
ah alr
ahh i see
i've been working on a RPG game
where there would be some special aspects like building, cutscenes, minigames etc
nvm i just found out, thanks for trying to help tho
could anyone give me feedback?
Any femboy scripters hmu
Personal preference but members should not be defined by string indexes
Why not just Combat.Attacks
Combat.Attacks.Sword
is that all or
Looking for scripters for my studio.dms if interested
Did you intend to duplicate the name of the attack? ["Sword"] has a member Name which is also Sword
I lowky revamped the whole thing
Would you like to see the new ver or
Sure
I think I may have to restart everything though
why?
- Its disorganised I think
- I asked ai to help me debug some stuff and I don't want that in the game
- Its just really 🍑
What makes it so 🍑
yo can someone script equiping my weapon in my game
because i think i may be able to do better
3 people have mentioned how the parameters are more that 4 or said why do i need an entire new function for the m1
Give me a sec I am reading it
k
how do i code a stat system?
import { useState } from 'react';
import { shuffle } from '../shuffle';
let values = ['🌭','🐟','😿','🐴','🥰','🐈','🌭','🐟','😿','🐴','🥰','🐈'];
let shuffledArray = shuffle(values);
export function Grid() {
const [canFlip, setCanFlip] = useState(true);
const [amountFlipped, setAmountFlipped] = useState(0);
const [cardsFlipped, setCardsFlipped] = useState([]);
let cards = [];
for (let i = 0; i < 12; i++) {
cards.push(
<Card key={i} canFlipArray={[canFlip, setCanFlip]} amountFlippedArray={[amountFlipped, setAmountFlipped]} cardsFlippedArray={[cardsFlipped, setCardsFlipped]} value={shuffledArray[i]}/>
);
}
return <div className="grid">{cards}</div>;
}
function Card({ canFlipArray, amountFlippedArray, cardsFlippedArray, value }) {
const [canFlip, setCanFlip] = canFlipArray;
const [amountFlipped, setAmountFlipped] = amountFlippedArray;
const [cardsFlipped, setCardsFlipped] = cardsFlippedArray;
let flip = (e) => {
if (!canFlip || e.target.classList.contains('flipped')) return;
e.target.classList.add('flipped');
setTimeout(() => {
e.target.textContent = value;
}, 200);
setCardsFlipped([...cardsFlipped, { el: e.target, value }]);
setAmountFlipped(amountFlipped + 1);
if (amountFlipped >= 1) {
setCanFlip(false);
setTimeout(() => {
const [first, second] = [...cardsFlipped, { el: e.target, value }];
if (first.value === second.value) {
setCardsFlipped([]);
} else {
first.el.textContent = '';
second.el.textContent = '';
first.el.classList.remove('flipped');
second.el.classList.remove('flipped');
setCardsFlipped([]);
}
setCanFlip(true);
setAmountFlipped(0);
}, 1000);
}
};
return <div className="card" onClick={flip}></div>;
}
thoughts on this React code?
did u just write that now
?
idk
oh
How does networking work here? Which scripts are on the server/client?
only the weaponHandler
its on the client i assume?
no server.
o ok
wait this one might be more readable
import { useState } from 'react';
import { shuffle } from '../shuffle';
let values = [
'🌭',
'🐟',
'😿',
'🐴',
'🥰',
'🐈',
'🌭',
'🐟',
'😿',
'🐴',
'🥰',
'🐈',
];
let shuffledArray = shuffle(values);
export function Grid() {
const [canFlip, setCanFlip] = useState(true);
const [amountFlipped, setAmountFlipped] = useState(0);
const [cardsFlipped, setCardsFlipped] = useState([]);
let cards = [];
for (let i = 0; i < 12; i++) {
cards.push(
<Card
key={i}
canFlipArray={[canFlip, setCanFlip]}
amountFlippedArray={[amountFlipped, setAmountFlipped]}
cardsFlippedArray={[cardsFlipped, setCardsFlipped]}
value={shuffledArray[i]}
/>
);
}
return <div className="grid">{cards}</div>;
}
function Card({ canFlipArray, amountFlippedArray, cardsFlippedArray, value }) {
const [canFlip, setCanFlip] = canFlipArray;
const [amountFlipped, setAmountFlipped] = amountFlippedArray;
const [cardsFlipped, setCardsFlipped] = cardsFlippedArray;
let flip = (e) => {
if (!canFlip || e.target.classList.contains('flipped')) return;
e.target.classList.add('flipped');
setTimeout(() => {
e.target.textContent = value;
}, 200);
setCardsFlipped([...cardsFlipped, { el: e.target, value }]);
setAmountFlipped(amountFlipped + 1);
if (amountFlipped >= 1) {
setCanFlip(false);
setTimeout(() => {
const [first, second] = [...cardsFlipped, { el: e.target, value }];
if (first.value === second.value) {
setCardsFlipped([]);
} else {
first.el.textContent = '';
second.el.textContent = '';
first.el.classList.remove('flipped');
second.el.classList.remove('flipped');
setCardsFlipped([]);
}
setCanFlip(true);
setAmountFlipped(0);
}, 1000);
}
};
return <div className="card" onClick={flip}></div>;
}
u send a remote event to the server after checking if the tool is a weapon
I think you could improve how you define individual weapons
Make a class for them
Also the part you make in hitbox can probably be preexisting in ReplicatedStorage or something and just cloned
Ahh okay
like how?
I still might restart -the hitbox due to the fact that i want to simplify it
or yk what i may not restart but tweak it
All of them have common values eg. Name, Damage, Knockback, M1, Ability1, so you could define a class that stores that data and create methods to use it
For example a few weeks ago I made a module script that is a wrapper for marketplace service. Since you can't get gamepass IDs or dev product IDs programmatically, each product must be defined in code somewhere. So I made a class that makes it incredibly easy to do:
PurchaseHandler.new(
"SomeProduct", -- Name of the product/handler
12345, -- ID of the product/gamepass this handler is for
"GAMEPASS", -- The type of product this handler is for
function(receiptInfo, player) -- A function to be called if the purchase is completed
end
)
ohhh
You could do something similar:
Weapon.new(
"WeaponName",
16, -- damage
4, -- knockback
function(plr,hrp,hum)
end,
function(plr)
end
)
Okay so I should do that and then put the 1 funcs inside?
bc im going to make multiple weapons
Your implementation is up to you, but yeah it'd make it much easier
Also it seems you could entirely eliminate the M1 function by using a method
local function IsShiftDown()
return UserInputService:IsKeyDown(Enum.KeyCode.LeftShift)
end
local function EnableControls()
print("Controls Status: Enabled")
local UIS = Enum.UserInputState
-- Rotation is 0-indexed
ContextActionService:BindAction("Rotate", function(_ActionName_, InputState, _InputObject_)
if InputState ~= UIS.Begin then return end
if IsShiftDown() then
Rotation = (Rotation <= 0) and 5 or Rotation-1
else
Rotation = (Rotation >= 5) and 0 or Rotation+1
end
print("Rotation-num:",Rotation,"Rotation-vector:",RotationTable[Rotation])
end, false, Enum.KeyCode.R)
-- ColorID is 0-indexed
ContextActionService:BindAction("ChangeColor", function(_ActionName_, InputState, _InputObject_)
if InputState ~= UIS.Begin then return end
print("C pressed")
if IsShiftDown() then
print("Shift is down")
ColorId = (ColorId <= 0) and ColorTable_MaxKey or ColorId-1
else
print("Shift is not down")
ColorId = (ColorId >= ColorTable_MaxKey) and 0 or ColorId+1
end
print("ColorId-num:",ColorId,"ColorId-color3:",ColorTable[ColorId])
end, false, Enum.KeyCode.C)
end
Why Shift+R is correct but Shift+C does not?
You can define methods which can access member variables in a class:
local Weapon = {}
Weapon.__index = Weapon
function Weapon.new(name, dmg, knockback, offset, size, ability)
local self = setmetatable({}, Weapon)
self.Name = name
self.dmg = dmg
-- ...
self.ability = ability
return self
end
-- You can access the parameters previously passed into new by referencing self. You just need to provide the function with the only network-derrived variable, player
function Weapon:M1(plr)
local userId = plr.UserId
playerStates[userId] = playerStates[userId] or { combo = 1, lastPunch = 0 }
local state = playerStates[userId]
-- ...
local currentDamage = math.min(self.dmg + (state.combo - 1) * 5, maxDamage)
HitboxModule.CreateHitbox(plr, self.hrp, currentDamage, self.kb, self.offset, self.size, self.name, playerStates)
end
This disturbs me
if mouse exists then mouse.Target implicitly exists. If mouse.target exists it implicitly has a parent and is probably a basepart
game["Run Service"] What were you cooking here bro. use game:GetService("RunService")
someone know what is wrong here?
lol
Im like that 😈
giving someone 35 robux (we can price negotiate to 50 robux) for a script. my game is where players buy bricks to make the game lag and the bricks go in a hole. the script i want is a script where stuff in the hole disappears every 10 minutes
bro, u is making a cash grab game that u saw on a video right?
its on a video?
if it is i finna change the idea
yes it is
wait lemme search up a game that uses the idea
in a video about a guy who made 2mil robux with a game about laggy bricks
bet
yeah i cant find a game with it
alr dm me
i can send links here?
just send it in my dms
Is React Lua any different than Lua? Is it harder or more complex?
congratluate me cuz im a narcissist
Nice progress!
haha yeah its whatever, my best scripts yet
yo chat
what do you need scripted?
Use the marketplace for hiring developers
can i have a localscript in startercharacter do something when it is being destroyed using trove?
😭 😭 😭 😭 😭 😭 😭 😭 😭 😭
your punishment for attempting arithmetic on nil
hlep
anyone able to help me with CFraming parts?
am trying to learn how to code, does anyone recommend me a tutorial to watch?
No matter what i read or watch i feel like i am not improving, Does anyone have any advice for a new scripter like me? Would be much appreciated!
my tutorials on yt 😎
Whats your yt
Put it in StarterCharacter or StarterPack
It would be better
Emilki
thx man :)
i recommend the "how to script on roblox 1" and episode 2 as well first
then the video about arrays
I have tried watching multiple tutorials but I can never understand how to put all the stuff together
I see, well it takes time to understand dw about it
I'm looking for someone who can write code for my game. I'll give you 2500 dollars if someone can finish the game from beginning to end. If there's someone who can do it, please write me. (GOOGLE Translate i little know english)
But like after I finish the tutorials what do I do
what game? and what is your native language
i recommend trying to think of something basic to make with what you've learned so far
ah
like a basic button tycoon or?
i know it
yes
so you want something like that?
I guess you won't help either
okay what are the differences
How many years have you been coding?
dm
like 5-6
is it possible to wait until an instance and all its children are fully loaded
You start practicing
Anyone know a gun system that works great on PC, Console, And Mobile..?
Make one
yo so im a builder right and im tryna make this little candle's lighting part pretty much scale up like 0.1 every second then once it reaches smth it deletes and creates a copy of the original instance n then it also gets the tag of every single part with the tag lighting and then activates the function. does this need to be a local script or can it be serverside?
do it locally
buildapc
@lucid latch dms
Doing small random work for low amounts of bobux
looks good bro
i started learning scripting yesterday
when i see things like this its like "how i am supposed to do that"
hello gang
anyone have tips on how to build a portfolio, I just started scripting n stuff
👋🏼
start trying to help some people and stuff and working on people stuff and just making stuff and getting out more to build it up
can you explain a little more in detail pls
yes yes!
Quest System (daily quests, rewards, tracker UI)
Inventory System (drag & drop, use/equip)
Combat System (melee or ranged with effects + animations)
Tycoon Core (income generation, upgrades, progress saves)
BUILDING IDEAS
A stylized lobby
Showcase build (fantasy temple, sci-fi base, city block)
UGC style maps (small arenas or hangouts)
Mini games (UI, scripting, build allinone)
Simulators or Towers (small system but polished)
UI test game (scrolling menus, shop, settings)
Include only your best work. Keep it short, clean, and easy to browse.
Game projects (finished or WIPs)
Scripts (complex systems or useful tools)
Builds (maps, assets, UIs)
GFX/UI designs (if you do visuals)
Each item should have
A short description (what it is + your role)
1–3 screenshots or videos
A link to the game or YouTube/test place
About Me
What you do (Scripter, Builder, UI Designer, etc.)
Years of experience
Tools you use (Roblox Studio, Blender, Photoshop, etc.)
What you’re looking for (commissions, collabs, jobs)
Contact Info
Discord tag
Portfolio site (optional: Carrd, Notion, GitHub, etc.)
Roblox profile
is there a scripter i can hire to help me with a game?
I know the very basics, since im learning I can try to help you free of charge
yooooo tysm
?
the thing you typed? whats that supposed to be
your help
ways to build it and things and ideas
by reading and copying idk
is it that unclear
bro u are my hero, i will use it in a future
i have 3 years of experience in modeling and texturing
yesterday i started scripting, i like it but u have to read a lot of docs and things like that
ryne
Okay ive seen this in a couple games now.
Is it better to have a single remote event called "Replication" and then just connect events in a table, see if it exists and if not error?
It seems Ultimate Battlgrounds, Forsaken and Project Afternight does this
like a singe remove event for the entire game?
Yeah, I can't really explain it but it seems like they make a script where other scripts attach and disconnect functions as needed,
can me have robuck?
idk too me if its made right I dont think it would be a bad thing
me robuck?
Im not smart in how data is handled going from server to client, but theoretically it wouldnt matter if it was the same event? It's only creating that one threa
there might be some networking issues tho
I'ma read the API quickly
99% sure the script dynamically manages networking objects for each module that calls into it
many frameworks do that and its common to avoid static networking objects
what are static netwokring objects?
So is it a bad idea to do the same thing? Just one remote event, the first parameter being a function name, and then have a script be able to connect a table of functions? So when replicator is called it plays the function in the name of the table?
objects you create before runtime that are "static" (unchanging) eg. a remote event in ReplicatedStorage
That seems incredibly flimsy to map string indices to a table of functions
And no, you should not just use one remote event
That's what I thought but I wanted some others opinions
How so?
From what I've seen dictionaries in Luau are more peformant due to hashmaps
Or something idk
You have to make sure the string youre passing to your remote event is actually mapped to something, you don't get any intellisense on that table etc
Why even make a table just let server scripts create endpoints
I mean that's just a simple check to see if its nil, if not throw an error
What do you mean by this?
Write some function that dynamically creates networking objects, call it from the server to create those objects, and then replicate and attach to them on the client
That way you don't have to maintain a big table of functions
OHHHH I get what your saying
It is just bad design
I believe singular networking objects also have a throughput cap and exceeding it will begin queuing requests, so if you use a single one you'll likely run into queued requests
Yeah that's a thing I was reading
Thank you!
"How did you know I use roblox-ts?"
💔it’s always a problem
Bro what are you making 😭
Bringing bak my hangout game
Dat I closed for a year with 730k visits 
Nobody knows how to fix this issue?💔
what is the issue
hi
When I say !headless and when the head disappears the overhead gui disappears
Hello
Which I’m not trying to make happen
It's probably just deleting the head which the gui is parented to 😂
https://www.youtube.com/watch?v=NBA2L25WDcw Would it be difficult to script the swords spinning and then going upto the sky?
LostArk Bossmonster Lauriel
This is an effect created by reinterpreting Lauriel from Lost Ark.
Unreal VFX Portfolio
Phone : 010-9337-8253
E-Mail : wjdwhddn345@naver.com
i am 1 but away from polishing my gamke
I’m saying like it’s not supposed to delete the overhead gui
publishing
The level on top of my head it’s not supposed to disappear when I say !headless
@wary bronze how do i polish my game im new to scripting
Polish? 
yeah cause its probably deleting the head that the gui is parented to
or adorneed to
i am almost done
oops
wait-
wrong one
Better then me
does anyone wanna script for my game im making "steal a fedora" its a cash grab that will make us alot of money
no
Us? there is no us
thx for the idea
it's all maths so it depends on your math skills or the tools you use to help it
i don't think it's so complicated
do guys make geme?
the guy also makes them stretch so it depends on ur asset too (just 1 meshpart is ideal)
roub
it no load
wouldn't be so bad if i just used a module no?
roub
for 4 yours ive been thinking about game dieas and stuff and made a story magic fighting game with tons of character development mapped out
but me have problem 🙁
me no buckroe to hire people 🙁
u halp?
yas?
i mean you have to make your own module for something like that
it no loading
do it 🔥
some1 playing bitburnere here?
with what
ok
for 4 years ive been coming up with ideas for a story magic figbhting game
with tons of characters development
but the thing is
i have a big idea for it
and i need a whole dev team
and idk where to look
stop spamming
how to pay them cuz im broke asl and no one takes %
ok sorry
do i start with making a game to get funds then work on the project?
also how do i even get a dev team
just play bitburner
what
its a game on steam
is that a gambling site?
.
make yoself a script that automates everything 4 u so u dont have to do anything
its javascript
idk how to make that script
also i want a dev team
not a robot to make the game
also im not trusting ts
ik
u said it
@reef nymph
hes off
nik can u help me
also i wouldent know how to set it up
what would bit burner do?
what does it even do
its about hacking servers gaining money and xp and win the game
rebirth & unlock nnew features
i dont wanna play a game bruh
welp i do
you won't build a whole dev team out of nothing
you can only do that with money or with development skills you have yourself
i have no money
like a good scripter can gather other type of devs and lead the project for example
Start learning to code
then learn development that's your only way to gather people and make a game
be a scripter yeah
im a ui maker
Diversify
fact actually
Try learning vfx or animation
show some
i have nothing on me rn
hm
looking for a ui designer thats why lol
Thats wild
wait dm me
you help me i help you lol
no just write down my name dm me when yo got pictures
hush up vro
sometimes ttts u gotta say
some1 playing bitburner here? what am i doing wrong i made myself a whole ass project that uses every server to hack the most efficient one and im barely making cash its taking forever to weaken that shit
instead of thinking of a game idea for 4 years you could have been building it
?
if you are that passionate about it
i learned scripting a few days ago vro
why would anyone work for your idea (which probably isnt even good or unique) for free
bro what the fuck lol
ik the basics
is that even related to roblox coding help 
you cant make a game with the basics
then make ur awesome amazing game
ik
make it while learning
no not really
still seeking help
no im confused what ur talkn about
best way to learn properly is to make a project that way you learn every aspect of a game aka stuff you wouldn't rly try to learn in an empty workspace
and stuff
what do u need help with
im following a tutorial that someone told me to
a game doesnt need crazy models to be good, make sloppy blocky models like grow a garden etc for example it's enough to learn development
or find a beginner dev who learns modeling the way you're learning your stuff and team together
we dont need more grow a gardens
having blocky models doesnt make ur game a new grow a garden fortuntaely 
roblox used to be full of blocky games actually it's mostly something you do if you don't know how to model etc
idk animations tho is that fine?
roblox used to be doodoo water
same with anims you don't need insane animations to make a game
u right
how do u get ppl learning and playing ur game?
wdym
there's various ways for that but that's more important to focus on AFTER making a game
alr
tiktok / ads / youtubers etc
buddy if u dont have the talent get friends to help make a game for free
development is not talent
i have a channel with 109 subs i can record it there
Any scripters interested in joining me for Jandels gamejam that starts tomorrow? I currently have 3 people on my team including me
anyone can learn any aspect of development
flobbert
it's roblox it's super easy to reach
u can learn how to draw stick figures and call it art
i can also make the ui
Nah i need someone experienced sorry
wild
And I have a ui person
alr time to start learning
i can send u learning info
I am a scripter/builder but having another scripter would help immensely with time so if anyone here has alot of experience and is interested lmk
hiring or project ur doing in free time
im interested
20k to first place 10k to 2nd and 5k to 3rd
After 2 years of scripting you’ll be pretty goated, try to focus on math in school and use khan academy to learn math online from basic arithmetic to integrated math 1, 2, and 3 and calculus plus physics.
tbh with the amount of tools for it idk if you even gotta learn math that much anymore to have great results from your scripting
depends very much on the type of scripter u wanna be tho yeah
i actually bad at math
i use chatgpt for math mostly, its rare to see me doing maths
chatgpt is dog shit at math
besides maybe basic hs algebra
idk didnt encounter bad stuff yet tbh - also did 90% of my backend with chatgpt tbh lol
i doubt there's much math logics you'd need in a roblox game that a 2025 GPT ai can't do tbh loll
but if its simple stuff its better to learn urself eitherway
o yea nah
i have no clue how good chatgpt is at it in general
Is there any requirements?
no
oh thats nice
yo bro roblox not having matrix and tensor libraries is genuinely so troll 🙏
like i genuinely cant solve any physics problem, making anything realistic is way more difficult compared to other game engines
you cant even find the angular momentum of a rigid body bro ts is so cooked
Yea the character controller could be better (more customizable or easier to work with)
Like the motor6ds on the roblox r6 character are reversed from the direction they should be for no reason
is that the adjusted tool grip
yes
are you sure?
Make it brainrot fedora book now ur actually making money twin❤️🩹✌️
can sum1 help, i have no idea what to do
what r some good plugins for scripting?
just use vscode
what does it do
k
The benefits of using external editors over the Roblox Studio editor:
-
Snippets (built-in) - type a few characters and generate commonly-used concepts or script templates
-
Symbol renaming (built-in) - easily rename a variable in a specific block/scope/everywhere
-
Workspaces (mostly built-in) - switch between games as easily as you would in studio, just double-click a workspace file
-
Extensions (support built-in) - custom file icons, AI-enhanced autocomplete, rename multiple files at once (super easy with above)
-
Rojo - sync changes from your folder to your Roblox place
-
Option to use TypeScript as a language alternative (only notable language alternative as of 22nd July 2022)
-
Use text files/extensions for taking notes/planning instead of multi-line comments stuffed in modules
-
External tooling - Moonwave (documentation generator), Wally/Foreman (Roblox package manager), etc.
-
Transparent windows - for appearance/utility's sake
but why shoulsnt i use studio an vscode
thanks
but aren’t all these features in studio?
Thus just doesn’t seem very useful
They add like one or two meh features
the typescript one's cool tho
i prefer rblx studio over rojo
whats type script 💀💀💀
basically it tells you what specific instance is
that can be done in roblox too
e.g
local part = Instance.new("Part") :: Part
It helps when theres a bunch of instances to keep track of, otherwise its logical and unnecessary in my opinion
so u dont have to go through the code to see what it does?
kind of
I'd say it can be classified as one? However, I am not really sure. Never really used or paid attention to it. But yeah, similar to JS one.
I've been scripting for like 3 years and never bothered to learn oop 💔
same bro same
i jus want to make a game gotta learn all this 😭🙏
I rather use functions any day❤️🩹✌️
same
https://roblox.github.io/lua-style-guide/
metatables section does a good job at explaining oop.. its more of an overview than indepth but shows enough to learn it
Roblox oop isn’t really oop
sunk cost fallacy 🔥
Oop is such a simple concept
Makes u Able to auto complete thing on ur object
Like how :destroy gets auto filled if u type it on a part
still oop, makes an "object" and assigns properties to it, hence self
Compare it to actual oop
You’ll know what I mean
No, I dont, because its still OOP. It's assigns a property to an object, thats object oriented programming. Same concept with classes in Java.
`local function breakTree(model)
CollectionService:RemoveTag(model, "Destructible")
local parts = table.create(16) -- preallocate a small table to reduce GC
for _, part in ipairs(model:GetDescendants()) do
if part:IsA("BasePart") then
parts[#parts + 1] = part
end
end
task.defer(function()
for i = 1, #parts do
parts[i].CanCollide = false
end
end)
task.defer(function()
for i = 1, #parts do
local part = parts[i]
local pos = part.Position
local tween = TweenService:Create(part, TWEEN_INFO, {
Position = pos - DROP_VECTOR
})
tween:Play()
end
end)
end`
is this good chat? i want it to be very fast
The object in this case is a table, often in a module script. The table works the same as a class in concept

table.create(16)?
Lol?
its better
you can inherit other tables btw
i guess but he meant its just emulating oop
No, its OOP. Not emulating, it is.
oop is not native on roblox luau
you have to emulate it via metatables and metamethods
no?
Tables are used to do OOP. In memory, they're the same exact thing as classes in Java.
I can extend a class, I can inherit a table. Putting a table in a table does not clone the table. If I use table.clone, then modify a table thats inside it, itll change on both tables.
To clone it, you have to use recursion https://create.roblox.com/docs/luau/tables#deep-clones
I make a table and give it properties, same as making a class and giving it properties.
If I put a table in a table, its the same as a class in a class. It references the object.
This is object oriented programming.
OOP can't be native because its not a language feature, its a style of programming.
I can do the same thing in rust by deep nesting arrays.
Its actual oop
Yes it is
Is real oop
a programming paradigm yes
it can be natively supported by C# for example
yes it essentially does the same thing in memory
which means its not natively supported
you are right
Natively supported in this context means supported by the language. If a languages "implements OOP" its natively supported.
OOP can be done by nesting arrays, as i mentioned, which would still mean its natively supported.
Metatables are a better supported way of doing OOP.
It comes shipped with Luau... which means its natively supported.
Where in the world did "its not natively supported" even come from?
Luau is a fork of Lua 5.1 (iirc) maintained by Roblox. It's not Lua, its Luau, its own language
native in this context means it is built in
so if it is native (e.g. C#) you do not need a workaround implementation
the compiler also enforces oop features as opposed to in luau where you have to manually build them
take public, private, protected for example. these keywords are built in for C# but we have to manually implement them in luau
Who has a good game that needs a investor
what is the best way to learn scripting
practice
another tiktok scripter classic
taking really bad scripted free models from toolbox and making them clean with few adjustments to code or just making it work the way u want to, this helped me the most out of all the tutorials and AI and ofher methods
are metatables not built in to luau?
also in luau private and public are local function and function. Use local function for what you dont want viewable outside the module.
engagement bait
yes, but were talking about oop features, not metatables. metatables are USED to simulate oop
u also take ideas of how ppl script shi for different things cus from my experience, creativity is REALLY important to make good script
Hey can someone help me, can a exploiter access a module in serverscriptservice? It seems like they can call a function inside it, the module only connected with marketplace handler, IMG3 example function
what ab protected? u have to implement it manually no
exploiters dont have access to anythijg in serverside
Not simulate, it IS OOP. You're acting like OOP is a language feature, its a design paradigm
Ah they call the functions tho 😭 Thanks
that still doesnt mean oop is native to luau
the concept of package hierarchy doesn't exist in Luau, theres no need for protected.
You could fake it using multiple tables but I cant think of a reason to.
and thats why luau doesnt have native support for oop
i dont think any exploiter has ever accessed any deeper than workspace and starterplayer
Its not. Its not native to anything. Its a design paradigm. Compilers may try to enforce it.
Package hierarchy is irrelevant to OOP. This is an incredibly stupid point.
hahh okay
ur really nitpicking here
these are the core principles of OOP. These are all doable in Luau. Not anywhere does it say package hierarchy
how about luau doesnt have any native constructs that enforces oop
for example class or interface
ill redefine native as having native constructs that enforces the oop principles
Doesn't mean its being simulated or emulated.
Take this for example. I can force an artist to draw in a certain art style for a commission, but are they simulating it? No, they're drawing it.
Same concept
okay, but its not “native” to them
they have to take more time to draw it or cant draw it perfectly in this example
You cant redefine terms when you want, thats not how it works. Native means supported, at the base level.
okay i’ll admit oop is not native to any language
These are OOP concepts. They can all be done in Luau. Again, going back to the original point, its not "simulating" OOP.
Are we still talking about this 1 hour later
LOL
I was gone for like idk 45-50 mins
it is simulating oop
in the sense that in e.g. c#, the compiler enforces oop principles
Its Object Oriented Programming.
hm
yes
ur right actually
my brain is just fried
its a programming paradigm not a lang feature
Yall wth was this discussion
Guys , how do you rotate a part 45 degrees to the left
Hewwo guys, someone knows a lot abt welding?
I need some feedback/help im stuck on smth for always 10 hours 🔥
what u want
i have this problem called i want do stable weld of 2 models in same folder without fusion them into same model + they have humanoid properties so its giving me a headche
Ktoś z Polski jest tu?/ is here people from Poland?
u have to release the parts inside workspace, weld them, then re-enter them inside their models
Uh yea but its on scripting.
Because its an thing wo player will ride by inputs
And yes i tried disabling CanCollide, massless and PlatformStand
then idk, what i do is make a seperate version of ur car model whatever then clone it, u can try to weld them and search for disable propriety in the weld
I think a visual example will show how fu$$ed i am
it aint loading
local CheckpointsFolder = game.Workspace.Checkpoints
Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local Stage = Instance.new("IntValue")
Stage.Name = "Stage"
Stage.Parent = leaderstats
end)
for _, v in pairs(CheckpointsFolder:GetChildren()) do
if not v:IsA("BasePart") then
v.Touched:Connect(function(Part)
local player = Player:GetPlayerFromCharacter(Part.Parent)
local stageValue = player.leaderstats.Stage
if player and stageValue.Value < tonumber(v.Name) then
stageValue.value = V.Name
end
end)
end
end
ServerScriptService.CheckPoint Script:4: attempt to index nil with 'PlayerAdded' - Server - CheckPoint Script:4
This keeps popping up can anybody help me I just started scripting about a hour ago
Is there a free pathfinding module I can use, instead of roblox bad one?
