#code-discussion

1 messages · Page 27 of 1

cursive remnant
#

Ngl it’s not clicking

forest storm
cursive remnant
#

Don’t understand it

limber tendon
# cursive remnant Ngl it’s not clicking

ipairs for index with numbers only, pairs for numbers and and other index values such as strings(Array["Sigma"]) Suphi Kaner has a video on it, pairs skips values that are equal to nil

hasty mesa
golden mauve
#

does anyone know how i can spawn trees over a certain area of the map, wehre the trees are all spaces out, but still kinda random. Like in minecraft

forest storm
forest storm
quaint maple
#

why yes copilot, that is exactly what i wanted to do

hasty mesa
#

thats not copilot

#

although copilot does do that

quaint maple
frosty crag
#

I think it's literally just called roblox code assistant

quaint maple
#

oh lmao

plain fiber
#

yo guys if yall need help coding your game (tell me the ideas and the work to do) i can help yall for free no money needed not even % just have good ideas and have progress done and a good game thats all you can ask me to make anything you want i am a 5 year scripter DM ME

cursive remnant
hasty mesa
#

the key can be anything like a string

#

key = value

#

ipairs iterates thru the array

#

while pairs iterate thru all entrys

cursive remnant
#

I see I de

quaint maple
#

lmfao

arctic bloom
#

m

prime rain
#

can someone describe the difference between frontend vs backend scripting to me as if u were describing it to an idiot with no scripting background

bleak topaz
cursive remnant
#

When would you use an array

humble wadi
#

Is your commission open?

frank quiver
#

Bad video uh hold on

bleak glade
frank quiver
# frank quiver

Yeah this one should I continue working on it? Tips ideas?

humble wadi
little epoch
frank quiver
cursive remnant
frank quiver
#

(so like player related variables going into an array)

cursive remnant
#

Different guilds

frank quiver
cursive remnant
#

Like deepwoken for examples how they have guilds and only certain people are apart of the guilds would I use an array so only those people are apart of the guild

#

That’s the only thing I can think of

little epoch
#

to keep a list of players I would

frank quiver
#

Yeah

#

If you wanna list players part of say yellow team, open an array and start pouring player names into it

cursive remnant
#

Ok makes a little more sense now

#

Ok

#

Is that what it’s mostly used for?

little epoch
#

that and any other list of any other number of things

frank quiver
#

So if you call the array index number 1 you can find the first player entering the yellow team

cursive remnant
#

I see I see

little epoch
#

Arrays are incredibly useful for so much

cursive remnant
#

And dictionaries are typically used for shop or something

frank quiver
cursive remnant
little epoch
#

depends on the shop

little epoch
frank quiver
#

Is dictionary LuaU? I've never heard of it while studying C# and Lua

little epoch
#

Dictionarries keep a list of referances in the form of strings while arrays use numbers

#

dictionaries and arrays are both luau tables

cursive remnant
#

What would you say the most common things you use an array for

little epoch
#

they fuction exactly the same but one is a little easier to create and manage progrematically while the other is more versitile

frank quiver
little epoch
#

but also modifiying all of a list of things

#

or keeping track of somthing that has more somethings inside of it

frank quiver
#

Wish Lua had classes like C#

cursive remnant
#

Hm

#

Not clicking 😓

#

I need to be explains to like a caveman

frank quiver
# cursive remnant Not clicking 😓

You have a big box named player, you put little boxes inside like the number of HP and stamina. You can dig into big box to find little box instead of searching the cave to find little box

half path
#

anyone know how to fix this 💔

little epoch
#

think of it like this. An array is a list of things with numbers assosited with them. the ammount of these things and the things themself can be chancged and moddified as needed

#

each thing can be literally any object in lua which is most things

frank quiver
bleak glade
little epoch
bleak glade
#

buffers over array?

#

in string and numerical context

little epoch
#

the benefit of using an array is over a table is the specific functions that use the numerical index

calm basalt
frank quiver
#

Ling gang guli guli

little epoch
#

but Lua itself does not distinguish between the type of Index when doing things with tables only the functions that use the index

bleak glade
#

why does lua start at one 💔 ts language

frank quiver
little epoch
#

dictionary, player = {health = 10, speed = 5}

#

array, player = {10, 5}\

#

each number in the array is automajically asigned a number in order starting at 1

bleak glade
#

c > lua

little epoch
#

for example player[1] == 10

deft stump
#

hey how do i actually make a pathfinding ai that recalculates its path constantly?

hollow turtle
#

I want to apply this rig's humanoid description to the player when they equip a tool, how do i get humanoid description from a rig, and can i use the humanoid description without the rig being inside the game, or alternatively would i have to be a users avatar or outfit?

deft stump
#

ie enemy ai vs friendly ai

hollow turtle
#

or better, you could fire it when the player it's tracking moves

#

or when any player moves

frank quiver
#

Don't use heartbeat, I havent used LuaU in forever but use the one that runs before the frame gets rendered

#

Uh render stepped I believe?

deft stump
#

oh shoot just used heartbeat

#

any other alternatives?

frank quiver
#

It's fine, heartbeat is after the frame is rendered and is used for physics n stuff

deft stump
#

making a freeroam td game

frank quiver
#

Don't take my word for truth though, I'm rusty and haven't touched this in ages

deft stump
#

freeroam towers and enemies

#

soo likely theres gonna be alot of humanoids?

#

will it be a problem for performance

frank quiver
#

If you have any

deft stump
#

how do i send it in the weird file type?

#

like where theres color lighting up and etc-

#
local RunService = game:GetService("RunService")

local human = script.Parent:WaitForChild("Humanoid")
local torso = script.Parent:WaitForChild("Torso")
local target = game.Workspace.FrontierPlains.Base

local function moveToTarget()
    local path = PathfindingService:CreatePath()
    path:ComputeAsync(torso.Position, target.Position)
    local waypoints = path:GetWaypoints()

    for i, waypoint in pairs(waypoints) do
        human:MoveTo(waypoint.Position)
        human.MoveToFinished:Wait()
    end

    human:MoveTo(target.Position)
end

RunService.Heartbeat:Connect(moveToTarget)```
frank quiver
deft stump
#

did that its working just fine

frank quiver
#

Not as a lag test but to see how the bot reacts

#

Ok good

#

From just looks I think you'll be fine

#

I don't see any bit of code that looks like it's causing unnecessary lag

deft stump
#

does having a bunch of scripts cause lag?

lean ocean
#

don't put a script in each enemy

frank quiver
frank quiver
fluid thicket
#

I made a Lycan model from blender I got this script from chat gpt it ain’t working but it says noting is wrong with it I have a humanoid root part and a humanoid in the model

frank quiver
frank quiver
#

(for context I made a script that sets the gravity of whatever car you're driving to whatever wall it's touching so it can run up walls)

balmy wedge
#

if you cant be bothered to make some batching system for enemy pathfinding then you might aswell just clone a script into each of them

frank quiver
#

I have too many abandoned projects I needs find out which ones to work on

balmy wedge
#

ur car is dope

balmy wedge
#

this is the outcome of using one script to manage the pathfinding of multiple stuff

deft stump
#
    coroutine.wrap(function()
        local human = newMob:FindFirstChild("Humanoid")
        local torso = newMob:FindFirstChild("Torso") or newMob:FindFirstChild("HumanoidRootPart") -- Support HRP
        local target = workspace.FrontierPlains.Base

        if not human or not torso then return end -- Prevent errors

        local connection
        connection = RunService.Heartbeat:Connect(function()
            if not newMob or not newMob.Parent then 
                connection:Disconnect()
                return
            end

            local path = PathfindingService:CreatePath()
            path:ComputeAsync(torso.Position, target.Position)
            local waypoints = path:GetWaypoints()

            for _, waypoint in pairs(waypoints) do
                human:MoveTo(waypoint.Position)
                human.MoveToFinished:Wait()
            end
        end)
    end)()
end```
#

nice?

#

or will there be performance issues

deft stump
wicked scaffold
balmy wedge
#

update the cframe of the egg every frame to ur camera

#

with an offset of course

deft stump
#

but yea do what he said

wicked scaffold
#

also do i do with linear interpolation ?

charred kestrel
#

who here does sound with scripting?

#

dm me if so cause i have a question or two

hollow turtle
#
gun.Equipped:Connect(function()
    local character = gun.Parent
    local joker = gun.joker
    character.Humanoid:ApplyDescription(joker.Humanoid:GetAppliedDescription())
    
    gun.Activated:Connect(function()
        if not bang.Parent and not deployed then
            bang.Parent = gun
            gunshot:Play()
            deployed = true
        else
            playRandomSound()
        end
    end)
    
    gun.Unequipped:Connect(function()
        local player = gun.Parent.Parent
        character.Humanoid:ApplyDescription(game:GetService("Players"):GetHumanoidDescriptionFromUserId(game:GetService("Players"):GetPlayerFromCharacter(character).UserId))
        bang.Parent = nil
        deployed = false
        playingSound = false
        voiceline:Stop()
        gunshot:Stop()
    end)
end)

when i try to restore the characters humanoid description it just kills the character

green basin
hollow turtle
charred kestrel
#

mb

wicked scaffold
#

How do i make this relative to camera cframe ?

charred kestrel
#

i meant like sound stuff within scripting cause im tryna disable the default death sound and walking sound with a gui morph system

green basin
hollow turtle
#

but if you find a better way let me know

green basin
#

Just pull out the events dawg

wicked scaffold
hollow turtle
#

try it

green basin
#

Try what

green basin
#

So basically when u load into the game your player script will have like a sounds module or smth like that

#

You want to copy this, exit game, edit sound id and paste it into starter player scripts

blazing escarp
#

Is there any market for a plugin that helps to make 2d games in roblox, like trying to remake terraria etc. ?

charred kestrel
#

can u dm me like what to do

#

like the script

#

cause im basically destroying a sound as a whole right?

#

do i do it clientwise or serverside wise?

charred kestrel
deft stump
#

hey guys, making an enemy ai that attacks base, barracks, and friendly ai.

#

theres likely gonna be tons of enemy ais

#

1 that prioritizes base, one that prioritizes barracks and 1 that priotizes friendly ai

#

how should i do that

#

should i jumble up that into 1 script?
or make a module script and reference the code

sharp totem
#

can someane help me with this please

green basin
# sharp totem

It's easier if you create a table storing players and their status effect threads. With this, you could cancel the previous thread and start with a new one

deft stump
#

sometimes when i get into problems i just ask chatgpt

sharp totem
deft stump
#

just works fine

#

dont fully rely on it

drifting ivy
deft stump
#

im new to scripting and im using a tutorial

#

soo chatgpt helps me find stuff and optimize code

acoustic maple
#

ok

frank quiver
drifting ivy
frank quiver
deft stump
#

chatgpt is actually insanely nice

frank quiver
#

Don't rely on it fully, think of it as one of the people here who will help you out

deft stump
frank quiver
#

It's not like somebody here would be able to write a script related to your game without actually seeing the game

drifting ivy
balmy wedge
#

just make it match the cframe of the camera

#

with an offset

frank quiver
balmy wedge
#

its as simple as :pivotto()

drifting ivy
slate cove
frank quiver
#

This system took me 3 days of trial and error to make because nobody online had any documentation about it

#

I was also a programming noob at the time

frank quiver
#

Oh gosh I'm recalling the all nighters I was pulling trying to make it just to show off something cool to my friend

#

I wish I could have inspiration like that for my other projects then I'd actually get stuff done

#

Lol

balmy wedge
#

i should probably put a task.wait on the reconstructing so it doesnt timeout my script

silver verge
#

if the goal is compression

dry walrus
#

A buffer won't really change anything if it's just a string.

slate cove
silver verge
#

because they can be saved to datastores

slate cove
#

i.e. stringvalue or attribute

silver verge
#

why are we treating this as a downside

#

send that shit over the network like buffers were intended to be used ❤️‍🩹

slate cove
#

preach

dry walrus
# silver verge if the goal is compression

buffer objects aren't necessarily a form of compression. But you can modify the binary data inside it and put multiple values in one single buffer to make it take less space.

slate cove
#

do you think he knows

silver verge
#

it is still data

#

def gonna be faster to read and write to than using strings though

slate cove
#

^ this and chances are that any amount of data you're storing in a binary is going to be more efficient and use less space so... more compressed
also also last time i checked you can apply zlib compression to buffers (though i don't know if this is true or not, think it might be a datastore only thing? i don't remember)

slate cove
#

either way in this scenario it's like 99% more likely that using buffers is more efficient and takes up less space

silver verge
slate cove
#

skull emoji

silver verge
#

json fastest method trust

hasty mesa
#

roblox will autmatocly compress buffers

slate cove
hasty mesa
#

if they determine it can benefit from it

#

when sent over the network

silver verge
dry walrus
#

Oh I just researched more about buffers. Apparently, they are compressed when transferred over Roblox's networking APIs.

calm basalt
#

Yo if I’m trying to learn how to code should I take stuff one step at a time ? For example should I dedicate a certain amount of time to learning tables, or coroutines, or, CFrames, etc. Or should I just try scripting whatever comes to mind and if I get stuck I can just Google it? Idk if this makes sense but if anyone has any suggestions plz lmk

silver verge
slate cove
#

^

silver verge
#

assuming you know the basics

#

you learn the best when youre hands on with it

slate cove
#

there's no point in "learning" specific datatypes and other things if you aren't going to use them to reinforce them or even understand why you'd need to use those concepts anyways

calm basalt
slate cove
slate cove
#

dash system? sure

#

shift to run? sure

calm basalt
#

Ohh I see

slate cove
#

literally just getting user input and printing out what key they're pressing? yeah thats a project too

silver verge
#

ye literally just anything you wanna do

slate cove
#

it doesn't have to be some massive project, nor does it have to really be anything crazy

#

as long as you have an interest in it then i'd look into how to make it

calm basalt
balmy wedge
calm basalt
#

And it made me so nervous and lost

dry walrus
#

Start off with the basic projects. Stuff you can do with what you know already.

The goal of these projects is for you to work out the solution from a problem. You can research what something in the language means.

silver verge
slate cove
#

^

silver verge
#

you'll also build the skill of breaking down problems and researching them

#

big system becomes small problems, learn how to solve each small problem, combine to make big system

#

boom magic

slate cove
#

not to mention all of the big grand projects can be thought of as tons of smaller projects combined together anyway; the most important skill in anything related to programming is being able to break down problems into the simplest components to solve those

silver verge
#

yes

#

just a bunch of puzzle pieces

calm basalt
#

Thanks for the info guys, now I don’t feel so lost anymore 🙏

glossy plank
livid dagger
supple spear
#

someone want to mke a kuroko no basket game with me

glossy plank
bleak glade
#

looking at good code helped me too

cursive remnant
bleak glade
#

or popular code like that

#

this helped me learn type annotation adn generics as well as how to give a function a "Comment" when calling (idk the actual name for it)

cursive remnant
#

What is Adonis code

bleak glade
#

this isnt it though, this is a signal module

bleak glade
cursive remnant
#

Sure

bleak glade
bleak glade
merry holly
#

Failed to load animation with sanitized ID, someone help pls

gloomy kraken
merry holly
gloomy kraken
hardy pilot
merry holly
hardy pilot
#

Did you also try testing in the client instead of studio

merry holly
#

my scripter not responding

#

but 99% will not work

versed bane
copper grotto
cold stone
#

its only erroring cs the raycast aint detecting any instance called "wall" lmao

cold stone
verbal coral
#

code like an alien 👽

wise turtle
ember nimbus
#

turing needed a language server when he was writing his paper on computable numbers

#

he keeps forgetting to define functions 💔

verbal coral
glass sierra
#

繁体字!!

verbal coral
#

what are these bum ass fonts

#

istg fire mono, lucida, and courier are the only actual fonts you can use for programming on roblox studio

glass sierra
#

cursive coding is so ugly

verbal coral
#

typeeeeeeeee

lean ocean
#

what the fuck

gloomy kraken
#

what the shit

lusty dawn
#

import { Players, Workspace, RunService } from "@rbxts/services";
import { KDTree } from "@rbxts/kd-tree";
import { SpatialHashingGrid } from "@rbxts/spatial-hashing";
import { Signal } from "@rbxts/signal";
import { t } from "@rbxts/t";
#

😎

frank quiver
spiral jungle
shrewd hearth
#

On a scale of 1-10 how hard would it be to code a simple enough mine that fills with randomly generated ores?

spiral jungle
shrewd hearth
#

Yep

spiral jungle
#

Is it a block game like Minecraft

shrewd hearth
#

Like a mc prisons kinda thing

spiral jungle
#

So is there a cave or is it just a solid cube of ores

shrewd hearth
#

Solid cube

spiral jungle
#

Oh then like 1

shrewd hearth
#

Perf ty

#

Would cave be a 10?

spiral jungle
#

No but it would be significantly harder

#

Cause you’d have to learn algorithms

#

Noise and whatever

shrewd hearth
#

Yeah I can imagine well ty 🙏

turbid torrent
somber vault
#

Outside factors can alter your consciousness making you less able to focus and under stand things

#

Your statement Is very superficial

turbid torrent
kindred patrol
restive wigeon
#

Remember guys,
RemoteEvent:FindFirstChild() is not a way to fire remote events

wise turtle
#

thanks i remember now.

normal verge
#

guys i cant fix the bug inshallah someone comes to help me

merry holly
#

Failed to load animation with sanitized ID rbxassetid://75373839870659: AnimationClip loaded is not valid. (x2)

gentle marlin
#

somebody help me learn coding, i cant do shit rn just know lua basics dont know how to proceed, pls help if you were once at my stage

#

just did the roblox coin game

glass sierra
normal verge
#

mashallah is like when u see something surprising bro u go like wow mashallah 😭

#

but np people here arent muslim

kindred patrol
normal verge
#

INSHALLAH WE SHALL FIND THE BUG!!!!!!!!!!!!!!!!!

normal verge
placid badge
#

I've been scripting for 3 Year straight but I didn't progress a single one. Is that an skill issue?

somber vault
#

If a time traveler goes back in time and becomes the reason his parents meet does that mean his mother now will give birth to a pointer reference of him instead of his actual self?

somber vault
native orchid
rancid swift
#

i need someone who can make a mobile support with tsb type of shift lock, im readdy to pay so type to me if your interested

shut sorrel
#

though if I handed it to someone else they would think I'm insane

somber vault
shut sorrel
#

I do the bare minimum and add -- Variables -- Functions -- remotes

somber vault
#

Any suggestions on making a good incremental game?

somber vault
solar yew
shut sorrel
#

I don't need to comment my code if no one else has to look at it

#

just name variables and functions good enough

solar yew
#

Really I just use comments to tell myself to do stuff later. --Put something functional here eventually

somber vault
#

Documenting is like half of what good coding consist of

solar yew
somber vault
#

What good is code if u have to relearn what u made after a year later

somber vault
shut sorrel
#

I do add comments after modules or stuff and inside functions if it's confusing but it not like I'm reading a public API, the bare minimum is fine for me

solar yew
shut sorrel
#

not gonna comment my code like gpt, I think the way gpt comments code is aggressive and makes it harder to look at

solar yew
#

set flags for certain actions, buying items rebirthing etc and then scale up a multiplication variable or whatever. button clicked +1 point, rebirth 500: button clicked * 500

somber vault
solar yew
somber vault
#

I think more comments are better than bare minimum comments tbh

shut sorrel
#

To each their own, I like giving my code to gpt after I'm done to write me a documention for my code but I don't want to write comments like that

solar yew
somber vault
#

Chat gpt lua is awful

solar yew
shut sorrel
#

Gpt does help me understand public modules people make when it lacks documentation or good examples

somber vault
#

Honestly tho the newer gpt models for other coding languages are actually pretty decent now

#

Come a long way since 2023 for python and c++

solar yew
#

I dont think I could ever trust GPT tbh. Even if the code it wrote was 10/10 I would feel the need to triple check, ending up wasting any kind of time I would be saving by having gpt write it

lavish ibex
#

any scripter wants to partner in a game

shut sorrel
#

Deepseek is pretty cool how it does reasoning, I wish Roblox AI was actually good but it's the worst AI I ever used

somber vault
solar yew
shut sorrel
#

I don't think anyone except the company and YouTubers praised it

#

YouTubers who aren't even good devs

#

I think the texture generation is really awesome but it's still mid quality

somber vault
somber vault
shut sorrel
#

it's better to use rojo and copilot than Roblox AI

somber vault
#

The prompts all come out looking strange or grainy

#

I could be using it wrong though

solar yew
#

Not the Ai on the api documentaion website right? Back when I was still trying to understand the basics of luau I couldnt get past two questions without having an aneurysm trying to wrangle that thing and stop it from giving me deprecated information

shut sorrel
#

It always looks strange for me too, I just use the normals it generates for textures

somber vault
shut sorrel
solar yew
#

thank god, thought I was going crazy when I thought you said that was being praised by anyone

shut sorrel
#

It has potential though

solar yew
shut sorrel
#

Like it spawns things in workspace and could change properties, the demos are really good but no one has ever had an experience like the demos they made for it

#

Huh they just released a update for the AI assistant an hour ago

#
solar yew
#

Huh, weird coincidence.

shut sorrel
#

https://youtu.be/85PNb99CT68?si=2cgmaaZyolsd1qIn
They're trying to make 3d mesh generation which is kinda cool

Step into a new era of creation. With Cube 3D, turn simple text prompts into 3D objects in seconds. What will you build?
Learn More: https://corp.roblox.com/newsroom/2025/03/introducing-roblox-cube


Want to see more Roblox content? SUBSCRIBE to our channel! https://rblx.co/Subscribe-To-Roblox-YouTube

Roblox's mission is to bring the...

▶ Play video
foggy burrow
#

Code

#

lock in

solar yew
# shut sorrel https://youtu.be/85PNb99CT68?si=2cgmaaZyolsd1qIn They're trying to make 3d mesh ...

Im afraid this will probably just lead to more generic garbage. It gives more power to solo devs sure, but it entirely removes quality assurance. Its like the whole "Give me an image of a full wine glass" thing. Ai is super limited by its averages which means everything generated by them is incredibly generic. And sure, better devs will use these tools to make random forgettable assets look decent--because having 700 unique rocks is less noticeable than having 6 rocks you reuse throughout the entire game. But some devs are just going to make entire games with these tools and the platform will be worse for it.

#

Either my s key has started failing me or Ive missed the s button like 7 times within the last 30 minutes, typos are going crazy today 😑

shut sorrel
solar yew
shut sorrel
#

I rarely ask for code help because everything can be found on google or AI, it's really painful helping beginners who use AI and can't understand what anything does, it's very obvious what AI code looks like too

plain marlin
#

How would I go about making trail like system for water bending (atm I update bones position to the previous one / one ahead of it) but this is laggy and not synced between different graphics - eg more lag = longer shape, less lag = slimmer

shut sorrel
#

The water is a mesh with bones?

#

looks fine, just need optimization

plain marlin
#

It’s a reference

shut sorrel
#

like can't you fireallclients the visuals and register the hit on the server

foggy burrow
#

I would register hit on client and then fire server for it to be smoother

plain marlin
#

But the actual movement is the issue

foggy burrow
#

and then have the server do sanity checks

plain marlin
#

Not the hit register erc

plain marlin
foggy burrow
#

I would fireall clients and fire the hitbox client side, and when theres a hit you fire server and the server does sanity checks/applys dmg

#

but if your looking for a cleaner way for the vfx?

shut sorrel
#

if the water is a mesh with bones it should be done on the client for performance, register hit on server. But you can maybe use a part with 2 attachments with a beam maybe, would be like a whole other way of making it though

foggy burrow
#

yeah

#

id do it vfx

#

instead of meshes

#

beams would be better

shut sorrel
#

A main part that changes direction, and another part attached to a spring on the main part, put the attachment on the part with the spring and one on main part

#

just a idea though

plain marlin
#

the only issue is that

  1. its not very performant
    and
  2. the length of the water mesh changes depending on client lag
shut sorrel
#

Are you using delta time, that helps with calculations between frames

#

And for performance, are you doing the cframe calculations on the server or the client

plain marlin
plain marlin
#

@shut sorrel

shut sorrel
#

does high graphics usually cause your game to lag? Or just the script being that laggy?

slate dome
#

More about particles and meshes I think

verbal coral
solar yew
verbal coral
#

slave labor wages

oblique epoch
#

lf scripter u can take 70% of the game i can invest in ads since i have rbx so u will gain from the game i do uis (i can pay rbx)

reef nymph
#

Yo guys I was wondering if WaitForChild is truly useful if you're just trying to immediately access a model/folder that's already in the explorer at first or not?

#

It's already on server so logically I'd say it's useless but a lot of tutorials tell you to do it for some reason

forest storm
#

the reason you use it is because the roblox engine doesnt guarantee time or order in which objects are replicated from the server to the client

reef nymph
#

from server to client or client to server basically

forest storm
#

yh u use waitforchild in local scripts

reef nymph
#

kk yeah

forest storm
#

its even on the forum

reef nymph
#

cuz I see tutorials where they waitforchild a replicatedstorage model in a serverscript

#

but it sounded pointless to me

#

just a random habit i suppose

forest storm
floral cairn
#

i love how people will ask for like the most complicated shit

#

and pay like 200 robux for it

#

just hire a slave atp

static coral
floral cairn
#

man I wish I could just make my own game and get out of this commision bull but trying to hire people to help is the most annoying process ever

#

talent hub is the most buggy thing ever, this server's job hiring thing takes like 2 days before its published and people can see it

shut sorrel
#

bite the bullet and make a easy to make cash grab

static coral
#

yeah

floral cairn
#

yeah lmao

static coral
#

make cash grab and use funds to fund bigger and better project

shut sorrel
#

use toolbox model, people who play cash grabs do not care

floral cairn
#

the problem is I got funds, I know a rich investor guy who ive been friends with for like 3 years

#

the hiring is the part thats pissing me off

shut sorrel
#

I just do everything myself and keep 100% of profits

floral cairn
#

I wish I was like you fr but I am not talented enough to work alone

#

the most I can do is a good looking showcase game

#

or a shitty fps game using toolbox fps systems

shut sorrel
#

my desire to learn comes directly from being too broke to hire anyone and it payed off

floral cairn
#

brokey

shut sorrel
#

I think tycoons, obbies, and TD are more popular for cash grabs

#

Something you really have to sink a lot of time into and pay attention

#

progression and flexing is the gameplay loop

iron oasis
#

on the scrip[t performance tab, what should i be looking for? the count and activity numbers im not familiar with those units.

thick sapphire
#

Chat theorethical question: If you could have any library for coding, what would it be?

hasty mesa
#

And in luau or all languages

thick sapphire
#

idc

thick sapphire
hasty mesa
#

Cause I could rewrite my own libs

thick sapphire
#

yep

thick sapphire
hasty mesa
thick sapphire
#

damn

hasty mesa
#

The only lib that's not custom is a UI library cause I can't be bothered to rewrite thet

thick sapphire
#

what other libs u made?

hasty mesa
#

Which includes signals, serializer, some utils

thick sapphire
#

why would you need serializers?

hasty mesa
thick sapphire
#

this man is on different level

#

I never used buffers

#

can you give me some introduction why to use them? Like im making one maze type game where its randomly generated, so if you could tell me how they should be used

#

||got ghosted||

latent gust
#

If you’re generating a maze and sending it via network it’s more efficient to send that data as json. You can also save the maze layout or rendered parts for resuming the game later if you want that functionality

hasty mesa
thick sapphire
latent gust
#

It depends on your architecture

hasty mesa
hasty mesa
thick sapphire
#

isnt it just write buffed, read buffer?

vocal vortex
#

anybody know whats the best way to go abt making input buffering, i got my own way i just wanna know

thick sapphire
hasty mesa
vocal vortex
hasty mesa
#

And you don't really need buffers

thick sapphire
vocal vortex
#

cuz i need to make it

thick sapphire
hasty mesa
vocal vortex
thick sapphire
thick sapphire
vocal vortex
#

ofc

#

every game has it

#

cuz when u click to early without it nothing happens and then it gets annoying

thick sapphire
#

so you make input buffer to read the input on client?

#

that sounds so stupid

vocal vortex
thick sapphire
#

you process inputs on client in roblox

#

right?

vocal vortex
#

is that even a question

thick sapphire
#

i am programmer, but no god, or no god in roblox API

vocal vortex
thick sapphire
crystal olive
#

anyone got a portfolio for scripting i can see?

thick sapphire
#

i am both yk, but still

vocal vortex
thick sapphire
#

which one exactly

latent gust
#

This is giving me a headache

vocal vortex
vocal vortex
thick sapphire
# vocal vortex .

if u make custom multi game out of roblox then you do both, but on roblox you want to do prediction on server and compute on client

static coral
#

anyone know of a tutorial for the stylesheet/stylelink/stylederive objects?

vocal vortex
#

u ALWAYS detect input on client

#

idfk how u didnt know that

thick sapphire
vocal vortex
#

u either handle actions provided by the input of the client on server

#

or send info to from the server to the client to replicate

#

which means ass computers cant run ur game

vocal vortex
thick sapphire
latent gust
#

I feel like I told you ten minutes ago

vocal vortex
thick sapphire
#

but like you WILL ALWAYS have delay

vocal vortex
#

do you even know whst input buffering is

thick sapphire
vocal vortex
#

u save keys that are pressed during a move and then calvulate the most recent one in a set duration and execute another move

thick sapphire
#

never encountered it, so idk

fluid sierra
#

needs help with saving data for a player i tried like different 4 scripts and nothing workkkkkkkkk

thick sapphire
fluid sierra
thick sapphire
fluid sierra
#

it does not work

thick sapphire
#

wdym?

silver verge
#

you're confused because you were talking about the buffer library before and someone had a question about something unrelated that also used the word buffer

thick sapphire
fluid sierra
#

wanna see the script?

thick sapphire
thick sapphire
fluid sierra
#

-- Script inside ServerScriptService
local DataStoreService = game:GetService("DataStoreService")
local speedDataStore = DataStoreService:GetDataStore("PlayerSpeedData") -- Unique name for your data

-- Function to load player data
local function loadPlayerData(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player

local speedStat = Instance.new("IntValue")
speedStat.Name = "Speed"
speedStat.Parent = leaderstats

-- Load data using GetAsync
local success, savedSpeed = pcall(function()
    return speedDataStore:GetAsync(player.UserId)
end)

if success then
    if savedSpeed then
        print("Loaded speed for " .. player.Name .. ": " .. savedSpeed)
        speedStat.Value = savedSpeed
    else
        print(player.Name .. " is a new player. Starting speed at 0.")
        speedStat.Value = 0
    end
else
    warn("Failed to load speed for " .. player.Name .. ": " .. savedSpeed)
    speedStat.Value = 0
end

-- Apply speed to WalkSpeed
player.CharacterAdded:Connect(function(character)
    local humanoid = character:WaitForChild("Humanoid")
    humanoid.WalkSpeed = speedStat.Value

    -- Continuously update the speed stat (if your speed changes)
    while humanoid and humanoid.Parent do
        wait(0.5)
        speedStat.Value = math.floor(humanoid.WalkSpeed)
    end
end)

end

-- Function to save player data when they leave
local function savePlayerData(player)
local speedStat = player:FindFirstChild("leaderstats") and player.leaderstats:FindFirstChild("Speed")
if speedStat then
local success, errorMessage = pcall(function()
speedDataStore:SetAsync(player.UserId, speedStat.Value)
end)

    if success then
        print("Saved speed for " .. player.Name .. ": " .. speedStat.Value)
    else
        warn("Failed to save speed for " .. player.Name .. ": " .. errorMessage)
    end
end

end

-- Player Added
game.Players.PlayerAdded:Connect(function(player)
loadPlayerData(player)
end)

-- Player Leaving
game.Players.PlayerRemoving:Connect(function(player)
savePlayerData(player)
end)

-- Optional: Save data when the game shuts down (for all players)
game:BindToClose(function()
for _, player in pairs(game.Players:GetPlayers()) do
savePlayerData(player)
end
end)

silver verge
fluid sierra
#

and i tried other codes on yt

thick sapphire
fluid sierra
thick sapphire
#

alt + 096 `

fluid sierra
#

?

thick sapphire
#
-- code here
#

copy the text

fluid sierra
thick sapphire
#

ye

fluid sierra
#

didnt work

silver verge
#

use a datastore library

fluid sierra
#

what

silver verge
#

you shouldn't be relying on an llm that makes mistakes to write your code that handles player data

#

there are plenty of tutorials online, look into something like profileservice

thick sapphire
#

like ur own code, not lib

fluid sierra
silver verge
fervent belfryBOT
#

@fluid sierra

Tag » format

Raw text

```lua
print('Hello World')
```

Formatted

print('Hello World')
thick sapphire
silver verge
#

he has no clue what he's doing

fluid sierra
#

yep

#

true

thick sapphire
#

but nowdays I dont use it for debug

#

more like used to

silver verge
# fluid sierra true

You need to be using ProfileStore in all of your Roblox gamedev projects! In this tutorial, we learn why it's better than default Data Stores and how to set it up. No sweat!

Thanks for watching! I'm a Roblox game developer teaching Roblox players how to create their own games. Subscribe to learn more!

Download ProfileStore:
https://create.robl...

▶ Play video
#

or any other existing data library

fervent belfryBOT
#

@hasty bone

Tag » whilelooplua

A while loop is used to repeat code until a certain condition is met, or to loop code indefinitely. Make sure to add a task.wait() somewhere inside it, so it doesn't crash, end, or lag. Usage:

while true do
    print("TRUE")
    task.wait(5)
end
hasty bone
#

what the heck is that

#

well ik waht it is

silver verge
#

what

hasty bone
#

but why is there a bot for that 💔

thick sapphire
#

or its profile service?

silver verge
#

profilestore is the newer version of profileservice

#

hasn't been used as much in production

thick sapphire
#

aaah ok

fluid sierra
static coral
static coral
thick sapphire
silver verge
#

you will never make a proper game like that

#

blacklist that shit from your browser 😭

fluid sierra
#

LOL

silver verge
#

i'm serious

fluid sierra
#

but it helped me make a speed system

silver verge
#

you shouldn't be using it when you're still learning

thick sapphire
silver verge
#

especially if you can't understand what it's generating

#

one of the most important skills to have is the ability to break down a large problem into smaller ones

#

and being able to research how to solve those small problems yourself

vernal timber
#

how to make a news ticker

silver verge
thick sapphire
static coral
silver verge
#

set the text label to the entire string

vernal timber
#

@silver verge no shit

silver verge
#

ok so what are you asking then 😭

vernal timber
#

how tf u make it smoothly come back

#

it wraps around

silver verge
#

use two labels

vernal timber
#

how tf u do dat

silver verge
#

that have the same content

#

when one makes it all the way across, move it back to the other side

vernal timber
#

can uw rite it @silver verge

silver verge
#

no

vernal timber
#

ur useless

silver verge
#

you can figure it out

#

??? 😭

thick sapphire
static coral
vernal timber
#

i was gona pay him

static coral
#

%?

vernal timber
#

fuck no i'm rich wut the hell

static coral
#

ok then its fine ig

silver verge
#

once red label reaches the end

#

put it back all the way to the right

vernal timber
#

can u write it

silver verge
#

yo its like 20 lines of code

vernal timber
#

ok can u write it

silver verge
#

No

vernal timber
#

exactly ur useless

thick sapphire
#

bro has so successful game and cannot make it 😭

silver verge
#

i told you how to solve your problem

vernal timber
silver verge
#

it's your turn to implement the solution

vernal timber
#

bla bla i'm asking gpt

silver verge
#

go for it g

thick sapphire
vernal timber
#

can u write the prompt for me @silver verge

silver verge
#

write an infinitely sliding repeating text label in luau

thick sapphire
#

no one doing that ;-;

vernal timber
#

ok

silver verge
#

shits probably gonna be ass but you'll figure it out

vernal timber
#
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Parent = player:FindFirstChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(1, 0, 0, 50) -- Full width, 50 pixels tall
frame.Position = UDim2.new(0, 0, 0.1, 0) -- Adjust vertical position
frame.BackgroundTransparency = 1
frame.ClipsDescendants = true
frame.Parent = gui

local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(0, 400, 1, 0) -- Adjust width for text length
textLabel.Position = UDim2.new(0, 0, 0, 0)
textLabel.Text = " ⚔️ Welcome to Redux RPG! ⚔️  "
textLabel.TextScaled = true
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.BackgroundTransparency = 1
textLabel.Font = Enum.Font.GothamBold
textLabel.Parent = frame

-- Duplicate the text for seamless looping
local textLabelClone = textLabel:Clone()
textLabelClone.Position = UDim2.new(0, textLabel.AbsoluteSize.X, 0, 0)
textLabelClone.Parent = frame

local function animateText()
    while true do
        -- Move both labels to the left
        local tween1 = TweenService:Create(textLabel, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0, -textLabel.AbsoluteSize.X, 0, 0)})
        local tween2 = TweenService:Create(textLabelClone, TweenInfo.new(5, Enum.EasingStyle.Linear), {Position = UDim2.new(0, 0, 0, 0)})
        
        tween1:Play()
        tween2:Play()

        tween1.Completed:Wait()

        -- Reset positions
        textLabel.Position = UDim2.new(0, 0, 0, 0)
        textLabelClone.Position = UDim2.new(0, textLabel.AbsoluteSize.X, 0, 0)
    end
end

task.spawn(animateText)
#

tf is redux rpg

thick sapphire
vernal timber
silver verge
#

looks like it works to me

vernal timber
#

fuck no

#

it jsut cuts out

thick sapphire
vernal timber
#

can u make it better

thick sapphire
#

you can figure that out

vernal timber
#

lets see if this is faxs

silver verge
#

you know its gonna be tuff when it starts dropping emojis

vernal timber
#

if chatgpt makes it better then ur not getting 5k robux @silver verge

silver verge
#

17 dollars

vernal timber
#

it dropped like 6

silver verge
#

wow

#

i'm missing out

vernal timber
#

of course uhr missing out on 17 bucks

silver verge
#

i'll be ok

vernal timber
#

mfs at mcdonalds work an entire hour for 14 be grateful

thick sapphire
vernal timber
#

@silver verge wanna work for my game it has 70k ccu

silver verge
#

i do NOT need 17 dollars 🙏😭

silver verge
vernal timber
#

ur disrespectful

silver verge
#

with the way dead rails blew up i wouldn't put it past you to actually have one

vernal timber
#

i'm a hard working roblox dev

#

i made berry avenue RP @silver verge wanna work for it

#

it has 83k ccu rn

silver verge
vernal timber
#

it's berry avenue rp

#

not redux dev

#

can u quit bieng useless and answer

silver verge
#

i'll Pass

vernal timber
#

the daels off anyway

thick sapphire
vernal timber
#

@silver verge plsu dotn come begigng after

silver verge
thick sapphire
vernal timber
thick sapphire
#

I would rather make my game with 0 revenue than make roleplay game

vernal timber
#

@thick sapphire ur fucking stupid

#

roleplay game makes like 10m usd

thorn frigate
thick sapphire
#

I want more original ideas

foggy bloom
vernal timber
#

@thick sapphire stil lrich doe

thorn frigate
vernal timber
#

@silver verge pls dont beg

thorn frigate
#

i hate money hungry devs

vernal timber
#

@thorn frigate das wat broke peopel say ngl

thorn frigate
#

u can make a good game and earn money at the same time

silver verge
#

fuck it, slot machine

vernal timber
thick sapphire
thorn frigate
#

also atleast im not pretending to own a game i dont

#

💀💀

thick sapphire
vernal timber
#

@thorn frigate i have a job application for you

thorn frigate
#

ok

thick sapphire
#

bro is """hiring"""

vernal timber
#

for not taking the most obvious sarcasm ever you deserve to work as a trash collector

thorn frigate
#

it was a blatant lie

thick sapphire
#

if u pretend to own a game for sarcasm there is smth wrong with u

vernal timber
#

@thorn frigate why tf would i go hiring for berry avenue RP ???????????????

#

r u slow

thorn frigate
vernal timber
#

the owner is a girl

thick sapphire
silver verge
vernal timber
#

plus i literally have my profile in my connections r we being slow

vernal timber
#

even he gets it

thorn frigate
#

how tf am i supposed to know that + i aint going around stalking

silver verge
vernal timber
#

on god

thorn frigate
vernal timber
#

ur just stupid

#

@thorn frigate you'll make a little bit of money and turn ur entire fgame p2w

#

truist me

silver verge
#

this is the same thing

silver verge
thorn frigate
thick sapphire
silver verge
silver verge
thorn frigate
silver verge
#

sorry i have low reading comprehension

#

too busy optimizing my slot machine for children

thorn frigate
#

can see that

#

ur choice if u wanna make a living off of exploiting kids

thick sapphire
vernal timber
#

r u mad u not richy arctic

#

its ok i can give u a bit of handouts

#

i'm not exploiting kids they are cosnentualyl spending money on my game

silver verge
vernal timber
vernal timber
#

tsb was made w ith $10

thorn frigate
thick sapphire
silver verge
# thorn frigate 💀

i specialized in programming exclusively, can't model, do sound design, or interface well enough for a game

#

therefore, i need to outsource all of them

vernal timber
#

@silver verge hire people for %

silver verge
#

that costs Money

#

h-h-h-h-hell naw

vernal timber
#

@silver verge get a job or take the 17 dollars

static coral
sudden bramble
silver verge
silver verge
thick sapphire
silver verge
thick sapphire
vernal timber
#

j*b

static coral
silver verge
#

if you're making slop then sure go for the free shit

thorn frigate
#

also u can gather funds without making a cash grab 💀

silver verge
#

but your game will sound like every other one

thick sapphire
thick sapphire
silver verge
thick sapphire
silver verge
#

if you go to any front page game, they all have their own sounds

#

that's not hard to test

static coral
thick sapphire
silver verge
#

that's my point 😭

thorn frigate
#

most Roblox games are shit

static coral
#

i can guarantee you a lot of the sounds if not most of them are free, you can actually verify this by using dev console in game

silver verge
#

so idk what you're trying to tell me

thick sapphire
paper imp
vernal timber
#

do u want a j*b

silver verge
vernal timber
silver verge
#

you just need money to invest

vernal timber
#

i was a small creator nwo i'm a big creator

silver verge
#

which most roblox kids don't have

vernal timber
#

i was BROKE

#

i was flat BROKE

thick sapphire
#

what games made breakthrough? Minecraft = unique generation, Roblox = custom physics engine and free engine with all the features without fees with servers

#

I can go on and on

thick sapphire
vernal timber
#

@thick sapphire good joke buddy

thorn frigate
vernal timber
#

it's not making u any richer tho

thorn frigate
vernal timber
thorn frigate
paper imp
#

1.3M dollars?

silver verge
#

💔

paper imp
#

holy

thick sapphire
silver verge
#

1.3m usd and we're flexxing a devex screenshot of 7k usd

#

i smell LARPP

vernal timber
thick sapphire
#

or that currency from nigeria?

vernal timber
#

and also dats 13k usd

thorn frigate
#

notaiser if thats true u should consider putting some of those funds to use by seeing a therapist

silver verge
vernal timber
vernal timber
#

r u trying to defame me

thorn frigate
paper imp
silver verge
#

my fault guys 13k

thick sapphire
vernal timber
#

i'm reporting u for vencord

white pecan
#
  • hi guys i am new *
#

hello

static coral
thorn frigate
vernal timber
#

do u want a job

white pecan
thick sapphire
vernal timber
#

i have never used vencord in my life

thorn frigate
thick sapphire
silver verge
white pecan
vernal timber
paper imp
silver verge
thick sapphire
reef birch
vernal timber
#

alright my fans lets chill out here

reef birch
#

never heard of them

vernal timber
#

tf

reef birch
#

we have zero discord mutuals

thorn frigate
thick sapphire
white pecan
vernal timber
#

oh nah

reef birch
#

every single dev i work with has like 10 mutuals with me

vernal timber
#

who r they shiit

thorn frigate
#

cause hes quite difficult to talk to

vernal timber
#

@thorn frigate yes u would buddy

#

i'm rich u just can't understand dat

thick sapphire
paper imp
vernal timber
white pecan
vernal timber
lean ocean
white pecan
thick sapphire
reef birch
vernal timber
vernal timber
thorn frigate
thick sapphire
white pecan
reef birch
paper imp
#

i think @vernal timber is correct

thick sapphire
vernal timber
#

u just don't have them addede thats why we odn't have mutuals

reef birch
#

how do we not have mutuals

thick sapphire
vernal timber
#

BECAUSE UR NO ONE

#

i don't know how to break this to you

paper imp
vernal timber
#

yes i made 1.3m

reef birch
#

all devs have mutuals with me

thorn frigate
vernal timber
#

who wants a job

white pecan
#

@vernal timber bro can i have a job please

thick sapphire
reef birch
#

@red cliff come here

thorn frigate
vernal timber
#

@white pecan i'll send u the application soon

thick sapphire
lean ocean
#

give me 30 robux

vernal timber
thorn frigate
#

ur bragging a lil too much for someone with only 8k robux

#

the stoop down from 1.3m dollars to 8k robuxnis crazy

thick sapphire
paper imp
#

so im confused is he a millionaire or a thousandaire?

vernal timber
reef birch
#

8 dollars

thorn frigate
paper imp
#

.

vernal timber
#

@silver verge is officially employed

reef birch
#

@red cliff show the larper your cashouts

thick sapphire
paper imp
#

@vernal timber are you just straight up bragging about fake money?

thorn frigate
carmine gulch
vernal timber
reef birch
white pecan
vernal timber
thick sapphire
reef birch
carmine gulch
#

Who wants a job

reef birch
#

theres no gambling its just pay to win

thick sapphire
vernal timber
reef birch
vernal timber
#

i would quit talking if i was you

thick sapphire
white pecan
reef birch
white pecan
#

who can give me a job

vernal timber
#

zaydop calm down your job application is coming soldier

paper imp