#code-discussion
1 messages ยท Page 42 of 1
definitely not
how do i start doing commissions n stuff
record a video on how it works
get the scripting role and you can post in #scripter-hirable using the bot commands
I have basic knowledge of scripting but i cant do Like fancy fps games or Vehicle movement system or fancy abilties
basically what everyone asks for lmao
lol better keep learning then ig
i hope roblox fix the exploiters
and have a anti cheat like fokin other games
it makes my scripting more anxious
Like dude
L
Get yourself a chronically online employee
Or spread out your workforce's timezones
Not too far, or your developers won't be able to coordinate effectively
Bug's not being squashed:
Multiple UI's bug
Teleporting in a random location to prevent tp killing or spawn killing
How's the latter a bug?
I don't want to stress over coding but it kinda feels like I have to... Despite ntk having to since I don't have a time frame
Stress over it how?
wdym latter?
I'm the only scripter my small group has and I have... No real experience or knowledge.
And I struggle to see how I could code the game
I hate that I know how to go about making something yet can't...
Ig I'll just watch some videos before bed.
It's just a matter of time
can anyone help with the ragdoll death sound? It wont activate
I suppose.
yea you will get there eventually
But I'm just... weird.
I'm a perfectionist and I tend to not be willing to invest time into things
For example, I have dropped many things due to just fearing that the effort i put in will nto yield results I desire
it's why I dropped aim training completely
if you do that how will you get experience
Ik. It's dumb
It's more of a stress thing I feel
Well if you learn something about programming, you can always pick it back up later. Thats how I learned a bit at least.
the most important thing is to never give up
true
im a perfectionist too. i would get frustrated when coding too (who wouldnt). but i never let that stop me
it's the struggle that makes it worth it
can anyone help with the ragdoll death sound? It wont activate
how are you doing the ragdoll?
Perfectionism is a sign of a scripting prospect
does decompiler exploit still exist ๐
yes. i believe so
Yes
dang
anyone know anybody who i can pay to combine vfx with a cutscene
It's a sign of negativity for me, but thanks ig
I mean, just look at how I write my scripts:
https://github.com/Ziffixture/Roblox/blob/main/Spectate.lua
I'm trying to be kinder to myself
Ok weirdo
I'll never stop trying to improve the readability and efficiency of my scripts, and it's the first thing I look for in others'
Eventually, you'll reach a point where you can work with bad code
Even write some of your own
At the top of the perfectionist hierarchy is "eh, fuck it"
That comes with experience, lol
bro saw the opportunity to flex
I usually spam print statements to find where the errors are lol ๐
console: ๐
or is there anyone i can comm to do this?
if anyone knows anybody

Calling it a flex means you think it's good
That's where the real ego boost is
But it really is just an example
i just skimmed through it
can someone help me out here?
wha
That error couldn't be any clearer
๐ญ
Do your reading comprehension grade justice
.
game.GetService
โ
game:GetService
โ

Let's see line 3
Whats line 3
(Suddenly it works)
oh, I was missing smth
(There it is)
๐ญ
1/1/18 EDIT: Shuzo Matsuoka is a retired Japanese professional tennis player who does motivational speeches like this as a career and is a well known meme in the Japanese internets. HE IS NOT A JAPANESE FISHERMAN WHO ALWAYS FARMS ASIATIC CLAMS IN -10 DEGREE CELSIUS WEATHER AS SOCIAL MEDIA IS SUGGESTING. Sorry to burst some motivational bubbles b...
That's a different problem
How much do you know about coding
Either,
- The tutorial's outdated
- You failed to follow the tutorial to the T
Y'all oughta be checking the release date of these YouTube videos like the expiry date on the back of milk cartons
What on God's good Earth is that whitespace?
Don't tell me the YouTuber did that too?
Wait...
it was 2024 oct 4
not that old
That is some ass code
Figured-
These kids be release tutorials like they're engineered to perfection
Aren't bindable events only on one side either client or server?
Correct
Your InputManager script is supposed to be a LocalScript
The events mostly do different things
so do I jsut delete all this code?
idrk what that means..
UserInputService ties into the input devices of the clients. The server is not able to this
That would be an infringement on the client's security
๐...
It means when the player inputs something into the game it comes from a local script
From the point of view of the player
Yeah
Correct
A local script
oki
alr
Is supposed to be this ^
Can anyone help with the death sound? It doesnt make a sound when i added ragdoll
can I keep the Input maanger script or do I delete that one too?
how are you doing the ragdoll?
I might try make my own script per chance
I would just take the code and put it into a local script for input manager
local script
i mean how does it work?
The code is fine. It's just in the wrong source container
Scripts run on the server, while LocalScripts run on the client's device
ah
it ragdolls you, when you die
You're working with user input, so you need to operate on the client's device
If I wanted to give myself multiple dash charges, how could I do that?
also, how would I change the Cooldown of the dashes?
so you're using the player's character and not replacing it?
nope, i aint replacing the ragdoll
and its not on characterscripts
and it still works
(In workspace)
the first 7 lines of the script you originally sent works completely fine. so the ragdoll script has to be getting in the way. can you send a video of it?
I put the same code into a normal script. It's not working-
btw, back onto the script
which part actually uses the dash?
I want to add another condition
k
of me resetting??
You've only worsend the problem
yeah
what.
You switched the wrong script. Both are now server-sided
Both scripts must be blue
what.
No
Watch Roblox Studio and millions of other Roblox Studio videos captured using Medal.
check the died sound while testing and see if the id has changed
k
just for checking
the sound id in the script?
I have this rig, it moves weirdly as if it's on a slippery platform, pretty sure it's because of it's design. Any way I can avoid this?
I dont see it
like
where can i locate it
i forgot
OK so, good news. Dash works.
Bad news, It's HILARIOUSLY too fast
but uh
thanks
๐
can a local script find properties of other things in serverscriptservice
find your character
no
ohh k ty
you're welcome
what about in workspace though
of course
kk thanks
you're welcome
@hoary cedar btw, in my code, which part of it executes the dash itself?
I want to add charge system where I am able to spend 1 charge to dash which they regen over time. But idk the code behind it
ohhh so do i place the death sound in the humanoid root part?
the script you sent changes the default sound already. so you dont have to
but yes. you would
well, replace the default sound
I saw the oof local script inside the character
so did it change the sound id?
nope
still dont hear anything
even thoi placed the sound in the humanoid root part
send a ss of the sound's id
This line right here is where it all begins. You can add additional checks to stop the dash from proceeding
that's why you bully them and make it hard to exploit
Script kiddies are easy to find, someone who actually makes exploit youll never win
I've made a few in my past
just dont give them secure stuff
same my og phantom forces aimbot is stilll unpatched to this day
I developed an ESP exploit for Phantom Forces though, just for fun
my exploiting acc is like rank 20
wow ya'll know alot about code ๐
i never needed to use it, but it essentially works in every fps out there
and you can too 
hey where do yall learn lua?
Scripting Roadmap The scripting roadmap has three categories, the basics must everyone know to continue with other more difficult categories. Intermediate is someone who maybe does already commissions and is already not really anymore a new programmer. It is also useful to check what you maybe never knew and now found out through the lists Bas...
^ this is a pretty good guideline for what to learn when
i see a lot of tutorials but i dont know which one covers more
Tutorials are horrible
alr ty ill look into that
dont use them, its called tutorial hell for a reason
btw, if I make a line of code that Regens a variable at a fixed rate, do I need something to loop it indefinitely? and do I need something to trigger that loop or will the loop jsut activate itself?
if ur unsure about something, look up a video on that one specific aspect. not full tutorials how to make x
thx for the encouragement, im woking on a small project but like i can't get some icons and 3d models, and the map just looks bad, but its my first serious project
you dont need a map or models for development early on
yea nice advice
use place holders
ik
haha yeah i dont really follow them most of the time im just looking for the words list
plus i keep getting distracted by roblox games, so i don't get time to develop
9000 lines of code and this is my map
my scripting is ameatuer too
tbh, most of what you learn is through experience and actually trying
dang
yea i get it
so that's good that you're making something
Visuals arent important, they are extra
yea
FR
A good framework with ugly visuals = good game.
A awful framework with gorgeous visuals = horrible game
true
ill try publish my game today, i have limited time tho, then ill get feedback! ๐
Visuals is like maybe 10-20% of development. the other 80% is just scripting and Planning features.
Never do this
a really good excuse to skip the excessive modelling is just to make the whole game 8-bit themed i managed to get away with those a lot in godot
k
Never create a deadline for your self. things get done when they get done
wdym?
Dont create deadlines
oooooooooh rightttt
youll break them every time, and feel awful
mhm noted โ
doesnt need ss but here rbxassetid://135021800852257
yea true
i have 1 hr today ๐ญ
How many Triple A games ahve pushed back launch dates?
no. inside the property window when testing
Their funding is million times yours. and still cant keep deadlines
triple a?
teams of thousands of people sometimes
in the script?
many like als which i like playing
they used to update like every weekend
but they do it early monday
this thing
Triple A is like GTA, COD, etc...
games with hundrred million dollar budgets
If they cant meet a deadline, you dont need to.
games made by big companies are considered triple a games
oh i thought it was roblox games 
so i ss the sound id, correct?
yes
relax, have fun things get done as they get done. Me scripting a simple Ui to get its buttons work took over a day
ill come back!
ooh how long have you been scripting for?
almost 10 years
But this Ui is different..
me like 3-4 months
guys, does this look like it'll work?
I'm tyring to make it so I have to use a dodge charge in order to dash
thats a different aspect
It exists in the Workspace, but its client sided. so no local script or server script can interact with it
so it did change
oh wait I just realised, there's somehting I should fix
test it and try it out
making sure Charge doesn't go above 2
i dont see any difference
There's no concrete answer. What you do depends on what you're doing
๐คฏ
this is the regular sound id
idk what to tell you other than it's other scripts are probably interfering with it
bc the script works fine for me
made a small change, still don't work. Why do you guys think it's ignoring the condition for there to be 1 or more charges
oh wiat
im dumb
I just realise,d I forgot to remove a charge each dash
๐
"YOu are my special"
ok the charges work
maybe the ragdoll
but regen doesn't work
maybe. does it delete the hrp?
Will this code be running every 1 seconds or do I need to add somehting to make it run every 1 second?
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
local deathSound = Instance.new("Sound")
deathSound.SoundId = "rbxassetid://135021800852257"
deathSound.Volume = 1
deathSound.Parent = character -- Attach to the character
humanoid.Died:Connect(function()
deathSound:Play()
end)
end
end)
end)
does this one work
the task.wait(1) will make it iterate (run through) every 1 second, yes. you dont need to change anything
alr
things still aren't regenerating tho..
hm. That implies the regeneration isn't infact working
looks like it. test it
where do i learn
doesnt work
either yt or there's this: #code-discussion message
local PartsIWant = workspace.PartsIWant
local LocalPlayer = game.Players.LocalPlayer
for _, part in PartsIWant:GetChildren() do
task.spawn(function()
while true do
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Params = OverlapParams.new()
Params.FilterType = Enum.RaycastFilterType.Include
Params.FilterDescendantsInstances = {Character}
local HitBox = workspace:GetPartsInPart(part,Params)
if HitBox then
LocalPlayer.PlayerGui.PopUps.Frame.Visible = true
else
LocalPlayer.PlayerGui.PopUps.Frame.Visible = false
end
task.wait()
end
end)
end
Would this be laggy if i have 50 parts doing this
guys
Will an if statement be retriggered after being previously triggered if the statement that it's for becomes true again?
it will only trigger if the code runs on it and it meets requjirements
give me a up to date playlist from yt then
you could just use .Touched. it would probably be way faster
i've heard brawldev is a good one
๐คทโโ๏ธ. it has to be other scripts interfering with it
so do I need to run it inside an infinite loop block?
uh oh
wait, shit
i had a heart attack
I thought roblox went "Oh, an infinite loop? Imma kms)
well what are you trying to do?
it'll have a stroke, but if you end it, it'll be fine
you arent changing infiniteLoop so the requirement is never met
I want to be able to make that main if statement constantly check for if dodgecharge is < 2
but it just seems to stop
exactly
so it's infinite no?
that's what you want?
you could use```lua
while true do
end```
o
This isn't an ideal approach
that looks good
Any looping at all, really
:3
nah i cant cause i have to track when players leave and i heard that using touch ended sucks
oh. if it's done on the client, it could hold up
uhhh
how do I format a while true do statement?
where do I put the statement that it's checking whether it's true ro not
true is the statement
since true is always true, it runs forever
nah you're good
it doesn't work..?
wdym?
There's a way to do this entirely out of math
Ideally, you wouldn't busy-wait
The next best solution is to use an IntValue
i think I fixed it..?
Or to start threads to recover lost charges
Me personally, I would use math
But that is a lot less obvious
btw, if you wanted to use repeat for an infinite loop, you would do:```lua
repeat
until false```
what r u trying to scirpt
this is what it looks like now
A dash that uses charges that regen passively
just use math and a little chat ppt ๐๐ฟ
e
-- If there are no charges, check how much time has elapsed since the last recharge
if dashCharges == 0 then
dashCharges = math.min(MAX_DASH_CHARGES, math.floor(time() - dashChargeTimestamp))
end
-- Still no charges.
if dashCharges == 0 then
return
end
-- A charge was awarded or used
dashChargeTimestamp = time()
dashCharges -= 1
-- Do dash
Basically
o
whats a good way to make a localscript check if a player is inside the blue zone? and it needs to also know if the player is not in the blue zone
Actually, this is flawed
do I copy paste this or..? idrk what to do with this @_@
Ignore it
wild
what's the problem with mine?
que
Busy-waiting might be simpler for you though
I'm probably overengineering this
Yeah
I can definitely do it with threads, but making it elegant is where it becomes overkill
You can't have that loop before the event
idk what threads are
Do you know what a loop does?
whats he trying to do Ziffix?
It loops...
Code is read from top -> bottom, left -> right
Zereal so since your new, for good practize never use While True Do
and...
If you need While True Do at ur current level, find another solution trust me
square fucking one. It won't regen still
Loops interrupt the continuation of scripts by hijacking its normal flow to return code execution to the top of the loop
Essentially freezing a part of code in a time loop
Code execution will never go beyond that loop
Just trying to dash.
Every dash costs a charge (2 at max) and they regen 1 charge every 3 seconds
and if used improperly, youll crash everyone in your game
alright gimme a moment to think
I want the regen to loop in the background whenever my charges aren't maxed
aight
okay zereal got smtn gimme a moment
Your thread will constantly occupy unnecessary execution time
ty
Who figured listneing to Jpop makes coding feel less painful
For your regen youll do something similar to this :
local dashCounter = 3
while dashCounter < 3 then
dashCounter = dashCounter + 1
wait(3)
end
https://scriptbin.xyz/ivetopamuf.lua why do bricks get stuck in air
Use Scriptbin to share your code with others quickly and easily.
Zereal do you understand funcftions and how to write custom ones?
well uh, this is what i got rn
while true do
if dodgeCharge < 2 then
dodgeCharge = dodgeCharge + dodgeChargeRegenRate
if dodgeCharge > 2 then
dodgeCharge = 2
end
task.wait(3)
end
end
Since we will put all of your Regen into a RegenFunction, then call it when ever you use a Charge
not really
Alright so Functions, run a block of code
you see your
if dodgeCharge > 2 then
dodgeCharge = 2
end
This is one block of code
With a function we can Run a single block of code from anywhere, just by calling its name
(as long as its inside the same script)
local dashCounter = 3
local function dashRecharge()
while dashCounter < 3 then
dashCounter = dashCounter + 1
task.wait(3)
end
end
dashRecharge()
So that last line, calls the function
any where we use DashRecharge, now runs that function
So to simplify this and MultiThread to not create a bottle neck
we will use Task.Spawn()
local MAX_DASH_CHARGES = 2
local DASH_RECHARGE_RATE = 3
local dashCharges = MAX_DASH_CHARGES
local dashRechargeThread = nil
local function tryRechargeDashes()
while true do
task.wait(DASH_RECHARGE_RATE)
if dashCharges < MAX_DASH_CHARGES then
dashCharges += 1
else
break
end
end
dashRechargeThread = nil
end
if not dashRechargeThread then
dashRechargeThread = task.spawn(tryRechargeDashes)
end
if dashCharges > 0 then
dashCharges -= 1
else
return
end
-- Do dash
(Dont worry about what this does)
โจ
Ziff got it
Look into Functions a bit and practice with those
they are a crucial foundation piece
I can't really understand it ๐ญ
you cant make anything with out it
can you use modules from module scripts in local scripts or is it only server
yes u can use modules anywhere
oo bet
Except for ReplicatedStorage...
and ServerStorage
Code does not run in those 2
(i might be wrong with this)
yeah alr thanks
Remember that recharge function i mentioned
yeah
The code in modules will execute in those containers since they're required by scripts outside of those containers
His last code block is basically running that, as a spawned Task
Ohh alr
OH YEAH im tossing my EventListeners inside there
then crying it dont work lmao
but they are just serverScripts
ok so... how do I make and use a function..?
guys whats a bindable event
Remote Event, but Server to Server or Client to Client
one sec
ohhh ok ok
alr
Scripting Roadmap The scripting roadmap has three categories, the basics must everyone know to continue with other more difficult categories. Intermediate is someone who maybe does already commissions and is already not really anymore a new programmer. It is also useful to check what you maybe never knew and now found out through the lists Bas...
Basic, Chapter 3
With out the basics you wont be able to script anything
Functions are blocks of code that you can execute multiple times on command. You can also connect them to events or assign them as callbacks.
local a = 5
local b = 11
local function addstuff()
local total = a + B
print(total)
end
addstuff()
this takes a and b adds them to total, then prints it
anytime you call the function name, it will run what ever code is inside that block
alr
Focus on Basif Functions, Return and thats all
Methods, Callback, Event handlers, anon functions are above your level rn
Not important for you atm, youll learn it when you need it
Focusing on code you cant understand yet will only waste ur time
Once you get the all of basics down, then come back to fill in the blanks of your knowledge
(i still dont understand Self) ive never actually used it.
this is a big one
Until you understand Task.Spawn, Never use while true do.
Think of another alternative.
Most of the time a function will work in replace of a Inf Loop
or RunService.RenderStepped:Connect(Function())
will work instead of While true do
how does this one work?
RunService is basically the games internal clock
*the game engines
Render Stepped runs every single frame
So every frame, The function attached runs.
RenderStepped being deprecated
oh sick
Its like While True Do for a loop, except its not halting any code
btw, how does a function decide what's part of the function?
like what code is executed when the function is
local function ThisIsAFunction()
end
Every time you dash, it checks if a recovery operation is active. There always should be one when you dash as your dash charges will never be full. If one is not currently active, it will start one. The process does not impede the flow of code execution as the operation starts in a new thread. When the recovery operation is over, it will not continue awaiting to recharge the dashes. The dash charge is removed and the dash proceeds, otherwise the dash doesn't continue because no charges are available
Everything between the () and "end" is inside the function
set
i see a lot of people using self in tables/metatables but i have no clue what its for
where do I put the name of my function?
^ same i usetables all the time, but never needed self
local function "name goes here"()
It's used in the emulation of OOP
^ i fr cant understand oop
RunService.RenderStepped:Connect(Function())
In this one ^
where would I put my function
so like work on a class without needing the class all the time or
Replace Function() with your function name
Script
sweet
For now dont worry about RenderStepped
Focus on learning basic functions for now
when you start abusing renderStepped
youll lag your game
o
if it MUST be a inf loop, for your case, use render stepped. if it doesnt have to be, dont use a inf loop
Everything attached to RenderStepped runs every single frame
Whos darequk and why is he typing so long
Im trying to figure smth out
(also someone here just asid RenderStepped is being Depricated i gotta check the replacement)
youll use an inf loop just this once
Idk how to word it
like how Ziffix wrote it for you
Just know inf loops are very dangerous if you arent aware what your doing
this is what I made but it ain't working
fair
Also renderstepped cant be used serverside
Infinity is a big number after all
oh i didnt know this
what about other cooldowns..?
Take a pause in development
and waht if I choose to repalce this system at a later date, it won't affect me badly will it?
fair
you cant make anything with out those
This is all you need
Is there a way to make something trigger instantly when a condition is met without having to check constantly?
Dont worry about Methods and anything after
RenderStepped, and have it check constantly
but this isnt efficient
Depends on the condition
is there really no other way???
Manually trigger the stuff when you need it to run
When do you need your dash to recharge?
Like if a property changes u Can do object.changed:connect(function(property)
^TYSM i swore you could do this
when the charge count is below it's max
but i forgot how
What causes it to go below max?
using a dash
ooo
your dash, is your trigger
You dont need it checking 24/7 only when you use it
wait....
ok but
since it has a wait of 3 seconds to regen
what if it just...
got overlapped with another dash use
but it's on wait, so it can't be used again
Dont worry about Task its multi threading
a for loop
any thoughts on code that looks like this
so it does a little bit each time maybe
? but i think the problem si still there
idk
alr
(my dms arent open for free bug fixing pls dont send me random stuff) i have literally 100+ dms of ppl asking me to bugfix
lmk when u send it
that's fair
it gets annoying, in Roblox Developers i help with bug fixing all the time, for longer stuff i do it in dms
after this.. I'll need to make a sprint thing too
which should be easy
I just need to make it so you will sprint if you are in sprint state, which activates in combat or after a dash.
The question is how I'd go about removing the sprinting state after stopping moving
It'd probs just be a sprint function, which can get cleared after all of the movement keys are stoopped being pressed
guys sometimes my character is not even in the part and it detects it , any fixes to make it more precise?
@hoary cedar do you think this is simplified enough to be easy to understand?
local dodgeCharges = 2
local DodgeCoolDownTimer = 3
local isRecharging = false
local function startRecharging()
if isRecharging == false then
while dodgeCharges < 2 do
dodgeCharges = dodgeCharges + 1
task.wait(DodgeCoolDownTimer)
end
else
return
end
end
task.spawn(startRecharging)
I tried to keep it simple with out overBuilding it
In terms of code, no, but in terms of intuitive readability, yes
looking at it i think i might've compressed it too much
i need an scripter to help me with my game
check out the hiring channels
@frank pollen
how do i make scripting spawn in my head
you can make it spawn in your character by putting it in StarterCharacterScripts
why does it not collapse on me??
aight bet
Try checking if theyโre sleeping by opening up the menu with the little gear symbol with the eye in the top right corner of the viewport and checking โAwake partsโ. Any part not outlined in red is sleeping.
python donโt require semicolons ๐ ๐ ๐
But ngl, thatโs a fair point
guyz I'm making a custom admin and so far have crammed everything into one script because I don't want to deal with modules. it's still small enough to be reworkable, so should I turn back?
i dont knwo if theres anymore precise methods
that wouldnt take hella ressources
ig its better to use another hidden part for precision at that point
how big is the part ur casting
lemme read rq
not that big, size 10,10,10
it will detect even .001 studs of the player
wowww ok
ye what i as thinking
you might not see it
like a single pixel
but .001 studs is enough to trigger it
how far away are you when it detects?
you could specify it to wait for your Torso
Shapecast is perfectly precise
same with get parts in bounds
thats the part pretty much, between the character
OH??
remove the clothing item
the dragon/serpent
and test again
i doubt this is the cause, but idk how UGC effects hitboxes
that is crazy precise man
theres a good chance the invisible topology extended far beyond the dragon
so its better to just check for torso right, or use another hidden part inside it
if you want less precision
you can specify a body part
like torso
because the knees and head extend beyond the torso
can i change a variable that is in a module script from another script where i have required it? like can i require it in a local script and then change the value of that module script variable from the local script
yep
ty
english ๐ญ
changing module script variables from a local script
unless the variable is the ( module.[variablename] ) or whatever the name of the table at the start of the module is
like i can do module.yes = true
then in local script, you can do
local module3 = require(modulename)
then do module3.yes = false
this is really useful script to have in game, cleaning up trash for perfomance
this is a literal headache
local player = game.Players.LocalPlayer
local replicatedStorage = game:GetService("ReplicatedStorage")
local UI_Transfer = replicatedStorage.Remotes.UI_Transfer
local Ui
local function CheckForUiUpdate()
while Ui do
print("test")
local mainFrame = Ui.SelectionUi.MainFrame
local title = mainFrame.Title.Text
local interactionHolder = mainFrame.InteractionHolder
local copyButton = interactionHolder.CopyButton
local moveButton = interactionHolder.MoveButton
local sellButton = interactionHolder.SellButton
local withdrawalButton = interactionHolder.WithdrawalButton
if title and copyButton and moveButton and sellButton and withdrawalButton then
copyButton.Activated:Connect(function()
print("Copy button clicked!")
end)
else
print("Missing UI elements")
end
task.wait(0.1)
end
end
UI_Transfer.Event:Connect(function(SentUi)
Ui = SentUi
print("UI transferred to client: " .. Ui.Name)
task.spawn(CheckForUiUpdate)
end)
lmao got 0 clue so imma take a break
Please where i can learn full lua?
Yea u made it look like a headache too
ik just trying things to see if it will work ๐ญ
guys do you guys know how to make a countdown script that counts down every second down from 10M and stops when no players are playing, but also make gamepasses for minus seconds and the end of an obby takes certain seconds off it
๐คฏ
CheckForUiUpdate() is literally a Int Main Virtual-Enviroment
Your name is kodycodes idk
U should know
nope, just had the name lol

what?!, similar to wait for 1 year RIGHT?!
mk
local seconds = 1,000,000
while true do
seconds = seconds - 1
task.wait(1)
end
idk how to make the text to lua
local seconds = 10000000
while true do
seconds = seconds - 1
task.wait(1)
end
local seconds = 10000000
while true do
seconds = seconds - 1
task.wait(1)
end
local seconds = 1,000,000
while true do
seconds = seconds - 1
task.wait(1)
end
this is my first game
how?
thx
you could create a global data store, to store the timer.
so is that all i do
and use Global Messaging service to connect every server
im new so im not really sure what you talkin about lol
under screengui?
then get better first
no, on roblox Docs look up Global Messaging service
it bascially lets Server A talk to Server B
y you trying to make something that u can't cause you aren't good enough
its normally used for global chat
but a countdown in the middle
its not a super complicated idea, its just more complicated than he realized
What your idea requires is a a Data store, to store the Timer value
local Players = game:GetService("Players)
while #Players ~= 0 do
for i = 1, 10000000 do
wait(1)
print(i)
end
end
^ roblox server will force shut down LONG before this lmao
i copied it now what?
u wanna make this?
The code wont work for you
why would u need this
?
yeah
if theres 0 players then the code wont even be running 
mk kinda complicated ngl
yeah
what you want to di is not as easy as you imagine
exactly
read his message thats what he wants
what happens to a server when theres 0 players
and there is no way to check that lol
Server ends, counter restarts
So he needs a data store
server ends, if there is no client connected
a Global Data store that just holds the Counter value
where do i find that
um... imma be honest
no one just has one
its one of those things that no one "needs" so on one really "has" one
That alone will be the hard part, either Customize an Existing data store library, or create your own
maybe if you store the data with a General key, instead of playerId, you can simulate it easily
exxxxactly
Its not something a beginner can make
ill show you what youll need to recreate basically
lemme get my data store
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local ProfileStore = require(ServerScriptService.Libraries.ProfileStore)
local function GetStoreName()
return RunService:IsStudio() and "Test" or "Live"
end
local Template = require(ServerScriptService.Data.DataTemplate)
local DataManager = require(ServerScriptService.Data.DataManager)
local PlayerStore = ProfileStore.New(GetStoreName(), Template)
local function Initialize(player, profile)
end
local function PlayerAdded(player)
print("Attempting to start session for player:", player.UserId)
local profile = PlayerStore:StartSessionAsync("Player_" .. player.UserId, {
Cancel = function()
return player.Parent ~= Players
end,
})
if profile == nil then
print("Failed to create profile for player: ".. tostring(player.UserId))
player:Kick("Data error occurred. Please rejoin.")
return
end
--print("Profile created for player:", player.UserId)
profile:AddUserId(player.UserId)
profile:Reconcile()
profile.OnSessionEnd:Connect(function()
DataManager.Profiles[player] = nil
player:Kick("Data error occurred. Please rejoin.")
end)
if player.Parent == Players then
DataManager.Profiles[player] = profile
Initialize(player, profile)
else
profile:EndSession()
end
end
for _, player in Players:GetPlayers() do
task.spawn(PlayerAdded, player)
end
Players.PlayerAdded:Connect(PlayerAdded)
Players.PlayerRemoving:Connect(function(player)
local profile = DataManager.Profiles[player]
if not profile then return end
profile:EndSession()
DataManager.Profiles[player] = nil
end)
youll basically re-write this but everything that says "player :getPlayers()" is removed
wym re-write
Dont even attempt a custom data store, its.... a nightmare, im afraid to even attempt it
chat gpt
What your asking for is super niche, idk if gpt can help but it might
so what do i re-write
Whole thing
bro u need scripting knowledge
What i imagine is youll remove the PlayerStore:StartSessionAsync("Player_" .. player.UserId, {
and set your key with a general Server Key
you won't accomplish much without any scripting knowledge
I was showing you an example of a data store for what youd need to customize
This is the EASY part
no i know
im asking tho
https://create.roblox.com/docs/reference/engine/classes/MessagingService
^ this is the hard part
Servers automatically shut down after around 30-40 hours
if that server ever closes, your counter resets
even if its your own countdown?
Yep
you need to save the countdown progress
so it can continue after servers shut down
Roblox servers automatically shut down after a while, even if players are inside it
its not going to last 10 million seconds since thats 4 months
You wont even last 1 week
Learn scripting first, then tackle it
or pay a scripter to write a custom data store + messaging service for you
this task is probably above my level would take me a few weeks tbh
wow
its lots of stuff ive never done before
I know what it would require, but how to do it exactly i have 0 clue.
Writing a Global Data store, that stores Data globally for all servers, but doesnt overwrite its self endlessly???
Then learning messaging service
I cant even begin to think about how this would work, every server would need to be in Sync
Unless your not doing it for the whole server but each individual player
then that becomes super easy
Rabbtofficial
guys
if i shut my computer off
will my friend still be able to edit and make the server?
the game*
When your team creating? Yes
ohkk
Not sure if they can publish it
wait
But they can still edit it
Is there a way to make my combat systems feel smoother? i am using raycasting
It should automatically save
oh ok
whats up
save it just incase
Nun
so you have a local save too
yea i did
i asked copilot
Yeah definately a custom system that very few people have ever attempted
Normal data store = easy, but global.... thats like very difficult
on this account
somehow
it could easily be an alt dev account
Then ask him how he handled the Messaging service and global data store
gnite, he would hae the best answer
โOkโ โim going to bedโ ๐
appreciate the help
...
he did it horribly
imma screenshot
nvm btu basically there is 300 seconds worth of desync
wait what ๐ญ idk im seeing it twitch between numbers +-1 or +-200
@surreal scarab i have a way to make it easily
like elementrary easy, but you cant manipulate it like the other one
Create os.time() of the start day, then do os.time for 10 million seconds from now
then slowly tick this down
whats the best way to make a ragdoll?
Its 100% in sync for every server
like the slap battles one
Intro Its surprisingly hard to find a good Ragdoll system for your game, especially because of how popular Ragdolls are on Roblox. I decided to release the Ragdoll System I use for my game so no-one else has to suffer like I did. If you already forgot the title this is for R6 only. And yes if you were wondering you can Un-Ragdoll with this. ...
ty
Theres ragdoll tools out there for free
no need to make a custom one if you dont need one
Anyone need help?
@haughty pine dms
@frank pollen she doing devs shit don't bother her
anyone know how to work on vehicle chassis?
is there way to add little textlabel over that click to press text in the roblox chat and make that label say names of ppl who are typing something like "username is typing..." or "username and username is typing..." like in discord?
Anyone can feedback my new combat sys?
how to make a serverscript handling accessory equiption that weld consaint each mesh to upper torso and the Accessory is named after the specific model like ''Prada Dress'' and theres a gui where the textlabel gets updated on the new equipted accessory and shows a meshname and you can switch from Top to Skirt mesh part from the accessory using Left to previous and Right to next and scrolling frame with colorbuttons textbuttons clicking on backgroundcolor3 applies to the selected mesh
basicly dress to impress
Does anyone know how to make aimbot Iโm tryna make a aimbot ffa game
I know
anyone can help??
can someone help me make a blocking system in my game? i canโt work out how to take 0 damage when blocking
Can't you just add a forcefield or just code shield into the damaging systems
dunno
Iframes Invincible = true
if invincible == false then
take damage stuff here
i donโt have โtake damageโ tho, i have deal damage thatโs the problem
yeah it wont be called take damage
add a conditional to check if they are invincible
i tried to make attribute when blocking and then make code checking if enemy has attribute, then donโt deal dmg
i have code that deals dmg to enemy, not code that takes dmg when hit
but that didnโt work
have the one check if the enemy is invincible
how do i make them invincible
and how do i check
create a state handler and store it in a table on the server
how do i get variables from diff scripts
anyone know alot about robloxs audio player and audio analzyer?
i use modules so i can just use them across, yoy can also use shared _G variables or bindable events if itโs between server server and client client
just ask bro
anyone know how i can use audio analzyer to create a beat map for rythm games
does anyone need a quick comm for robux? (Im hiring)
i have a question i'd like to make an Automatic Metro With sensor like when the vehicule go throught the part it do an action and there will be multiple one for different uses. so my question is i'd like to know how much this would probaly cost
no
Remotes, modules, BindableEvents
@strong mauve
๐
niceee, whats your game about?
wild
I'd recommend turning the volumes down ๐ฉธ ๐
soulslike openworld, nun too crazy basically just a passion project
thats just bc i have my headphones really low and my game volume really high
๐
added animation evvents so the hits are timed better
Hey since code help is helpless could you help me rq ๐ฅบ
depends on what u need
I think it's simple
I'm trying to make a two way door
I did the one way but I can't figure out how to tell the game which side of the door I'm on
well, how do u have the door activate
well, just add 2 hitboxes then, one on each side
name them seperate things
and if getpartsinpart
do diff things for diff hitbox
yo, im super new to coding and if anyone could give me some basic tips, that would be great. I'm trying to work on a horror game and I need like some idea with maybe a hiding system. I haven't made the monster models yet, but im planning to. any tips?
ofc
@candid kestrel u working alone on that one?
my advice is dont start with the dream project, start with something simpler, like making a tycoon from scratch, the easiest way to code is by coding, and when u get lost look up stuff on the dev forum, or the wiki, dont follow yt how to tutorials as it just teaches u to copy, not learn
mostly, i have some help but most of the time i have to go over it myself
i got a kindle book, it explains stuff well, im js dumb ๐ญ
but i do all the building, ui, modelling, etc
then it isn't explaining it well, in depth and well arent the same
no its simple, i js dont understand coding ๐ญ
think of it like your learning a new language, literally
because thats what it is
I started learning using youtube tutorials
think of how to learn basics in a language, you learn the basic words first (variables, prints, etc) then you learn how to connect them (functions, tables, etc)
I've been learning for like a week if I cut out all the time I spent not learning
i understand basic functions, variiables, and prints. thatsp retty much it
om this keyboard so sticky
now you need to learn how to use those basics, by putting them together in functions
or other things
https://www.youtube.com/watch?v=n07w-eabLMw&t=1904s&ab_channel=CodeCoach I've been using this so far
๐ Get My FREE 1 Hour Mini Scripting Course: ๐ https://quizgrid.com ๐
he's a good coach but imo ur better off on ur own
or using his
shorter 5 minute video
I like