#code-discussion
1 messages · Page 63 of 1
have to click the box with the two little lines in it to add an event that GetMarkerReachedSignal can use
cant you make this parallelelelelel
i dont think you can, since this is the c# console
oh its c# i thought it was luau
another victim >:)
why dont you just glfw + opengl it or something 😭
well i am going to switch into sad console for performance and so i can still use a text based system
nah i got it
nice
yo im trying to make like an actual game independently but i rly dont know what to make, can someone give me light suggestions so i can get a lil kickstarted yk
Ask chat gpt
cooking simulator
meh
im trying to find like a replayable game thats like pretty chill
something similar to blood debt and dingus maybe>
oh good idea
if im tryna make a restaurant game (like that burger place in bloxburg, or Work At a Pizza Place), and I have a customer spawn in, whats the best way to like store there order, do I just make a attribute??
I just gotta make em able to line up
I think im using too many modules scripts tho idk
i would just make a table for each of em called order
like
1 sec
local order = {
["Hamburger"] = {
pickles = 54,
tomatos = 1,
buns = 0
},
["Soda"] = {
type = "coke",
size = 5000
}
}
``` or smth
Somebody give me a task to do in studio (scripter)
Make fightable npcs
does anyone have a good website that has all the syntax n wut not for lua roblox? i cant find a good one and tbh idk how to use github i get lost ash, would appreciate it if given 🙂
thanks u
what makes it so that the PlayerAdded function doesnt add to the value, though the PlayerRemoving does?
any scripters?
Roblox Studio is weird with PlayerAdded sadly, I would recommend doing a for loop through the players using
Players:GetPlayers 😦
It will work fine inside of actual roblox though
okayyy thank you
How did they set up the characters in this
Mine looks really odd whenever I place it in the camera and cframe it
if it’s a modular system prob 5-10k rbx
ok
The CharacterAdded and PlayerAdded scripting events are a beginner’s trap! You are almost guaranteed to run into issues the first time using them. I’ve seen this issue pop up for new programmers in my experience. This tutorial will help you understand the problem. TL;DR please don’t do this: -- naive method game.Players.PlayerAdded:Con...
Hi
Er
wasapppp
Chat when I hover on a button, all the buttons which are located with the button I hovered on get the tweening animation for some reason
wut
send the code
no
what
Guys i need to get hired for phyton scripting, where should I ask for a commission?
i do python scripting
dm me
bro wants it to be fixed but doesnt send the code for it
hi guys can someone help me script overhead UI it doesn't want to show in my game and the GUI dm me
Im recreating a game. i need a scripter dm me if u experienced. payment is 50% and 10-15k rbx upon release. i do modelling & ui and some vfx. im investing 100k into the game. dm fast.
What difference between average session time and average play time in analytics ?
how would i fix this?
In our game we have a framework where service modules are able to fetch eachother by interfacing with the framework.
Why dosent this show the prefix? No errors and everything seems correct: ```lua
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RankUpdateEvent = ReplicatedStorage:WaitForChild("RemotesFolder"):WaitForChild("UserRanks")
local top100Ranks = {}
RankUpdateEvent.OnClientEvent:Connect(function(rankTable)
top100Ranks = rankTable
end)
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")
if message.TextSource then
local userId = message.TextSource.UserId
local rank = top100Ranks[userId]
if rank then
props.PrefixText = string.format("<font color='#00C8FF'>[#%d]</font> %s", rank, message.PrefixText or "")
else
props.PrefixText = message.PrefixText or ""
end
props.Text = message.Text
end
return props
end
whats the difference between scripting and programming
u sure its not just due to the text scaled?
Wdym?
try to create a different element for just the bg and tween that if j dont want it to tween
when you tween an element, descendants are also tweened if u use scale, if this is not your intended purpose do what I said right over
genuinely tweaking, someone set up a creature model to spawn in with a humanoid part when it used around r60......
Yo guys, how do I find a find a part that is non existing yet and clone it to the backpack? For example, ```re_equipitem.OnServerEvent:Connect(function(player, input)
local slotsFolder = player:WaitForChild("Slots")
local main = slotsFolder:WaitForChild("MainSlots")
local backpack = player:WaitForChild("Backpack")
print("reached server")
if input == Enum.KeyCode.One then
print("equipping")
local cloneToBackpack = main:---->here<---:Clone()
cloneToBackpack.Parent = backpack
end
end)
return BackpackHandler``` The folder doesn't have the item inside of it yet. Got any ideas how I would get the child of the folder and not use GetChildren()?
15$
store it in replicated storage then local part = game.replicatedstorage.part:clone() then parent is backpack or wtv u wanna do
the items won't be always in one place
put the part in replicated storage and then clone it from the script
okay I have an idea
Probably a viewport frame or sum
Iirc one is lower level, and the other is higher level. But they're mostly synonymous.
In roblox code containers are called scripts so writing in them would be called scripting
But you're programming a game, writing its game logic
And programming can be interpreted in multiple ways aswell
You are creating programs, consisting of logic
okay okay okay so basically
the programmer creates the logic and the scripter uses it
like
the programmer makes the software
and the scripter writes the scripts in the software
I'm grabbing my laptop, phone keyboard is insufferable
back
but the meaning of language depends on what everyone thinks of it so if everyone thinks that scripter and programmer mean the same thing then the language will bend to that
if i making an ability that hits enemy into air, then flies up and hits them down, do i need to fly up in the animation? or just a still flying animation then use vectors to make the player fly instead
No
Just make the air combo
thank you kindly
How do you make classic sword skins with the same hitbox for all skins?
Changing the default Mesh object inside the classic sword works and keeps the Handle part's hitbox static regardless of mesh, but it doesn't allow for rotation and if the modeler doesn't perfectly rotate the sword you can't change it later. Especially bad when i already have like 50 skins all with different rotations
Mesh id
Yes but SpecialMesh/FileMesh allows for position offset and scale offset
But not for rotation offset
Which is a big problem
could just make a box that represents the hitbox
I tried that
The hitbox part worsk well and is positioned correctly
But the hit detection is just broken
how come
Player to player collisions are disabled and that seems to mess wit hthe hit detection, when i re-enable player collisions it works
Can you equip 2 tools on one character?
then you just gotta switch up the collision group for the hitbox too
I guess you're probably using .touched
Either the collision groups or properties of player or hitbox aint right
not sure for what .touched accounts for
check out the documentation
Should I use text compression in MessangingService
uhm 😭
No lag?
is it possible to change the lighint in diffrent areas in a game?
Emitters
whats that?
Light emitters
okay
And put transparency to 1
ok thxs
I need 600 players to test out an infinite player servers method
600 virtual machines
guys theres something wrong with my game
how do i locate the asset so i can delete it
They gave the asset id
Search it up
Show me the error
its just roblox's page not found
maybe i put the wrong url id
whats the correct one so i can put in asset id
It probably got deleted
Why are you asking me they literally gave you the ID
220 lines of code for simple shared health mechanics lmaoo 😭
i cant just paste the asset id in the browser
What's shared health
i take damage, everyone else takes damage
Really?
I'd like to study that code
Check every free model you have in your game in studio
a lot of it is just griefing mechanics my friend helped me make
havent properly tested it yet
i'll send it over if it works lol
also, love your bio - mortal man is amazing
Alright
YES THANK YOU
SOMEONE KNOWS
np <33 tpab one of the greatest albums of all time
im a pop fan and so when i listened to tpab for the first time the bar was set so unbelievably high 😭
On God
What's your favorite song on it?
no freemodels at all
do you think its any of these
Wait
If no free models
Why are you using assets
Did you get those remotes from the marketplace?
no
Then they can't do anything bad
which ones in particular
And find any other things in any other directory that are named after drugs
Idk you know the drugs
Any scripters free to help me with something small rq?
@languid iris since roblox warned my account from it...and the asset is apparently deleted, do i even need to do anything since maybe they removed it from my studio too?
or do they not automatically remove bad stuff
ask
So i have coded a UI that works, except for when the user closes the UI, and go to the region designated to reopen it, it wont reopen until the session is restarted?
You should still rename your remotes and stuff just to be safe
show code and move to #code-help
yeah yeah
but does that mean then that the game is cleared from the asset?
I don't know how Roblox does it since I've never been warned for stuff like this before but
Wait they have the asset name
Just check the game for it
ngl idk how to do that
afaik roblox doesn't moderate for such stuffs
does anyone know how to fix "This experience is currently not available" after publishing it
and he doesn't seem to have anything bad for remote names
tagged u with a vid 😄
yo does anyone know how to make those blob eating games and tell me how to setup the blob
sorry gtg
I can dm you it if you want
I swear he's using free models and saying he's not
Yo
MAY THE 4TH BE WITH YOU CHATTT
Huh
best way to learn lua
is anyone familiar with solarhorizon lightsabers, i am trying to change the model hilt, the hilt appears behind me not in my hand
wrong! best way to learn lua is actually by playing Dead By Daylight! 😁 This is because the game is so shit that it will motivate you to learn 10x as fast!
that's the most human I've seen gpt
i should actually make gpt speak like that to break the ice
I love the tiny brain many lies part lmao
i had to change position but why is it so small
🗣️ never trust local script
🔥
Which constraint allows parts to be unanchored and not fall apart
weld
I want it to be destructible tho
delete welds
Pinnacle of all advices.
facts
stfo
Guys how long does it takes to get good at this coding language?
1 year or 2
Thats not that bad
ppl ive taught have gotten pretty good in like ~6-7 months
so its just up to you and how much you wanna learn i guess
but i would say 1 year is a good estimate to have a really good grasp of the language
Nice
So I kinda know the basics of coding
because I've done other coding languages
So wheeeeeeeeeere should I start?
With UI?
Woops forgor to ping
where to start with lua?
Yeah IN roblox studio
Ive done basic UI
and like walking on a block makes it disappear type stuff
you should get a basic grasp of the language & engine, UI might be a little much right now & you'd be skipping over a lot of steps by going straight to it
Also hovering over something makes a sound effect
what id recommend is just coming up with ideas for small projects
hm
and executing them
like even if its nothing impressive, as long as ur learning
first thing i ever made was a button that set the baseplate to a random transparency & color
Well, what do you mean by basic grasp of language engine like, seeing how roblox studio parts work?
understanding how lua works, and how the engine works
I'm sort of familiar ith the language from prior experience
so that you're comfortable
Where are videos where I could find how the lau engine works?
Hm.. I'll try sth like that
That's actually underrated
Learning programming in ooga booga language.
best way to learn lua change my mind
now ask it to teach you lua in doctor pickle style
who is doctor pickle 💔
ai doesnt know it :(
doctor pickle has his own ai converter somewhere
you give it topic and it will present in doctor pickle style iirc
check his channel its there somewhere
if u want
dang ai got jokes
hahahah wrong got me good🙏
the clip descendant property is prob on
that is pretty ez hehe
How long have u been scripting for
almost 3 years ?
Check dms rq
hey guys , i made a anti cheat system , can anyone try it?
hello people, quick question, have u guys ever had to use the # key thing for coding? like for example
local str="chicken"
print(#str)
^ it would then give length of string or number of elements in a table
its to make the strings numbers or something like that
yes..?
no
it just returns the length
yea
oh fr? in what occasions or purpose if u dont mind me asking
oh fr? in what occasions or purpose if u dont mind me asking
im trying to make a list of usfull things i can use later instead of trying to remember or forgetting yk
well its very specific occassions like if you need to verify the amount of elements in a table sent over a remote or if you need to count something. getting the length of a string would probably only be used in like typing games or something
amount of x, y, z
cool cool thanks u appreciate it
ah alr coolio thanks u i appreciate it
just acknowledge its existence you will use it somewhere eventually
thank u, i forgot it even was a thing n was going through all my stuff i have been getting from tutorials n found it, anyways thank u
hey hey. so u mentioned amount of xyz, so as is in how far away in xyz is from an entity? or what do you mean
ohh alr alr alr alr thanks thanks fs
np
Who here wants to be my friend
peak method
ANYTHING to push ur course 😭
How good is the course is my question
im trying to write a very simple code, could someone tell me why this isnt working?
Image
uh try removing the hit parameter and js print it directly
no while loop
because .Touched already detects when the part is being touched
idk try that
yeah im an idiot, i was just trying to practice loops and shit but yeah that works lol 
local CollectionService = game:GetService("CollectionService")
local ObbyFinish = game.Workspace.ObbyFinish
local KillBrick = game.Workspace.ObbyFloor
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RNGModule = require(ReplicatedStorage.Modules.RNGModule)
local debounce = false
local SpawnLocation = game.Workspace.SpawnLocation
local ObbyRewards = {
Coins = 1,
SpecialPickaxe = 0.01,
Pet = 0.02,
DoubleCoins10Min = 0.5,
DoubleCoins15Min = 0.2,
}
KillBrick.Touched:Connect(function(hit)
local Character = hit.Parent
if Character then
local Humanoid = Character:WaitForChild("Humanoid")
if Humanoid then
Humanoid.Health = 0
end
end
end)
ObbyFinish.Touched:Connect(function(hit)
local Character = hit.Parent
if Character then
if debounce then return end
local debounce = true
RNGModule.weighted_rng(ObbyRewards)
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
if HumanoidRootPart then
HumanoidRootPart.Position = SpawnLocation.Position
end
task.wait(10)
local debounce = false
end
end)
any ideas why ObbyFinish is acting as a killbrick?
only obbyfloor (KillBrick) should be acting as a killbrick
also it isnt teleporting the player and the debounce isnt working
both killbrick and obbyfinish events have:
local character = hit.Parent
which I believe just kills the player by removing their character
because it changes the character to whatever hit.Parent is
no, it sets "Character" variable to hit.parent (the player's character)
oh I don't even know then
it seems fine
maybe other scripts are evolved in this
nope, there arent any others that deal with anything similar
did you try asking any AI model
they can logically try to find a fix or straight up find the source of the problem
If raycast hits a model, does it return a model as .Instance or a child of this model?
thanks, really appreciate it
model = part right
no I meant like you have a complex house as a model for example and ray hits it
and the question was what i will get as a result
that's different isn't it?
anyone able to develop a rat
@hasty mesa he said model not a part
he answered the question
he said yea it will return a basepart inside this model
yeah but model ~= part
if you got it, it's all good
did you get it or u don't care?
i can do that
no it's just I was misunderstanding the question
Are there any scripters/investors that are interested in developing a brainrot game with me? I pay in game revenue! DM me for more info!
im 6 year scripter what need done?
lua
All right uh
Well I am currently hiring a dev team
Ill pay them in %
The game idea is very popular right now so it has high success chance
okay well im 6 year roblox scripter i know mostly everything
need atleast ui artist then and a builde
Alr DM me
Yeah Ik
Ill get them
Im a builder and a modeler myself
dm me to make a game together
any testers?
--!strict
local HttpService = game:GetService("HttpService")
local ObserverClass = {}
ObserverClass.__index = ObserverClass
type callback<T...> = (T...) -> ()
type connection<T...> = {
["Callback"] : callback<T...>,
["Disconnect"] : () -> ()
}
type eventsList<T...> = {
[string] : {[string] : connection<T...>}
}
type Observer<T...> = typeof(setmetatable({["Events"] = {} :: eventsList<T...>}, ObserverClass))
local function New<T...>() : Observer<T...>
return setmetatable({["Events"] = {}}, ObserverClass)
end
function ObserverClass.Connect<T...>(self : Observer<T...>, Event:string, Callback : callback<T...>)
if not self.Events[Event] then
self.Events[Event] = {}
end
local id = HttpService:GenerateGUID(false)
local connection : connection<T...> = {
["Callback"] = Callback,
["Disconnect"] = function()
self.Events[Event][id] = nil
end
}
self.Events[Event][id] = connection
return connection
end
function ObserverClass.Fire<T...>(self: Observer<T...>, Event : string, ... : T...)
if not self[Event] then
warn("Event has no callbacks")
return
end
for _, v in self.Events[Event] do
task.spawn(v.Callback, ...)
end
end
return {New = New}
``` hello is this good observer
I plan to add a listen method to it in the future to run when a certain property is changed but havent done that yet
dm me to make a game together
--!strict
local HttpService = game:GetService("HttpService")
local ObserverClass = {}
ObserverClass.__index = ObserverClass
type callback<T...> = (T...) -> ()
type connection<T...> = {
["Callback"] : callback<T...>,
["Disconnect"] : () -> ()
}
type eventsList<T...> = {
[string] : {[string] : connection<T...>}
}
type Observer<T...> = typeof(setmetatable({["Events"] = {} :: eventsList<T...>}, ObserverClass))
local function New<T...>() : Observer<T...>
return setmetatable({["Events"] = {}}, ObserverClass)
end
function ObserverClass.Connect<T...>(self : Observer<T...>, Event:string, Callback : callback<T...>)
if not self.Events[Event] then
self.Events[Event] = {}
end
local id = HttpService:GenerateGUID(false)
local connection : connection<T...> = {
["Callback"] = Callback,
["Disconnect"] = function()
self.Events[Event][id] = nil
end
}
self.Events[Event][id] = connection
return connection
end
-- You missed the self.Events here but I see you wrote it correctly in line 25.
-- I've fixed for you.
function ObserverClass.Fire<T...>(self: Observer<T...>, Event : string, ... : T...)
if not self.Events[Event] then
warn("Event has no callbacks")
return
end
-- You need a pairs wrapper here to make a proper table.
for _, v in pairs(self.Events[Event]) do
task.spawn(v.Callback, ...)
end
end
return {New = New}
Just some quick commented fixes. There's a few design choices I'd do differently, but I can't really comment until I see how you implement the listener.
dm to join dev team
does anyone know how to make a stranger system
https://streamable.com/pc4nz3 Tuff or no...
Oh yeah mb thats an old copy where I didn't fully change it over yet, have in my current version. Though may I ask why its necessary to do pairs(), it runs the same without.
pretty tuff
on the contrary i need to find smbdy who can help teach me script
Bro I honestly can't either very well, just learn from the dev forums.
i didnt even realise the parts are flapping
Yup
ngl i just wanna make a stranger system for this 1 guy but i dont know a thing about scripting
Took me like 4 - 5 hours. 😭
Look for the stuff on the dev forums.
dev forums do not have sh on stranger systems thoo
Yes but use it to find bits to put together to make it.
Yeah sorry I sent a version where I hadnt fully added self.Events by me simply forgetting haha but have already fixed it now. For the listener I planned to add a seperate method that when ran creates a heartbeat connection that gets the current value of the defined property then checks it with the cached value, and then if its not the same runs the Fire method then caches the new value
Huh I may be a bit rusty, but it's because you are using a generic for loop. Line 50 I think, but 53 after I added my comments.
It can still work because Luau assumes pairs for the most part, but sometimes it doesn't so it can silently fail. Mhmm, in your case, it shouldn't really be working since you cited you are in strict mode which I see you've noted at the top.
At the end though, if it works for you, that's good 🙂 Sorry I can't provide more help. And nice you spotted the other ones on your own.
Ahh okay, idk why I just never used pairs and rarely used ipairs when scripting. Very recently started using strict and typechecking so had no idea that it actually could matter! Thank you for saying though will definitely consider that in future 🙂
local CacheObjects = require(script:WaitForChild("CacheObject"))
always had this question.. do we need to waitforchild for objects inside a local script?
from my point of view it depends where local script is placed
if it is in startergui u don't need to use waitforchild since everything is replicated at the same time
this is just 5uphis plane
What is the most recommended Signal module to use in Roblox games?
Oh so 0 need for wait for child in startergui?
if the script is in startegui
well yeah since everything is replicated at the same time
Thanks for that info
i dont look at performance into that detail
i should do that tho
np
yeah
Lemon I guess but I am not an expert
Instance:FindFirstChild() is a more efficient alternative to WaitForChild()
thats true
am trying to find where it states how much waitforchild impacts performance
they don't do the same thing
is there any scipters willing to work on a game for free? if so dm me
WaitForChild waits until a child by that name is found
FindFirstChild doesn't yield and can return nil
in startergui you need neither
What is ur idea
Where do I find it?
just google it
you just said they did
Is there some easy way to find when an object ends? As in, if I know an object is in a certain position and have raytraced info about it, can I tell where the closest point where it reaches an edge is?
local ClientEvents = game:GetService("ReplicatedStorage"):WaitForChild("Main", 25).Events.Client
Would WaitForChild be needed in that serverscript
by saying it was an alternataive
no
contents of ReplicatedStorage are replicated before DataModel.Loaded fires
No i just said its a better alternative, i didnt send the other part that said 'for objects that are assumed to exist'
anyone able to develop rat i’ll pay
it's not an alternative
Thanks
Instance:FindFirstChild() is a more efficient alternative to WaitForChild() for objects that are assumed to exist
is that better
not really
how so
No unless ur game uses streaming enabled
huh
FindFirstChild is for when you know when something exists
literally just finds the first child
else it returns nil
thtas just what i said lol
whereas WaitForChild doesn't return nil unless timeout
Roblox loads all instances serverside before any script runs, which is why u dont need waitforchild serverside (unless u use streaming enabled)
dude its objects within replicatedstorage not workspace
thats what the code says
Still
same thing
yea streaming enabled isnt a property for replicatedstorage
Do u know what streaming enabled does
bruh
dynamic loading
and unloading
only for viewable objects
or visiual objects for the client
Not something outside of the workspace
its not a property for replicatedstorage, the code is requiring something from the RS
So u wouldnt need waitforchild then
Yea dizzyco cleared that for me
am trying to break down on performance
Thanks guys
cya
even with streaming enabled you don't need to wait for static instances serverside.
Ya workspace stuff only
you don't need to wait for anything serverside anywhere in the hierarchy; regardless of streaming enabled.
Its not 2 bad
i dont like it
local userNoUpdateOnLoopSuccess 💔
25 char variable name is crazy
wait wait
look at this LMAO
why do they do this bro
it looks so ai
yk how ai does _no capital letter, Capitalize
like
dataTool
Instead of DataTool
whats the point
i cant read it
im new to scripting i spent some of my days learning the basics but i was wondering is there anything you guys would recommend for me to watch or use to help gather a full understanding on scripting?
That's called camel case. It's a common thing programmers do.
Its just camelcase bro
use the devforum for resources and past issues from people that theyve expirenced for your knowledge
and use the documentation (its really good)
alright thanks man
PascalCase
Alot of wat they do even if its ugly is fairly smart
Vibe coding really getting to new gen scripters
What's wrong?
is there anyone who can help me this but when i try to code soemthings it like i dont know how to start off or what way to do it for example i want to make a dash system but i dont know i would start off like it may sound weird but if you know how to help please tell me any feedback is good
Start with the basics
yes
like start off by setting up the keybinds
then the movement velocity for each direction (should be ran off the client for best performance depending on the game)
then add effects and animations
As a beginner scripter is it good to just repeat making killbrick scripts until I’ve memorized it? Thats what I’m doing rn. I’m on the third time and I’ve almost memorized it
alright so basically for any thing im scripting i need to start off by assigning the script to whatever its about?
yes. like gabo said, you need to start with the basics first. so for example if i made some sword slahes, i would make the keybind first, the hitbox/hit module next, connect those both. once the main system is working id add the animation,sfx & vfx
He doesnt know about camelCase
Calling it ai is so crazy
Junks embarrassing
No, aim to understand not memorize. You only need to loosely remember keywords starting out, understand the concepts behind what you're doing and you'll go further faster
Script a variety of different things that peak your interest
uhh
not lua specific but
Someone just told me it’s only fun for a bit and I shouldn’t do it. Is that true
u should learn abt variables loops data types and variable manipulation as in modifying it and stuff @dark basin
What is? Scripting?
Yes
Who cares, do you want to make a game?
Yes
Then learn to script
memorizing wont work
aim to understand it
What do you recommend starting off making. I understand all the data types
And functions
Basic stuff
Loops
make a brick switch to a random color every 5 seconds
And while and repeat
Thanks
that would require a loop
Another loop
and also for u to generate a random color value
That sounds hard
its not
Could yall hop on voice and help me through it if I get stuck?
use online resources if u cant figure it out
The better beginner project imo is a memory game
Wdym
That’s crazy. How
wdym
Why haven’t you tried to learn luau
ik it wouldnt be hard since i already have a good understanding of programming basics but i dont want to learn it yet
Ye
See, right here is a perfect example where I get stuck. I made the variable. Now I have no clue if I need to do something before making the loop or not
I think I got it
But I’m not sure
Uhh
Idk how to randomize colors
im not sure what roblox studio uses for colors but
if its rgb then
A simple memory game. You spawn in, theres a screen with a surface ui. Several objects representing a color with click detectors or proximity events and an object with the same set up to start the game.
On the server create the game logic to generate a random color sequence then display that sequence to the player, then have to repeat it and what not
generate 3 random values between 0 and 256
Its straight forward
then u uhh
Oh gosh. I never done anything with ui
ik how to do it but not how to explain it
Ye
rgb requires 3 values between 0-256
u then store those 3 values in a variable and set the brick color to the value of that variable
And never done anything with proximity prompts or click detectors. I’m a very beginner
just putting all 3 of those together wont work though
O
u gotta make it like
where each number is it has to be the variable where the value of the random value is stored
WHY IS NOTHING HAPPENING 😭
Both are beginner level and very general
Oh ok
People tend to move away from them for other methods
This is the simplest script ever and nothing is happening 😭
Maybe not proximity
not sure
Idk why nothing is happening
I don’t think u gotta call a loop
Pretty sure u don’t actually
if u use a while loop
Only functions
as long as the condition is true it repeats infinitely
while true do
Ohhhh
no
im not a luau scripter
Case sensitive
Wdym
Oh you sent a string
Well yeah, but it shouldn’t be
Show the code
i remember how i typed 1 letter in lowercase in javascript
Don’t roast my script 😭

lol
Use BrickColor.new() to wrap the names
Shit
^
Ty
IT WORKSSSSSS SHSIRKFJJFHEHEIRBUENEBEGDGEHWHWHEHUE
So uh what should I make now
@turbid moth
I want something quick
Cuz I’m goin to bed soon ish
I don’t think they do
It can
Instead of brick color u use one of the ones that take numbers as an input
The rest you should try to figure out on your own
It does
Color3's
yesm
Okay I’m special nvm
I ain't new gen I just adapted to captilizaing eveyrtingng
But I would have no clue how to go about making it random
Like ik math.random but
I mean tables
try it out
But idk how to actually make it random
What’s mathing though
Numbers? Idk
I’m looking at documentation rn
This is a whole lot of useless information that I don’t understand
how long to learn rblx studio
Like scripting
yhea
Or the controls
scripting
Oh
mb lua
Idk, it’s taken me a while
Not useless
Do u have any experience with other coding languages
yea js, py
i see
You dont need hyperbolic cosine to randomize colors
Dont overwhelm yourself
A really good programmer with lots of experience still uses documentations
IT TAKES TIME to understand everything
And even if you do, you forget stuff
I assume I’d put the math. Random in a while true do loop?
Depends on what you're doing
I just don’t know how to go aboun it
your thoughts are getting somewhere
I’m tryna make a part change to a random color every 5 seconds
I already got it to change colors but not random
Pseudocode:
while true do
get random color using math.random
assign color to part
wait for 5 seconds
ima just tell him
alright
Learn to read the documentation
then a reminder here most things are WAY MORE simple that you think
Idk how
It tells you everything in front of you
No.
close
GOSH DANGIT
but no
The paramaters are two numbers
As you can see in what I sent above
Rgb
It says nothing about colors
You can randomize a red, then green, then blue
r | g | b
I though it was just 2 numbers in the parameters
Yes a color is from 1-255
yes
Ohhhh
Get a color for red, so do math.random(1, 255) for red, then for blue, then for green
I’m still confused but I’ll try
You can simply this further so you dont have 3 redundant lines for this same function
Do u put it in one math. Random or do u have to make 3 of them
How the heck
Okay so, math.random(x, y) takes two paramters
Ye
x is a number, y is a number
You do
local red = Math.random(1, 255)
local blue = Math.random(1, 255)
local green = Math.random(1, 255)
Obviously its redundant, but just make it work first
Outside of the loop?
No inside the loop if you want it to change every 5 seconds.
Ok
Then, you will have a red, green and blue. Now you can set the color3 of a part with those variables.
To change their color.
minimum and maximum
you put a period instead of a comma
also no need for another color change after the wait, it will loop back by itself
I already learn loops variables learn that to and data types I just don’t know variable manipulation since I haven’t really script anything big yet
Is it just me or i cant view my past studio history?
I know like some basic stuff
so whats basic beginner projects to do as a beginner scripter
someone tell me please
does anyone have a copy of shinden?
is anyone having issues with view history?
is there any challenges for coding in lua
can anyone help on how to make it so you teleport if you reset while sitting in a chair
Make a door
Have an open and close function
hm.. Not to annoy you but what should I do next after that
Forgor to ping
connect humanoid.Died, and then when they leave the seat, disconnect it
and of course in the connection just set their humanoidrootpart's position
not allowed i dont think
hard coded the shit out of it
fellas do anything but make a function 😭
💔
what
😔
ik 💔
bro 😭
function UIAnimations:__hideButtons(shouldHide: boolean)
local targetPositionKey = shouldHide and "HidePosition" or "OrigPosition"
local tweenInfo = TweenInfo.new(0.2)
for _, buttonData in self.HideableButtons do
local button = buttonData.Button
local targetPosition = buttonData.Positions[targetPositionKey]
TweenService:Create(button, tweenInfo, {
Position = targetPosition,
}):Play()
end
end
much cleaner now
sick lol
Fire
bro why two underscores
this makes zero sense
How?
Just say you have 1 year 😭
can somebody help me yo can somebody help me test my game (it will only take a minute)
is the best way to script just asking questions and watching tuns of tutorials following along and comprehending them?
updated my npm packages after a few months and now suddenly my modal/button builders are breaking
how do i fix it
discord.js
Nah it’s to vibe
ur username says it all
anyone got 2 player obby systems?
it's just weird because why would you hide the functions you use, it's not a library
if u put _ on stuff it's either to update a preRender __update or other shit
Only time I see the double underscore is on python boilerplate
__ is just used if the function is really important and shouldn't be used with the other programmer (which I think making a local function with a self parameter is a better approach)
I can
how do u test ur code ( i never coded lua on vs and i suppose this is for a game ?)
how much for a 2 player obby queue system
not much its pretty simple, ill dm u
yea alr
humanoid.Health -= damage 

omg could've use .fromRGB 😭
because Color3.new are ranged to 0.1
use Color3.fromRGB instead if u want it ranged to 0-255
bruh made a one liner into a double garbage function
positionkey = bool and "yes" or "no"
thing = positionkey == "yes" and 1 or 0
💀💀💀💀
nvm dawg im dyslexic forgive me
You are forgiven
guys can anyone help with making my dream game
No
😮
😮
I bet you aren’t paying
😮
from now on every messege u send i reply with 😮
Is there a way to remove the thing: when I put part on the baseplate, roblox automatically inserts a weld inside it?
yeah turn off welds at the top
or 'joint surfaces' its called something like that if I remember correctly
thanks
in roblox studio
don't do drugs kid
How people usually write scripts for one tool that is being cloned afterwards? Adding localscript to every tool seems garbage, but if I use tags + script with collection service I guess it will work only tagged tools on the moment of script execution
but how ? since ur code is on vs do u like copy the entire thing to studio ?
seems like a waste off time
Rojo does that for you
rojo ?
Yes
what the hell is rojo
Serch it up
add a script to every tool that requires the same module
collection service
cloned afterwards
i believe u can give a tag to a clone
I decided to stick to collection service + GetInstanceAddedSignal(tagName)
is there an event inside collectionservice for adding a tag?
Rojo syncs your code, vscode to roblox studio, so bascially when you code in vscode and save it it'll automatically sync the code to roblox studio
nvm i'll read it myself
you can search it up
tbh i dont remember but i once saw a zombie system using collection service with 1 script using collection service
guys im trying to make a battlegrounds game but I'm suffering and I don't know which part of the script I'm doing wrong
When I go into developer console no errors are marked
Nor is anything markeed
The event I'm trying to do is when left clicked, an animation is played.
but still depends on the person if you really want to use VScode over roblox studio
What do you call a table that owns Facebook?
A metatable 🥶 🤫
nope i prefer roblox studio
amy help?
ah hihihihi
where is your script
sending
cold asf 🥶
is that why everyone hates metatables
I'm not sure
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Events = ReplicatedStorage.Events
local AttackHitboxes = require(script.Parent.AttackHitboxes)
local ClickAttackDebounces = {}
Events.ClickAttack.OnServerEvent:Connect(function(Player)
local Character = Player.Character
if Character == nil then
return
end
local Humanoid = Character:FindFirstChild("Humanoid")
if Humanoid == nil then
return
end
if Humanoid.Health >= 0 then
return
end
if ClickAttackDebounces[Player] then
return
end
ClickAttackDebounces[Players] = true
local PunchCombo = Player.Values.PunchCombo
local Animation = script.PunchAnimationCycle[tostring(PunchCombo.Value)]
local LoadedPunchAnimation = Humanoid.Animator:LoadAnimation(Animation)
LoadedPunchAnimation:Play()
if PunchCombo.Value >= # script.PunchAnimationCycle:GetChildren() then
PunchCombo.Value = 1
else
PunchCombo.Value += 1
end
task.wait(LoadedPunchAnimation.Length + 0.1)
if ClickAttackDebounces[Player] then
ClickAttackDebounces[Player] = nil
end
end)
if Humanoid.Health >= 0 then return end
change it to <=
alr
sadly still isnt working
Plz use the code formatting 🙏
Dm me if u wanna make a V2 of a game that no longer updates. u must be a sripter & ill invest into game ads too. I also have community from the old game. If this project goes well i can pay 10-15k robux.
what r the requirements for scripter discord role
read the guidelines
Read our application rules to better understand what we allow and how to help you be better prepared for submitting applications.
that stuff is literally reserved for like metamethods gng
i just dont get using it for functions like that
thats the point
there literally isnt
thats why im saying the double __ is stupid
just use one _ if your doing internal stuff
wdym by this
i was watching a tutoriall on how to make npc's using oop
and first few minutes in he explained that putting __SumFunction() makes it fire when you start the game
its just a naming convention
I don't think it does that
Explain how is it stupid?
It just doesn't make any sense naming convention wise
It literally depends on the person, so it's not really that stupid
I literally said it in content of naming convention wise
Who cares about that
I'm telling you its ok but like I don't know how people reading your code would feel
what do i do more 
g ive been waiting 3 days yet nun
Why would they read your code
because you work with people?
thats how you make games?
i added BUNCH of comments
how much time did it take for your post to be seen
look dude all im telling you is the double underscore is bad naming convention
and even had this in the begning of the script ```lua
--[[
This script handles an in-game character customization system using HumanoidDescription.
It allows players to:
- Search for accessories, clothing, and faces from the Roblox catalog.
- Equip and unequip items dynamically.
- Change the skin color of specific body parts.
- Save avatar for rejoining
Functionality:
- Fetches catalog items using an HTTP request to a proxy service.
- Applies and removes accessories using HumanoidDescription.
- Save and load avatar using ProfileService
]]
Me? Nah I work with my own
this doesnt count
ok but one day your gonna have to work with people
if you end up making a game
3 days
lmfao ive been waiting 3 days too yet nun
yea but working with people literally is just better and allows you to make better games
also if you hire scripters to help you theres that too
can someone show me an example of "well" commented script that they accept
look dude im not gonna get into the nitty gritty
wait thats scriptone
its always hi
only scriptone uses the big ass red declined
im just telling you, that the double underscore, its not proper naming convention
him
Yeah Ik idk why you call it stupid tho
wheres scriptone to review my code bro
board of failing
well cause like its literally used for metamethods
like your using a metamethod naming convention for your functions
thats genuinely just confusing
HAHAHAHAHAHAHAHAHAHHAHAHAHAHHAHA
but im closer than ever
We'll if you're really a programming you should know that It is not a metamethod
whats ur code show me in dms
programmer*
i wanna see what got u rejected
anyways
i do not understand any of this
i will just try to comment the code even more, and add some type of steps explaining to
I've read a lot of open source stuff
Is it really that difficult? 🥀
they are so frikcing strict
how do i find investors?
you mean scriptone
scriptone wants god tier type of code
just make something on strict mode
then ur good
they dont ask for that
they wants "explanation"
and if it works, i dont need it
show me ur code in dms gng 💔
no its top secret
send me ur code
it aint no cia type of info gng
^
my application has over 1k lines
What things did you send in?
💀 💀 💀 💀 💀
many stuff
my older attempt were lame tbh
ts ain't much 
What
yeah
he didnt ask for more code
I think if you make like a gun sys, vehicle sys and like a more complex gui sys you're good
i meant that u could add some white spaces for organizatiob and more comments
now i see why scriptone declined it
is anyone here passed it?
mines in queue 💔
what
is it possible to see ur submission code
what are you talking abt
have you passed the scripter application?
never applied
what is it for
can you tell me how to apply
To be able to post in #scripter-hirable
dm me to tweak up my old game and reupload it must be a scripter game could possibly releasing within 1-3hrs legit just need some changes. possible payment upon release ill also give 50%
take a look here first

