#code-discussion

1 messages ยท Page 7 of 1

viscid willow
#

its prob some black + green shit

shrewd goblet
viscid willow
#

but sure

shrewd goblet
shrewd goblet
#

and now your generation uses chat gpt

somber vault
inland bay
somber vault
#

No.

#

Stop

viscid willow
inland bay
#

dont mind the .init()

harsh quiver
shrewd goblet
inland bay
#

only now started moving th ecodebase to inits

harsh quiver
#

if this is a fake report bro may be banned

fringe shoal
inland bay
#

๐Ÿ˜‡

viscid willow
fringe shoal
#

Fr

somber vault
viscid willow
#

its some nice pastel type colors in there

somber vault
harsh quiver
somber vault
#

That smile emoji too

shrewd goblet
viscid willow
fringe shoal
harsh quiver
shrewd goblet
harsh quiver
#

it has the basis of GOD

fringe shoal
#

๐Ÿ˜

harsh quiver
#

๐Ÿ’€๐Ÿ’€๐Ÿ’€๐Ÿ’€

viscid willow
#

@somber vault ok now fr go write one

viscid willow
#

he deserves it

shrewd goblet
fringe shoal
inland bay
#

guys 20 hour coding session

#

is it over

shrewd goblet
#

no

#

go for 48 hours

inland bay
#

๐Ÿ’€

viscid willow
#

i js discovered you can copy and paste terrain regions and now adding maps to my awesome tbw game

somber vault
#

Im heading to bed, anybody wanna sing me a goodnight song?

shrewd goblet
shrewd goblet
#

my little little livon go to sleep

somber vault
#

Thank you good sir

shrewd goblet
#

go to sleep my littly littly livon

#

gn

somber vault
#

Amazing keep going

viscid willow
#

anyone tryna q2

shrewd goblet
shrewd goblet
viscid willow
somber vault
shrewd goblet
somber vault
#

We out we out

viscid willow
shrewd goblet
viscid willow
#

tactical bedwars ๐Ÿ”ฅ

#

tbw

shrewd goblet
#

imma go play my hypixel skyblock in peace

#

actully naw

viscid willow
#

its not a minecraft game buddy

shrewd goblet
#

imma go do 5 secodn comms

shrewd goblet
shrewd goblet
#

random

#

game from some conroner of internet

shrewd goblet
somber vault
shrewd goblet
#

๐Ÿ’€

viscid willow
shrewd goblet
#

why u need it to say 1k and 1m ?

viscid willow
somber vault
somber vault
shrewd goblet
viscid willow
shrewd goblet
#

๐Ÿ’€

somber vault
shrewd goblet
#

hol up

viscid willow
somber vault
viscid willow
#

cuz i'd have to breakdown some stuff for you

somber vault
shrewd goblet
somber vault
#

am not that experienced

shrewd goblet
viscid willow
viscid willow
#

so like

StatsIntValue > Changed > StatsStringValue changes via formatted version

somber vault
#

I been on for like 12h can u just make it am not trying to read stuff makes my brain hurt

shrewd goblet
#

at this point

somber vault
#

and its only 8pm ๐Ÿ˜ญ

shrewd goblet
#

same

#

how long u been scripting

somber vault
#

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

shrewd goblet
#

ah look at my laves slaving away

shrewd goblet
somber vault
shrewd goblet
#

they might start a rebllion

somber vault
#

make them tip u back

shrewd goblet
#

๐Ÿ’€

viscid willow
#
-- 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

viscid willow
#

leaderboard is just a representation

#

so whenever you wanna change your leaderboard stats, go to player.Wins instead

somber vault
#

omg

#

it worked

viscid willow
#

or player.Cash

somber vault
#

tysm

shrewd goblet
#

IM RICH

somber vault
shrewd goblet
viscid willow
somber vault
viscid willow
#

into your formatting function

shrewd goblet
#

lowkey lemme go collect their money

somber vault
#

thats how chatgpt fixed the previous script ๐Ÿ˜ญ

viscid willow
viscid willow
somber vault
#

i used pro

viscid willow
#

what pro

somber vault
#

chatgpt plus

viscid willow
#

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

somber vault
shrewd goblet
#

chat gpt is only as smart as u

somber vault
#

@viscid willow

viscid willow
somber vault
viscid willow
shrewd goblet
#

30m ๐Ÿค‘

shrewd goblet
#

๐Ÿค‘

#

๐Ÿ’€

somber vault
shrewd goblet
somber vault
#

if they cant work hard enough thier kids can help!

shrewd goblet
#

wait i lost my other oens

somber vault
#

if its still not good enough thier wife can help

viscid willow
#
-- 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

somber vault
#

nice

viscid willow
#

the reason why it didnt show anything on the other stats is because it didnt fire the changed event

shrewd goblet
#

ah here they are the souls of the ones who rebelled last time

viscid willow
#

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

somber vault
shrewd goblet
#

๐Ÿ˜ญ

somber vault
#

@viscid willow yea not so easy now lol

#

my gemini pro expired if it hadent I couldve done it myself ๐Ÿ˜ญ

shrewd goblet
#

make a data store fro it

viscid willow
#

lemme write time formatting

shrewd goblet
#

these chat gpt warriors

#

it would be faster to write it yourself

#

at this point

viscid willow
#

@somber vault do you need days n shit?

somber vault
# viscid willow lemme write time formatting

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

shrewd goblet
#

i wrote thsi in the tiem yall typing the prompts

viscid willow
#

or just hours / mins

shrewd goblet
somber vault
#

m/h/d

somber vault
viscid willow
#

what part is bro touching

somber vault
#

:)

shrewd goblet
viscid willow
#

omfg

somber vault
#

only works if its in here

viscid willow
#

bro are you stupid

somber vault
#

if not dosent say , or k

shrewd goblet
viscid willow
#

hello who tf i wrote the explanations for??

somber vault
#

ohhhhhhhhhh

shut yarrow
shrewd goblet
#

your famous @somber vault

somber vault
#

๐Ÿ™‚

viscid willow
#

this is a typical skid

shut yarrow
#

what game did she make?

viscid willow
#

nvm

shrewd goblet
#

๐Ÿ˜ญ

#

why bro a defualt

viscid willow
shrewd goblet
#

alr lemme go back to my vfx's

#

nvm imma go sleep

somber vault
#

can u make it for me

shrewd goblet
#

๐Ÿ’€

viscid willow
#

do you know how to script once again

shrewd goblet
#

free bro

errant leaf
#

Hey guys how can I make a system where player grows without getting a avatar that is cursed

shrewd goblet
#

scale all parts ๐Ÿ™‚

#

:0

shrewd goblet
#

send image pls

viscid willow
errant leaf
shrewd goblet
#

is this avatar peak

errant leaf
shrewd goblet
shrewd goblet
shrewd goblet
errant leaf
shrewd goblet
#

lowkey i have to sleep

errant leaf
shrewd goblet
#

cya

shrewd goblet
#

send a new one

errant leaf
errant leaf
shrewd goblet
#

um ask chat gpt i havnt encourterned this problem

quick tree
#

why cant i create ugc, it says that learn more

errant leaf
#

Are you a ugc creator?

shrewd goblet
shrewd goblet
#

yw ๐Ÿ˜

quick tree
shrewd goblet
#

๐Ÿ˜ญ

quick tree
shrewd goblet
#

im broker than u

quick tree
shrewd goblet
quick tree
#

i got 2

shrewd goblet
quick tree
#

wow

shrewd goblet
#

but when this robux becomes unpending imma be up

quick tree
#

flex

shrewd goblet
#

๐Ÿค‘

quick tree
shrewd goblet
quick tree
shrewd goblet
#

i spend all my robux on blox fruits

#

๐Ÿ˜ญ

quick tree
#

oh

shrewd goblet
#

perm drag kit douhg ๐Ÿ˜„

quick tree
#

i wanna try to get korblox or headless

shrewd goblet
quick tree
shrewd goblet
#

wiat less

#

wait maybe idk

quick tree
#

how did u get those robjux?

shrewd goblet
quick tree
shrewd goblet
quick tree
#

i got no talent

#

what should i start with

shrewd goblet
#

u dont do anyhting?

#

ok what woul du like to do

quick tree
#

yeah i dont understand

shrewd goblet
shrewd goblet
#

they pretty simple

quick tree
#

how to do modeling?

shrewd goblet
#

um idk how to model since i scirpt but search up tutorials

somber vault
#

nb watching 50 minutes to learn what a variable is

shrewd goblet
#

Read what i said

somber vault
#

" but search up tutorials "

shrewd goblet
#

๐Ÿ˜ญ

somber vault
#

he's gonna end up

somber vault
#

on some shitty video that drags everything out

shrewd goblet
#

READ I SAID I don't model

somber vault
#

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)

shrewd goblet
#

๐Ÿ˜ญ

somber vault
#

can u be my ai

#

@viscid willow

#

squid game

shrewd goblet
#

Her

#

O yea

somber vault
#

I need a new chatgpt

shrewd goblet
#

๐Ÿ˜ญ

shrewd goblet
somber vault
#

make it work with the new lb script

somber vault
#

:)

#

if yk what I mean

shrewd goblet
#

She not going to respond

#

She switched channels

somber vault
#

@viscid willow can u just tell me wdym by player.wins

shrewd goblet
#

Check code help

#

Look at what they saying

somber vault
#

?

somber vault
#

so I need to put player.cash

#

uhh

viscid willow
#

the woman on my pfp is a russian artist

#

lol

somber vault
#

bro wdym even if I put it in lb script i dosent do in k only works for wins

viscid willow
#

what

#

show both of your scripts

somber vault
#

alr

viscid willow
#

are you tarded

#

like are you actually slow

somber vault
#

even on the script u gave me if I set default to 100,000 it shows 100000

#

no dosent matter

viscid willow
somber vault
#

on the lb script

#

still shows 100000

#

if i put on default

viscid willow
#

what default

somber vault
#

if i put default for cash to 100k it shows 100000

#

instead of 100k or 100,000

bleak glade
#

why are you even using leaderstats in 2025

viscid willow
#

you mean the initial value?

somber vault
#

bro yes

#

in this
createStat("Wins", 100000) -- change to 0 later
createStat("Cash", 0)
createStat("Eliminations", 0)
createStat("Time", 0, true)

viscid willow
#

whats wrong with this again

somber vault
#

if i put createStat("Cash", 100000) it shows 100000 not 100k

viscid willow
#

you're saying it displays 100000 instead of 100k?

somber vault
#

yea

viscid willow
somber vault
#

no i dont

bleak glade
#

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

viscid willow
#

once again use values in player

viscid willow
#

leaderboard has display strings

#

and actual int values are under player

somber vault
#

nvm fixed

viscid willow
#

stop f using chat gpt for all your code

#

u literally dont understand what u write

viscid willow
# somber vault

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

somber vault
#

do u expect me to use my brain cells when I got chatgpt plus

bleak glade
#

bro paid for chatgpt ๐Ÿ’€

somber vault
#

accident

bleak glade
#

"accident" relies on it to write code

viscid willow
somber vault
#

help me

shrewd goblet
somber vault
#

@viscid willow

#

idk these things bruh

shrewd goblet
shrewd goblet
somber vault
#

leaderboards are the worst

viscid willow
#

learn how to code??

bleak glade
viscid willow
somber vault
#

yea but am not making it chatgpt is

shrewd goblet
viscid willow
#

Player[UNIQUE_VALUE_IDENTIFIER_INDEX].Value = yourValue

somber vault
#

idk bro am not trynna make it

#

....

#

uhhh

viscid willow
#

Player.Cash.Value = 100

somber vault
#

can u just fix it ๐Ÿ™‚

viscid willow
#

Player.Idiot.Value = 500

bleak glade
bleak glade
viscid willow
#

then no

somber vault
#

...

#

fine bruh

viscid willow
#

i have already written a good amount of code providing an explanation

#

i wanted to help not work for free

somber vault
#

can u help a bit

shrewd goblet
viscid willow
bleak glade
viscid willow
#

explain

#

to him

shrewd goblet
viscid willow
#

that all the f values are stored in under a player

shrewd goblet
bleak glade
#

yes reference the player first

viscid willow
somber vault
#

idk how to

#

:c

shrewd goblet
viscid willow
#

Player.Cash.Value = 1000

#

Player.Wins.Value = 10

shrewd goblet
#

Bro writing it at this point t

viscid willow
#

no im not

#

im explaining how to use it

#

ok f this chat its so tarded lol

shrewd goblet
#

Sob ๐Ÿ˜ญ u were 20 min ago

viscid willow
#

i might js send a gif and get banned again at this point

#

its so stupid lol

shrewd goblet
shrewd goblet
#

U cant send gifs?

viscid willow
#

i can?

#

lol

shrewd goblet
#

Iv been sending gifs aint banned yet

somber vault
#

so just get player lb info and replace cash.value with player.cash

shrewd goblet
#

Let's hope mods don't see them

viscid willow
shrewd goblet
viscid willow
somber vault
#

๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ

somber vault
#

bro ik what u mean

#

but chatgpt cant make it

viscid willow
#

chatgpt is a tool not a worker hello

#

explain it what it has to do

shrewd goblet
#

It's not that Deep for formating numbers

viscid willow
#

not 'hey aa uh ee make am a elda bore aard'

viscid willow
#

its not just formatting

shrewd goblet
#

Bro this above your skill set take a step back and learn the concept

viscid willow
#

at this point

shrewd goblet
#

What no

viscid willow
#

learn what variables are @somber vault

shrewd goblet
viscid willow
#

then learn abt instances and their hierarchy

#

then learn the f type values

#

i doubt this dude knows what vars are lol

shrewd goblet
dim whale
#

Looking for a coder Dm for details

shrewd goblet
#

And meeee

#

Jk

somber vault
#

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

verbal stratus
#

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

verbal stratus
somber vault
#

I have -6y of experience

verbal stratus
somber vault
#

idk my brain dosent allow me to use my brain cells atm

viral lynx
#

lf scripter who can be paid in percentages

thorny schooner
somber vault
#

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

frozen flint
#

Grand Cinema.

woeful gate
somber vault
#

i told him what to do at the end

autumn venture
#

the pain

autumn venture
soft pumice
#

@viral lynx sry to bother, but have u read my dm?

jaunty wolf
# autumn venture the pain

dont do this! use functions and guard clauses. no one is making u do this!! ur code should be as readable as possible

rare anvil
#

lmao?

scenic laurel
#

PLEASE REFACTOR YOUR CODE

rare anvil
#

show the code

scenic laurel
#

USE MODULES ANYTHING PLS

#

HAVE THE FUNCTION OUTSIDE AND THEN PASS IN YOUR PARAMETERS

jaunty wolf
# somber vault ๐Ÿ’€

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.

rare anvil
#

๐Ÿ’€

jaunty wolf
rare anvil
jaunty wolf
#

which is dificult when ur new

jaunty wolf
rare anvil
#

wt-

#

i just realised that datastore is EASY

#

for leaderstats its basically just getasync and setasync

#

guys free leaderstats script ๐Ÿ™‚

modern raptor
#

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 ๐Ÿ˜ญ

scenic laurel
#

USE A DATASTORE WRAPPER OR WRITE YOUR OWN DATASTORE WITH SESSION LOCKS

scenic laurel
rare anvil
#

local DataStoreService = game:GetService("DataStoreService") local MyDataStore = DataStoreService:GetDataStore("MyDataStore")

scenic laurel
#

LAST CODE**

#

NOT THE ONE I REPLIED TO

rare anvil
#

oh my god its so hard to write when there is no tab option

autumn venture
rare anvil
#

i mean like its not that hard

#

its basically this

#

get your datastoreservice and ur datastore

#

and at the end of ls

autumn venture
#

they wanted me to pay them 2.5k for a simple datastore code

#

so I just learned it myself

white dragon
#

what should i make for my portfolio

autumn venture
#

and now I code whole games for fun

rare anvil
#

do local if success, errormessage = pcall(function()

#

and shit

#

after do

#

yea somethin like that'

#

but i cant write code in here takes years ๐Ÿ˜ญ

rare anvil
scenic laurel
rare anvil
scenic laurel
#

ACCESS THE LOCAL PLAYER FOR THEIR STATS

rare anvil
#

i did

scenic laurel
#

THEN WHY DO YOU NEED ACCESS DATASTORE

rare anvil
#

๐Ÿ™‚ and it cant access the datastore from CLIENT

rare anvil
scenic laurel
#

???

rare anvil
#

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

#

:)))

sacred knot
scenic laurel
rare anvil
#

variable??

scenic laurel
#

No like tags/attributes

#

For each button

rare anvil
#

and the whole code is in a connect function

#

so i cant just do if bought

scenic laurel
#

Use a localscript for collection service then you check if the player clicks the button to set it to invisible

rare anvil
#

wht collection service

#

isnt that just cash and shit - this

scenic laurel
#

No it is not

#

Go on the button

rare anvil
#

oh wait

scenic laurel
#

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

rare anvil
#

i have an if statment that says if the price is higher than the cost it minuses

scenic laurel
#

Instead of accessing datastore and sending remotes

rare anvil
#

idk abt dat

#

girltechterror will it save though?

#

thats the whole point

scenic laurel
#

Set the attribute/tag (Should be a bool) to true once clicked

rare anvil
#

idk ill see

#

because not workin on it rn

scenic laurel
#

Iโ€™ll get into your game for free

#

And Iโ€™ll take a look if you want

earnest dock
#

Has all the VoiceChatApi been rolled out to everyone?

scenic laurel
#

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

somber vault
somber vault
jaunty wolf
jaunty wolf
somber vault
#

its good for training but dont use that for work.

viscid willow
viscid willow
somber vault
#

fact

viscid willow
#

please quit coding

#

thats the best advice

somber vault
#

dont discourage him xD

viscid willow
#

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

autumn venture
#

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

viscid willow
#

u literally dont know

autumn venture
#

I don't

viscid willow
#

what you sent is the most believable thing tbh

#

out of all t he things in this goofy ahh chat

autumn venture
#

Damn

#

I'm pretty bad about nesting code, not that bad though

somber vault
#

weird ahh

ivory atlas
#

everybody has been there ๐Ÿ‘

hollow lily
#

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

bleak glade
#

why is everyoneโ€™s first idea for learning chatgpt

hollow lily
#

oh

#

maybe I can use both. Read the docs and ask help from chat gpt

#

and constantly create scripts by myself to get better

balmy zenith
somber vault
#

what's that for

autumn venture
#

Chat GPT is inaccurate, outdated, and unhelpful

somber vault
#

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

hollow lily
hollow lily
balmy zenith
#

what

#

i aint tryna add .parent under it u goober

balmy zenith
somber vault
#

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

summer aurora
somber vault
#

releasing squid game Z in 2 weeks ๐Ÿ™‚

toxic stream
#

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

candid kestrel
#

^ AI combat test for my game

summer aurora
#

like as in trying to walk to them

next raven
#

i just lost a 1100 lines module i was working on

karmic plank
#

neural network

somber vault
#
require(362827572924)
sharp trellis
#

fun fact use .Activated not .MouseButton1 for the mobile users

somber vault
#
local saturn = orange
sharp trellis
somber vault
# sharp trellis 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
somber vault
#

๐Ÿ™‚

sharp trellis
#

i didnt give perm

#

im sueing

somber vault
#

its a bunch of fake codes anyway

sharp trellis
#

im gonna try it

somber vault
#

i made it have erros

#

gl sueing

sharp trellis
#

oh

#

tf is colorv3

somber vault
#

exactly

sharp trellis
#

this is ass code

somber vault
#
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
sharp trellis
#

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

somber vault
#

lol

sharp trellis
#

this is great for me learning

somber vault
#
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)
sharp trellis
#

this is hard

somber vault
#

uh

#

well u can always use gemini pro it has 1m free

#

per acc

sharp trellis
#

there are errors right

somber vault
#

no

sharp trellis
#

how do i get the colored code

somber vault
#

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

somber vault
#

like 255, 255, 255?

sharp trellis
#

no like when you type code in discord its colored

somber vault
#

do `

#

3 times and put lua at the end

#

then after the code this ` 3 times again

sharp trellis
#
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)

somber vault
#

is it chatgpt

sharp trellis
#

idk idk if he used it but it works

somber vault
#

chatgpt puts a lot of -- txt

sharp trellis
#

oh

somber vault
#
-- made by chatpgt
sharp trellis
#

now that i look at it

somber vault
#

i gtg its 3am

balmy zenith
gloomy kraken
#

how do i disable the roblox lua ai

#

its so annoying

balmy zenith
somber vault
sharp trellis
#
print("im a goofy goober")
#
print("ROCK")
#
print("goofy goofy goofy ")
#
print("were all goofy ")
#
print(" goofy goofy goofy goober")
balmy zenith
#

skidders

sharp trellis
#

what did i skid

balmy zenith
#

shut up you little skidder

#

lil skiddy skid

somber vault
#

gojo should be banned

torn reef
#

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

umbral geode
#

hello chat

umbral geode
torn reef
#

it changed the color but the killing was not working

umbral geode
#

was it red when you touched it?

peak sphinx
wind minnow
umbral geode
torn reef
torn reef
slate marsh
# torn reef local color = script.Parent local danger = script.Parent color.BrickColor =...

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)

torn reef
#

W

slate marsh
#

if u dont do color change system in function it will stop on black color

torn reef
#

ill try this

#

thanks moscow

slate marsh
#

yw

slate marsh
#

like this

karmic pumice
#

Can any one help me

#

Pls

somber vault
somber vault
#

bro speak clearly

#

english please

karmic pumice
muted sapphire
#

Camera speed can be adjusted in settings. Alt + S

somber vault
#

is that a studio issue?

karmic pumice
muted sapphire
#

It is still the same sensitivity?

karmic pumice
muted sapphire
#

Looking around?

karmic pumice
#

everytime I long hold w the camera speed goes faster

#

u know why?

somber vault
karmic pumice
slate marsh
#

i cant send send link

#

@karmic pumice look dm

muted sapphire
#

That's just how the studio works

somber vault
muted sapphire
#

If you want to slow down, just do not press 'w' anymore.

somber vault
#

its satisfying

muted sapphire
#

Eventually, use 'shift'

#

Which will slow you down.

somber vault
#

yaur

glacial pasture
#

hey im new here and i wanna learn how to code, do you guys have any good suggestions on how to start out>

karmic pumice
#

thanks

slate marsh
glacial pasture
slate marsh
#

but dont only watch

#

try to make on studio too

glacial pasture
#

thank you

slate marsh
#

yw

umbral geode
#

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

somber vault
umbral geode
#

yes it is a module buts in a form of a packaged model like this

somber vault
#

bruh what is that? toolbox shit?

#

did you make that on your own?

distant hawk
#

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

umbral geode
#

made it on my own

somber vault
distant hawk
#

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

slate marsh
#

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

distant hawk
#

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

slate marsh
#

sure send me

#

lemme check

jaunty wolf
somber vault
#

thanks moscow lol i'm not that great at explaining

distant hawk
jaunty wolf
#

they can also fire any data they want to remoteevents

distant hawk
#

ah

distant hawk
distant hawk
slate marsh
#

they cant see the scripts on SS or SSS

#

but like jelly said they can fire it

distant hawk
#

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

somber vault
#

is it a good idea to put all my functions in one local script for a gui? or will it be laggy

hot nest
#

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

inland bay
#

keep all of your code in one file

slate marsh
somber vault
#

cool

slate marsh
#

exploiter only can access client side

jaunty wolf
# distant hawk by access, do you also mean modify?

they cant modify it in a way where the server/other clients can see it.
heres everything exploiters can do

  1. display any information they know about (show people through walls)
  2. teleport, speedhack
  3. 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)
  4. move any physics objects they are nearby (roblox gives nearby players Network Ownership over physics stuff for optimization reasons)
  5. 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

slate marsh
umbral geode
jaunty wolf
#

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)

hot nest
jaunty wolf
distant hawk
jaunty wolf
umbral geode
#

so yes

hot nest
jaunty wolf
slate marsh
#

if u doing something on roblox studio just dont trust clientside

jaunty wolf
#

serverside cars are way simpler but will never feel great to drive

#

or just letting people fly around in a car ig

hot nest
jaunty wolf
#

set it to the player driving, i mean

hot nest
hot nest
# jaunty wolf 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

plain cipher
#

Hey what should i do after i learn the basics of luau

umbral geode
idle gorge
#

how many of yalls use types for modules

rotund cedar
#

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

faint estuary
#

iam a pro coder guys trust.

smoky condor
#

My scripter laptop caught on fire. I need a new scripterx go into my dms if you want

waxen marlin
#

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

warm pumice
#

Because their bytecode is not replicated

waxen marlin
orchid ravine
#

guys, i need a really good ragdoll for R15 for a pvp game, are someone interested?

graceful oxide
#
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?

balmy zenith
#

its generally discouraged when you can make it outside easily

#

which it see s to be for your case, so should put it outside

hollow summit
#

its alright especially for scope but for example when you wanna debug or reuse its a whole different hassle

balmy zenith
#

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

hollow summit
#

yeah its better to keep it outside

balmy zenith
#

its just clutter

hollow summit
#

@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

balmy zenith
#

better than who

#

devking is already that shit

hollow summit
#

i forgot wait

#

brawldev

#

his videos are longer and really less examples

balmy zenith
#

fuck brawldev

hollow summit
#

his got me so confused

balmy zenith
#

can already tell by the name

hollow summit
#

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"

jaunty herald
#

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

hollow summit
jaunty herald
#

true, i'll show you

hollow summit
#

no dont show me im just a noobie man

#

wait till someone more advanced pops up

jaunty herald
#

k

balmy zenith
#

i think thats the debug for it

jaunty herald
#

yeah i have a raycast hitbox module

frozen swift
jaunty herald
frozen swift
hollow summit
hollow summit
tiny obsidian
#

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

still condor
#

Devking tutorials are outdated

#

Deprecated

#

Don't watch those

mental hawk
#

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

hearty lake
#

seyaax, why do you think devkings videos are good?

#

Cyan doesnt because he thinks they are long, i think

mental hawk
#

5 - 12 minutes per topic is not long

hearty lake
#

Seyaax, why do you think devkings videos are good?

mental hawk
#

he goes in depth

hearty lake
#

Got it

mental hawk
#

he explained how printing works and what you can use printing for

graceful oxide
#

AlvinBlox is a lot better than DevKing imo. DevKing's way of teaching is way too "clumsy"

hearty lake
graceful oxide
mental hawk
hearty lake
#

Just tryna clarify things

lilac cosmos
#

i need help

#

i need help with my script

graceful oxide
lilac cosmos
#

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

muted sapphire
#

Video tutorials are ass

#

5% actual good knowledge 95% bullshit

#

Just read the official docs or other stuff

#

Far more effective

hearty lake
lilac cosmos
#

i ddi

#

i did and somone

#

told me to come here

hearty lake
#

Oh

somber vault
#

makes me wonder if you really know what you're talking about

muted sapphire
#

You're saying the documentation isn't for beginners?

viscid willow
viscid willow
#

little freecode seeker

lilac cosmos
#

i need help

viscid willow
#

literal skid lol

lilac cosmos
#

with my script

somber vault
muted sapphire
#

That's beyond my comprehension

lilac cosmos
#

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

viscid willow
#

๐Ÿ’€

muted sapphire
somber vault
#

not in the docs, that's the roblox API, not lua/luau

lilac cosmos
#

bro can someone hel

#

help*

somber vault
#

๐Ÿคฆโ€โ™‚๏ธ

#

just ask the question

lilac cosmos
#

wdym

mental hawk
# lilac cosmos

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)

lilac cosmos
#

wow thenks

#

thanks*

viscid willow
#

he didnt even tell you abt any errors

hardy pilot
inland bay
#

hourly foot licking heels

viscid willow
lilac cosmos
frozen swift
#

Wts

lilac cosmos
#

when i put the script there

mental hawk
still condor
mental hawk
still condor
#

Really good pay

mental hawk
#

i got no time

inland bay
#

๐Ÿฅถ