#code-discussion
1 messages · Page 34 of 1
Combat
Been starting that it seems promising so far
I mean the main issue with the current combat is like bugs and it feels clunky
yeah...
here's my combat system smooth?
i had that issue a lot of times
new one feels fluid it just need to get the characters done
is cool
also this one is handled all on the server
cause tsb handles they'res all on the server
Random batman
(except for the debris)
i have 0 knowledge when it comes to coding. so i js think of a random thing of what i want to code then look up how to do it? or wouldnt at least a tutorial on the basics help as well
This hp bar is prob changing
peak
fire bro
No
Tis just a rehaul on the combat cuz the current is kind of ass
like clunky and buggy fr
it alr a finished game thi
anything i touch becomes gold i can help u big bro
Tho*
This is so old now
i still hate that we needed to change the name cuz some other game took it after we existed for a while and got 10k players
Legal fees not worth it
im still shooting
Dont need 2 programmer
Progress alr good for the like 1-2 day of work i be doing so far on it
There isn’t really much to do rn anyways
Its more of move concepts and porting over things which is ez
porting over means re working
move concept is a diff thing tho
optimizing?
Not really
oh
mmmmmmmmmm
I think I should rework melee to be not auto swing
mobile ram usage is so weird on roblox in general
it make sense tho
Well its not mobile its like all device
yikes are u having memory leaks
i have dreams of about trove
no
im a optimize demon
I am talking abt how like
If i use mobile emulator and cap the ram at 2gb
Ram usage in this test place is like 600-700mb or smth but if u have more ram like if i use my iphone cuz it has much more ram it uses more cuz it supports it
its just roblox itself
can u tell me some tips pls
Not the game
and this is bad?
Ram usuage p good i just find it weird how its done but idk how else they could do it lol
no
Im just saying it
it like a interesting fact that all
A friend said this could be a animation code issue anyone have a Idea?
Using Humanoid:GetState() would be better than velocity but other then that I don't really know, or it could also be the StarterCharacter itself.
why does pathfinding service doing this
btw the door has a pathfindingmodifier that has passthrough enabled
just add Animate and humanoid to the starter character 😐
thats gonna fix the direction of where it moves to be normal?
i alr did that from the start that dosnt fix the animations velocity
because youre changing the velocity in the script skid
all you need is proper named parts, a humanoid and an animate script
that code up there is the animate script all my parts are named and have a motor6 connections and are all linked
unless ur meaning somthing else
😭
every character has this script
im not getting what ur saying
are you fucking slow
every character has a script made by roblox thats called Animate
no ur just fucking dog shit at explaining and listening
if u have been paying attention and not having the ego bigger than ur brain you would understand how stupid you sound rn
if you had 2 weeks experience in studio you would have understood
it dosnt come with a script u fucking nugget Ive stated multiple times its not a roblox model it dosnt come with the script. READ. I made the model the meshes the bones the code. ur absolutely 0 help muting filth and moving on
mabye try reading
not complicated
goodluck then
muted
💀
if you used your brain
enjoy yapping to urslef
If anyone who can actually read english and understand basic english wants to help feel free
with what
I have a custom model
made a custom animation script
and its just got some funky movment
all animations work just has some weird velocity or somthing i have a video up here
nvm it was just the hip height had nothing to do with code or animation it was just too low
Dead cars :0
Dead games
Nah I mean it looks great
Just couldve been a little more original
Considering it's copied beyond game concept
well it’s a template so it’s suppose to copy a games current framework
drag sell and weld 🫡
Yeah but this also model and look
There's so many dead rails games
very nice. just started developing hope to learn this soon
Can someone hire me please I am talented scripter I just need a small commison for like 500+ robux cuz my friends birthday Tommorow I can give id card for proof too
Can somone help me evertime i start the game these disapear and idk how to fix it
Before test run:
after test run:
where?
Next to the stop button
No worries, you can change to the server view mid-test
wait
no thats not it i mean like without the spawns when im in game i can tp to them when i click arena
look
yeah
They could be falling off the map as the game is loading
nah i made sure they anchored
To just disappear is impossible, do you have some code that might be deleting them?
oh wait
i forgot to un merge arena spawns from obby
that might be it
imma try and seperate em
see what it does
Is it ok to like add a value of my currency on client side?
Never? Sounds like you know the answer...
ok
What is the code
lemme get it
I only need to know what it is checking for the warning and where is it indexing
the code is too long to send it says
ok
-- Arena Button Click Event
arenaButton.MouseButton1Click:Connect(function()
if #arenaSpawns > 0 then
local randomSpawn = arenaSpawns[math.random(1, #arenaSpawns)]
-- If the spawn is a model, find the part inside it
local spawnPart = randomSpawn:FindFirstChildOfClass("Part")
if spawnPart then
teleportTo(spawnPart)
else
warn("No part found in spawn: " .. randomSpawn.Name)
end
else
warn("No arena spawns found in ArenaSpawns folder!")
end
end)
idk that
ArenaSpawns doesnt exist
it does i sent photos the folder exist with spawns in it it just the spawns in it disapear when i test gmae
Also maybe you should hire somebody or learn to at least code if you want to make a game
Yeah but it is empty
how do i fix that
it has tuff in it check the first image i sent
stuff*
mb
but once i clicked start it disapears
Its probably falling into the void and getting destroyed
I FIGURED IT OUT
it keeps disapearing bc i built it in the void
aint no way i just tested it by bring an item back to base level
Who here knows how to spoof animations and do whole gun scripts and complicated stuff like gun skins and bullet trail colors
And who here is active
Typa combo question is that
U spoof animation using animation spoofer
A question saying that I’m willing to hire someone on stand by
Someone to steal anims for u
Wild
Wjat
What
Games use spoofs all the time
Atleast I think they do

Spoofed anims = stolen anims
Okay unless u are buying a game or its opensource
It’s open source
Like it was already spoofed
Spoofing is for fixing the goddamn anims cus roblox has to make shitty annoying 'anti theft'
And it’s already there
Good
It’s annoying as hell to do though
Cuz Roblox breaks animations
Yes it does
Na it doesnt u prolly do something wrong
Wdym
Theres spoofer plugins
U mean break as them working only in original owners game
Then thats what i said
Why repeat
U create confusion
Chaos
My bad
I do that often
Im really bad at explaining things
I have to back track pretty often
😔 🙏
NO
Ok well the point being i wont help cus im not even on my pc 😈
@MODS EXPLODE HIS HOUSE
I have so many warns the next one is actually them exploding my house
@subtle estuary help this man
guys i'm confused with this one thing.
I discovered how to use module scripts yesterday and I'm trying to make 3 client sided module scripts interact with each other.
So if one enables shift lock for example I want the other to know that and so it will enable a feature based off of what that script did to shift lock. Get it?
I saw that remoteevents and removefunctions could help but im not sure
Rememeber that a modulescript is just a storage container for code, it can't run by itself. If you want to use a feature from two different module scripts, then create one shared container(a script) and a way for them to communicate with each other.
Yea I made a local script to do it but I'm confused on if I need to code the communication inside of the local or module scripts yk?
The communication would need to be handled in some way in the local script.
Im going to look up a documentation thing real quick, I strictly only use meta classes inside modulescripts so I have to re-check what you can do again, if anyone else has more knowledge please chip in!
Meta classes are super easy because you can just load up all your modulescripts into the global variable and then cross-communciation is super easy.
^^ yes, typo
ah I see
The idea of using a meta table approach to combine modulescripts is to define all your base variables and methods per module script, and then load them onto the global table.
But that might be more of a rabbit hole than you need to get what you need working.
I believe you can pass functions through, so you could create an update function, and pass it to the other module script through the local script.
hmmm what I'm trying to do is I have this one POVChanger script then this AltLock script (custom shift lock because I disabled the actual shift lock) and now I want it so whenever the POVChanger makes the client go into First person then the AltLock disables the ability to altlock during that but I also want the client to remember if I was in altlock or not before going into first person so when I get out of it then it will put me back to my old state. I made this work before but it was too confusing so I just scrapped it and decided to re try it
so you want me to use the local script as a middleman?
-- localscript.lua
local A = require("A")
local B = require("B")
A.onUpdate(B.doSomethingOnUpdate)
-- EOF
-- B.lua
function B.doSomethingOnUpdate()
-- do something!
end
Psuedocode
I may be wrong, but I am sure you can pass functions to other modulescripts.
I can test this if you desire.
Bad variable names
U dont pass
Nah it's alright I'll give it a try and let you know how it goes
Module script is like a function
Where u put more functions
And u call these functions so they use other stuff from inside the module script
yea I know but I was just wondering how I could communicate between module scripts because I'm making 3 features in my game interact based on what the other feature did
theres many ways, you can use signals, another module that manages these three, or just call eachother within the modules. you'll need to provide more context
Modulescripts are great and they've given me more headaches than anything else in my entire life
i recently did this thing with modules
where i have a class and i store all the class instances inside
so its accessible from anywhere
local Inventory = { __instances = {} }
Inventory.__ index = {}
function Inventory.new(Player)
local self = setmetatable({}, Inventory)
self.Items = {}
Inventory.__instances[Player.UserId] = self
return self
end
function Inventory.of(Player)
return Inventory.__instances[Player.UserId]
end
local MyInventory = Inventory.new(LocalPlayer)
-- in anotha script
local HisInventory = Inventory.of(SomePlayer)
bro learned oop
nah i knew that before but i never thought of using modules to store temporary memory
ok lol
for oop do I need to create sub module scripts or can all the oop states be in one module script?
Bindable Events
For same sided stuff
are particle emitters behaving weird for anyone else? i didnt change my code but theyre not working well today for some reason . they still kinda work but they barely emit anything
could be your quality setting
playtest the game then change it
found the problem. i forgot i set StreamingEnabled to true yesterday
the true solution to this was to call task.wait(0.1) before calling the Emit() method on the particle when StreamingEnabled=true. not necessary if you have streaming disabled
yesterday ok
Guys can someone give me a stamina system for pc and mobile that actually works, bc I can’t find any and I keep trying to make one but fail. Pls anyone
I'll probably give events a try too but should I use oop for this pov changer script since it's in 2 states being First person and Third person
just make a function in one of the modules to read the value that you need
you dont need bindable event its kinda unnecessary
so I just add lines of code in one of the modules to read whenever something happens in the other module??
yes
oh and also
I watched a video about oop and I'm wondering if I should turn the povchanger module into an oop thingy because I'm in two states right? First and Third
but at the same time I feel like oop is not necessary because its only two states
for example
local module1 = require(…)
local module = {}
function module.DoDomething()
local whatever = module1.readvalue()
end
sorry for no formatting im on mobile
its alr
not necessary
look into oop concepts
what should I use oop for? My movement module???
oop should be used for instances of a certain group of objects
no
for example, you might have a “Drink” class and then you have properties such as Brand, Bottle Size, Bottle Shape, etc. And then you have methods like :Drink(), :Spill(), etc to manipulate the object
ohhh
use oop when you have some code you find yourself repeating or will need to repeat later.
movement can be oop but it doesnt have to. for example my movement logic is just a local script that has local functions
search up what object oriented programming is
and of course for every instance of the “Drink” class, the instance would have different properties
it has some negatives for sure, for example everyone thinking everything has to be an object
other systems that you can use oop for could be, gun systems (instance for each different gun), melee system (instance for each melee), item class (instance for each item) and there are many more
the thing is in my movement module I'm going to add different stuff like Climbing, Running, Walking, Jumping, and Falling but also some other stuff but now to make it realistic I wanna like for example make it so whenever the player falls down there's events that could happen being Dying (fell from too high), breaking leg/ankles (falling from a moderate height) stuff like that
then look into state machines, if you want
not necessary tho and might be overcomplication
bro my brain is getting overstimulated with the info i'm getting rn
then stick to basics
oop, meta class, state machines
dont try to run if you cant even walk
print('Hello word')
do you know a great youtuber that explains these things from easiest to hardest?
dont even bother with metatables except to initalize an object. metatables are an over abstraction 90% of the time
nah not really
but stick to simpler things for now
cause you are overcomplicating it for yourself
i watched BrawlDev when i was learning roblox
Real I used them like twice and I don't even remember when
For sure
they are objectively worse tho cause __index will slow methods down and they will also use a lot more memory
I saw some of brawldev's tutorial they're pretty good yea
have you tried waiting like 5 seconds before using stuff in roblox studio because sometimes roblox studio takes a bit of time to load stuff in
preloadasync
preloadasync
use contentprovider
it will preload and download animation
luau wasn't made for oop in mind and metatables are only partially good for oop (not speaking performance wise because it's worse) either way there probably are better methods for whatever you need
ik but im saying everyone always uses metatables for oop but its completely unnecessary and objectively worse
can someone help me fix my ui which changes shirt and pants via textbutton
try that first, if it doesnt work, use preload async on the animation id. and also, give it some time first, it will never be loaded instantly. print when its done so you know and then test
True
We love overcomplicating
show code
and also metatables arent serialized so if u send a table with a metatable over a remote then you will have to set the metatable again on the client/server
Didn't even know they weren't
local attireData = {
["Branchless Formals"] = {shirt = "2235483059", pants = "5620757523"},
["Camoflauge Uniform"] = {shirt = "5636765705", pants = "5636855242"},
["Casuals 1"] = {shirt = "5079629222", pants = "6422108001"},
["Casuals 2"] = {shirt = "6423055828", pants = "1138259741"},
["Formals 1"] = {shirt = "6440913874", pants = "5078945912"},
["Formals 2"] = {shirt = "6323488295", pants = "6323493477"},
["Formals 3"] = {shirt = "6440855011", pants = "5078945912"},
["HICOM Uniform"] = {shirt = "2205168954", pants = "2205132445"},
["Instructor Uniform"] = {shirt = "5422222033", pants = "5292802113"},
["MP Formals"] = {shirt = "5790817195", pants = "5790915109"},
["MP Uniform"] = {shirt = "5281541079", pants = "5620757523"},
["Medic Uniform"] = {shirt = "5362322176", pants = "5791111733"},
["RG Uniform"] = {shirt = "5600263678", pants = "5790915109"},
["Royal Family Robes"] = {shirt = "6433189810", pants = "6433190678"},
["S4 Uniform"] = {shirt = "6274637465", pants = "6272062790"},
["SG Formals"] = {shirt = "5791069010", pants = "5791111733"},
["SG Uniform"] = {shirt = "5355220048", pants = "5620757523"},
["SL Formals"] = {shirt = "6367724642", pants = "6369431978"},
["SL Uniform"] = {shirt = "6267634540", pants = "5620757523"},
["Trainee Uniform"] = {shirt = "1016513387", pants = "5620757523"}
}
local function applyAttire(player, attireName)
local character = player.Character
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local attire = attireData[attireName]
if not attire then return end
-- Remove old clothing
for _, v in ipairs(character:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") then
v:Destroy()
end
end
-- Apply new shirt
local shirt = Instance.new("Shirt")
shirt.ShirtTemplate = "rbxassetid://" .. attire.shirt
shirt.Parent = character
-- Apply new pants
local pants = Instance.new("Pants")
pants.PantsTemplate = "rbxassetid://" .. attire.pants
pants.Parent = character
end
-- Example usage (assuming button connection)
for attireName, _ in pairs(attireData) do
local button = script.Parent:FindFirstChild(attireName)
if button then
button.MouseButton1Click:Connect(function()
applyAttire(game.Players.LocalPlayer, attireName)
end)
end
end
format it
idk how to do it on discord
also i asked help from ai with this because its my first time doing something related to clothing
via ui
dang limit
local attireData = {
["Branchless Formals"] = {shirt = "2235483059", pants = "5620757523"},
["Camoflauge Uniform"] = {shirt = "5636765705", pants = "5636855242"},
["Casuals 1"] = {shirt = "5079629222", pants = "6422108001"},
["Casuals 2"] = {shirt = "6423055828", pants = "1138259741"},
["Formals 1"] = {shirt = "6440913874", pants = "5078945912"},
["Formals 2"] = {shirt = "6323488295", pants = "6323493477"},
["Formals 3"] = {shirt = "6440855011", pants = "5078945912"},
["HICOM Uniform"] = {shirt = "2205168954", pants = "2205132445"},
["Instructor Uniform"] = {shirt = "5422222033", pants = "5292802113"},
["MP Formals"] = {shirt = "5790817195", pants = "5790915109"},
["MP Uniform"] = {shirt = "5281541079", pants = "5620757523"},
["Medic Uniform"] = {shirt = "5362322176", pants = "5791111733"},
["RG Uniform"] = {shirt = "5600263678", pants = "5790915109"},
["Royal Family Robes"] = {shirt = "6433189810", pants = "6433190678"},
["S4 Uniform"] = {shirt = "6274637465", pants = "6272062790"},
["SG Formals"] = {shirt = "5791069010", pants = "5791111733"},
["SG Uniform"] = {shirt = "5355220048", pants = "5620757523"},
["SL Formals"] = {shirt = "6367724642", pants = "6369431978"},
["SL Uniform"] = {shirt = "6267634540", pants = "5620757523"},
["Trainee Uniform"] = {shirt = "1016513387", pants = "5620757523"}
}
local function applyAttire(player, attireName)
local character = player.Character
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local attire = attireData[attireName]
if not attire then return end
-- Remove old clothing
for _, v in ipairs(character:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants") then
v:Destroy()
end
end
-- Apply new shirt
local shirt = Instance.new("Shirt")
shirt.ShirtTemplate = "rbxassetid://" .. attire.shirt
shirt.Parent = character
-- Apply new pants
local pants = Instance.new("Pants")
pants.PantsTemplate = "rbxassetid://" .. attire.pants
pants.Parent = character
end
-- Example usage (assuming button connection)
for attireName, _ in pairs(attireData) do
local button = script.Parent:FindFirstChild(attireName)
if button then
button.MouseButton1Click:Connect(function()
applyAttire(game.Players.LocalPlayer, attireName)
end)
end
end
there
you need to use ` to format it
im checking
alr much appreciated
clothes changer via ui
but it just makes me nude
is the script a local script or server script
im assuming local script
also it wont replicate for other players then
it will only change on your screen
ohh
it doesnt tho i only beocme nude
also u dont need to destroy the shirt and pants you can just change the template id
that also only happens on your screen
also
i dont think shirts and pants work if u just create a new instance and parent it to character
they are a bit strange i remember trying it a while back
so dont destroy the shirt and pants just change template id
another way to do it is with humanoid descriptions but thats not necessary for this
ight tysm
👍
Whats better, magnitude or raycast for hit box
Im hearing people say magnitude is better but some say raycast is better
Is it just preference or depends on what im making
idk
Which one is more simpler to understand
idek what magnitude hitbox is
oh then nvm then
magnitude hitboxes are easier to understand
(imo)
magnitude hitboxes is just a fancy way of saying youre calculating the distance between the hit and the hitbox to determine if it was a hit
ello dudes
i've got this problem with my script and im very new to scripting
could someone help me with what i did wrong here?
whats the problem
the animation isn't playing when i do mouse button 1
its Humanoid not humanoid
yw
Good job, next step is designing an entire framework with modules 🤗🤗🤗
Joking
no no
Hope u do learn tho
you can’t name a variable like that
ty man
and waitforchild only waits for the children inside the parent
Uh
not whats also inside it
If u wanna get the animator
your choice
what does it change?
U do :
Humanoid = character:WaitForChild("Humanoid").Animator
so you cant do :WaitForChild(“Humanoid.Animator”) instead you have to do Humanoid:WaitForChild(“Animator”)
If u wanna get the animator
variable name is wrong
Yh
WE never add maj on a variable
Exept for exemple playerCoin
Im just showing him an exemple
Im not home rn
Js tell me what do u want and imma help u
m1
And why would u mind about the anim in an client script
?
If u fireserver js play the anim in the server
idk someone told me to do fireserver and idk what that doess
Rn from what im Reading , the anim will only play on client side
oh damn
But basically
i've also go this one
U have a client script which check stuff needed on client, such as userInput
And then
Server
Which will go check serverwise sh
Like anims
Idk about damages yet i ain't good enough at it
also
why isn't the animation playing?
Wait until im home
And we gonna VC
So i Can show u
alright
no keep it clientside
it replicates
it will play for other players too
But is it optimized
I mean most poeoles would use modules
For the framework
uh more then playing on the server yes
hey guys do u know why this isnt working i am trying to create a custom mouse using a imagelabel but for some reason where the actual mouse is and the image are way off each other this is my code : game:GetService("RunService").RenderStepped:Connect(function()
cursorImage.Position = UDim2.new(0, mouse.X, 0, mouse.Y)
end)
i have a simple question guys, i need your answer please.
Can i use tweenService in LocalScript ?
Yes
thank you very much and have a nice day
its even better to use in in a local script
thanks for the information man
@random nebula give neovim config
which scripter wants to make a game theres no payment u get 65% alongside this i will advertise over 100k robux into the game and i can show proof likely meaning we will gain
have fun finding a scripter
alr ty btw
i got 2 dm
so i might just pay
userinputservice.mouseicon = 'assetid'
no i am trying to do it with an imagelabel
could someone help me fix this?
u dont have acces to the animation
because in my game i have guns and i want a crosshair that can use tweening when aiming
oh alright i told my friend to save the animation so that's probably why
did u disable gui inset on the screen gui
uhh no didnt know u had to where do u find that exactly ?
lemme see
??
ye im not really good with ui is it in the imagelabel ??
Guys can someone give me a stamina system for pc and mobile that actually works, bc I can’t find any and I keep trying to make one but fail. Pls anyone
create number value put in in the player and evrytime he does something subtract the number if its below 0 then disable his tools or whatever and let it slowly climb back up
is this my villian arc chat
What is blud using all 666 lines of code for
Summoning satan
try a diffrent idea like saummoning anything exept him
Na bro jesus got this
what
Yes when it starts to feel like a job it means its becoming a job which means you boutta start getting money
k!
Crush
Destroy
Why u post this everywhere
The rails are dead get over it
why do u think
use ur brain
use the game is dead with 400k ccu and 700k+ ccu on the weekends
how did yall learn scripting
yesss the game making over 100k usd a month is dead
if i had to start again
i would learn the basics and actually know the basics
and then from there it’s like lego blocks u learn overtime
do u like to read or watch videos
both
theres 1283128 of them
me personally i rather read then watch a video so i read roblox dev forum tutorial they give u and i use to take notes
aint no one playing that shit
all making over 1k usd a month
get some money children do not care
yes the ones that released first
but like what tutoriol did yall use
like what youtube
r u gonna change anything
No it’s a template i’m not making a game im providing the template for other developers
i’ll send you
k
thanksss
how well do u know studio
pretty well i used to be a buildere
that’s good
did you use the tutoriols from devking?
okay!
but it took me a while to really understand since i was consuming instead of putting out
once i started creating that’s when it started to stick
also debugging scripts in toolbox helped a lot
https://create.roblox.com/docs/tutorials/use-case-tutorials/scripting/basic-scripting/intro-to-scripting i also read a lot of this
thank you!!
and when i didn’t know something id look it up on dev forum
I doubt you realize how much game like that actually makes
are u mentally slow?
ive seen it first hand lmfao any game with decent mon. and over 1k ccu is making a little over 1k a month
Also answer why u keep sending this
Ye thata what im saying
10k ccu is not making over 1k, its making over 10k
click on my twitter and see but i think u can understand why without me saying
Way over 10$
it easily pulls over 100k
Like 1 more zero
robloxian millionares
yesss
And idk its been a month or what
yes
So 25k is a bit of an understatement
make a copy and become like them
Also this was a joke
it wasnt rage bait it was a joke 😭
I just wanted to know why u posting this so much
Is this some kind of charity
Is bro on a mission to make frontpage full of dead (insert common location or object name)
Hello , i am looking for someone that can is good at scripting or have few experiences . Me and my other Developer are making a game called "Dead Woods" . Its similar to Dead Rails but its more different , and forest theme . The game is almost done , we have to make fuel , sack working , and some more things and the game is done . We are giving % of the earning for someone who can help us . Thanks!
yo
Guys can someone help me making fuel adding like in Dead Rails please?
👍
yes
anyone here have a pet system ?
dm me
dm me guys
so easy to make too
their advertisting must've been legendary
nah
they were just the first to do it
wait nvm
dusty trip
was\
but yeah they just popped like rivals did
yea
I’m too smart to understand that
create a number player attribute
Bro is not Warren Buffett
why would a completed game need an investor 😭
ads
the actual question is what game needs $2000 worth of ads
Im a long way away indeed, just starting out, a lot of good games dont have enough funds to get into the algo so thought I would start and help
You'd be surprised 😭 Also some higher quality games / devs with a successful track record request higher $ per %
im guessing that would be ads on yt/tiktok
cus $2000 worth of ad credits seems like a waste honestly
Some devs I know spend millions on ads upon release where as other games would have a budget of around 70K, which is also enough
ads arent to get players😭its to hit the algo
I know that
yall know how i could make my roblox studio look like ts?
Probably beta features
Hello , i am looking for someone that can is good at scripting or have few experiences . Me and my other Developer are making a game called "Dead Woods" . Its similar to Dead Rails but its more different , and forest theme . The game is almost done , we have to make fuel , sack working , and some more things and the game is done . We are giving % of the earning for someone who can help us . Thanks!
guys i got a button where if u press it, it gives u a tool, and the tool has weld constraints. it works fine, but when i die, the tool falls apart, anyone know why
is anyone here good enough with lua so that if i send them a script they can judge if its beginner / intermediate / good level etc?
y not js send script in chat
why can I do everything a normal player can do, but I cant walk around
does anyone know how to optimize pathfinding for npcs so if there are like 200 they wont crash my game
lmao yk whats crazy is that ur completely wrong 10k ccu + would give you ABOVE 40k USD A MONTH and depending on your monetisation it could be wayy higher
how do u end up with 200 npcs in the first place
a city
a city should not have 200 active npcs
i think it should
??
it should look alive
roblox game with 200 npcs are we being fr right now
what
idk
it was not
also why would u load 200 all at once with humanoids
mi bussines
idk
also imagine a tower defense
then stop yapping
that alone would crash low end users 😭
i like to yap
good td games dont load them at all
this is why tds suddenly managed to load 5k zombies without any severe issue
but they load them
also not my problem so
they literally dont load them
wut is rodux
onGOD i need the scripter role so i have access to the pro people channel
where the green mfs who know rodux
Can anyone clue me in to what just happened. Game was working great, no errors or nothing. I tried to then upload the game under a group im a dev for. Since then, in both the group game and the main game I'm having major issues. I don't even know what's going on but the datastores are messed up for sure, and everytime i stop a playtest my studio bugs out.
they’re battle droids that should lock onto players and try to kill them
state management
omg i talked to the maker of Rodux last rdc and i didnt even know
but the map is complicated and with alot of them shit becomes chaos
randomly generated droids type of npcs?
no, they have a set script with pathfinding/shooting in them and i can spawn them with a tool
so the more i spawn, the more individual calculations, the more lag
then why are u getting laggy
but i cant find a way to optimize this but also keep them smooth
can anyone help me?
im not getting laggy they are
when there are alot they tend to buffer alot and shoot slowly
your supposed to render them on the client
dont manage npcs on server scripts
and dont keep them around if theyre out of view
u suggest to make them entirely clientsided or just rendered clientsided?
depends on ur usecase
they’re still supposed to be there, its a star wars game and they just all have to lock onto the opposing players and kill them
just render clientside
how do i do that? wont that bring more lag to the player? the main game is laggy for some as it is
your taking off load from the server and giving the client more freedom to render however it wants
u can have their position calculated on server and the rest like anims on client, then u dont need to render them (set parent to nil when the distance is out of view, or enable streaming) to lessen load on clients
but if its not important that 2 players see the same npc at the same spot then do everything on client
okay so these suggestions would still work for the use i have in mind for them correct?
no they’re supposed to see all of them, and kill them
its basically an army of those droids vs real people
yea ig just calculate the position on the server then send it to client and do the rest on clientside
enable streaming too
😎
dunno how to do this im fairly new to this
are you sure functionality will stay the same if i send it to client?
ah rip programming streaming requires some know how to make it work properly sometimes
should work fine if u do it right
i can learn how to do it its no problem, are you able to refer me to a website or post that explains this?
would switching to A* help with the lag?
why can I do everything a normal player can do, but I cant walk around
"im fairly new"
-2 seconds later-
"im gonna implement A* algorithmic pathfinding in Roblox"
ur using either chatgpt or deepseek
no im tryna know if it would work, if so ill just learn how to do it
i actually dont know, i dont really see why any reason for it to be impossible
just i think theres a reason roblox has provided their own pathfinding instead of implementing A* natively by themselves
hm okay, is there also a post or something that helps with explaining on sending stuff to client side?
i wanna make sure i get this right
just wait till u get advanced enough to use couroutines, and task.spawn and pcall etc then u level up from there even and learn that Promises do all that but better
i use them in my current script
but ill try this info out and ill be sure to reach out again if i have questions
thank you
Question what method did you all use to learn rolua
resilience
and asking a LOT of dumb questions
You save something in data store and you use it when you want to
is there a way to have a table shared between both client and server (without having to manually send events) if i make changes on the server, it automatically updates on the client?
No you have to use a remote event
i tried passing the table between string value, used json encode and decode, but there are differences between luau tables and json
local Translator = require(game.ReplicatedStorage.ModuleScripts.JSON_Translator)
return function(stringValue, defaultTable)
local mainTable = {}
setmetatable(mainTable, {
__index = function(_, key)
local decodedData = Translator(stringValue.Value or "{}")
return decodedData[key]
end,
__newindex = function(_, key, value)
local decodedData = Translator(stringValue.Value or "{}")
decodedData[tostring(key)] = value
stringValue.Value = Translator(decodedData)
end,
__call = function()
return Translator(stringValue.Value or "{}") -- Allow calling the table like a function
end,
})
stringValue.Value = Translator(defaultTable or {})
return mainTable
end
this is what i kinda had
it works but the "translator" is not able to read different keys other than normal array integers keys
You don't need the enocde a table
You can just send it
Please replicate this in real life ❤️😀
Just made this (idk got inspired by beep block skyway) rate it
why am I not seeing my normal player animations, the only thing i did was i removed my model from the starterrrplayer folder
your Animate local script is disabled
yea but that was for the model i removed from the starterplayer folder
When you load in the scripts in StarterCharacterScripts should clone to your character model
bindtoclose SUCKS
why is it breaking my studio
Not running script because past shutdown deadline
i think you misspelled your username, i might be wrong
collision was taken
wait im dumb. i have a BindToClose module
why you lying
that i never have a wait in
what did you guys do to learn lua mannn im stuckkk
roblox
volunteer for groups
i be on roblox watch devking but i cant remember shit
wym
like internships. how i learned was by getting contracted or working for free
well what if i cant do what they want me to do
did that for months. now i know a lot of the basics and can call myself adept
hmmm
thats the point. to learn stuff you cant do
ight gotchu
they will force you into a position
where you need to learn new stuff
and give you that responsibility and in some cases a consequence. thats what pushed me to continue
yeah but that kinda gives you a bad rep when you dont ended up not doing it
well just be honest if its above your grade
ok ok
its a small step game
yea but ur working for free
you wont go zero to hero in a day
exactly
got any group recomendation?
if youre just a volunteer, its really no big deal if you cant do it
theyll just give you a smaller, easier, task
I animated for free to practice being under pressure
it was nice to give people assets, to devs who cant animate and need atleast something
hear me out. larp groups
i worked for teutonnia for like.. maybe 6 months
they always needed devs
how exactly do i join
most other groups are on the professional side
and will want a lengthy portfolio and 5 bajillion years experience
fr tho lol
just ask around
larp groups or teutnnia?
you can pop into groups and give some ideas
"i can easily script this feature"
ok ok
thatll be the easier bar to hurdle
even cafe groups prob
they're desperate, broke, and most of the time have no idea how to do anything
perfect area to practice
and maybe even get compensated
ya its a long long game with getting any real experience
can always work on little side projects
i have a baseplate where i do some random stuff but like i need to folow a tutorial to do it otherwise i cant
a good start
but like i aint seeing any progress bro yesterday i hade a mental meltdown😭😭
monetisation plays a big role
best way to apply interia so the cart wont stop instantly? for context theres a weight factor evenly distributed between all parts then a backweight which has 10 less density than the front weight
hi how do i make a npc follow you when your not looking
You either have to use raycast or lookvectors for that
can you send or make a model for me please?
dont ask this to anybody mate
no one makes free models
i suggest you to do your own research
im confused on how u made one that only moves when your looking at it, but cant make one that moves anytime
Youtube?
couldnt find a video
buy one
if you know how to code:
raycast to check if player is looking at npc and if they arent then make the npc follow the player
otherwise:
too bad
ill make an account classifier w pytorch, should I use transformer or simple NN? (beginner question)
yall, can someone help script my gameplay... i'm broke tho
Bro I’m not that smart to understand that, pls make it easier for me to understand or give me a model or smth
Like what do you mean
Make like items play animations or npcs?
Or allow the player to play animations
why are other accessory type handles not being hidden?
if part:IsA("Accessory") and part.AccessoryType ~= Enum.AccessoryType.Hair and part.AccessoryType ~= Enum.AccessoryType.Hat then
part:WaitForChild("Handle").Transparency = 1
end
end```
local root = character:WaitForChild("HumanoidRootPart")
this gives the error, attempt to index nil with 'Wait for child'
i dont know why
still need help?
thanks for asking, but i figured it out
it was becuase the character wasn’t loaded yet. wait for child worked
local motor = Instance.new("Motor6D", Player.Character.HumanoidRootPart)
motor.Part0 = hit.Parent.HumanoidRootPart
motor.Name = "GrabbedMotor"
motor.C1 = CFrame.new(0, 0, -3) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
motor.Part1 = Player.Character.HumanoidRootPart
game.Debris:AddItem(motor, 10)
Im trying to make it so the player controls the hit.Parent(just a touched function) but rn it stops them both
guys when i set an attachments cframe to the players left legs cframe, it copies the orientation when the character is walking, how do i not make this happen, i want the attachment (with particle inside it) to stay flat, so the particles dont copy the left legs orientation
Could anyone give me some tips on how to script
I think you're making the Motor6D connect both players too rigidly, which freezes them.
Your issue is that you're attaching both the player's HumanoidRootPart and the target's HumanoidRootPart using a Motor6D. Since Motor6D is used for character joints, it likely freezes movement because it's creating a rigid connection between both characters.
Solution: Use a different approach
Instead of Motor6D, try using a WeldConstraint or setting hit.Parent's PrimaryPart and using CFrame manipulation.
Option 1: Use WeldConstraint
WeldConstraint allows movement while keeping the target object attached.
local weld = Instance.new("WeldConstraint", hit.Parent.HumanoidRootPart)
weld.Part0 = hit.Parent.HumanoidRootPart
weld.Part1 = Player.Character.HumanoidRootPart
game.Debris:AddItem(weld, 10) -- Remove after
yes guys im smart
haters will say its chatgpt
lmaooooooo
what are they trynba do
I made a grab skill and attached the hit player the the attacker using a motor 6d and played animations
but
i can see they are tryna use vfx
honestly just start tbh
open up the program and think of something simple to make
open up the documentation and just go from there
do smthn simple like a part that floats up and down
Is scripting basics easier with docs or a vid help more ?
I mean
but if your taking notes and activly trying to learn then
i learn from looking at good code
Video that explain you how to script not how to do something
copying videos is good. if they explain the code
I mean yeah its not bad
once you start copying like 10 videos youll start leraning the basics
not really
I’ve been doing that but when asked to make a script idk where to start
not if your just copying the video
well
before I start a system
if your just copying the video then it aint good
watching tutorials aint how you learn
sure its not a bad start
for someone brand new
I watch tutorials on what things are and what they do
but you dont wanna get stuck in tutorial hell
If there’s a format or something to help beginner with multiple objective to learn step by step ? Or do i have to learn each thing by myself ?
And I don’t understand how to use them to make the scripts I want to make.
when I start a system I usally take a solid hour to plan out how everything is going to work and the stuff I am going to need to make it work (Services/Welds/VFX/Animations etc)
I got a notebook
and I write each system in great detail
yeah you just gotta start
lets do my example from above
I don’t know how to
making a floating part
thats always good, i make a UML for bigger projects
that goes up and down
well
first I am going to need a part
then I am going to need to find a way to move this thing up and down
if you look into docs
you can find some while loops
or for loops
but roblox has a service called Tween Service
that tweens instances
boom found tween service
if you read up on that a little
then you can do it
What is a tween service
--//Services
local tweenService = game:GetService("TweenService")
--//Variables
local part = script.Parent --> this only works if the script is a child or inside the part
--//Functions
local function tweenPart()
local tweenInfo = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1)
local movePart = tweenSerivce:Create(part, tweenInfo, {["CFrame} = CFrame.new(0, 9, 0)})
movePart:Play()
end
tweenPart()
That code moves a part up and down
i wrote this all on just rembering the servivce which will come with practice
What is a tween service
if you look up TweenService roblox the documentation will pull up and explain it
its a built in roblox service that allows you to tween instances properties
so its smooth
animations basically
but not some crazy anims
So like for dashing/flashstepping
This is what this code does
But you said animations
.
Why would I want to do that
for lots of reasons
like what
u trolling?
no?
oh
gui animations
makes sense
what are gui animations
u ever see like animations when you open up user interface?
yea
gui animations
Like pop ups right
yeah
ic
you tween the position
all this is local right
If I want to learn how to make a specific script how would you or how should I go about it
but its the best on the client
give me a sec
Y'all. Lets say you made a system that took you about 1-2 hours for a big game. How much would you take as a % cut of the monthly revenue of the group/game that you would consider fair? Keep in mind you only did this one-time system and nothing else.
Depends on the system
anyone have their comms open that is looking for a long time job?
what the other guy said, time doesnt matter, complexity of the system does
lets say it is a system where the items that the rig is wearing show up, and you can buy them
it can be UGC or clothes that the rig is wearing
never needed to make a system like that so idk the complexity
the scripter youre trying to hire probably has a fair price for it
What kind of game and how long
the problem is this one, he mentioned it last minute when he already made the system. and he is holding it until I give him a ''fair price'' according to standard market value of what he made
dms
so hes not setting his own price?
nope, he said market value