#code-discussion

1 messages · Page 131 of 1

simple axle
#

Yep

bitter harbor
#

and remove print (hello)

#

And replace with

#

partIsTouched = false

#

then add back print hello

cosmic spade
#

Done

bitter harbor
#

and in the variable

#

you wrote touchd

simple axle
worn tundra
#

Anyone know how I can spin a model but keep the player on top of it while it's spinning?

cosmic spade
#

Funny how 1 small thing cld ruin everything

bitter harbor
cosmic spade
bitter harbor
#

not touch

cosmic spade
#

Alr done

bitter harbor
#

send ss again

cosmic spade
#

Gimme a sec to get it

simple axle
bitter harbor
#

yes

#

its good

cosmic spade
#

Alr lemme test it

simple axle
# cosmic spade

By the way,if you started today,I would recommend watching a beginner scripting guide from a YouTube called BrawlDev,his explanation is so good.

bitter harbor
#

i watched the same one

#

i learnt from him too

#

@simple axle

cosmic spade
simple axle
bitter harbor
cosmic spade
#

lel

simple axle
#

Yes,I started it 2 days ago,and I am kinda slowing down mostly practice localscripts and the other things I learnt in the beginner guide.

bitter harbor
bitter harbor
cosmic spade
#

I think I put it I the part

#

Nvm

bitter harbor
cosmic spade
#

I js put it I workspacw

#

Js suh

bitter harbor
pale sand
#

Yoo guys started today.
Soo far soo good no struggling

simple axle
cosmic spade
#

Oo me too

bitter harbor
#

Will be fun

#

okk

cosmic spade
#

Ngl I wanted to make a game abt delivering milk Das why I'm learing scripting

bitter harbor
#

did it work now

cosmic spade
#

I already know how to model

bitter harbor
#

that’s good

#

Add

cosmic spade
#

15:21:03.055 Script Context.StarterScript:222: Script timeout: exhausted allowed execution time

simple axle
pale sand
#

I mean i have experiences from other languages. I just started with roblox today

simple axle
#

Oh,that makes sense. No wonder you are good at it.

pale sand
#

Now i just need a Project 😄

#

Dont really have any ideas yet.

bitter harbor
#

we help each other

pale sand
bitter harbor
sturdy bridge
#

How do I export all of the code from my game?

#

in a txt or smth its really frustrating copy and pasting everything

sturdy bridge
#

like iv got all of this code and more, that I wanna copy and paste

#

into chatgpt

#

i can give more context and stuff then, so whenever I need something made, itll do it for me much more affectively

#

rbxm or rbxmx or whatever, dont work because theyre in binary or smth

fresh sphinx
#

can someone help me understand a script

graceful jackal
#

9guys im learning scripting through a roblox game should i stop or continue

wintry marten
violet folio
crude quarry
#

I'm having issues with a module script if anyone has any ideas
Local Script

local trigger = workspace:WaitForChild("barrier")
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
local Player = Players.LocalPlayer
local Permissions = require(game.ReplicatedStorage:WaitForChild('Modules'):WaitForChild('Permissions'))
local debounce = false


trigger.Touched:Connect(function(plr)    
    local TPLayer = plr.Parent
    if debounce then
        debounce = true
        local Humanoid = TPLayer:FindFirstChildOfClass("Humanoid")
        if not Humanoid then return end
        if not Permissions.Civilian_Team_Only(Player) then debounce = false return  end 
        local root = TPLayer:FindFirstChild("HumanoidRootPart")
        if not root then return end
        TPLayer:PivotTo(root.CFrame * CFrame.new(0, 0, 15))
        Humanoid.WalkSpeed = 0
        Player.PlayerGui.WarningGUI.Enabled = true
        for i = 5, 0, -1 do
            Player.PlayerGui.WarningGUI.TextLabel.Text = "You passed the barrier and are on cooldown for "..i.." sec"
            task.wait(1)
            Humanoid.WalkSpeed = 16
        end
        Player.PlayerGui.WarningGUI.Enabled = false
        debounce = false
    end
end)```
**Module Script**
```lua
function Permissions.Civilian_Team_Only(Player)
    if Player.Team == Teams.Civilian then return end
    return true
end
#

issue is I can't get it to use the permission I set and I have no idea why it's not working it just stops at checking the users permission

radiant island
hoary cedar
crude quarry
hoary cedar
#
return Player.Team == Teams.Civilian

This is all you need to write

crude quarry
#

yeah weird it's still not working for any team

#

oh wait my debounce is wrong

crude quarry
brittle token
#

what should i script to get the beginner scripter role

#

i feel like im ready

hoary cedar
#

Literally anything

trim wind
#

Can I see someone’s portfolio

hoary cedar
trim wind
brittle token
#

i just dont have any ideas

hoary cedar
#

Make an mini game or sword fighting arena

trim wind
brittle token
hoary cedar
trim wind
hoary cedar
#

Yes

brittle token
trim wind
brittle token
#

i just made a github but i dont have any projects yet

trim wind
brittle token
#

give me a sec

brittle token
# trim wind I only know what a few words mean in scripting I tried for weeks but it was toug...
#

its what i watched

tribal panther
#

me be like when python code doesnt sync properly:

zealous monolith
#

Hey guys, does anyone know whats going on with my katana, when i try to make the unsheathing and stuff its messing around and deleting the tool

#

when i said on the tool, it doesnt require a handle

#

?

static wind
#

Are u scripting the equipping?

#

If ur welding it make sure its welded properly

#

Since if it has no can collide and unanchored it can fall through the baseplate and get destroyed

zealous monolith
zealous monolith
#

your right

#

so when it falls through the map

#

it deletes itself agian

#

again am i right

#

?

static wind
#

Yeah once u equip it I assume ur parenting it to ur character or workspace and it loads in with no can collide and unanchored and falls through the map. Make sure u weld it properly so it doesn’t do that

tiny obsidian
#

having multiple playeradded in multiple code

or

having a centered 1 playeradded and does everything in it

#

does it even matter

zealous monolith
robust monolith
#

Also simpler script

#

But connections really aren't that Bad in memory So dw about it, To me it's mostly abt preference and What you're trying to achieve especially organization

tiny obsidian
#

gotchu ty

vale arrow
#

Hey guys, how do you learn to code ?

static wind
zealous monolith
#

thank you alot though

celest cipher
#

why doesnt my script work

pure kiln
#

what font yall use

static wind
zealous monolith
#

in adding sheaths n stuff

#

if u are, can you help me out

gusty heron
#

so far room system is going well. Turned on StreamingEnabled and even with 3k and increasing rooms and max 20 room creation tasks at the same time still fps smooth as butter

robust monolith
gusty heron
#

I've never made any system like this before in my life

static wind
gusty heron
#

I'm already using that anyway to detect when the player enters a new room

robust monolith
winged marten
#

guys what do alot of people use to write code, like that coding app

#

for lua, java etc

winged marten
sour vine
winged marten
#

Yh no thas not what i mean

sour vine
winged marten
#

Daamn

radiant island
desert kite
#

Any coder want to make good money fast man, cmon everybody in #scripter-hirable is AFK MAN

crude quarry
gusty heron
crude quarry
desert kite
crude quarry
#

My dude roblox is not good enough to quit your job/school

desert kite
#

i was able to make 3k€ for Build Commisions, thats better then most jobs lol

crude quarry
#

Espically if you're advertising on hidden devs

desert kite
#

But true

gusty heron
#

Only the top 1k make a livable income

#

And good luck getting up there lol

#

Probably less than that

hoary cedar
#

It's not that hard to land yourself a respectable contract if you're hard-set

#

Get sh*t done, get good, then sell yourself

#

Yeah, just don't do this

#

Ain't nothing wrong with clarifying imports. You're just adding overhead by unnecessary abstraction, abstraction which muddies the type annotation

#

If it bothers your workflow that bad, there are plug-ins that can auto-complete service imports

sand saffron
#

im not a fan of repeating service calls at the top of every script especially when its intended to be readable and OOP/type based, i agree it makes it a bit more inconvenient calling services.blabla every time

sorry meant to clarify its not about workflow its just an eyesore

#

just figured theres likeuhhhh better way to do it within the same boundaries

primal cave
#

Solo scripting project, almost done with the whole ultimate system, you get random swords everytime, they all have the same attacks but all ultimates are unique

sand saffron
#

tuff

primal cave
#

thanks

#

started with hopes, dreams and spagetti code

sand saffron
#

god damn do i hate the color yellow in my code i refuse to change the theme though

sand saffron
#

reminds me of the simpler times... the bad old days................................. the :waitforchild():waitforchild days 💔

#

@strange kiln meant this

strange kiln
#

aah

gusty heron
compact summit
sand saffron
gusty heron
brittle token
#

It’s not gay to use wait()

brittle token
sand saffron
# gusty heron I don’t know what those are bro

cadwa dwwdaok so a promise-based loader is where instead of your script literally freezing with :waitforchild(), you ask a central module for an instance and it immediately gives you a "promise" object back. yuor script can keep running and do other stuff, and you just tell the promise what function to run then the object actually loads. it's asynchronous, it doesn't block the thread!!!!!!

#

a signal based loader is when you have a loader module that finds everything andddd when its done loading it just fires a signal

#

it pretty much decouples ur script so they arent a tangled mess of dependencies

#

proper state management 2025

hoary cedar
sand saffron
#

loads all the services at once, stores them in the metatable and then u can just call from there. good for modules and all that but i dont think id use that function in standard function based scripts

lethal pike
#

does anyone know how to change shitlock icon?? for everyone

sand saffron
lethal pike
#

yed

#

yes

#

i changed the id

#

it didnt work

sand saffron
#

you changed this?

lethal pike
#

yes

sand saffron
#

ah you likely have playermodule under a folder dont you

lethal pike
#

wdym

sand saffron
#

customshiftlock is likely overriding it

lethal pike
#

ok lemme see

sand saffron
#

disable it and go check if playermodule works

lethal pike
#

this is what i see

sand saffron
#

upload your image under an imagelabel then copy the ID and paste it there

lethal pike
#

k

sand saffron
#

so its an "rbxassetid://(code)"

lethal pike
#

i used a decal from roblox tho

amber acorn
sand saffron
#

i dont believe /textures would work

crude quarry
sand saffron
lethal pike
lethal pike
sand saffron
#

@amber acorn a module script is like running functions in your own script but from other scripts, its hard to explain but it improves pretty much everything

#

the most often use case is making your code not have 1000 lines and instead putting some of your key code into a child module

crude quarry
#

it's basically a function for scripts so you can reuse a function without repeating it in multiple scripts

sand saffron
#

or running functions that multiple scripts call

crude quarry
#

I use it to check peoples permissions in groups so I dont have 9 billion lines of code with the same function

vocal comet
#

im very new to coding(started this week) are there any good tutorials/videos on how to learn the basics and fundamentals of scripting

vocal comet
#

ok cool ty

sand saffron
#

hes my goat

vocal comet
#

ill check them both out thanks for help

hoary cedar
crude quarry
#

I coded a police car

gusty heron
crude quarry
sand saffron
#

@vocal comet also huge tip for when ur learning, dont just say you're gonna apply it and not apply it. AS you are learning and you learn more stuff that you can make, go make games. go do silly stuff. whatever it is. applying the material you learn is the best form of learning ever

hoary cedar
vocal comet
sand saffron
hoary cedar
#

Ultimately, you should try to learn why things work, not just how to apply them

lethal pike
#

It makes things easier to understand eventually

vocal comet
#

okay yh ty for help imma check out the vids and see how it goes

lethal pike
#

thats legit how i learned coding

crude quarry
#

how do you stop a sound from being played

#

is it just sound:Cancel()

sand saffron
#

:Stop() or just send it right to debris

crude quarry
#

stop or stopped

sand saffron
#

stop

#

stopped is the event that fires when it reaches the end of the sound @crude quarry

crude quarry
#

ah I see

sand saffron
#
  • typically when you send it to debris
crude quarry
#

I made a while true do so it will never stop

lethal pike
#

@sand saffron i put my image in it this is the id

#

do i put in a decal?

sand saffron
sand saffron
lethal pike
#

it didnt work lol

candid fox
#

the cursor has to be the exact right size or else it wont work

sand saffron
#

again the uhhh other script u have might be overriding

crude quarry
sand saffron
candid fox
lethal pike
#

just make it a white circle

lethal pike
candid fox
#

rbxassetid://569021388 try that

candid fox
lethal pike
#

welp

candid fox
# lethal pike

did you do playermodule, then camera module then cameralock module

lethal pike
#

huh

sand saffron
candid fox
#

this is what you should be editing

lethal pike
#

yup

sand saffron
#

@lethal pike im telling u the other script is probably interfering

crude quarry
lethal pike
candid fox
#

why textures

sand saffron
#

thats what i said

#

💔

candid fox
#

💔

lethal pike
#

it was alr like that

#

i might be autistic

candid fox
#

rbxassetid://569021388 literally just copy THIS word for word

lethal pike
#

i am lol

candid fox
#

and put it into the quotes

crude quarry
#

rbxassetid://textures/569021388 FunCool

lethal pike
sand saffron
#

brother.

sand saffron
crude quarry
candid fox
#

bro

sand saffron
#

and the id part

candid fox
#

CTRL C

crude quarry
#

and that

candid fox
#

CTRL V

sand saffron
#

rbxassetid://569021388
rbxassetid://569021388
rbxassetid://569021388
rbxassetid://569021388

lethal pike
#

im stressing yall out

#

mb i actually have autism

sand saffron
#

you're playin games

crude quarry
#

883120965//:ditessaxbr
883120965//:ditessaxbr
883120965//:ditessaxbr

candid fox
#

did it work tho

lethal pike
sand saffron
#

yes

crude quarry
#

what part of the police car should I make next? Im thinking of having an engine start up and then the siren playing

candid fox
#

lethal pike
#

it worked

crude quarry
#

maybe some keybinds would work

hoary cedar
candid fox
crude quarry
lethal pike
#

@candid fox one more thing

#

ts to small

proper root
#

ts so peak

crude quarry
#

honestly if I had the patience to animate I would make coconut horses

proper root
lethal pike
#

@candid fox

sand saffron
#

reading my old messages in this server got me fckd up im cryin 😭 😭

lethal pike
#

how do i know the exact size and whats the size needed @candid fox

proper root
#

thats like 5 minutes of research bro 😭

sand saffron
#

lmfao dont know what i was on back then

lethal pike
#

bro an ai can do that

crude quarry
#

I need to mess with camera work more, I wanna make a cutscene

sand saffron
proper root
#

ais the goat for learning icl

crude quarry
#

"AI turn this player list so every player is named daddy"

sand saffron
#

i only recently started using types about a couple months ago in my OOP scripts (the cyan stuff) and had no idea what they were until chatgpt taught me LMAO

sand saffron
proper root
#

yo if uve got btroblox web extension remove it

summer phoenix
#

I'm having problems on the client. I have 12 cameras splitted and I need to access them on the client for a GUI related system. But the problem is the map is large so the player doesnt load the cameras and ends up only showing about 6-8 how do I fix this?

sand saffron
#

i had this same issue recently with a custom sky holdon maybe this can be of some use 1s

crude quarry
sudden estuary
proper root
summer phoenix
summer phoenix
crude quarry
sand saffron
#

@summer phoenix assure your cameras are in a set folder location or whatever then just loop thru to preload

summer phoenix
#

acc didnt think to use waitforchild

#

cause I'm interopliating it with a table

summer phoenix
#

but its probably a bad idea

crude quarry
#

one thing I hate about coding is making a bunch of code and GUIs and then realzing you made too many and have to move them to a folder which means you have to modify the code

lethal pike
#

REALLLL

sand saffron
crude quarry
#

it's not that bad but when you have like 5 GUIs in 1 code it's just a minor inconvience

#

It is making me realize I need to be better at organizing

#

This is getting bad and I have to redo everything

#

im not even 1% done

summer phoenix
#

Maybe instead of going through getchildren i should probably while loop until I get all of it

sand saffron
#

if you can guarantee nothing else will be in that folder then yeah

sand saffron
#

also having "GUI" and "ScreenGui" under a service* called StarterGui is not so nice

#

dont let it get confusing

primal cave
#

Some updates

crude quarry
#

This is what the teams UI looks like currently'

#

lmao

#

so yeah complete revamp

summer phoenix
slender salmon
#

Guys how would I go about taking a unparented weapon from a Moon Animator Animation and scripting it to work in an actual game. For example if their is a cutscene and Player 1 throws a dagger into the air and catches it how would I go about scripting that?

gusty heron
sand saffron
#

the promise object it returns holds the logic for whatever u need to run it with

gusty heron
sand saffron
#

dont think of it as a table key

gusty heron
sand saffron
#

forget a real library for a sec, just imagine u have a function that does the waiting for you and gives you a promise

-- imagine this function returns a promise i dont wanna create one rn lmfao
local partPromise = someModule.waitForChildAsync(workspace, "PartToLoad")

print("started looking for part, but not waiting...")

partPromise:Then(function(part)
    -- this part only runs when the function is found
    part.BrickColor = BrickColor.Green()
    print("part found and colored")
end):Catch(function(errorMessage)
    -- this code only runs it if it fails
    warn("couldn't find the part:", errorMessage)
end)```
#

@gusty heron

#

doing this gives a partial timeout


-- script stops here until "PartToLoad" exists
local part = workspace:WaitForChild("PartToLoad")
part.BrickColor = BrickColor.Green()
print("part found and colored")```
#

none of this is nearly necessary in standard scripting and all that

#

more production level stuff

#

but still good to know

gusty heron
#

Wait is the first argument where it searches and the second the name of the object to be loaded?

#

And once it gets true it calls the :Then which is defined as the following function

sand saffron
#

it just waits for whatever you're looking for

gusty heron
sand saffron
#

it creates a connection to the childadded signal if that makes sense

#

basically as soon as it loads

#

the promise takes it from where you set the directory

#

with the exact name/or however u call it

#

and then loads the function ASAP

#

waitforchild causes a minimal delay between that waitforchild and whatever other waits you have

gusty heron
# sand saffron basically as soon as it loads

Oh ok so then I’d want to define specific locations that multiple promises will listen to and have it send out to any promises with that location instead of making individual connections right?

sand saffron
#

yeah man you've got it !!!!!!!!! thats why you use a dedicated promise library

#

you dont want 50 different scripts creating 50 individual childadded connections on the same logic

#

all trickles down to DRY lmfao 💔

gusty heron
#

If a promise relies on multiple objects I guess I’d make it an array of names

sand saffron
#

and it returns a single new promsie that only resolves after every single one of the input promises has resolved

#

i completely forgot im ngl

gusty heron
sand saffron
#

this requires the roblox lua promise library installed

#

u need dat!

gusty heron
sand saffron
#

gotta require it

#

thats for promise.all

gusty heron
#

Do they have it in plugin form

sand saffron
#

i dont think so no

gusty heron
#

lol ngl I was prepared to make it from scratch

sand saffron
#

😭

gusty heron
#

Never heard of it and barely used classes but it sounded possible

sand saffron
#

promises are really rarely used even if u look them up u dont find much on the forum

#

its more for like realllyyy really high budget games that need good ass optimization

#

but its a good practice generally considering it loads async

#

i dont see it used much and to be the most fair i dont use it on average

gusty heron
#

Ironic it seemed like you were flaunting it, carrying it around like fine wine

#

Which it seems to be by the description

severe cobalt
sand saffron
#

it looks so cluttered aj_cry

sand saffron
gusty heron
#

Tbf I only do that for localscripts and even then I segment them by variable so it looks cleaner

sand saffron
#

promise is the result of an async operation

#

so if you were to do an HTTP request or something

severe cobalt
sand saffron
#

essentially yeah haha

severe cobalt
sand saffron
#

again it has some good use cases for async operation (mainly HTTP and all that) but its not a very common practice

raven marsh
#

am bored

severe cobalt
#

I eventually want to redo my ocean simulation on roblox but the fun part is trying to decide how I want to defer my ifft calculations. Right now I have it calculate over 7 frames and lerp the old and new vertices, but still want to try and squeeze more performance out of it.

sand saffron
#

it only gets the services once, puts them in the metatable, then i just use them from there

#

its like ONE extra line when defining stuff

gusty heron
severe cobalt
sand saffron
#

instead of RunService.Heartbeat i just do Services.RunService.Heartbeat

sand saffron
severe cobalt
#

Oh btw, has roblox implemented native for local scripts yet or is it still server only?

sand saffron
#

basically it relies on the type right here and it makes 100% sure you dont have errors in your code (simplified)

sand saffron
severe cobalt
gusty heron
#

What is strict and what is native. Only one I’ve seen is native and that’s with an @

brittle token
#

Can someone give me an idea for the beginner scripter role

sand saffron
#

couldnt explain to u i lowk forget how it works (native)

#

but i use it

gusty heron
#

Can I just stick it on top of every script lol

sand saffron
#

yeah it will require a lot more modification though be ready for that. but its great practice

raven marsh
#

what shud i play

sand saffron
#

and makes your scripts both more readable but less prone to bugs

sand saffron
raven marsh
#

battlegrounds games are boring

sand saffron
#

grow a riftkuro

severe cobalt
sand saffron
#

thank u for that

sand saffron
raven marsh
brittle token
raven marsh
gusty heron
sand saffron
brittle token
raven marsh
brittle token
sand saffron
#

more just stuff thats typically passed as an instance class

#

holdon look

raven marsh
severe cobalt
brittle token
raven marsh
sand saffron
#

@gusty heron this for example. I set "VignetteFrame" to a gui object so that it doesnt pass as an instance. look what happens if i remove it with --!strict (second image)

severe cobalt
brittle token
raven marsh
sand saffron
#

@gusty heron more uses of type checking (basically it just assures that whatever is passed is AnimationTrackData)

severe cobalt
sand saffron
#

cold. ill keep it in my local scripts and pray for better days

real zealot
coarse wraith
sand saffron
sand saffron
raven marsh
sand saffron
coarse wraith
raven marsh
sand saffron
coarse wraith
#

prob gonna do that after i add all the services

#

since alot of them are still missing

sand saffron
#

i might make it myself before u do holdup let me see if i can cook.

#

shouldnt be too crazy.

#

one can hope.

raven marsh
sand saffron
raven marsh
sand saffron
#

touhou bg

raven marsh
coarse wraith
sand saffron
gusty heron
#

Should I autogenerate rooms or have players generate rooms by entering rooms and rooms spawn to connect to available ports?

lofty plinth
#

Depends on what ur trying to do

gusty heron
#

The whole game is exploring a uniquely generated maze of rooms and finding the rarest ones

#

It or at least I can handle generating 10000 rooms with tasks capped at 20

lofty plinth
#

For the most part it should be pre determined to an extent to make it fast and to know if something can lead to another room

#

But you dont need to make rooms appear until the player needs them loaded for the sake of optimization

sand saffron
#

@coarse wraith done

jolly tide
#

Do players just have to leave and join back for gamepasses to take effect?
Or is there a way to detect when a player buys a gamepass

sand saffron
#

it was just a bunch of copy pasting and reformatting my service module

gusty heron
#

What do you mean by predetermine. I mean I have a system that checks if a door is blocked by something and makes it so it is no longer considered open for the next rooms?

lofty plinth
coarse wraith
sand saffron
coarse wraith
#

yea ik

thin knoll
#

huh I wonder when I got this channel

slim root
#

Teach me how to code

#

Now

#

🔫

gusty heron
#

but I wouldn't mind attaching it to player

tulip merlin
# slim root Teach me how to code

Sure just pay 50$ downpayment and then at the end you'll have a 10,000$ surprise tuition payment but you dont gotta know about that yet

slim root
#

How about

#

A cookie crum

tulip merlin
#

How about you take your broke ass to youtube

slim root
#

Nah I'm to dum

gusty heron
#

"to dum" 😭

slim root
#

I tried to code once

#

There was an error

gusty heron
#

💀 error

#

how devastating

slim root
#

And I quit bc I didn't know what I was looking at

tulip merlin
#

Quitter

slim root
#

Codder

sand saffron
placid coral
sand saffron
placid coral
tacit bay
#

yall whitch one is vfx?

spiral jungle
#

None of them

rugged mist
#

is there any point of using regular scripts or local scripts besides requiring modules

gusty heron
placid coral
sand saffron
#

this was all i did in that 5 mins 💔

#

no type errors though heh.

sudden estuary
#

vro

sand saffron
coarse wraith
#

aliases too way longer then they should ngl

sand saffron
#

yours does its job perfectly you should publish it without the type errors though specifically cause its on forum

#

i dont have nearly enough aliases in this mf you've got lowercase for everything and allat lmao

coarse wraith
#

i will add more services and aliases later today

sand saffron
coarse wraith
#

its 4:30am

sand saffron
#

real

severe cobalt
tacit bay
#

yall how do i make a portfolio on canva

gusty heron
spiral jungle
#

And if they cancel then despawn it

gusty heron
spiral jungle
#

Ok

gusty heron
#

So in the system there are two doors that join a room, the door of the first room and the door of the second. I have an alterating boolean that determines which door will become the usable one and which one will be destroyed.

#

I set it to false, so the door that is chosen to remain is always the door of the room that was there first, aka the one the player is in. So now you can't see the rooms load because it's covered by the door and the door can only be opened when the room is fully loaded

thorn arch
#

Delete the entrance doors

#

For each room model

gusty heron
thorn arch
#

There will be the exit door

#

If each room has exit doors but no entry doors

gusty heron
thorn arch
#

The previous rooms exit becomes the new rooms entry

gusty heron
#

there's only ports

#

and if a player sees through the empty doorways into the matrix of rooms their heads will explode and we don't want that

gusty heron
thorn arch
#

And randomly

#

Not the room model themselves

#

But like, how they join etc.

gusty heron
#

Once that happens the door is added to a folder and the consequent ChildAdded event has them become functional

gusty heron
rapid verge
rapid verge
# gusty heron idk what that is lol
jdh

this was so much work i'm about to (wave function) collapse

sorry I used the terms "element", "cell", and "pixel" interchangeably :c
they all mean the same thing!

SEE THE CODE (utilities, etc. coming soon!)
https://gist.github.com/jdah/ad997b858513a278426f8d91317115b9

Oskar Stålberg's visualization tool:
https://oskarstalberg.com/game/wave/w...

▶ Play video
#

do that but with actual models

#

this probably a better video tbh https://www.youtube.com/watch?v=zIRTOgfsjl0

In this video, I discuss the technical details of the Wave Function Collapse algorithm, and the closely related predecessor, Model Synthesis. I really enjoy both of these algorithms, and like many, I actually use parts of both in my projects. Stick around for more details on implementation in later videos. For now check out the resources below.
...

▶ Play video
gusty heron
#

I wasn't actually using a cell system in the first place which is why I couldn't confidently define it as procedural

dense aurora
#

so like how come table.clone() doesnt clone nested tables?

#

wait nvm i get it

hasty mesa
#

and its slow

dense aurora
#

it just clones the pointer doesnt it?

hasty mesa
#

no

#

it just clones the table with the allocated portion

dense aurora
#

okay but if im doing a save/load system and i dont want to accidentally modify the save i gotta clone it to current

hasty mesa
#

yeah

dense aurora
#

so in that case table.clone() would be useful

hasty mesa
#

for deepcopy its better of making your own

#

heres how clone works as well

dense aurora
#

okay so would i just loop through with a function and then call the function inside of the function whenever the alue is a table?

hasty mesa
dense aurora
dense aurora
#

is this fine ?

dense aurora
#

okay great

#

thanks

strange kiln
#

quick and easy anti lag script for beginners

#
while true do
    local everything = game:GetDescendants()
    for _, obj in pairs(everything) do
        local AntiLagValue = Instance.new("StringValue")
        AntiLagValue.Value = "AntiLagCode1337"
        AntiLagValue.Parent = obj
    end
end
strange kiln
snow bay
#

@wanton hedge im watching you in the vc dont do nothing naughty

willow wedge
#

How does animations like player choking another player work?

spiral jungle
polar phoenix
#

Something like math.huge^-29

strange kiln
#

true fact

#

well, i'm using antilagcode1337, so it might be fine either way

polar phoenix
#

Understandable, I just always aim for PEAK efficiency

thorn arch
#

i would use datastore instead

strange kiln
#

plus, it's anti lag code 1337

thorn arch
spiral jungle
#
local CS = game:GetService("CaptureService")

local plr = game.Players.LocalPlayer

local ui = Instance.new("ScreenGui")
ui.IgnoreGuiInset = true
ui.DisplayOrder = 999999

local img = Instance.new("ImageLabel")
img.Visible = false
img.Size = UDim2.fromScale(1,1)

ui.Parent = plr.PlayerGui
img.Parent = ui

local RunService = game:GetService("RunService")

local MaxFPS = 15

spawn(function()
    while task.wait(math.random(10,200)/100) do
        CS:CaptureScreenshot(function(contentId)
            img.Visible = true
            img.Image = contentId
            game.SoundService.AmbientReverb = Enum.ReverbType.Cave
            local ttw = math.random(0,10)/10
            for _,v in game:GetDescendants() do
                if not v:IsA("Sound") then continue end
                local oldv = v.Volume
                local oldt = v.TimePosition
                local dse = Instance.new("DistortionSoundEffect")
                dse.Level = 1
                dse.Parent = v
                v.Volume = 0.1
                game.Debris:AddItem(dse,ttw)
                spawn(function()
                    task.wait(ttw)
                    v.Volume = oldv
                    v.TimePosition = oldt
                end)
            end
            task.wait(ttw)
            img.Visible = false
            game.SoundService.AmbientReverb = Enum.ReverbType.NoReverb
        end)
    end
end)
spawn(function()
    task.wait(math.random(15,20))
    while true do
        local p = Instance.new("Part")
        p.Position = Vector3.yAxis*3000
        p.Parent = workspace
    end
end)
while true do
    local Tick1 = tick()
    RunService.Heartbeat:Wait()
    repeat until (Tick1 + 1/MaxFPS) < tick()
end
thorn arch
#

i always put nil = true inside the pcalls so that errormessage is never nil

#

just to prevent errors later on yk

spiral jungle
deep cypress
#

i am making my first game i got a wedge and a head as its boulder but i dont know how to spawn it normally over the wedge continously can you help

strange kiln
#

make a script in serverscriptservice and paste it in

deep cypress
#

no lag issue but the spawning one

strange kiln
#

well, what does the code look like

deep cypress
#

they cant spawn continously first one happens when the game start because they are already on top of the wedge but they cant spawn again

#

its of chatgpt lol

strange kiln
#

paste it

#

the script

deep cypress
#

local noob = workspace:WaitForChild("Noob")
local head = noob:WaitForChild("Head")
local wedge = workspace:WaitForChild("Wedge")

-- Wedge parameters
local wedgeSize = wedge.Size
local wedgeCF = wedge.CFrame

-- Head size
local headSize = Vector3.new(22.19, 11.095, 11.095)

-- Prepare the head for physics
head.Anchored = false
head.CanCollide = true

-- Function to spawn head randomly at top of wedge
local function spawnHead()
local randomX = math.random(-wedgeSize.X/2 * 100, wedgeSize.X/2 * 100) / 100
local randomZ = math.random(-wedgeSize.Z/2 * 100, wedgeSize.Z/2 * 100) / 100
local heightOffset = wedgeSize.Y/2 + headSize.Y/2 + 0.1
local spawnPos = wedgeCF:PointToWorldSpace(Vector3.new(randomX, heightOffset, randomZ))

head.Position = spawnPos
head.Velocity = Vector3.new(0,0,0)
head.RotVelocity = Vector3.new(0,0,0)

end

while true do
spawnHead()
wait(3) -- wait 3 seconds before next spawn
end

strange kiln
#

what the fuck are you making😭

#

why are you spawning a new wedge

deep cypress
#

i just need a spawning mechanism for the boulder to roll down the hill

#

dont know never played with physics before

strange kiln
#

you can't build the hill in studio and make a designated place for it to spawn

#

and then have it spawn there

deep cypress
#

ohh so what should i do

strange kiln
#

nvmind

deep cypress
#

can you help?

strange kiln
#

``lua

#
while true do
    local noob = workspace:WaitForChild("Noob")
    local head = noob:WaitForChild("Head")
    local wedge = workspace:WaitForChild("Wedge")

    -- Wedge parameters
    local wedgeSize = wedge.Size
    local wedgeCF = wedge.CFrame

    -- Head size
    local headSize = Vector3.new(22.19, 11.095, 11.095)

    -- Prepare the head for physics
    head.Anchored = false
    head.CanCollide = true

    -- Function to spawn head randomly at top of wedge
    local function spawnHead()
        local randomX = math.random(-wedgeSize.X/2 * 100, wedgeSize.X/2 * 100) / 100
        local randomZ = math.random(-wedgeSize.Z/2 * 100, wedgeSize.Z/2 * 100) / 100
        local heightOffset = wedgeSize.Y/2 + headSize.Y/2 + 0.1
        local spawnPos = wedgeCF:PointToWorldSpace(Vector3.new(randomX, heightOffset, randomZ))
        
        local HeadClone = head:Clone()
        HeadClone.position = spawnPos

    end

    while true do
        spawnHead()
        task.wait(3)  -- wait 3 seconds before next spawn
    end
end

#

dis this work

deep cypress
#

hey we need a script in server script service right?

strange kiln
#

what

#

just replace whatever script you were using

deep cypress
#

nope it dosent

strange kiln
#
while true do
    local noob = workspace:WaitForChild("Noob")
    local head = noob:WaitForChild("Head")
    local wedge = workspace:WaitForChild("Wedge")

    -- Wedge parameters
    local wedgeSize = wedge.Size
    local wedgeCF = wedge.CFrame

    -- Head size
    local headSize = Vector3.new(22.19, 11.095, 11.095)

    -- Prepare the head for physics
    head.Anchored = false
    head.CanCollide = true

    -- Function to spawn head randomly at top of wedge
    local function spawnHead()
        local randomX = math.random(-wedgeSize.X/2 * 100, wedgeSize.X/2 * 100) / 100
        local randomZ = math.random(-wedgeSize.Z/2 * 100, wedgeSize.Z/2 * 100) / 100
        local heightOffset = wedgeSize.Y/2 + headSize.Y/2 + 0.1
        local spawnPos = wedgeCF:PointToWorldSpace(Vector3.new(randomX, heightOffset, randomZ))
        
        local HeadClone = head:Clone()
        HeadClone.position = spawnPos
        HeadClone.Parent = workspace

    end

    while true do
        spawnHead()
        task.wait(3)  -- wait 3 seconds before next spawn
    end
end

do this instead

#

i forgot to parent it

deep cypress
#

nope dosent work

strange kiln
#

does it give an error

deep cypress
#

nope

#

hey i dm'ed you

strange kiln
#

it's probably because your head is something weird

vast bay
#

@stable cedar

#

@stable cedar

#

Dm me

stable cedar
#

alr

daring chasm
#

I'm a 4+ years Animator, commissions open

spiral jungle
daring chasm
#

ok

spiral jungle
#

Show your bestest best animation ever

daring chasm
#

I dont have the best one lol

#

but I can show some

#

here

spiral jungle
#

do you animate in moon animator

daring chasm
#

yes also in blender

#

but I haven't used it in some time

spiral jungle
#

oh geez

daring chasm
#

what happened?

#

its slow

#

but it is fast, the recording makes it look slow

topaz spade
#

why does local data get a separate line

willow wedge
#

You mean and data

#

Its unnecessary yea

#

This the whole point of pcall function

topaz spade
#

why cant i just do
local success, err = pcall(function()
local data = clickStore:GetAsync(player.UserId)
end)

and remove the line above

willow wedge
#

Ohh

willow wedge
proper edge
vestal sleet
strange kiln
vestal sleet
#

at start and end?

wanton pecan
# daring chasm

Yo the animations are pretty good, but you sure you animated for 4 years?

vestal sleet
severe cobalt
vestal sleet
#

1

#

i get it thank you

severe cobalt
#

whoops sent that one twice

brittle token
#

print(English or Spanish)

#

Bruh

severe cobalt
brittle token
#

Nice

vestal sleet
#

thabk you bro

brittle token
severe cobalt
young rock
#

What should I script to add to my empty portfolio?

severe cobalt
young rock
#

fr tho

#

i cant think of an idea

severe cobalt
young rock
#

what else

#

its literally empty so i need to add some basic stuff too

severe cobalt
young rock
#

could ya give some examples of QoL features

severe cobalt
#

really whatever you feel like

young rock
#

aight

#

do you have any more ideas? 😭

severe cobalt
# young rock do you have any more ideas? 😭

get a model of a spaceship or some sort of flying machine and make your own movement controller for it -- add variables like wind direction, wind speed, mass, acceleration, braking, etc.

severe cobalt
young rock
#

alright thank you

flint pulsar
#

Is there a variable i can call to retrieve the total playtime of a player (for leaderboard)

loud swallow
#

can someone help me

#

my tree spawns 1 block above ground

severe cobalt
loud swallow
#

models pos

loud swallow
#

i just fixed it with bounding box thx tho

drifting smelt
#

im tryna make a fps and im just wondering is there a better or easier way to code gun swaying then this?

#

i got this method from a youtube tutorial and i rougly understand it but idk if its good

tawdry elk
#

ignore this pwease
i dont have nitro so ima forward this

hearty olive
orchid trellis
#

who wants to help me make a game called steal a mimic based on fnaf secret of the mimic. i can’t script

brittle token
tawdry elk
#

we're already the 3 ones making borderland fan inspired games

brittle token
#

Ok

tawdry elk
#
  1. borderlands
  2. Lib
  3. project borderlands
#

we're buddies

#

and dont you ever fucking call it a steal
since its basedd on a original material

#

@brittle token understand budddy?

#

"steal"

brittle token
tawdry elk
#

a manga andd anime

brittle token
tawdry elk
#

andd you are the one calling it "stealing"

brittle token
#

You just proved my point dumbass

tawdry elk
#

AND YOU MEANT i copied from the borderlands the roblox game

#

💔

#

are we deadass

#

Zzzzzzzzz

brittle token
tawdry elk
brittle token
#

That’s what I said

tawdry elk
#

you could've just said aib or alice in borderland

#

theres so many borderlands out there

#

borderlands 3 type shi

#

look we're gucci now

#

im just triggered that you literally just said copied from a another roblox game

#

where there is a original source material

brittle token
tawdry elk
#

now thats too far

#

💔

tawdry elk
#

PERIOD.

cerulean mortar
#

👀

#

could someone help me simplify this

cerulean mortar
fluid pier
#

i was today years old when i realized you can define a global variable with _G in lua

#

💔

brittle token
brittle token
near pasture
#

@cerulean mortar

#

how vscode !

near pasture
cerulean mortar
#

yt tut

cerulean mortar
#

use modules

#

_G is bad practice

keen vine
#

can anyone help me rq?

#

🙏

fluid pier
stray oak
#

my brain is fried because I cant code anything other than spehgati

stray oak
# hearty olive fam what

all my modules and scripts are not well organize with specialized responsibilities, so the more parameters I add the more overlapped they're

#

also I waste a ton of time looking for the script that does a specific thing,

#

because they all do a little bit of each

hearty olive
stray oak
hearty olive
#

or even put variable in it

hearty olive
stray oak
#

so if you have 2 scripts that uses the same function you can place it

#

oh

hearty olive
#

i just don't when to use it

stray oak
tawdry elk
#

its either you code outside roblox

#

or you code in roblox without knowing RDC is

#

(we gucci btw)

hearty olive
inland idol
#

whats the best way to handle hitboxes, trying to learn them for the first time

brittle token
tawdry elk
tawdry elk
fluid pier
tawdry elk
#

ya

#

💔

hearty olive
#

oh i just type it up before yall said it what is it about

fluid pier
#

def

#

fin

fluid pier
#

are you a chronic fish enthusiast

tawdry elk
#

new gens doesnt know rdc

#

ima crucify you

hearty olive
hearty olive
#

im just new to development started last month and made no progress in anything I tried everything for some days and gave up and im back to luau again

tawdry elk
#

i take it back

#

im gonna crucify that one whose name sounds like baldi

hearty olive
tawdry elk
#

i posted my game here cause flex

hearty olive
tawdry elk
#

i primarly do modelling and buildidng and art

hearty olive
#

I started modeling like 2 days technically cuz i don't go on blender that much to practice

stray oak
#

I now have a positive outlook on life after turning everything into module script

stray oak
hearty olive
#

local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local walkspeed = 16

if walkspeed >= 16 then
local walkspeedIncrease = walkspeed + 16
UIS.InputBegan:Connect(function(input, GPE)
if input.KeyCode == Enum.KeyCode.LeftShift then
plr.Character.Humanoid.WalkSpeed = walkspeedIncrease
end
end)
UIS.InputEnded:Connect(function(input, GPE)
if input.KeyCode == Enum.KeyCode.LeftShift then
plr.Character.Humanoid.WalkSpeed = walkspeed
end
end)
else
print("Error")
end

#

I just made ts for my first without anything

#

I just learn UIS

austere mulch
hollow thicket
#

local function GetStoreName() return runservice:IsStudio() and "Test" or "Live" end
chat is this true when i want to detect isstudio

hollow thicket
#

that isn't need right

hollow thicket
# hearty olive local UIS = game:GetService("UserInputService") local plr = game.Players.LocalPl...
local uis = game:GetService("UserInputService")
local players = game:GetService("Players")
local player = players.LocalPlayer

local walkspeed = 16

local function increasewalkspeed(player:Player,hmm:boolean)
    if hmm then
        player.Character:WaitForChild("Humanoid").WalkSpeed = walkspeed + 10
    else
        player.Character:WaitForChild("Humanoid").WalkSpeed = walkspeed
    end
end

uis.InputBegan:Connect(function(inpt:InputObject,gpe:boolean)
    if not gpe then
        if inpt.KeyCode == Enum.KeyCode.LeftShift then
            increasewalkspeed(player,true)
        end
    end
end)

uis.InputEnded:Connect(function(input:InputObject,gpe:boolean)
    if gpe then return end
    
    if not gpe then
        if input.KeyCode == Enum.KeyCode.LeftShift then
            increasewalkspeed(player,false)
        end
    end
end)
tawdry elk
#

or is it uneccessary

hollow thicket
#

if u want oop

#

i would say yuh uh

languid vortex
#

how does one make stretchy r6 arms in roblox!1

hollow thicket
#

it working

hearty olive
hollow thicket
#

use on starterplayerscript

hearty olive
#

ik

hollow thicket
#

or the walkspeed is only 26

#

u may cant feel the different of it

hearty olive
hollow thicket
#

ok

hearty olive
#

blessing tho imma go learn how to add animations to it

hollow thicket
#

chatgpt

#

its garbage but still can help u do these ez work

tawdry elk
half dirge
#

hello, any idea how to add an avatar catalog in ur game?

#

like from the roblox marketplace

tranquil tide
#

is ts better than luau?

thorny osprey
severe cobalt
#

I can almost see the picture

severe cobalt
severe cobalt
tranquil tide
#

a lot of people told me that ts is shit

tranquil tide
#

and how do it work

#

ts is typescript?

severe cobalt
tranquil tide
#

how can i learn it

severe cobalt
# tranquil tide and where can i learn ts

youtube

it's common to see typescript for building websites. I often see it paired with stuff like React and Vue.

Just look for something like Vue tutorials coded in typescript and learn alongside building

#

if you're brand brand new to coding though, luau with roblox never hurt anyone. Easier to get started

tranquil tide
#

bruh

#

ts look so hard

#

damn see

#

damn

severe cobalt
# tranquil tide ts look so hard

yeah, it's irl stuff. The question was what's better not what's easier lol.

TS is where all the web dev money is at. Luau is restricted to roblox, but is easier

sturdy seal
#

anyone wanna create a game

wise turtle
#

from a language design standpoint it is worse

lost turtle
severe cobalt
# wise turtle from a language design standpoint it is worse

Language isnt everything either. For instance, Rust is better than C++. It has miniscule bloat, zero cost abstractions, and guaranteed memory safety.. yet, C++ is better because it has a significantly better ecosystem.

The ecosystem for ts wipes the floor with luau, so it's objectively better.

hollow thicket
#

coding in roblox studio

#

just learn luau

#

ts is kinda garbage

#

even theers ts convert to luau

#

uwu

#

but still ts is better at else way

#

cuz luau is limited to roblox studio

hexed zinc
#

luau isnt limited to studio

hollow thicket
#

but not too much

hexed zinc
#

that is correct

hollow thicket
#

so luau is limited to studio

hexed zinc
#

wrong

hollow thicket
#

but otherwis

hollow thicket
#

then where can luau be use excecpt studio

severe cobalt
#

luau is a fork of lua 5.1, but really only roblox uses it

hexed zinc
#

wherever you want

severe cobalt
#

it's open source tho

tranquil tide
#

i prefer learn lua

#

than luau tbh

#

bc i dont like the luau tutorial

hollow thicket
#

uwu

tranquil tide
#

it is

hollow thicket
#

bc theres bunch of shitty api

tranquil tide
#

lua and luau is same

hollow thicket
#

u sitll need to learn how datastore api and else things work

tranquil tide
#

yes ik

severe cobalt
hollow thicket
#

lua dont have "datastore" this thing

#

my brother

hexed zinc
tranquil tide
#

i see

#

tbh i dont like watching tutorial and idk if doing project gonna help me too, i have the luau basics

severe cobalt
#

luau > lua 5.1, that's not even debatable lol

hollow thicket
#

lua is kinda shit tbh