#code-discussion
1 messages Ā· Page 119 of 1
EVERYTHING on the docs?
I'm confused on the docs, and everyone is memeing me about tutorials so anything you can contribute, it'll help @nova yarrow
everything that you need to solve a certain problem
so make projects and then use the documentation as an answer key?
what if I don't know what to look up?
yh basically make something -> stumble on a problem -> find solution in the docs
search the devforum, usually the answer is just a link for the doc that u need to read
or ask here ig but here its a 50/50
Well i firstly learned off of yt tuts
I first watched thedevling beginners and advanced series but
I recommend u watch brawldevs beginner and advanced playlist
Do mini projects
i watched beginner series but I've also been trying to do mini projects on the side and doing the advanced but everyone says the tutorials are useless
no dude brawldev's tutorials are the best he seriously explains stuff better than university doctors
so send it thru the advanced ones too? I've finished beginner but not gotten much progress on advanced
yeah am on episode 8 of the advanced rn
still use the docs and the fourms i use them too
can someone give me something to script to improve?
whats ur level
begginer to intermidiate
what are some projects you've made
try a basic shop system like the one i made here
how many total scripts did you use for that?
a server script and a local script they could be way shorter but i'm still a beginner
alr
ima do it now
alr
they r all bad lol
i sent one
.
check above
nah other ones
cuz that one is about UI and other things, I wanna see some raw projects of some other thigns you've done ALL by yourself
imma try and make that too, i know almost nothing abt gui so i think it will be good practice
too slow too slow
wait @empty rapids did u use the forum, brawldev, or docs?
nice
i dont use any when i make a project i keep trying till it works
type shi
Gamign
damn it really lvls up?
i tried to make it levels when u reach level 10 it becomes red cuz red is cool but i stil didnt know how to make it level up with text pop in gui i think i ened to learn tween
thats nice
ty its nice seeing people who are trying to become better scripters be along
yesterday i made this building mechanic but i had some trouble on the orientation of the parts, might try to fix it later (had to cut down the footage cuz i dont got nitro)
Saw people hating on ProfileStore and started wondering what are the alternatives besides plain datastores,
whats your preference?
use streamable.com
oooh, thanks
Profilestore is acualy better than a datastore
yea i figured, since its a wrapper it has more features
@empty rapids yo how to script gui?
i heard about people using firebase (?), wonder if theres any benefits in that
wym
idk how to make the shop gui appear
local StarterGui = game:GetService("StarterGui")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage.Purchaed
local ShopGui = StarterGui.ShopGui
local ShopFrame = ShopGui.ShopFrame
local ShopOpenButton = ShopGui.ShopOpenButton
ShopOpenButton.MouseButton1Click:Connect(function()
ShopGui.Visible = true
end)```
my code
did u put a screenGUI?
yea
wait i think i know why
?
first is it in a local script inside the screenGUI
no
thats why
i did
StarterGui is a template container for gui when the game runs the UI is cloned into each player's PlayerGui So modifying StarterGui at runtime does nothing for what the player actually sees.
local Players = game.Players
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage.Purchaed
local ShopGui = PlayerGui:WaitForChild("ShopGui")
local ShopFrame = ShopGui:WaitForChild("ShopFrame")
local ShopOpenButton = ShopGui:WaitForChild("ShopOpenButton")
ShopOpenButton.MouseButton1Click:Connect(function()
ShopGui.Visible = true
end)```
this good?
press the button to open and close it
put your local script in the screen gui and say shop gui = script.parent
oh nice
bc yk the difference between server and client?
idk if that was what u wanted but its way simpler
yea
alr
btw, idk if you want this but you should use a tween
don't use starter gui to reference your UIs, instead use playergui
as a guy said above
the ui get's cloned to the player gui when the player joins the game ( or respawns depending on the configuration for the UI)
to get the player gui, you first need to get the player
not really
you can get it by parents
depends on where the scripts are located
sometimes is easier through the player
if you try to get a screen gui, but for a button... just pass by the script.parent
and when you have a lot of ui too
yea
Its the same š
took a lot longer than it should, was trying to make the gui look nice
thats epic great work
thanks
np
hello, is there anyway to load all animations from a folder and play them in startup?
is this to preload?
yep
dont even have to play them, make a localscript in replicatedfirst and use this
local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local start = os.clock()
warn("Preloading Animations...")
contentProvider:PreloadAsync(Animations:GetDescendants())
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
you can remove the time elapsed if u want, i just wanted to see how long my preload times were
or any of the prints
what does this do because it prints that animations are loader but It seems the models don't move
yeah it doesn't play the animations but it preloads them so it doesn't look choppy when first played
oh alright ty but what I look for is to play the animations on startup
alr
I have this folder that contains all animations for models I want them to play on startup I used loop to play each animation individual but it semms it dosen't work
local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local start = os.clock()
local animations = Animations:GetDescendants()
warn("Preloading Animations...")
contentProvider:PreloadAsync(animations)
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
for _, animation in animations do
-- play animation here
end
nothing happens the problem isn't from my animation because when I load the animation individually in each model it seems that it works but when I try to load it in a loop it dosen't play
what does your code look like
Ai codeš„¶
Explain it better
nuh uh
lemme make it look like ai code real quick
-- Define the ContentProvider Service
local contentProvider = game:GetService("ContentProvider")
-- Define the folder that contains all the animations
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
-- Variable for time elapsed
local start = os.clock()
-- Store all the animations in a table
local animations = Animations:GetDescendants()
warn("Preloading Animations...")
contentProvider:PreloadAsync(animations)
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
was that good
local rs = game:GetService("ReplicatedStorage")
local models = rs:WaitForChild("Assets"):FindFirstChild("Buildables"):WaitForChild("Models")
local anims = rs:WaitForChild("Animations")
local function play(model)
local animationController = model:FindFirstChildWhichIsA("AnimationController")
local animator = animationController:FindFirstChildOfClass("Animator")
local animFolder = anims:FindFirstChild(model.Name)
local idleAnim = animFolder:FindFirstChild("Idle")
local animTrack = animator:LoadAnimation(idleAnim)
animTrack.Looped = true
animTrack:Play()
end
for _, model in pairs(models:GetDescendants()) do
if model:IsA("Model") and model:FindFirstChildWhichIsA("AnimationController") then
play(model)
end
end
here is the script that I use to play
local contentProvider = game:GetService("ContentProvider")
local Animations = game.ReplicatedStorage:WaitForChild("Animations")
local models = game.ReplicatedStorage:WaitForChild("Assets").Buildables:WaitForChild("Models")
local start = os.clock()
local animations = Animations:GetChildren()
warn("Preloading Animations...")
contentProvider:PreloadAsync(Animations:GetDescendants())
warn("Animations Loaded! Time elapsed: ".. (os.clock()-start))
local function play(model)
local animationController = model:FindFirstChildWhichIsA("AnimationController")
local animator = animationController:FindFirstChildOfClass("Animator")
local animFolder = anims[model.Name]
local idleAnim = animFolder:FindFirstChild("Idle")
local animTrack = animator:LoadAnimation(idleAnim)
animTrack.Looped = true
animTrack:Play()
end
for _, model in pairs(models:GetDescendants()) do
if model:IsA("Model") and model:FindFirstChildWhichIsA("AnimationController") and animations:FindFirstChild(model.Name) then
play(model)
end
end
world's worst code š
on my end ofc
yo?
What is aurora service
who can see what wrong on my code?
promocode: GTS
upcoming service
how could i make time reversal tool so when you click it brings you back to your postion 3 secounds ago (ACTUALLY HELP ME PLS IM NEW)
Save the position
can u help me write it or sumthing
you're supposed to ask for suggestions here not to write code for u
Well, that wouldnt help your skills :/
How much would a flight system like this cost?
something like this
not exactly but similar
https://www.tiktok.com/@asmrbarbers/video/7481088476436237614?_r=1&_t=ZT-8xfbR3wvn31
So you just save the player postion from time to time
dude just pls currently i cant im stressed
And when he wants to telport back, you get the last saved position
just code it urself at a later time then
and teleport him there
hi i have an issue with my tweening loading screen, i made it in a fresh baseplate game, then imported it to my main game and the image just doesnt show up, nothing has been changed though
can i ask ai?
its visible on startergui, when i playtest it just disappears
code?
Do what you need to do š
i dont think code is the issue, it works on the baseplate but it doesnt on the main game
yes i just started bro im gonna die trying to fix myself
is ui visibilty on?
yes everything is on
it works on baseplate, but not in main game
hmm
i imported everything without touching a thing
never had that happen to me before
if its visible in startergui it should be visible in game too
yes which doesnt make sense why it doesnt appear
also u can inspect the properties of gui in Player.PlayerGui
okay ill check that out
well i cant check it out because the game is so laggy i cant do shit
cant search anything either it takes an eternity to get results
the tween works, but its just the image doesnt appear for the tween to happen
im guessing u're not changing transparency on the image and it doesnt fade in
no it works on baseplate
weird
it just doesnt work on another game when i import it
ye three
logo 3 isnt showing, but the rest are
the logo 3 is from toolbox though so that might be the issue?
still wouldnt make sense since its visible in startergui
Are you getting anything in the output
the rest are yours? u could try changing but i never stumbled upon toolbox decals not loading
let me see the code rq
well thats another issue i cant really view output, but im searching for errors related to that in output and im not getting shit
yeah
How come
i changed icon to another one in toolbox and that didnt work either
when you have over 50000 outputs you cant really see which ones are relevant
im trying to get rid of them but lotta work
When u test the game, look in playergui and click on your image that isnt loading and see if the image transparency is changing
can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING)
theres a Script Analysis window that shows u issues within ur code globally
thats another issue i cant..
Why not
which ine
it takes a while to load workspace
like in explorer
okay thanks
You dont need to look in workspace
You just need to look in playergui
yeah not workspace i meant players
yeah i cant view that either the tween is already done by the time i load it in
load it in as in like
view playergui
Yeah
i can see the tweens working because after that another tween plays
how do i clear it>
Idk maybe the image transparnecy isnt being tweened so id prob check if it is by testing
do u remove the gui or something after it's done?
i dont know if you read my prior messages, but everything works in a placeholder baseplate, just not in the main game
click on the issues it'll send you to the line of the script that has the issue
I am just giving advice to help debugging
but since the other tweens are working it shouldnt be an error or something
Id be doing prints for it, but since u said you have 5000 in the ouutput, that would be pretty annoying
is there a searchbar for the script? i cant see any errors coming from my script specially
dont bother its ruled out
im actually so confused cuz i gotta rush this loading screen out and its just not working.
Does anyone know anyone who can make a UI feed tiktok scroll type game like this? https://www.roblox.com/games/11765402359/Clip-It
š¬ Welcome to Clip It ā Roblox's Largest Content Sharing Network!
š½ļø Record and share your clips!
š Edit fashionable outfits with our extensive catalog. Access the full Roblox catalog and shine in every scene! All purchases will be available in your Roblox inventory & can be used in all experiences.
š Select from over 120 uniqu...
the only thing i can think of besides image transparency is zIndex
maybe the logo is behind the background
zinded is 8383
i put it maximum
ah
its visible in statergui and all
Your best bet is checking in player gui when testing since thats when its breaking
could u do Logo3.ImageTransparency = 0 in the script?
just checking
where u set it to 1
yeah i tried that too, but it doesnt do anything
dang
okay maybe the game just has settings to prevent toolboxed assets
i dont know much about that
okay ill see if i can like download the thing and upload it under me
yea do that
Can someone reccomend me the best scripter in this server?
yeah..
that was the issue..
it took me 2-3 days for this fucking simple crap
happens to the best of us 
yall
any scripter wanna do a game
50% each
must be active fr
yo who new tryna make a game w sm1 cuz im new and shi
nvm
it only worked once
it broke again i didnt change shit
huuhhhh
apparently its just me who cant see it my colleagues can see it fine
or as u said its laggy maybe that could influence it aswell
How much would a flight system like this cost?
https://www.tiktok.com/@asmrbarbers/video/7481088476436237614?_r=1&_t=ZT-8xfbR3wvn31
well doesnt make sense since i can see the other tweens fine
4- low 5 digits
can anyone check out my newest github repo?
https://github.com/timoursfoil/EasyStore
can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING)
This is a perfect question for ai
i tried nit helpful
Can someone please help me make a system where someone can buy something if they have enoughs slaps
local players = game:GetService("Players")
local player = game:GetService("Players").LocalPlayer
local button = script.Parent
local screenGui = button.Parent.Parent.Parent.Parent
local descriptionLabel = screenGui.container.Description
local price = screenGui.container.Price
local BuyButton = screenGui.container.framwork["Group 2"].Purchase
button.MouseButton1Click:Connect(function()
local sound = Instance.new("Sound", workspace)
sound.SoundId = "rbxassetid://6042053626"
sound.Parent = workspace
sound.Volume = 1
sound:Play()
sound.Ended:Connect(function() sound:Destroy() end)
descriptionLabel.Text = "This pillow has extra range \nso it is easier to hit people \nfrom far away."
price.Text = "This costs 50 slaps"
end)
local leaderstats = player:FindFirstChild("leaderstats")
local slaps = player:FindFirstChild("Slaps")
if slaps.Value >= 50 then
print("yes")
else
print("not enough slaps")
end```
local SaveInterval = 300 -- Time interval in seconds (5 minutes)
local DataStoreService = game:GetService("DataStoreService")
local playerDataStore = DataStoreService:GetDataStore(āPlayerDataStoreā)
local function savePlayerPosition(player)
local playerId = player.UserId
local position = player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character.HumanoidRootPart.Position
if position then
local success, errorMessage = pcall(function()
playerDataStore:SetAsync(tostring(playerId), position)
end)
if success then
print("Position saved for player: " .. player.Name)
else
warn("Failed to save position for player " .. player.Name .. ": " .. errorMessage)
end
end
end
local function loadPlayerPosition(player)
local playerId = player.UserId
local success, position = pcall(function()
return playerDataStore:GetAsync(tostring(playerId))
end)
if success and position then
-- If a position is found, teleport the player to the saved position
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
player.Character.HumanoidRootPart.CFrame = CFrame.new(position)
print("Player " .. player.Name .. " teleported to saved position.")
end
elseif not position then
print("No saved position found for player " .. player.Name)
end
end
-- Player added event to load saved position when they join
game.Players.PlayerAdded:Connect(function(player)
-- Load the player's position upon joining
loadPlayerPosition(player)
-- Save the player's position every SaveInterval (5 minutes)
while player.Parent do
wait(SaveInterval)
savePlayerPosition(player)
end
end)
-- Player removing event to save position when they leave the game
game.Players.PlayerRemoving:Connect(function(player)
savePlayerPosition(player)
end)
Itās not a tool

i said a tool
Oh
could u help me pls ill give u 6 robux
Itās not that complicated to change
do u even know how or did u use ai
You just need to put the function call in your tool activated event
I could do it myself, but was demonstrating that ai can* do it
i dont know what that is ill give all robux i have 31
Itās a lot faster to get ai to write simple code than to ask a person to do it for free
No thanks haha
Trust me bro use ai, just explain clearly what you want 
Alr
hi everyone, could someone please send me their portfolio to me, i am new to commissions and trying to create a portfolio. this would help me a lot, thanks!
You can pretty much check every listing in the hire me section?
okay thanks
i need a ugc creator for my group
Dm
can anyone check out my newest github repo?
https://github.com/timoursfoil/EasyStore
chat is this the best way to turn a dictionary into an array and sort it?
why would you need to do this?
for the reason my font looks like Ronald Mcdonald shit in a bag and threw it at a wall
when making sprint should you change walkspeed on server or client
i think client if i remember
change on the client, it is the best way to handle inputs
ikr my eyes
you'll see
Yoyo can someone help me make a corpse script for my ragdolls? I have an activator and a module
jesus
thank you, it was my pleasure to throw together the most abominable creation known to man kind
that's my plugin lol
I made it for fun
to test the limits of the creations and human eyes
pain and suffering can be fun i guess
themes
people can create & publish
the point was to create something absolutely atrocious using it for laughs
for like 2 seconds
and for the screenshot
also, my main question is why is it unordered in the first place?
low tier ragebait tbh
It was because I was inserting the GUID into the datastore so duplicates couldnāt be creared
What's a skid
Script kiddie
Why's that bad tf
no offense but ts the ugliest theme ive ever seen š
Basically means they are really bad at scripting or pretending to be a scripter when they arenāt
Read my other messages lol
Oh
oh i see
Its only bad in certain context
to answer your question tho this is pretty standard
Yeah ik I had to come up with something to use the theme as a laughing point.
I wanna learn scripting so bad I'm js bad at physics and shit
you dont need to be amazing at physics or math
its just puzzle pieces mang
go play factorio and train your head
just know the basic arithmetics and then u should be fine to start learning
main thing is learning how computers work and learning algorithms
Arithmetic
prioritize reading code over writing it first imo
give yourself something simple to do and work from there
most people write illegible code dont be that guy
does script kiddie mean a hacker that just uses mid hacks or inappropriate ones š
doesnt help if you read code but dont understand anything
especially as beginner
if you read books you become a better writer
its not really more of reading it but more of understanding it
Man this sounds boring icl
that was clearly implied
how else are you supposed to read?
if you only speak english but read russian you are wasting your time
exactly
in order to learn a language you literally have to read and reference its meaning
if you are reading a book and you come across a word you dont know how do you approach that problem?
do you look it up like a sane human being?
but this is coding
you wont ever truly know how to do it unless you do it
imo most people just skip over it lol
Calm it down guys
that doesnt mean you are learning how to code
you will only truly learn to code if you actually use it
and experiment
my point still stands
i have experienced this myself
when you read the documentation, or watch a tutorial
you should priortize understanding what theyre are doing as opposed to copying what theyre doing
i am emphasizing understanding over the "just do it" mindset
Where do I start
most script kiddies are typically exploiters yeah
you are not gonna learn how to code by just reading examples, you need to look at examples and read the docs and most importantly actually do it to begin with
otherwise u r not gonna learn it i can guarantee you
brick wall detected
You both are true you can't know how to script if you don't know The syntax and how to use it and where and you also wont learn how to script if you dont apply it
Hi
Help
Where's so I start
Pipe down please
You both are true you can't know how to script if you don't know The syntax and how to use it and where and you also wont learn how to script if you dont apply it
Lets all be nice to each other
bro is mad for no reason
im just trying to help and hes literally arguing with me over nothing
i explained i agree with writing code to a point
ANYWAYS
Hello bris
i would advise familiarizing yourself with studios object explorer
familiarize yourself with objects and their properties
Ur discord account is old
figure out the environment
Alright
useless
sylau
Okay
google roblox documentation
projecting
its not that deep unc
I don't just wanna copy someone else's code off a tutorial
thats not what i fucking said
Cool
I'd say look at alvinblox on youtube until you understand how studio works and then after you think you have got grasp studio learn scripting from BrawlDev
Thank u guys
I've learned so much js from him tbh
i cant link the creator hub but go there, go to learn, start reading, absorbing, youre gonna need to start doing it every day
think in first principles
- I want to make a brick that bobs up and down
- learn tweening
- learn vector3's
- execute
Cheers
I dont think its a good idea to start by learning tweening
i dont think its a good idea to worry about it
If he says he is brand new he wont know variables or printing to begin with
no
thats one of the first things i learned though
it genuinely doesnt matter
just keep doing it
If I already learned how to use vector 3 and some tweening what should I learn now
i made a full procedural solar system generator because i wanted to
take your pick
brooo i was in the middle of learning how to script and i found out there is this assistant on ssstudio that does everything for you should i stop learning?
its called an assistant for a reason
ohh
because its ass
true ngl
no dont use it actually if i were u i would turn it off its distracting and pops when u are scripting
ohh like trying things myself? And should I disable the ai assistant because sometimes it writes a lot of the code
Thats like saying i shouldnt learn math cuz there is a calculator
true
but i feel like im barely learning from watching youtube videosš is there bettr way to learn how to script for roblox?
erm actually, learn Position/CFrame š¤āļø
where r u learning from
brawldev
hey could someone help me with my code
What episode r u on
do not disable the assistant
i encourage people to actually use AI
but every line of code you need to read through and understand EXACTLY what its doing before you copy and paste
if you use it as inspiration over writing code for you and you write it yourself you'll actually remember what goes where
Loops - Roblox Beginners Scripting Tutorial #11 (2025)
imo
i used chatgpt to start learning scripting and making games w it
by just learning the basic functions with that it is very good to start (but dont keep relying on it)
Oh alright thanks for answering
If u dont understand it watch it again and each time he introduces a new topic after he finished explaining it before he moves on onto another topic in the same video go and do 3 projects on the topic he introduced
Yeah but i still could see people not being familiar being confused
yeah
dont get stuck in tutorial hell
can anyone explain how could i use module scripts?
like i kinda get the idea of making systems with it but how can i apply it?
its like _G and shared but better
its just better for readability and not having to rewrite code a ton
bro what š
https://create.roblox.com/docs/reference/engine/globals/LuaGlobals#_G
https://create.roblox.com/docs/reference/engine/globals/RobloxGlobals#shared
thanks ig
"Position" š
?
āPositionā š„ bro already said Vector3
sylau
position is a vector3 but not all vector3 are position
Position is a property which are Vector3ās, more examples being Size, Velocity, Etc.
Also Position can be classed as UDim values
So sylau
yeah but when he said learn vector3 he didnt specify position
just all vector3 which encompasses position but doesnt go into it
so sylau
I mean the first thing you see when you pull up the dev forum or any help forum, chances are it will tell you the type relating to the property.
??? no
Also I just looked up Vector3 and the first example is changing a parts position so it doesnāt matter idk
Anyone know some cracked scripters fh
can anyone help me create a script that saves the player postion from time to time And when you click with tool you telport back, you get sent back to last saved postion (I KNOW NOTHING) TIME REVERSEAL TOOL
Nah
how do i toggle this blue line
????
Can sm1 help me with a corpse script pls? I already gotvthr ragdoll stuff done. Here's my activator
From my experience it means you pasted into it but idk
Position isnt necessarily a vector3
Vector3 can be interpreted as orientation or position
Do you mean CFrame
Wtv bro nice bait
Position is a vector3, cframe is orientation and position
Nice bait but try harder next time
Link33d
Sylau
Good boy
š«©š«©
Ask ai unc
Slow asl
Position can be UDim2, Vector2/3, CFrame
Vector3 can be used for orientation and position
Hello everyone,
Iām planning to use the new (beta) Roblox API (apis.roblox.com) to manage group roles directly from inside the game.
Is there a real risk that Roblox might change or break this API without warning? And if that happens, would it be hard to adapt everything later?
I could fall back to the old API (groups.roblox.com), but Iād rather avoid dealing with cookies that expire and constantly need updating.
Source: devforum.roblox. com/t/group-ranking-with-roblox-opencloud/3763957
What do you recommend?
thats a risk with any API
Nice bait, but try harder next time š«©š®āšØ
does anyone know why this happens i cant seem to figure it out (same thing happens on a mobile device) you cant move normally or jump
But which of the 2 methods do you trust more? Which one should I follow?
I like smaller API developers who are more reliable than a coporation who cant even fix their own problems
and what solution do I have to not depend on the Roblox api? is there a third, more reliable way?
Do you know a safe way to update group member ranks automatically?
how do i even learn how to code
Learn tbe basics through tutorials and then start making stuff
What do you mean safe apis are just requests to external servers to commits actions you set up
Hey so quick question, if I wanted a global event system, for example a night event happens across all servers at once, do I need a master server? one that determines when events happens if so, how should I pick which server gets to be the master server?
You can use os.time() on the server to get a stable unix timestamp that will be the same across all servers. So, assuming you can find a way to schedule the event with a unix timestamp, it's pretty easy
Well basically how I have it set up, every 15 minutes a chance is rolled for an event, as I have several events. Does that mean I need some 3rd party software for scheduling said events?
Maybe. Or just reseed the rng with some rounded down multiple of the current timestamp so that all the servers "roll" with the same rng state
Isnt there a way to do it with messagingservice?
Have a "Master Server" to be designated to decide when to start events
Yes, but:
- MessagingService does not guarantee delivery
- Deciding master server is difficult
is coding better with or without music?
Because using OS.Time() would make events pretty predictable over time
You could also use memorystores & have all the servers periodically check it
wright brothers moment (more like 737-max tbh)
still would need either a master server or 3rd party to handle it
idk if i have it in me to implement auto-trim today š
Do y'all know how to make it so in first person when I load an animation the camera stays with the player head?
Roblox already implemented this
can someone tell me how to make it so a model moves instead of a humanoid. local function NPCMove(NPC)
for i = 1,#workspace.CheckPoints:GetChildren(),1 do
local CheckPointNumber = 1
NPC.humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
NPC.Humanoid.MoveToFinished:Connect(function()
CheckPointNumber += 1
if CheckPointNumber == #workspace.CheckPoints:GetChildren() then
NPC:Destroy()
else
NPC.humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
end
end)
end
end
model:PivotTo(cframe)
or if you want him to walk then use pathfinding service idk
messaging service has delivering issues?
I dont know what I did but that looks awesome
is this actually multiplying 0.01 by clicks? clicks is a number variable and i dont think this is working but idk how else i would do it
its adding 0.01 and multipying whatever clicks is
I forget if lua uses pemdas
i dont think it does
if it doesnt then it would go from right to left
so
if click == 5 then
your equation
end
anyone please help me with CFrame:Inverse() I get that it it returns a cframe which when multiplied to the original gives a identity matrix of CFrame.new() but what are its other usecases?
you could use it to mirror objects
how so?
local lightPart = script.Parent
local SpotLight = lightPart.SpotLight
for i, v in pairs(workspace:GetChildren(SpotLight)) do
while true do
task.wait(0.1)
if game.Lighting:GetMinutesAfterMidnight() > 6 * 60 then
lightPart.Material = Enum.Material.Neon
SpotLight.Enabled = true
end
if game.Lighting:GetMinutesAfterMidnight() < 18 * 60 then
lightPart.Material = Enum.Material.Plastic
SpotLight.Enabled = false
end
end
end
``` Im trying to redo this script which would get the light it was attached to and turn it on or off after a certain time. I wanna get the children of all the workspace and all models to find them so I can just use 1 script instead of 10 million
yes I get that but
the onlyuse case it has is when the rotation of A is the same as rotation of B
maybe inverse and get the orginal and * it by certain axis
Never mind I'll turn this into a function and use a module script
Part1.CFrame = Part0.CFrame * Motor6D.C0 * Motor6D.Tramsform * Motor6D.C1:Inverse()
Like check this out
how is :Inverse() being used here?
so cframe.new(smth.x, smth.y, smth.z) * cframe.new(inverse.x, inverse.y, 0) and that could mirror a part using smth
ahh right
let me try rq
Ah right! it works
thanks!
someone please help idk why this code doesnt work everything works up until the humanoid dies
local playerClicked = game:GetService("ReplicatedStorage").playerClicked
playerClicked.OnServerEvent:Connect(function(player)
local Humanoid = player.Character:FindFirstChild("Humanoid")
local size = player.leaderstats:WaitForChild("Size")
size.Value += 1
print("The players leaderstat has been updated!")
Humanoid.HeadScale.Value += 0.01
Humanoid.BodyDepthScale.Value += 0.01
Humanoid.BodyWidthScale.Value += 0.01
Humanoid.BodyHeightScale.Value += 0.01
player.Character.Humanoid.Died:Connect(function()
task.wait(5)
local scaleFactor = 0.01
local scaleAmount = scaleFactor * size.Value
Humanoid.HeadScale.Value += scaleAmount
Humanoid.BodyDepthScale.Value += scaleAmount
Humanoid.BodyWidthScale.Value += scaleAmount
Humanoid.BodyHeightScale.Value += scaleAmount
print("The player's size has been restored")
end)
end)
try deleting the ( infront of the function
so disconnect Humanoid.Died after its called
what does that mean to put the code outside of the first function
no
local playerClicked = game:GetService("ReplicatedStorage").playerClicked
playerClicked.OnServerEvent:Connect(function(player)
local Humanoid = player.Character:FindFirstChild("Humanoid")
local size = player.leaderstats:WaitForChild("Size")
size.Value += 1
print("The players leaderstat has been updated!")
Humanoid.HeadScale.Value += 0.01
Humanoid.BodyDepthScale.Value += 0.01
Humanoid.BodyWidthScale.Value += 0.01
Humanoid.BodyHeightScale.Value += 0.01
local conn
conn = player.Character.Humanoid.Died:Connect(function()
task.wait(5)
local scaleFactor = 0.01
local scaleAmount = scaleFactor * size.Value
Humanoid.HeadScale.Value += scaleAmount
Humanoid.BodyDepthScale.Value += scaleAmount
Humanoid.BodyWidthScale.Value += scaleAmount
Humanoid.BodyHeightScale.Value += scaleAmount
print("The player's size has been restored")
conn:Disconnect()
conn = nil
end)
end)```
so when this event fires: playerClicked.OnServerEvent:Connect(function(player)
everytime, lua is creating a new player.Character.Humanoid.Died event that fires without stopping. That is why, we need to disconnect ones the humanoid.Died is fired
what's the issue?
ohhh okay
what you can do is:
instead of task.wait(5)
you can check for player.CharacterAdded
like: player.CharacterAdded:Wait()
so its a growing game and you grow by clicking and when you die you are supposed to get your size back and its printing that the size is restored but my character is still small
and wait until humanoid
oo i have an idea thank you
after the red end put the code after that
im not sure how i would get my variables back though like player
call the function again or do a loop i think
im new to coding so im just using life common sense not coding common sense so sorry if im wrong
its okay im kinda new too
yea i just started coding like an hour ago
ive been using roblox studio for like around a year
wow were you building the whole time or what
that and modeling and then i took a big break for a few months because my arm broke
nice
why doesnt this work? it should be printing left click if its on the left hand and left click, and so should the other one. but once i press right click, it just wont allow left click to be printed
local
event:FireServer(mouse.Target.Parent, false)
end)
mouse.Button2Down:Connect(function()
event:FireServer(mouse.Target.Parent, true)
end)```
server
``` elseif buttonData then
local button = buttonData.Instance
local handEquipped = buttonData.Equipped
local item = buttonData.Item
if rc and handEquipped == "Right" then
print("right click"..item.Name)
elseif not rc and handEquipped == "Left" then
print("left click"..item.Name)
end
end```
are you not showing the rest of the server script?
if not item then return end
local char = plr.Character
local hrp = char:FindFirstChild("HumanoidRootPart")
local hotbar = toolfunc.getHotbar(plr, UniversalHotbar_Table)
local grip : Motor6D = plr.Character:FindFirstChild("Right Arm")["RightGrip"]
local buttonData = toolfunc.getButtonData(hotbar, nil, true)
```
not much else
found the solution
learning loops did i cook
Canāt read anything in blue š
is it that hard to seeš
Yes
what colors you use then ill change it
then why you in code discussion š
do what!?
players have like their own humanoid description right
can. u copy it onto a rig
is that possible
Iām pretty sure
bro iv actual been scripting for weeks but just went back to watch all the vids again to get better
how do u do it
ive read the documentation and it doesnt work
go to #code-help
That is not a good idea
also im on events yayayyay
#code-help channel is ageplay channel rn
nuh uh
Geeked vs locked in
Neither, make a game
#code-help is if you just wanna get shit on
u gotta pull up prepared to be made fun of for your answer
learn by asking question 
give up and make someone else code 
This is the method
wtf?
terrible syntax highlighting and u dont need the 2nd comma and the 1
why are you using the cancer blue
what color should i use
use the "Extra 2" color preset
uhhh okay
He means this
okay
at least i got the dark mode right
did it
is this like what all scripters use š
also is random import
needed
Nah I use this
default is the best
Is there a way to track if someone tries to edit the script, add new code, or move any blocks?
I just pulled it from the forum
that code is ass
its terrible resource wise
ur creating a new while loop for every part
yes
so u cant script?
u said u pulled that code from devforum
correct
I copied the loop
and failed to notice its terrible performance wise
if it works it works
š
if it needs to be improved i'll find a way
not a good mentality but alright
okay if it doesnt work I wont touchit
is that assigning the parts to a new collection then looping thrpugh that collection for the function
š
ur just adding a "tag" to a part
I know what a collection is but idk what the tag part is
lets same its named "TimedLight"
and then COllectionService will get all the parts with the tag "TimeLight"
when u pass it to CollectionService:GetTagged()
so you're just looping and adding them to a collection
?????
bro just go read the docs
are you good bro I know what it is
then why not use it
this code looks like it was written 5 years ago
cuz I havent looked at how its done yet
and by a terrible scripter
checking every 0.1 seconds is not ideal for optimization
finshed brawl devs bigger series
well done, if you weren't coding as you watched the video you aren't gonna remember anything
i did
iv been codeing for weeks but rushed alot so i knew alot but didnt if that make some since
is it local or server
server you dont want lights changing local unless you're making schizophrenia game
so i finshed the thing what do i do now
what will you do now
can't you just do task.delay() and wait a calculated time in seconds then you turn on the lights instead of all this bloat
you're doing all this every 60 seconds when you could yield a thread for a calculated time and do it once
If it's server why do you check every 60 seconds how many seconds after midnight, just calculate how long it will take to get to that time and run a while wait loop
because it may not be the same everytime
I may end up changing the time of day later on
or I may make the days last longer who knows
wait what are you even trying to do
if you used a calculation it would still work
it will unless you alter it and in that case you can simply factor it in
that wouldn't change anything with a calculation
ask copilot (if you are a noob)
know what guys
i forget to save my game now im doing the donation table again
i swear i made these games before
That's what variables are for
light mode...
the Variables are everywhere
pairs š
whats your issue with pairs
CollectionService:GetTagged returns an array like table which is also a sequential array, so ipairs is more ideal
pointless to even call it in the first place
just do for i,v in tbl do
ikr
doesn't matter
im better
I read a comparison in the forums once, inputting the table directly is still faster
Guys im new to coding and im watching a tutoria but it only focuses on using print with others mechanics like loops or funcions, do you think i need to change tutorials or just stick with this?
It's likely fine you still have to practice and not only watch though
you need to know print loop and espically functions
ty for the help š
My new portfolio
Lorem ipsum dolor sit amet
i start coding like 5 minutes ago and i try to change the color of my grass by making it black with a script please help
use thedevking series
im using it but he didnt said how to change color
first replace the first line with
local Grasspart = workspace.Stroke.Grass
hum ok
then if you wanna set color to a part you would do
Grasspart.Color = Color3.new() -- you put color value in here
okay thanks
thanks
so if i actually well understand local function is like local but u can do more thing like a group?
local just exists because its faster
local number = 5 is faster than number = 5
Ų³ŁŲ§Ł
im using it and im at 16th video
im using brawldev series
use thedevking
all scripting tutorials are ass
nah
yeah
thedevking is best one
personally i didnt learn luau from tutorials
just read docs and practice urself
with tutorials all ur doing is copying code
ill just finish brawldevs i just have 2 videos then ill do a simple game and then ill use the devking one
not learning
thedevking teaching and say practice
i learn over 16 things
ur insane
thedevking tutorials are ancient vro
hes using depricated functions
in his code
vro he teaching good
yes but the code he uses is old vro
then from where i learn lua vro
isnt it eny good tutorial but new?
docs and api ref vro
its making me get bored vro
thats why u practice and use the docs and api ref to assist u vro
instead of copying code vro
im not copying code vro
yeah u r from tutorials vro
he teaching and i understand then i get idea to make vro
u aint learning shit vro
(practiceing)
i did learn shit vro
are u ed ? vro
he teaching and say how this is works vro
make ur own shit vroo
then i do thing my own
i did vro
previous programming knowledge
i already kinda knew the syntax
it was just learning the api functions and how the game engine works
yo
so i got this leaderstats money gui script
currencySymbol = "$",
startingMoney = 5000, -- < Starting amount for new players >
visibleLeaderstats = true, -- < Show/hide leaderstats >
leaderstatWalletName = "Wallet", -- < Wallet stat name (changing this resets player data) >
leaderstatBankName = "Bank", -- < Bank stat name (changing this resets player data) >
and this is my weaponstore gui script
Settings.CurrentcySetting = {
Leaderstats = "Wallet",
Cash = "Cash",
Symbol = "$"
}
is everything right?
just use ai
Where did you snatch this code from?

how do i sort a table with only numbers from highest to lowest
table.sort(numbers, function(a, b)
return a > b
end)
thanks, i thought there was an easier way tho ngl
true
if u want lowest to highest u can just do table.sort(numbers)
but if u want to reverse it then u gotta use custom sorting
can i insert multiple variables at once into a table? like lets say i have local r, local g, local b and i want to insert these
do I use for loop?
just do this? {r, g ,b}
lol
ohh alr thanks
Why are u using global vars?
hey
is memorystoreservice the best way to handle in game economies
like cross server type stuff
@dark wraith hiii
alr
Sorry for late reply. It's just the design of the service. From the docs: "Delivery is best effort and not guaranteed. Make sure to architect your experience so delivery failures are not critical."
oh I never noticed that I had made those "master server" type systems in the past, glad that I never put it into a game
sup
hi there does anyone know if boolvalues have an effect on all users in the server? Basically what I did was make it so that local scripts talk to each other where if a user is running, then it'll change the boolvalue to true, and if a user is hitting, the sprinting boolvalue turns false. I was just wondering if this could possibly have an effect on all users being in the server (located in replicated storage)
if modified by local script then no
he already is, thats why hes asking if its correct
Awesome you saved 5 frames worth of time cycling through a list! š²
No
Ipairs is slightly faster than pairs(0 when used on sequential numeric keys
so what you said doesnt even make any sense
I suggest you re read our conversation as I won't benefit by restating it at all, Godspeed
we still using ipairs and pairs in 25?
No thanks
yes
That's fine, to each their own
Dont care
just use general iteration
wait if people dont then what do you use over it š
for index, value in table do end
what did i do wrong?
wait
so like
for number, data in {
[1] = "tuah" }
do
?
can do that
so like a universal pairs/ipairs
what about using Instance:GetChildren()?
whats the issue
that returns an array of children
oh wrong ss
hmm okay
what did i do wrong
can someone help me fix this
Units is a string
unc im sorry but why is it "UnCommon" and not "Uncommon"
fair enoughb
forsure
its just a datastore manager like profilestore except easier to use
check tutorial on how to make killbricks it will help u in completing this
so howw do i fix
whatever is using this function is sending a string as 2nd arg
are you calling it from a remoteevent
idk
is player meant to be a string?
local GamepassID = 1296445377 -- Replace with your Gamepass ID
local GamepassDoor = game.Workspace:WaitForChild("Hand From Heaven Gamepass Door") -- Change GamepassDoor to whatever your part is called which will open
local function checkGamepass(Player)
return game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, GamepassID)
end
local function openDoorForPlayer(player)
if checkGamepass(player) then
GamepassDoor.Transparency = 0.8 -- You can adjust the transparency here
GamepassDoor.CanCollide = false
end
end
while true do
openDoorForPlayer(game.Players.LocalPlayer)
wait(3) -- Wait for 3 seconds before checking again if the player has the gamepass.
end
bro mind fixing it pls
bro
try to figure it out urself
its really not that hard
learn about
".Touched" event first
can UserOwnsGamePassAsync be called on client even š
yeah
oh i thought it couldnt
@weak yokebtw
?
when adding gold why did u use Set when you made Increment
lol i made increment like last second and i didnt feel like updated the manager
ngl i barely work with datastores so i couldnt tell you much
i changed it lol
me too, i usually use profilestore but i wanted to see what it was like to make ur own
tbh the most difficult thing was working for all the settings at the top š
Is anyone good with custom morphs/custom rigs here? I really need help fixing mine
im not but wsp
i want to talk to you
yo š
is there a scripter that take game %? it's for an huge rpg game project
i need a scripter ASAP
pls ;-;
cuz the game has arleady almost everything done except the script
guys how many impressions can i get in 150 ad credits ? @everyone
????????????????????????/
scripting is the most time consuming and hardest and most expensive part of developing a game
and very few to no advanced scripters take a percentage
only brand new scripters with bad code do percentage
k
but where should i go looking then?
cuz it's the 4 serv that i ask the same question
;-;
nowhere
pay some robux
then scripters will talk to you
for a whole game? 100k robux easily or over 1k USD
For someone like me at least with multiple years of experience
I guess
I dont mean to rehash cause this is kind of similar to what slimys talking abt but i was wondering how much a full game dev for smth like a visual novel would cost. I ask cause idk if itd be different.
Its got no real player to player interactions its more just like a story persay
I wanna be fair tho so dont hold back
what does this error mean. can anyone help
you stupid
LoadAnimation not loadanimation
ty
then dm me
is this code good
thid code is for wave system(tds)
if it works
it works
thats kinda what you just need to care about
as long as job is done its fine
there a little bit more to it
you can have code work and not be good
tbh if its good enough no need to bother more
thats the hard lesson i learnt
very few code requires to be perfect
i would still avoid spaghetti code
or memory leaks
sure if ur making a bad project its fine but for anything quality wise u need to make sure to optimize and organize for updates
tbh after some point you just start to make game mostly optimized from get go
when coding
therell always b room to improve
how do you feel about using ai to add descriptive comments to code you write
ehhhhhh i try to avoid ai for anything besides image generation
occassionally ill talk to it to bounce game ideas off of
im wary of that bc ai does not know how to code well
which means its comments will be subpar
i do check the comments
to see if it done it wrong
tbh gemini 2.5 pro is fine at commenting code
not good enough to write but it understand it
mostly
still i have to commnet my code myself
for application
Who even needs comments tbh
real
can anyone help with a badge awarding system where if the right thing is said in chat, a badge gets awarded? idk anything about badge awards
What are the best videos that actually teach you, like explain every bit of code and hwo it works. Im looking to progress as I mostly know the basics of ua
go through brawl devs tutorials, very good and slow
no way bro i just did that
im working on changing properties using scripts rn
oh nice
also use the documentation for roblox studio
Ahh yeah this was the guy I was looking for
Does anyone have popular dev servers besides hd and rd
idk why but unify devs and roblox dev community are good

