#code-discussion
1 messages Β· Page 109 of 1
π
Anyone think they can help with making a client-sided dash script have its cooldowns and power managed on the server?
just code a game
Ah roblox how you torment me so
hey can someone help and explain why this dont work
Because you have a random quotation mark in your code
it stiill doesnt work
do proximity prompts automatically replicate on console
no.
damn
Is there a way to test with my actual character and a player character in studio or do I need to get my alt
yes
you're changing something in startergui, that won't show up on your screen
everything from startergui gets added into player.PlayerGui
well first, your best option is probably using a localscript inside of your gui
i did
so local musicinicator = script.Parent.MusicInicator
oh alright, what about click detectors since players have buttons that are able to move on their screen can they press buttons?
i'd stay away from click detectors as they aren't as reliable
having a custom click system is ideal
script.Parent = game.Players.LocalPlayers.PlayerGUI
wdym custom click system
I'm using click detectors
why are they not reliable
they don't work 100% of the time
any frontpage game uses their own system
more customizability and control
never used mouse service besides disabling the icon once π₯
it's quite easy
you can either use the mouse.Move event or just rapidly check the mouse.Target in a loop
what is this
"Sheriff Rolplay Server"
i needa see this map
well it doesnt seem extremely difficult but I'm way too tired for it rn
any open source mouse services yk about perhaps?
it takes about 3 lines of code
you got it champ
actually since you're using click just use mouse.button1down or something
well I'm unsure how exactly I'd proceed, do I just call the module whenever I want to create my own click detector inside a part
Does anyone have any tips, tutorials or just any overall advice to learn how to script in roblox studio?
chatgpt
Check YouTube
ok
youtube and random porjects
and google
If you have money try udemy
i could js add them in
recommending google damn really good advice brother i thought he was going to use bing
Alr
have low expectations. dont expect yourself to create anything you want right away. dont go into huge projects (like an entire game). take it slow and start with small projects after learning the basics
duckduckgo
i can teach you
but just the basics
somone explain
someone
Guys im good at scripting but i new here how i get gire
hm
errors in your output?
apply for the scripter role on their website. once you get accepted, you can post hireable posts through the bot
im looking to buy some UGCs that are going to become big. If you have one that is going to be released soon dm me.
Alr
Alr. Dms?
anyone can tell me how to check how long a player has been in the game for?
my first idea is to save the time the player joined in a table
and whenever you want to get their play time just do current time - join time
dont forget to set the value of the player's key to nil when they leave etc
so it does not cause a memory leak
is numerical loops faste rthan ipairs and pairs
I think the difference is not noticeable
whats a memory leak
guys is this error on roblox or bc of me
im not an exact expert on what it really is, but as far as i know it happens when you dont get rid of memory you used
so it will just add up over time and waste a lot of memory
someone please help me idk whats happening and its not lettimg me see other errors but there arent any actual probems in the script
That's your fault
Yes there are then
wdym?
Your script got faulty somewhere
do you know how i fix it
And so did sound property most likely
No
local limit = old_len < new_len and old_len or new_len -- faster than math.min in hot loops
is this true
Why is the sound not playing from the humanoidrootPart?
guys is there a reason why a 4 animation sword combo wont work only the first m1 plays,and when it does it dosent play until i re equip the tool
Yes
I think it didn't found the sound
Or either the player or character
Yes
Is that script server or local
And how is that thing faster than math.min
Because it's not a function call
And math.min uses a loop
Ohhhhhhhhhhh
Hello everyone, we are developing a game where two players are chained together. Currently, we have encountered an issue: when a player dies, the chain's position movement causes lag. Is there any way to solve this problem?
Optimize your code
And fix character when dying
Huh
I got pinged
The heck
We have added these physical components to each chain.
Who can help us solve this problem? We are offering a reward for the solution.
So you made too many chains right?
You have to parent the sound first apparently
That's another bad thing for performance
So you solved it?
are you okay with the chains being able to clip through the environment?
listen yall, if i got a angularvelocity, and its based of vector3, how the hell do i figure out like say i want it to turn left, or right, or flip, or normal. ( Roll, not Yaw or the other one.)
guys should I learn profile service bc idk if datastore is fine
yes
you are mostly going to use profile service for 90% of the games
and if its big yeah
its not hard though
is it easier than datastores or like similar
when learning
similar
profile service is way better than datastores?
yes
Ye
Nasa kids
Yooo whats up guys
hi
whats the difference between destroy and remove
How do I make it so that for each tool in player backpack with the stringvalue value of "meat" it sells it for the tools numbervalue value but each one that doesnt have that value gets skipped?
say that again
One's deprecated and should not be used
which one
Remove
How long do you guys think learning rollback netcode would take for me
Have no experience coding physics related stuff except for ball throwing
Iβm interested in the topic though if anybody has some links feel free to send them
how did tsb do they're m1 knock back...
guys im trying to learn how to script what should my first scripting project be
How do I make a door can collide per player? I tried using a remote event but it makes it can collide for everyone
js make a local script and don't put it in door
I don't know what you mean by per player
Gun system
Fairly simple
Only players wh meet a condition can enter it. this is what I have set up currently
Local Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remote = ReplicatedStorage.TDEvent
local part = game.Workspace:WaitForChild("Door")
part.Touched:Connect(function()
remote:FireServer(part)
end)
Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remote = ReplicatedStorage:WaitForChild("TDEvent")
local Teams = game:GetService("Teams")
local part = game.Workspace.Door
remote.OnServerEvent:Connect(function(plr)
part.CanCollide = false
end)```
set cancollide to false on client
Also I think my code reverted cuz I had an if statement on the script
ngl tne WaitForChild in server script is crazy
Trying to get used to using them
im aware
why you don't make cancollide in local script
instead of server
I was told the only way to make this type of door is through a remote event
no
No it's not what
How much is the Roblox Rivals gunsystem worth?
how long will i take to learn collectionservice
a million robux
50 seconds
If we're talking about only guns and purely the system behind them probs less
what is a better way of scripting dash instead of using bodyVelocity or just moveDirection since its moveDependent, for example if i was moving then instantly stopped the dash will stop too, what other method can i use which also makes it smooth
for i = 61, 1, -1 do
local md = self.hum.MoveDirection
bv.Velocity = Vector3.new(md.X * i, 0, md.Z * i)
waitStep()
end
task.delay(cd, function() db = false end)
can anyone here help me rate ideas i have towards my game and can also think on what to do towards the game, will pay you.
bro pls use assemblylinearvelocity
since it follows the gravity
use run service for it to keep updating the velocity
it won't lag or anything, everyone does it if they want the gravity being affected
when dashif
Dashing
the humble continue emerges
Guys I don't get why my simulator game is a bit laggy
Do u think it might be to many scripts saying while wait()
Probably
What are they even doing
What other reasons might a game Lag?
turn your graphics down
They are waiting if a value is changed then destroy part if not then..
Other games it's fine
You should use events instead of a while loop for that
Like a remote event
Not really
If youβre waiting for a value to change
You can do .Changed:Connect(function()
And then check if the value is true or whatever
So you donβt have to check every frame
ML is fun
If i have a script rhat is generating parts under different parents, what the best way to make an proximity prompt script work on all without parenting the script to the part because it will be destroyed later on
Collection service?
yh
yes
Aight thanks
Is collectionservice actually bad
Why would it be bad
It's a core service
does anyone have any good coding tutorials, i know the basics and can make a very simple game but I want to know more about coding so I can make the games I want to
Who told you it's bad
Tutorials arent needed
Ask chatgot for aimple and short game ideas till u get better
guys is collection service important?
You dont have to use it
I went weeks withoug dven hearing it
I'm not using it as intended, it's more like an ID reference for client/server sync, so each instance has an Id that is tagged and according to my friend, it has a bad impact on performances
this is a typical question but,what the best method to learn scripting?
should I watch the tutorial basics and after try to do small projects?
wym by tutorial loops?
The mindset when you think watching more and more tutorial will get you better at it
so mostly for basics and after I should learn maybe with claude?
Once you know lua basics + how it's integreated into roblox, you don't tutorial anymore
Well, the thing with AI and Roblox, is that modt of their content is outdated somehow
But ye, one u got the basics make project and ask it the question
It is, but with all the shit spread accross the forums, he has wrong info
ohhh,I see ,rn im learning the collection service
got a bit left and after imma try with ai some projects
I'm using kinda often while coding, but I usually need to provide him the context about the game etc when coding in luau
Otherwise, he becomez crazy
yo chat i want to get into scripting but i dont really know where to start or what to learn first. can i get sum suggestions?
i see,tyty for the tips,appreciate it
Not sure what you mean
Like
Each instance has an id so I can regerence it on the client even when streaming is on
That id is stored as a tag
Are you using 1 tag per object?
Yeah that's unnecessary, just store the instances in a dictionary or an octree or something
Yup
Ye but how will I find the instance since I can't store the path ?
Store the instance
I just made a simple system of projectiles that are easy for performance, can someone evaluate my code, please?
--Module Script
local Workspace = game.Workspace
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events = ReplicatedStorage.Events
local RunService = game:GetService("RunService")
local ProjectileModule = {}
ProjectileModule.__index = ProjectileModule
ProjectileModule.UpdateFrequency = 0.01
ProjectileModule.Speed = 50
function ProjectileModule.CreateProjectile(StartPosition : Vector3, MoveDirection : Vector3, Start : boolean, Number : number)
local self = {}
self.StartPosition = StartPosition
self.MoveDirection = MoveDirection
self.CurrentPosition = StartPosition
self.Number = Number
self.Break = false
local metatable = setmetatable(self, ProjectileModule)
if Start then
metatable:ProjectileRender()
end
return metatable
end
function ProjectileModule:ProjectileRender()
local Connection
local Time = 0
local StartTime = tick()
Connection = RunService.Stepped:Connect(function(_, DeltaTime)
Time += DeltaTime
if Time < ProjectileModule.UpdateFrequency then
return
end
local TimeSpent = tick() - StartTime
self.CurrentPosition = self.StartPosition + self.MoveDirection * ProjectileModule.Speed * TimeSpent
Time = 0
Events:FindFirstChild("Fire"):FireAllClients(self.CurrentPosition, self.StartPosition, self.Number)
if self.Break then
Connection:Disconnect()
Events:FindFirstChild("Fire"):FireAllClients(nil, nil, self.Number)
end
end)
end
return ProjectileModule
Oh wait you can't send instances
--Regular Script
local Workspace = game.Workspace
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events = ReplicatedStorage.Events
local Modules = ReplicatedStorage.Modules
local ProjectileModule = require(Modules.ProjectileModule)
local i = 0
Events.Fire.OnServerEvent:Connect(function(Player, MoveDirection : Vector3)
i += 1
local Character = Player.Character
local StartPositon = Character.PrimaryPart.Position
local Projectile = ProjectileModule.CreateProjectile(StartPositon, MoveDirection, true, i)
task.wait(3)
Projectile.Break = true
end)
--Local Script
local Workspace = game.Workspace
local TempStuff = Workspace.tempstuff
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Events = ReplicatedStorage.Events
local ProjectileTemplate = ReplicatedStorage.Projectile
local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local CurrentProjectile = {}
function RenderProjectile(Position : Vector3, InitialPosition : Vector3, Number : number)
local ProjectileModel = CurrentProjectile[Number] or ProjectileTemplate:Clone()
ProjectileModel.Parent = TempStuff
ProjectileModel.CFrame = CFrame.lookAt(Position, InitialPosition )
CurrentProjectile[Number] = ProjectileModel
ProjectileModel.Name = Number
end
UIS.InputBegan:Connect(function(Input, IsTyping)
if IsTyping then
return
end
if Input.KeyCode == Enum.KeyCode.G then
local vector = (Player:GetMouse().Hit.Position - Character.HumanoidRootPart.Position ).Unit
Events.Fire:FireServer(vector)
end
end)
Events.Fire.OnClientEvent:Connect(function(CurrentPosition : Vector3, InitialPosition : Vector3, Number : number)
if CurrentPosition and InitialPosition then
RenderProjectile(CurrentPosition, InitialPosition, Number)
else
CurrentProjectile[Number]:Destroy()
end
end)
Use a lua codeblock
Already did
That's a regular one
ass just fully create the projectiles on the client
No, it isnt
This is just a visual rn
im ngl the beta new explorer is actually so fire dude
dude its ass
how
I can't
local function example()
return 1+1
end
It can be nil on the client
way laggier with alot of instances
havent noticed that at all
Wth
it's the same
it jsut has so many quality of life features
dude
It's an issue on my discord it seems
okay, no problem
so, what's about my code?
like dragging multiple instances tells you exactly how many holding click and dragigng the mouse over instances with descendants opens them
Is it the right way to do something like that
you can also
On the server, the projectile is just a metatable and client visualises it
I will just use raycasting to see if projectile hits
if you have a folder with lets say a bunch of parts and weld constraints you can click one weld constraint at he top and shift click one at the bottom and its only selecting the weld constraints
i will actually die on this hill its so useful
You should only have the visual on client
No firing events except the uis
So, it works that way
I can't read it without the colored thing
It hurts my eyes
Hey
Are you rendering
?
On server?
No
preciate it
Then what does the renderprojectiles() function on server do
skidding rn
Its from the module
It Fires All Clients
Oh its a local script mb
Okay
You should try running a check on server
For move vector
i cant keep up with this channel its so fast
Do a dot product with character look vector
The dot product should be low
The MoveVector is the mouse hit position
Yes ik
start
end
Okay, thanks for your tip
If someone uses auto aim hacks
start
continue
end
whaaaaat
anyone experienced in scripting advanced physics vehicular systems? dm me with your portfolio
Studio
#reported
To test the anti cheat of your game right?
Not my game
Use roblox studio
use xeno
pay me and ill do it
That was fairly easy
send my what you need help with
print("hi")
@proven wave Hi, please keep marketplace related topics in the marketplace (hiring/for hire content). I've already deleted your message.
oh
Banned
Dead ahh #code-discussion
What an example of something to code for an application to the scripter role?
I have a model, there's a model in that model, that model has parts and a rotation part.
Structure:
Model A --> Model B --> PartsHere
Model A welds everything in it to the vehicle seat (so PartsHere are welded to the seat)
I want to rotate PartsHere without affecting Model A (because then everything will rotate with PartsHere
Any suggestions?
Uhhh I know a way but don't remember what is it shit
is there no better way to do this
Are these maps easy to build?
Make it into a function and just call it inside each code block
Its exactly the same thing so just turn it into a local function
Yes using parts
How much would the map cost?
i see
Idk maybe around 1-5k?
Typically the cost idk if it's right the map requires hard work
That map i just showed is sols rng that prob took days
Designing things on your own takes time
I hope not
oh crap this channel is code discussion
Idk literally people talk about building here too
give me some ideas
wsg guys i looking for scripters for my new game, if u want to help me dm me.
can anyone teach me how to code
BrawlDev
huh
YouTuber named BrawlDev watch his playlist
kk
hey if i wanna change the size of a tool hgow i do cuz it doesnt work it glitches?
Wdym
i got a question i wanna generate a number between 1,3 with math.random but i want it to generate digits after the dot like 1.192
u generate 1000 to 3000 then divide by 1000
is that the only way?
i think ye
k
Math.random()*2 +1
Does anybody have a good tutorial on text chat service and specifically creating custom chat tags tailored to a groupβs role ranks?
yes just ou need dev who is 3 years working on so things
Looking for a coder that knows how to code cooking systems and do animations in cooking systems.
I pay usd
Dm me
I LEARNED PRINTING!! HERE IS WHAT I PRINTED:
IT WONT LET ME PASTE
print("Hello!")
print("How are you doing?")
print("I'm doing very well!")
print("Same here!")
print("Isn't it cool how we're just lines of text but we just bulid up and make a story?")
print("Yeah, we're just print statements but its kinda cool")
print("The guy whose writing us is gonna be making extremely succesful games one day!")
print("Yeah, we should probably say something to the future guy whose reading us")
print("Yeah, you're right")
print("Hey man! just wanna let you know, you're doing a great job!")
print("Don't get demotivated, keep pushing yourself!")
print("We hope you created some succesful games. And if not, don't worry! You're still learning and developing skills.")
print("Yeah! Keep trying. You got it!")
print("Bye!")
print("Bye! and remember, never give up!")
oh
there it goes
@true birch
how do I access a module script in other scripts
anyone know what would be the best/most efficient way to learn scripting
Require
Is it right to Enable or disabl UI's from the client?
Sure
is there a way I can pass functions as parameters in other functions?
I want to pass a custom function parameter to another function and run it from there/possibly fire to server, whats a way I can acomplish this??
to reuse code in a script should i rather learn how to use modular scripts or use return function
why is it not neon
hey how do i scale in scripting a tool?
what
theys a proprety in tool called scale but i cant edit it in scripting is theyre something like :scale() i need to do am not sure when i try edit it errors me
Yes, but not across the client server boundary
it error me when i try to change the scale
Haven't tried sending it wrapped in a table or dictionary though
Luau is case sensitive
what should i do then?
Why would you even change scale
rogue player..?
And show us code
rogue lineage
im new at rogue
can u help me and give me artis ill give robux
no
.Scale not .scale
so wat can i do?
i did Scale and then did scale same error
it doesnt fix
Show full error message
You're doing .Scale on the tool not the model
i only have a handle so i do it in the handle?
show code
ore is the tool
Show ur explorer
here is some
Where the tool is
it gives me the ore
Did you make the module?
and everything work it ores at the scale
yes
What does additem return
show the part where it creates in the module
Guys how do i fix messy code? Mainly reused code and the lack of modularization. Learning to use modulescripts is scary bro
Also oop
the add item function
Can someone give me the roadmap
return the item cloned
Module scripts are pretty easy
What's the 'item'
There's no roblox instance called 'item'
Oop is barely supported in luau
show a picture of the model
What's the best way to progress through these topics? Do you think it should be like this:
- module scripts
- oop
- vscode and git and rojo
- walle
and its children
?
So it's returning whatever is in storage
Wdym?
dont worry about vs code yet first learn to code on studio
You can't make proper classes in luau
Metatables solve that?
Not fully
try Ore.Handle.Scale
From what I understood it is supported just in a different way from the normal convention
Part's don't have scale
Where does it lack?
Not fully supported
il try
It fails in some cases where normal oop is completely fine
same error
Especially with strict typing
you got any idea of wat i can do?
Do you think it's possible to make a front page game without a trace of oop?
oop is object oriented programing?
Put a model inside the tool and put handle inside the model
Scale the model
My impression, especially after talking with others in here, is that oop is really important
normaly its almost everywhere?
Yes 100%
Ore:ScaleTo(Ore:GetScale() * 10)
They probably mean modules
yees
why you strugling wit it?
In a way modules can act like oop but like i said, it's not gonna be able to do everything oop can
Basically
A completely oop based approach is not possible in luau
However you can still do the same things just not in a oop way
did it work
I ran into these issues when trying to make a completely oop based approach to make some useful data types
Uh
Would you say it's a "cornerstone" skill
yes thanks
Well not oop in the regular sense
But a proper utilisation of modules yes
Very similar to oop but a different workflow
Whenever making something i first make a module
You can abstract almost everything to a module
i got a question when the tool is too big and i equip it my character kinda glitches what can i do to fix it?
Turn off cancollide
its turned off
What glitch are you getting
when i equip it my character flings a bit and spin
Being comfortable with module scripts is definitely a core skill
Impossible to make a decently sized game without it
okay so when I type require the script auto matically works??
require
golly gee
cantouch also
You have to require the module
Can you make it so all your game's scripts are in modules? Both server and client I mean.
Probably yeah since that's what knit does i think
turned of everything can querry can touch can colide and anchored
Kind of
hello guys, this script is doing what i want, and i know that it doesn't save after (the parts revert), how would i make the changes persist? thanks!
What's the smartest or most efficient way to use modules?
basically, i want the changes applied by this script to persist after i stop running the script
any idea of wat i can do?
send a photo of the tool and its children
Technically you can have everything in modules and have only 1 server and 1 local script to run the code
only has 1 children its handle
However that's very impractical
Yo guys do any of y'all know if BodyVelocity is still good nowadays
Itβs deprecated
I see some people saying linearvelocity is bad despite being its replacement
I'm aware
Body velocity does behave better for most cases
However, it is deprecated so its likely to be removed
Which is unfortunate
They already removed it from the explorer and stuff but not as an instance itself and tooo many big games use it so idk if they will tbh
I wanna make a parkour system for some game i'm preparing and i wonder if i should still stick to bodyvelocity despite the deprecation
Abstract any code that is used in multiple scripts, store constant data in modules, separate code into small modules that are easy to read and find the purpose of
number1.MouseButton1Up:Connect(function()
textlabel.Text = 1
end)
number2.MouseButton1Up:Connect(function()
textlabel.Text = 2
end)
number3.MouseButton1Up:Connect(function()
textlabel.Text = 3
end)
number4.MouseButton1Up:Connect(function()
textlabel.Text = 4
end)
number5.MouseButton1Up:Connect(function()
textlabel.Text = 5
end)
``` How do I make the script like if I type "123" I want the text label to say 123 instead it say 1 if you click 2 it says just 2 if you click 3 it says just 3
It's risky
Thanks.
Store a string
I'll try making my system with both to see if i really have to use it anyways
The new instance behave differently
Is it as simple as that?
Pretty much
Also how do I "decide" whether a code is gonna be used alot or not?
hi roub
I feel like that can only be known after writing the code
when aot fw warhammer
You can tell
For example, code for handling datastore calls
never i left fw
You might need to call this from many scripts
just put hope on the new modelers
wtf why when
So you store it in a module
why when how what wtf
orange is ASS
orange isnt the new modeler hes the old modeler i had replaced 
(With a serverscript and a bindable function so it can be actively called)
game might be cooked ngl
you used to culinate in that Ho
i wanna make my own anyways
Smart
ye i saw ur new at model its so fire
The most important part is that your code should be easy to debug and/or modify
It should be readable enough that you can come back a year later and still understand what the lines do
indeed i can't do nothing but make the best aot visuals on roblox eitherway so i wanna try and bring a fire game to life
Do you think it's alright to have many scripts in a game? I always have this tendency to try to create as little scripts as possible. Or should I make many scripts and each one for a specific task?
Somewhere in between
Each script should be dedicated to one function
One function?!
It should use modules where possible
ngl That's true but i bet its gonna take a LONG time to make bro
the lore the name
Not literally a
local function
the stages
I meant like a specific purpose
once odm/movement/titans/shifters/horses are done the scripting will be so much easier
ik who to team with if i wanna speed it up anyways
Oh I get it
If you break down a game into its core functions each one should have a script dedicated to it
And the functions should be broken down into simpler functions
Each should have a module for it
Why is bro so smart 
Is js experience
pretty much 60% of the game fr yea
better let me test it tho frfr
Plus this is what they teach you in a basic cs course
whats a way I can check if the loop has finished?
I need to know when a certain text is done typing to offset time from that but I'm unsure how I'd introduce it in a loop
Its the first stage in the program development life cycle
Wdym
I have a loop that is a typewriter
how can I check if it finished
I'll js uise a bindable event
it's on my profile maybe you will π«‘
gl w the aot game
oh fr
I don't remember if you said it, but is it going to be prog or RP?
i cant seem to find it lol
i'd never make a rp game
good lmao
main gamemode will be a permadeath campaign obviously thats what i'm into
but i'd do other gamemodes too
π
PD games have biggest player retention
i'll make the campaign i'd dream to have and not just a fw copy
i don't mean a game like birdcage etc
i mean a multiplayer replayable open one
yup I know, its an RP game I'm talking more about FW cause of the player loyality.
rp games too ig
but rp games are boring
Yeahh i'll make sure the game will have a loyal community
if i release it it's cuz it's the best aot game anyways
visually gameplay wise etc
so far the models I've seen are π₯
u got it public?
use runservice but i need the velocity to drop down
Do you know the length of the string before hand?
yes and no ppl can join but theres no chats for now
i thought u already made the game public lol
0.000007750000804662704, 0.000011583324521780014,0.0000055835116654634476
those are the time it takes for my state machine Switch
yeah you have to type a bunch of code
No I dont use html
oh
I do luau
cool
How do I make a randomizer shop system like in grow a garden in roblox studio?
True and true1 or true2 = true1
False and true1 or true2 = true2
Imagine its 1x1=1
True x true = true
No, I understand that
π
That's what u set
Workspace.Baseplate will be the baseplate instance
Damn, I didn't know you could do that so easily
Until today
I'll totally be using that in my future projects
Does anyone know if there is a better way to initialize components other than making a whole new service for them?
how is this possible guys?
wdym by components
are u talking about the module
^
yeah but usually you require the component, loop through tagged objects and then call the function which initializes the object
????
component auto detects new instances
added
oh and then the functionality of the new instance is also handled by the component?
uh yeah
thats what the Construct and Start methods are for
oh ok
what is never
How should I go about structuring my code base with module scripts; I've seen many games use almost exclusively module scripts and I'm wondering how I should do this
make 1 localscript and 1 server script that asynchronously loads each module on server/client
Does anybody know any good AI apis or if character API came out publicly for Roblox
is there something like promptShowing?? I'm trying to check if a prompt is on the screen WHEN the function runs
u gotta make a function based on the distance between the player and the part
magnitude
check out monzterdev
he explains it somewhere
not sure where though
I love luau
ps3 π
Gang what ML project should I develop
Oh ok btw you can do '' and ""
2007?
Yep
not actually sure but you can treat it as nil
It feels like old
This script was made by uhh idk exactly who but its Telamon or Reverse_Polarity
Or both
Ok
honestly it being old isn't the bad part
it's just whoever wrote it wasn't very experienced
yandere dev type shit
I dont know very much of roblox in that year but I think only some people from roblox and admins knew some scripting, so it isnt a surprise that the person who wrote it didnt was experienced because it seems to be a game made by Telamon (admin and roblox worker) and Reverse_Polarity (idk if it was a "normal person") in that case that explains a lot
how do i move a player's camera to a part? i tried workspace.Camera.CFrame = Part.CFrame but it no work
You need to disable Roblox's camera system as it will simply return the camera to the player
Set Camera.CameraType to Enum.CameraType.Scriptable
you should also do workspace.CurrentCamera instead
Can Roblox run on ps3?
good for the time period tbf
common teleport script
what language is this?
React
Gemini also implemented animations to while chatgpt did not
both had the same prompt
gpt isnt that good at coding
What are somethings I NEED to know in scripting. Cuz I don't really know what to learn I've learned a lot but what are all the things I NEED to know
this is way funnier than it should be
worst sentiment of 2025
gemini is just better
loops
Doess someone know how to lock a uigridlayout so it doesnt move anything
Hey guys Iβm a builder and recently I got a new PC therefore I am now looking for ways to learn Lua as stated before im already a good builder. How did you proficient coders/scripters learn lua/luau or do you guys use anything else? Thanks!
what do guys think of this new water
tuff
juar
just start!
yea but where
documentation yt
some people say forums some say youtube some say through books
anything u can learn
look at anything u can learn from
i wanna know the most efficient strategy to learn Lua
learn practice
alright
thanks man
Iβll probably start with online documentations through websites and go to youtube videos afterwards
basically i used to llook at other games and how there were scripted I had knowledge of scripting but like knowlledge of the language but not how to write scripts then I understood the scripts read about how they were written and stuf
roblox got a good tut u can tr
try
if u want help just hit me a dm
dont be shy!
gl
just practice and keep learning trust me it works this way
I used to be like you wondering and I started and now I can script!
you never see it coming!
you guys know how i can make random spawn system simllar to those steal a game things on roblox with diffrent raritys and etc
yea itβs just that iβm a litttle skeptical as learning the most efficient way comes from learning the basics and working on that
Anybody know C++ ?
anything you learn is useful
maybe you won't use it but it is good to know cause who knows if you willl
yea i guess
yea whats up
yea it takes time and a lot of practice
mhm iβm pretty well versed with most things though i know java and javascript along with a little python from my AP classes
but i specifically want to know and understand Lua more
Luau is like python ig
and get advanced at it
alr
just do a lot of practice
not really they are simillar but there is difference
I prefer luau
just cause it makes it easier for me
not in a way
but like
Idk how to explain
silly programming languages always want to act special
some start indexes at 0 some at 1
get soo confused sometimes
fr today I was doing smth on the computer cmd and I count 3 so I select 3 and then it says incorrect and i look and it starts from 0
Programming is hurting my brain
going for realism
kinda sad try taking a rest
oh wow great job but you might need new ui!
no way 
the ui is just a placeholder for my everything
in realife game there will be absolute minimum of it
going for realism still
looks nice
kinda hard tbh
im not a terrain designer at all
im mainly builder, scripter
ill have LOTS of trouble with UI for sure
ive made playermodule from scratch and added everything i wanted
the water kind of looks like liquid mercury
what the fuck i can do with roblox water
I want the power to increase when hitting this stone with a sword, but I can't do it, help please π¦
btw im trrying to take inspiration from far cry 4 and russian city
idk man i am just saying a tad bit of transparency would make it look more like water but unless your game is about water you dont need to worry about it
@remote bearpls help
the transparency is already maxed out
and game will use water as a movement system in few chapters
i got big plans for it
i cant even make anything out below the water with maxed out transparency, it may just be a lighting issue idk
that's same as in real life
what's the issue i don't understand
water can't be glass clear
yeah but changes on how deep the water goes does change its appearance and its common with shallower water like rivers or small lakes
masterpiee
masterpiece*
masterbuilder*
bro why the fuck my roles are gone
i was boutta say check my roles
to flex that im not a builder
but i got NOTHING with myself
idfk
its actually super easy to make
no joke
its simpler thann you think
just do this, and this, skip few steps here
and you got ICBM in home
now thats what im talking about
im ass at building i barely know how to make a part in roblox studio π
that's probably the fastest and least motivated place ive made LOL
tutorials teach
then just use blender, the only issue is you have to learn how to use textures instead of materials
both are brainfuck in certain places
well i do know how to make decently good builds but im still ass
if number % 2 == 1 then print("even") else print("not even lol") end
its "hand written"
nothing else
advanced system btw
thats a strange way of saying hard coded
no he wrote the whole code on paper first
then rewrote it to the roblox studio
u got them the wrong way round π€π€π€π€
Morphogenesis by Alan Turing.
which would you rather read:
(((i + 1) // 2) % 2) / 2
or:
(i + 1) // 2 % 2 / 2
can someone help me with something? i dont know how to do like this rotation issue.
Can anyone help with a code? I think ik where the fail is but I'm not sure how to fix it. It's kinda long to put it in here so I'd appreciate a dm
sure dm
No hiring outside of marketplace, thanks 
Fair, can I have permissions to post then?
can i pay someone to help me
guys I have some boolvalue that im trying to check the value for, and even though its true (the box is checked) the print statement keeps printing false and I dont understand why its doing that
can someone help?
this just cant be real
would this crash studio
LOL
Can someone send me the page that has all the script commands
wdym script commands
I mean all the things you can tell it to do
yooo after like an hour of coding I made a simple trade shop using a remote function
actually i made it in like 20-30 minutes but the debugging part is what made it longer and it actuallys annoys me why
- was because i was sending the remote event before the mousebutton1click so it was autmatically taking money down which bugged the system.
AND
- The name of the tools were wrong. I added tools like a flashlight and sword and expected them to have those name so I added them and looping through replicated storage but turns out their names where "ClassicalSword" and "Flashlight" (without a capital L)
actually annoying but felt good and im improving way more from when i orginally wanted to code but i gave up around remote functions!!
how to find a scripter who will actually finish a comm
what do you need?
Was some stars wars shit, even offered an entire band but most dms were just bots and the people we wrked with just quit afte a while or dropped the comm, prob due to difficulty/scale/time needed
crazy
how do i learn to better structure my code and put it together and stuff
cause honestly i learned how to code through yt tutorials and stuff but i dont' really know how to learn the more niche topics
just google it i guess
i mean im basically braindead still i cant remember even the basic stuff even tho i just did it yesterday
but dev forum is pretty good it has a lot of stuff
very useful
look for long term programmers rather than comm at that point
yo
does anybody have a drift system
like basic
ofc, we moved towards that just a lot of bailing/ghosting after a while even from good scripters ability wise, just comittment issues imo
yeah generally when people say commission they expect short term like 1 week - 2 weeks at most
like what
honestly you shouldnt be having that much trouble finding someone unless its an insane task
Is there a way to anchor a rig without disrupting the animation? Or is there a simpler way then coding each part of the rig to be anchored?
Ain't no way you got banned from using Visual Studio Code
What you mean
Character with HumanoidRootPart and Humanoid will make him anchor
Or you want the character to float ?
I have a rig that has an idle animation and I wanna stop him from being pushed around but if I anchor his model it stops the animation as well
Dm me if u can script. im tryna make a fast incremental cashgrab game i have the idea already.
Ironic name if you can't do the first thing in it
wdym?

try it urself, it really depends on how u implement the aabb and what u r using on
You were anchoring the character model?
i can though
raycast and aabb are not really comparable for collision as they vary on how they work
aabb u compare the vertices , to achieve such an affect with raycast u would have to do multiple raycasts
yeah I have no idea what to anchor to stop him moving without stopping the animation too
check dis out
you can use mover constraints
linear velocity
The animation is pushing him back?
GTA 7
LOL
its uuhh vc sync
was talking normally and then screaming near the end
Please continue that will turn into GTA
its meant
to be sub rosa the entire game is a ragdoll physics game
I just figured it out thanks to @true birch I had to anchor the humanoid root part and not the actual rig parts
Oh alr good luck
Alr
Please make the jiggle physics better ππ
that scope is pretty useless
what scope dwag π
Oh they become more active
when you start getting injured
like the iron sites in CSGO
eh
Btw don't you dare delay the game like rockstar games
should add an iron site to it
just using the shotugn requires you to manually rack it forward and backwards
you should see the nades lol
i got a decent clip here
yknow what that needs 2 ironsites
imma smack you ahh rn π
its a ragdoll
so uhh it aims how i make it aim
fine but add a 3rd ironsite so I can flip the gun upside down


