#code-discussion
1 messages ยท Page 7 of 1
but sure
lazy back in my day we ust to write in binary
and now your generation uses chat gpt
๐๐
dont mind the .init()
๐
o naw the hatred
only now started moving th ecodebase to inits
if this is a fake report bro may be banned
Please go ahead and submit ๐
๐
im not gonna lie... i kinda fw this
Fr
Sounds like a creepy threat
its some nice pastel type colors in there
๐ฒ
That smile emoji too
bro is holding that grudge
๐
Exactly
such a good ticket broitn
it 100 percent is
it has the basis of GOD
๐
๐๐๐๐
@somber vault ok now fr go write one
he deserves it
oh yea bro dont submit u going to get banned

why
๐
i js discovered you can copy and paste terrain regions and now adding maps to my awesome tbw game
Im heading to bed, anybody wanna sing me a goodnight song?
โ
goo to sleep goo to sleep
my little little livon go to sleep
Thank you good sir
Amazing keep going
anyone tryna q2
what game is that
na ๐ญ
tbw
Aight
what that
We out we out
tbw
what tbw mean
its not a minecraft game buddy
imma go do 5 secodn comms
ik it isnt
its some
random
game from some conroner of internet
imma go run f7 ๐
still dosent work :C
๐
what send me your code
why u need it to say 1k and 1m ?
its an awesome game
can anybody fix it (not hiring)
ok
na that is not
stfu
@viscid willow
r u a scripter or no
cuz i'd have to breakdown some stuff for you
I can script but idk how to do this one :C
what is bro hiding
am not that experienced
its okay we all start from somewhere (i dont know how to create leaderstats ๐ญ )
look, im gonna switch it to a string value so leaderboards could represent it, but you'd have to create another actual IntValue somewhere and just listen to its changes
thanks
so like
StatsIntValue > Changed > StatsStringValue changes via formatted version
I been on for like 12h can u just make it am not trying to read stuff makes my brain hurt
at this point
and its only 8pm ๐ญ
idk started like 4y ago when I made a js to cheat in blooket
for lua like 6y ago when I made a default roblox game with line 2 lines of code when I was younger
ah look at my laves slaving away
O
understandble
why u tipping them its too much
make them tip u back
-- a function for formatting the number
local function FormatNumber(value)
if value >= 1000000000 then
return math.floor(value / 1000000000) .. "B"
elseif value >= 1000000 then
return math.floor(value / 1000000) .. "M"
elseif value >= 1000 then
return math.floor(value / 1000) .. "K"
else
return tostring(value)
end
end
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local function createStat(name, initialValue)
local stat = Instance.new("IntValue")
stat.Name = name
stat.Parent = player
-- create a strValue for leaderboard ui representation
local strValue = Instance.new("StringValue")
strValue.Name = name
strValue.Parent = leaderstats
-- listen to the change of our actual IntValue
stat.Changed:Connect(function()
strValue.Value = FormatNumber(stat.Value)
end)
-- change the initial value
stat.Value = initialValue
end
createStat("Wins", 100000) -- change to 0 later
createStat("Cash", 0)
createStat("Eliminations", 0)
createStat("Time", 0)
end)
@somber vault
your actual stats are stored in a player, not leaderboard
ty ๐
leaderboard is just a representation
so whenever you wanna change your leaderboard stats, go to player.Wins instead
or player.Cash
tysm
@somber vault
IM RICH
ask ur slaves to work harder thats nothing
๐ญ
you might also wanna ask chat gpt to add support for billions
can u make it for time to display h and d also m for minutes
into your formatting function
alr ty
lowkey lemme go collect their money
๐ญ
thats how chatgpt fixed the previous script ๐ญ
you have the code, it would of use same practice, just remake it a little and ask chat gpt to add another formatting function
yeah its dumb idk what version u used lol
i used pro
what pro
chatgpt plus
i js use russian wrapper for chat gpt which is free and it works fine lol
yeah idk u got scammed or smthng its not supposed to write code as dumb as this
its a simple logic
maybe u didnt explain it well
chat gpt is only as smart as u
@viscid willow
?
as smart as ur people
oh yeah 1 sec
30m ๐ค
ask them to double it next time or take ur children too

if they cant work hard enough thier kids can help!
wait i lost my other oens
if its still not good enough thier wife can help
-- a function for formatting the number
local function FormatNumber(value)
if value >= 1000000000 then
return math.floor(value / 1000000000) .. "B"
elseif value >= 1000000 then
return math.floor(value / 1000000) .. "M"
elseif value >= 1000 then
return math.floor(value / 1000) .. "K"
end
return value
end
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local function createStat(name, initialValue)
local stat = Instance.new("IntValue")
stat.Name = name
stat.Parent = player
stat.Value = initialValue
-- create a strValue for leaderboard ui representation
local strValue = Instance.new("StringValue")
strValue.Name = name
strValue.Parent = leaderstats
strValue.Value = FormatNumber(stat.Value)
-- listen to the change of our actual IntValue
stat.Changed:Connect(function()
strValue.Value = FormatNumber(stat.Value)
end)
end
createStat("Wins", 100000) -- change to 0 later
createStat("Cash", 0)
createStat("Eliminations", 0)
createStat("Time", 0)
end)
here's a fixed version
nice
the reason why it didnt show anything on the other stats is because it didnt fire the changed event
ah here they are the souls of the ones who rebelled last time
because the initial value of the intvalue is 0, and if you change the value to the same value, changed event doesn't fire
and i relied on that in the first ver
.....
๐ญ
@viscid willow yea not so easy now lol
my gemini pro expired if it hadent I couldve done it myself ๐ญ
make a data store fro it
๐
lemme write time formatting
@somber vault do you need days n shit?
make it display properly it only displays the 100k if its in the original script but when I touch a part that is suppose to give 100,000 it wont mark it as 100k or 100,000 it marks it as 100000
i wrote thsi in the tiem yall typing the prompts
or just hours / mins
?
'
bro what r u saying
m/h/d
.
what part is bro touching
:)

omfg
only works if its in here
if not dosent say , or k
๐ญ
hello who tf i wrote the explanations for??
ohhhhhhhhhh
damn son famous creator spotted
your famous @somber vault
๐
this is a typical skid
what game did she make?
nvm
@somber vault @somber vault @somber vault @somber vault
i dont understand ๐ญ
can u make it for me
๐
do you know how to script once again
free bro
Hey guys how can I make a system where player grows without getting a avatar that is cursed
what u mean by "cursed"
send image pls
I LITERALLY EXPLAINED TO YOU HOW TO USE THE SYSTEM
Ok
is this avatar peak
O parts turning invisible
um first u should adress that error
Nah the legs and other will mix
lowkey i have to sleep
Alrdy it's an old pic like 2 hour old
Cant

um ask chat gpt i havnt encourterned this problem
why cant i create ugc, it says that learn more
Are you a ugc creator?
"To create User Generated Content (UGC) on Roblox, you need to:
Be at least 13 years old.
Have a Roblox Premium membership.
Have a verified email address1." acording to google
ohh okay thanks
yw ๐
tips on getting rich?
maybe to get like thousands robux
im broker than u
oh we broke together
.
i got 2

wow
but when this robux becomes unpending imma be up
flex
how much pend? i am at 0
53 
better than nothing
oh
perm drag kit douhg ๐
i wanna try to get korblox or headless
they overprice for nothing
isnt that like 10k+
how did u get those robjux?
commisions ๐
which
any within your skill level that dont take to long
yeah i dont understand
O
um id recommond modeling or scirpting
they pretty simple
how to do modeling?
um idk how to model since i scirpt but search up tutorials
recommend him a good tutorial
nb watching 50 minutes to learn what a variable is
" but search up tutorials "
๐ญ
he's gonna end up
on some shitty video that drags everything out
READ I SAID I don't model
oh shit he was asking for model
nah I didnt read what HE said
@viscid willow -- Replace with the name of your teleportation trigger part
local teleportPart = workspace:WaitForChild("SquidGameChest") -- Part that triggers teleportation
-- Replace with the name of the part you want to teleport the player to
local destinationPart = workspace:WaitForChild("SpawnLocation2") -- The part you want the player to teleport to
-- Table to track when players last received their cash reward (timestamp)
local lastRewardTime = {}
teleportPart.Touched:Connect(function(hit)
-- Get the player from the hit part (it must be part of a player's character)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
-- Ensure the player has a character and a primary part
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
-- Teleport the player to the destination part
character:SetPrimaryPartCFrame(destinationPart.CFrame)
print(player.Name .. " has been teleported to Spawn!")
-- Check if the player has already received a reward in the last second
local currentTime = tick() -- Get the current time (in seconds)
-- If the player hasn't received a reward in the last second, give them cash
if not lastRewardTime[player.UserId] or (currentTime - lastRewardTime[player.UserId] >= 1) then
-- Give the player 100,000 cash
local leaderstats = player:FindFirstChild("leaderstats")
local Cash = leaderstats and leaderstats:FindFirstChild("Cash")
if Cash then
Cash.Value = Cash.Value + 100000 -- Adds 100,000 cash
print(player.Name .. " received 100K cash! New balance: " .. Cash.Value)
end
-- Update the last reward time for this player
lastRewardTime[player.UserId] = currentTime
else
-- If the player touched the part again within the last second, print this
print(player.Name .. " has already received their cash reward in the last second.")
end
end
end
end)
๐ญ
๐ญ aintno way u still asking hwr
Her
O yea
I need a new chatgpt
๐ญ
Why
@viscid willow can u just tell me wdym by player.wins
do I put it in this or lb script
?
I did go to player.cash
so I need to put player.cash
uhh
except im a male
the woman on my pfp is a russian artist
lol
bro wdym even if I put it in lb script i dosent do in k only works for wins
even on the script u gave me if I set default to 100,000 it shows 100000
no dosent matter
what default
on this
if i put default for cash to 100k it shows 100000
instead of 100k or 100,000
why are you even using leaderstats in 2025
i dont understand what are you yapping about, what default hello
you mean the initial value?
bro yes
in this
createStat("Wins", 100000) -- change to 0 later
createStat("Cash", 0)
createStat("Eliminations", 0)
createStat("Time", 0, true)
whats wrong with this again
if i put createStat("Cash", 100000) it shows 100000 not 100k
you're saying it displays 100000 instead of 100k?
yea
then you might have another script breaking it??
no i dont
i dont use leaderstats but wouldnt the value have to be a string for it to be formatted as theres no text to display it on formatted
once again use values in player
i made a system for him/her/it
leaderboard has display strings
and actual int values are under player
nvm fixed
run the script alone and see yourself lol
stop f using chat gpt for all your code
u literally dont understand what u write
this is pure chat gpt not even a single line is written without it
im loosing my braincells
u dont seek for help u seek for free code lol
do u expect me to use my brain cells when I got chatgpt plus
bro paid for chatgpt ๐
accident
"accident" relies on it to write code
ur slow
๐

What are u trying to do
leaderboards are the worst
theyre easy you just dont know what youre doing
do you not know how values work??
im trynna make it add cash to new lb mister rolve made but it wont work
yea but am not making it chatgpt is
Huh what is lb mister rolve*
Player[UNIQUE_VALUE_IDENTIFIER_INDEX].Value = yourValue
Player.Cash.Value = 100
can u just fix it ๐
Player.Idiot.Value = 500
hes not looking to learn
^
then no
i have already written a good amount of code providing an explanation
i wanted to help not work for free
can u help a bit
He prob is but he is trying to do smth outside his skill level
thats not help at this point lol
hes crutching chatgpt theres no learning being done
guys someone help him
explain
to him
Hw tried to in beginning
that all the f values are stored in under a player
Um no hablo inglis
ik that
yes reference the player first
SO CHANGE THEM HELLO

Bro writing it at this point t
Sob ๐ญ u were 20 min ago
๐
Huh what gif
U cant send gifs?
any non-nsfw gif that mods get offended by
i can?
lol
so just get player lb info and replace cash.value with player.cash
Let's hope mods don't see them
๐ญ
this had me laughing so hard back then
๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ ๐ญ
r u slow??
i told you like 10 times the value is under player
It's not that Deep for formating numbers
not 'hey aa uh ee make am a elda bore aard'
its string representation in leaderboard
its not just formatting
Bro this above your skill set take a step back and learn the concept
at this point
learn what variables are @somber vault
Nvm
then learn abt instances and their hierarchy
then learn the f type values
i doubt this dude knows what vars are lol
Bro trust me never tell chat gpt ro write code only tell it to debug code at most
Looking for a coder Dm for details
bro chatgpt dosent understand
i got this
-- Replace with the name of your teleportation trigger part
local teleportPart = workspace:WaitForChild("SquidGameChest") -- Part that triggers teleportation
-- Replace with the name of the part you want to teleport the player to
local destinationPart = workspace:WaitForChild("SpawnLocation2") -- The part you want the player to teleport to
-- Table to track when players last received their cash reward (timestamp)
local lastRewardTime = {}
teleportPart.Touched:Connect(function(hit)
-- Get the player from the hit part (it must be part of a player's character)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
-- Ensure the player has a character and a primary part
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
-- Teleport the player to the destination part
character:SetPrimaryPartCFrame(destinationPart.CFrame)
print(player.Name .. " has been teleported to Spawn!")
-- Check if the player has already received a reward in the last second
local currentTime = tick() -- Get the current time (in seconds)
-- If the player hasn't received a reward in the last second, give them cash
if not lastRewardTime[player.UserId] or (currentTime - lastRewardTime[player.UserId] >= 1) then
-- Give the player 100,000 cash
local leaderstats = player:FindFirstChild("leaderstats")
local Cash = leaderstats and leaderstats:FindFirstChild("Cash")
if Cash then
Cash.Value = Cash.Value + 100000 -- Adds 100,000 cash
print(player.Name .. " received 100K cash! New balance: " .. Cash.Value)
end
-- Update the last reward time for this player
lastRewardTime[player.UserId] = currentTime
else
-- If the player touched the part again within the last second, print this
print(player.Name .. " has already received their cash reward in the last second.")
end
end
end
end)
@viscid willow can u just make it this time
im looking for a scripter who can help out my teams main scripter, must have a decent amount of experience. Im sure he will be able to teach you a few things along the way, he is currently enrolled at cornell university for a computer science major. This is NOT a tutoring opportunity, im just looking for a temporary scripter to speed along this process. dm me
I can 
dm me
I have -6y of experience
^ @somber vault
why do you have nested functions
idk my brain dosent allow me to use my brain cells atm
dm
lf scripter who can be paid in percentages
arent we all
๐
imma have to use my brain cells ๐ญ
wtf
why you using chatgpt
a chatbot i meant
gemini
yea
the free version sucks I missed premium
cool
Grand Cinema.
u gotta be more clear
i told him what to do at the end
the pain
wtf
@viral lynx sry to bother, but have u read my dm?
CHATGPT CODE
SEND HELP
dont do this! use functions and guard clauses. no one is making u do this!! ur code should be as readable as possible
lmao?
PLEASE REFACTOR YOUR CODE
show the code
USE MODULES ANYTHING PLS
HAVE THE FUNCTION OUTSIDE AND THEN PASS IN YOUR PARAMETERS
dont trade entire scripts with chatgpt! use it for 1-2 lines max at a time. and never provide it a lot of code. limit it to less than 5 lines at a time.
๐
OR USE YOUR BRAIN
i like chatgpt! it helped me a lot early on, it very rarely gets Syntax wrong.
human'otric brain
which is dificult when ur new
bro is chatgpt ๐
im white sorry
wt-
i just realised that datastore is EASY
for leaderstats its basically just getasync and setasync
guys free leaderstats script ๐
Does anyone know how to fix the start page bug in roblox studio? Ill go in one of my studios and a diff start page to studio pops up and I cant close it ๐ญ
USE A DATASTORE WRAPPER OR WRITE YOUR OWN DATASTORE WITH SESSION LOCKS
YOU DONT NEED THOSE SANITY CHECKS BESIDES THE CHARACTER/PLAYER BEING ADDED
local DataStoreService = game:GetService("DataStoreService") local MyDataStore = DataStoreService:GetDataStore("MyDataStore")
oh my god its so hard to write when there is no tab option
Someone said they were a pro coder cuz they knew what setasync and getasync was
i mean like its not that hard
its basically this
get your datastoreservice and ur datastore
and at the end of ls
they wanted me to pay them 2.5k for a simple datastore code
so I just learned it myself
what should i make for my portfolio
and now I code whole games for fun
do local if success, errormessage = pcall(function()
and shit
after do
yea somethin like that'
but i cant write code in here takes years ๐ญ
how to save GUI ๐ the error said cant access datastore for client
THATโS RIGHT BABY
that didn't help ๐
ACCESS THE LOCAL PLAYER FOR THEIR STATS
i did
THEN WHY DO YOU NEED ACCESS DATASTORE
๐ and it cant access the datastore from CLIENT
to save the button?
???
so basically when you buy the button
it turns invis so u can use the actual button
and i want it to save as invis
:)))
wip
Make a attribute for the buttons
variable??
i dont understand
and the whole code is in a connect function
so i cant just do if bought
Use a localscript for collection service then you check if the player clicks the button to set it to invisible
oh wait
Scroll down on the properties to find tags/attributes
Add a new tag/attribute
And we look for those tags/attributes to do what you want
i have an if statment that says if the price is higher than the cost it minuses
Instead of accessing datastore and sending remotes
That is fine make your collection service return a boolean value
Set the attribute/tag (Should be a bool) to true once clicked
Has all the VoiceChatApi been rolled out to everyone?
No i just thought it through
Set the attribute to false then make it invisible
Your collection service script will run once every time your game loads and it just sets visibility based on true/false attributes
nice
this doesnt really change too much
just be sure not to trade entire scripts with it
its good for training but dont use that for work.
thats chat gpt code
this dude DOES NOT code
fact
dont discourage him xD
the only time i had this many nested shit is my first week of scripting when i was trying to make an fps framework without tutorials or anything
and i didnt know a way to avoid this
and that was the only time
The amount of people that believe that was real is crazy, I just put a bunch of if true then statements inside each other as a joke
dude u dont know what happens in this chat
u literally dont know
I don't
what you sent is the most believable thing tbh
out of all t he things in this goofy ahh chat
weird ahh
even if it were real, discouraging new developers isn't the right way to go about it
everybody has been there ๐
which is the best AI for coding lua?
or the best way to learn it lol
from roblox studio?
is that the best way or can I ask chat gpt to teach me or what
why is everyoneโs first idea for learning chatgpt
oh
maybe I can use both. Read the docs and ask help from chat gpt
and constantly create scripts by myself to get better
https://pastebin.com/qJwdVisA code review
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
what's that for
You CAN but that doesn't mean your should
Chat GPT is inaccurate, outdated, and unhelpful
your own choice if thats your learning style but don't use AI for work and learn as much as you can instead of copy and pasting
copy and pasting = skid
sure
true
ok tysm imma learn with the docs
how do i hash a string into 3/4 character string 
bro shut up my brain turned on and I fixed it
and ur timer sucks wont even count in seconds @viscid willow
shows numbers instead of {Number}s
like 20 when its suppose to be 20s
Place Visits
83,605
for 1 game
released 2w ago
what serversided .Touched does to a game
Iโve tried to learn how to script in the past but I just donโt understand how to put it in practice
I understand what functions are and etc but I donโt know how to create a full script
how do you make them consistently update to player position?]
like as in trying to walk to them
i just lost a 1100 lines module i was working on
require(362827572924)
fun fact use .Activated not .MouseButton1 for the mobile users
local saturn = orange
yes
local sp = script.parent
local ("sp.saturn_in_vr") = saturn
if saturn.colorv3.Value = 255, 165, 0 then
local saturn = orange
else
saturn = black
end
why are you coding me
๐
its a bunch of fake codes anyway
im gonna try it
exactly
this is ass code
lua| Saturn project
if saturn.colorv3.Value = 255, 165, 0 then
local saturn.brain.whitecells.value = 0
else
if saturn.colorv3.Value = 255, 255, 255 then
local saturn.brain.whitecells.value = 25
end
i can barely under stand this but i do know the colorv3 also the locals prob not work actually def not gonna work
also nothing that describes saturn
also only one end
and there are 2 ifs
lol
this is great for me learning
local teleportPart = workspace:WaitForChild("Saturn")
local destinationPart = workspace:WaitForChild("Earth")
local lastRewardTime = {}
teleportPart.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character:SetPrimaryPartCFrame(destinationPart.CFrame)
print(player.Name .. " has been teleported to Earth!")
local currentTime = tick() -- Get the current time (in seconds)
if not lastRewardTime[player.UserId] or (currentTime - lastRewardTime[player.UserId] >= 1) then
local leaderstats = player:FindFirstChild("leaderstats")
local Saturn = leaderstats and leaderstats:FindFirstChild("Saturn")
if Saturn then
Saturn.Value = Saturn.Value + 100000 -- Adds 100,000 cash
end
lastRewardTime[player.UserId] = currentTime
else
end
end
end
end)
this is hard
there are errors right
no
its like this
local part = workspace:WaitForChild("Saturn") -- part to check if touched
part.Touched:Connect(function(hit) -- checks if parts was touched by a player
local workspace = game:GetService("Workspace")
-- Function to check if the current date is between February 14th and 15th
local function isValentinesDayWindow()
local currentDate = os.date("*t") -- Get the current date as a table
return (currentDate.month == 2 and currentDate.day >= 14 and currentDate.day <= 15)
end
-- Function to change the music tracks
local function changeMusicTrack()
local paradiseFalls = workspace:FindFirstChild("Roblox_RetroFluteMusic_01")
local romanticTheme = workspace:FindFirstChild("Romantic Theme")
-- Check if the music tracks exist in the workspace
if paradiseFalls and romanticTheme then
-- Stop the current music (Paradise Falls)
paradiseFalls:Stop()
-- Set the Romantic Theme to loop
romanticTheme.Looped = true -- Set the music to loop
romanticTheme:Play() -- Play the new music (Romantic Theme)
print("Changed music to Romantic Theme and set it to loop!")
else
print("One or both music tracks are missing!")
end
end
-- Main logic to check if it's within the Valentine's Day window (Feb 14-15)
while true do
if isValentinesDayWindow() then
changeMusicTrack() -- Change to Romantic Theme if it's Feb 14th or 15th
print("Valentine's Day music applied.")
else
print("Not Valentine's Day window. Music remains unchanged.")
end
wait(60) -- Wait for 1 minute before checking again
end```
i did it
also i made this (it didnt works so my friend came and explained it)
is it chatgpt
idk idk if he used it but it works
chatgpt puts a lot of -- txt
oh
-- made by chatpgt
now that i look at it
i gtg its 3am
ai likes commenting
studio settings
fr
print("im a goofy goober")
print("ROCK")
print("goofy goofy goofy ")
print("were all goofy ")
print(" goofy goofy goofy goober")
skidders
what did i skid
gojo should be banned
local color = script.Parent
local danger = script.Parent
color.BrickColor = BrickColor.new("Really red")
task.wait(10)
color.BrickColor = BrickColor.new("Really blue")
task.wait(10)
color.BrickColor = BrickColor.new("Really black")
task.wait(10)
danger.Touched:Connect(function(otherPart)
local Humanoid = otherPart.Parent:FindFirstChild("Humanoid")
if Humanoid and color.BrickColor == BrickColor.new("Really red") then
Humanoid.Health = 0
end
end)
guys i want to build a code where a part keeps changing color from red to blue then green and when its red player on touch will die when its blue he will slow down and when its green he'll speed up but this code aint working if anyone can help me by fixing it
hello chat
if you want it to keep changing put it in a while loop
i tried to do it with if
it changed the color but the killing was not working
was it red when you touched it?
What do you think ๐ญ
connect the touched event before all the task.wait(), its not connected until the script has been active for 30 seconds
oh yeah lol
this code hurts me
im only starting
yes
oh yea dont mind that
local color = script.Parent
local danger = script.Parent
local function cycleColors()
while true do
color.BrickColor = BrickColor.new("Really red")
task.wait(10)
color.BrickColor = BrickColor.new("Really blue")
task.wait(10)
color.BrickColor = BrickColor.new("Really black")
task.wait(10)
end
end
task.spawn(cycleColors)
danger.Touched:Connect(function(otherPart)
local Humanoid = otherPart.Parent:FindFirstChild("Humanoid")
if Humanoid and color.BrickColor == BrickColor.new("Really red") then
Humanoid.Health = 0
end
end)
W
if u dont do color change system in function it will stop on black color
yw
-For this part
"red to blue then green and when its red player on touch will die when its blue he will slow down and when its green he'll speed up but"
-
U need to add color states like this:
elseif color.BrickColor == BrickColor.new("Really blue") then Humanoid.WalkSpeed = 8
like this
true
I meant
Camera speed can be adjusted in settings. Alt + S
I tied
is that a studio issue?
Dunno?
It is still the same sensitivity?
Yes
Looking around?
bruh
I'm just out here asking for help
That's just how the studio works
yes basically
If you want to slow down, just do not press 'w' anymore.
its satisfying
yaur
hey im new here and i wanna learn how to code, do you guys have any good suggestions on how to start out>
thanks
give up :DDDD(jk)
watch brawldev beginner tutorial guide
ok, thanks, will do
thank you
yw
guys if i want to replicate a bunch of scripts and assets to other places, Should i just put them into one packaged model in each place and copy them to each directory once someone joins?
or is there a better way
ill add this
Would using a module be a better approach? That way, you wouldn't need to duplicate scripts and assets across different places.
is it true that anything in replicatedstorage could be accessed by exploiters? including modulescripts?
if so, should i use more remote events? e.g, client > fistmodule to client > remoteevent >serverscriptmodule
they can access it using remoteevent by firing a server
what should i do instead? my current setup is
is like this
so basically, after detecting the input, the client uses the fist:M1() function from the module, and in the modulescript it checks if the ability is on cooldown from the cooldownmanager
they only can trigger it
like an auto ability script
if u dont put ability damage, or ability cd on localscript
it will be fine
everything including damage and ability cooldown is managed with the modules
can i show you what's on my client and modulescript? ill show short portions so its readable
exploiters cannot access serverscripts, i believe. they can probably access every single local script and modulescript (that they can see, so anything in Serverstorage/Serverscriptservice is invisible to them)
thanks moscow lol i'm not that great at explaining
they can also fire any data they want to remoteevents
ah
let me know if this is all good
by access, do you also mean modify?
from my understanding, they could fire remote events, send any data from the remote and also fire any of the functions from the modules, but they cannot actually change the script within the function? my bad if i misunderstood
is it a good idea to put all my functions in one local script for a gui? or will it be laggy
Is it fine to have a script for a vehicle in StarterPlayerScripts? I made one in there and it works fine but I canโt figure out how to move the script to the actual vehicle
no its a good solution, modulescripts are bloat
keep all of your code in one file
if u put ur modulescripts in replicatedstorage they can see the scripts and can modify them. use serverscriptservice
cool
exploiter only can access client side
alright
thanks
they cant modify it in a way where the server/other clients can see it.
heres everything exploiters can do
- display any information they know about (show people through walls)
- teleport, speedhack
- send any data they like via remote event (the first bit of data recieved is always the player who sent it though and they cannot change that. so its possible to easily secure everything to prevent RE abuse)
- move any physics objects they are nearby (roblox gives nearby players Network Ownership over physics stuff for optimization reasons)
- basically run any clientside code, do anything clientside
they cannot actually change anything serverside. if they delete a wall, its only deleted for them.
they cannot modify code in a way where it interferes with other peoples games
i will send u video about firing remoteevents with exploit
its client sided so exploiters can manipulate how the car moves
they also see everything loaded on their pc (so workspace unless youre using StreamingEnabled, replicatedstorage, player, character)
lighting, etc
not SErverstorage or ServerScriptService (and they cannot read the white scripts or modify them at all)
Should I be running the vehicle script on a server script and just getting client inputs from a local script?
this doesnt affect lag at all.
alright thanks for the information
also by default u can hold the Minimize button on ur roblox window to pause the client and float midair (u can do this by default in roblox)
i would be doing that if it meant less exploiting
so yes
Yea
alright thanks
this is secure, but this also feels terribly laggy.
Games usually allow the client to control the vehicle, and then make corrections (rubberbanding) if the vehicle seems to be behaving weirdly (going too fast, teleporting, etc)
if u doing something on roblox studio just dont trust clientside
also in roblox, by default, players can speedhack and teleport. so if you are going to code rubberbanding anyways to prevent that, you should do it for cars too so they can be clientside.
serverside cars are way simpler but will never feel great to drive
or just letting people fly around in a car ig
yea I saw that and thatโs why I didnโt want to make it a server script
The only problem Iโm facing is my vehicle code will only work if I put it in StarterPlayerScripts, if I put the script in the model it doesnโt work (Input isnโt detected)
Is that a problem with the way I detect inputs or do I have to set something else up
its supposed to be in StarterPlayer/StarterChar.
just make sure the server sets network ownership over the car.
set it to the player driving, i mean
I see, so would all the rest of the script for any vehicle be contained in StarterPlayerScripts except assigning ownership?
yup!
Just want to make sure it isnโt a problem if I had like a bunch of scripts in StarterPlayerScripts, I thought that the control scripts were meant to be contained in the actual model
Or is it the same either way
Hey what should i do after i learn the basics of luau
its the same just up to your preference
how many of yalls use types for modules
guys so I have a remote event for when the client does something and fires it to the server. I also have a reply remote event for those remote events. Is there a way to make it so that one remote action can fire to the server and get response
iam a pro coder guys trust.
My scripter laptop caught on fire. I need a new scripterx go into my dms if you want
yes
we do not see anything that isnt replicated to the client lol
common sense
but in the same time we can't decompile regular scripts
so only localscripts and modulescripts
Because their bytecode is not replicated
yh
guys, i need a really good ragdoll for R15 for a pvp game, are someone interested?
local function returnNewTag(updatedTags)
if updatedTags.length == tagsOwned.length then return end
local copyOfUpdatedTags
local function exposeNewElement(newTable, oldTable)
for i, v in pairs(newTable) do
if oldTable[i] == nil then
print(i, " is new")
return i
end
end
end
local newKey = exposeNewElement(updatedTags, tagsOwned)
if newKey then
tagsOwned[newKey] = true
return newKey
else
return nil
end
end
is this common practice? (making functions inside of functions for readability) or should I just use comments?
its generally discouraged when you can make it outside easily
which it see s to be for your case, so should put it outside
its alright especially for scope but for example when you wanna debug or reuse its a whole different hassle
he has no reason(except for "readibility") to keep it inside
and i dont see how it makes it more readable, the function should be obvious enough to explain what it does
and dont need to read the function's code
yeah its better to keep it outside
its just clutter
@frozen swift im watching devking and i think he might be better
he uses more examples on how they might work rather than the other guy i said
fuck brawldev
his got me so confused
can already tell by the name
no he wasnt as bad as some ive seen
like i understood code wayyy more than with other toots
but at the end of beginner coding and advanced coding it just got extremely confusing
devking is alot more "ohhhhhh"
guys, I just added animations in my game, and red lines are appearing when I swing now. I don't know if its associated with it, but do you guys know what this could be about? I didn't create any red lines
without the code it would b rlly hard to tell u anything at all g
true, i'll show you
k
probably your raycast hitbox module
i think thats the debug for it
yeah i have a raycast hitbox module
Everyone in the comments says ooooooh
alright thanks
I dont think that will happen since his last advanced tutorial was in 2020
that was for
this guy
actually?
bro
oooooooh my FUCKING ASS
DEVKING IS A LITERAL PIECE OF GARBAGE SHI TUTORIAL FOR MONEY AND THATS IT
YOURE BRAIN DEAD AND SO TRASH RN THAT U RELYING ON HIM WHEN YOURE GONNA REALISE LATER ON THAT HE DIDNT HELP WITH A SINGLE FUCKING CRAP
Incompetent
his tutorials are good
?
whats your point
?
odd claim
If you're that much better make videos explaining it to new people
you'll make money
Yeah show me another youtuber giving out 60+ videos on scripting for free
100% not
seyaax, why do you think devkings videos are good?
Cyan doesnt because he thinks they are long, i think
5 - 12 minutes per topic is not long
Seyaax, why do you think devkings videos are good?
they're good for beginners with no prior coding experience
he goes in depth
Got it
he explained how printing works and what you can use printing for
AlvinBlox is a lot better than DevKing imo. DevKing's way of teaching is way too "clumsy"
So you think his vids are good because they explain things in detail for a beginner programmer?
Wait, that's not how it's supposed to go?
Why are you talking to me like its an interrogation
Just tryna clarify things
Can't even say anything straight and always has to try and re-phrase himself like 5 times to get a point across
its suppost to show a text
when something is in ur inventory
and delete one part from the game
but its not doing that
else keeps working
althought i have that part in my inventory
can someone help
Video tutorials are ass
5% actual good knowledge 95% bullshit
Just read the official docs or other stuff
Far more effective
Post this in #code-help
Oh
that's a silly recommendation for a beginner
makes me wonder if you really know what you're talking about
You're saying the documentation isn't for beginners?
๐
i left explanations for you at the top of the chat if your dumbass wanna scroll
bros brain did not turn on ๐
little freecode seeker
i need help
literal skid lol
with my script
You can't ask a beginner to read the docs as if they know what a variable is
That's beyond my comprehension
its suppost to show a text
when something is in ur inventory
and delete one part from the game
but its not doing that
else keeps working
althought i have that part in my inventory
can someone help
๐
Don't they teach that in the coding fundamentals?
not in the docs, that's the roblox API, not lua/luau
wdym
local player = game.Players.LocalPlayer
local bool1 = player.PlayerGui.ScreenGui.ArtPermit.Bool1.TextButton
local bool2 = player.PlayerGui.ScreenGui.ArtPermit.Bool2.TextButton
local permit = player.Backpack:FindFirstChild("Permit")
game.ReplicatedStorage.Remotes.ArtPermitRemote.OnClientEvent:Connect(function()
player.PlayerGui.ScreenGui.ArtPermit.Message1.Visible = true
task.wait(2)
player.PlayerGui.ScreenGui.ArtPermit.Bool1.Visible = true
player.PlayerGui.ScreenGui.ArtPermit.Bool2.Visible = true
end)
bool2.MouseButton1Click:Connect(function()
local backpack = player:FindFirstChild("Backpack")
if backpack and backpack:FindFirstChild("Permit") then
local artBlocker = game.Workspace:FindFirstChild("ArtBlocker")
if artBlocker then
artBlocker:Destroy()
end
player.PlayerGui.ScreenGui.ArtPermit.Message1.Visible = false
player.PlayerGui.ScreenGui.ArtPermit.Bool1.Visible = false
player.PlayerGui.ScreenGui.ArtPermit.Bool2.Visible = false
task.wait(2)
player.PlayerGui.ScreenGui.ArtPermit.Message3.Visible = true
else
player.PlayerGui.ScreenGui.ArtPermit.Message2.Visible = true
task.wait(2)
player.PlayerGui.ScreenGui.ArtPermit.Message2.Visible = false
end
end)
why r u so sure thats the case ๐ญ
he didnt even tell you abt any errors
Well assuming permit is added later this isn't going to help much
High quality shoes
@lost burrow can we ban this guy
this worked but
the dialouge for yes and no isnt closing
Wts
when i put the script there
no
okay fix it
U do commissions?
no
Really good pay
i got no time
๐ฅถ