#code-discussion

1 messages · Page 220 of 1

normal jasper
#

this just makes it look like as soon as the player hits, the movement happened, my current issue is performance

dark juniper
#

Your gonna try creating a prediction on a chaotic system like a character?

normal jasper
#

yes.., this is how multiplayer games work

dark juniper
#

Then if your virtual simulation fails on the server it’s just gonna look as goofy as it does when it lags

normal jasper
normal jasper
dark juniper
#

Idk man this is silly u can’t work around ping try unplugging your internet from any battlegrounds game or join a really laggy server

#

Not even the smartest people have a solution for this one chief

normal jasper
dark juniper
#

It’s just more reliable to rely on consistency over illusion

normal jasper
dark juniper
#

Can you explain that to me

normal jasper
#

so basically the server has a copy of the game's state before a client sent an action, when the client send some request to affect game state and the request is invalid, the server will basically rollback the clients game state to maintain consistency

#

this all happens in ms btw, so the changes dont feel as "present"

#

an example of this is when you play fortnite or some, and you clearly just headshot somebody, but they took no damage

#

thats because the client prediction of what happened and what the server validates dont agree

#

you can read this for a more detailed explanation

dark juniper
#

If invalid conditions are met

normal jasper
#

but if its valid, it would just continue, therefore giving you the illusion of resposiveness, eliminating the delay while affecting game state

dark juniper
#

It’s not a bad idea but you just don’t want the player to be cheated

#

Constantly rolling back combat states could give weird visual effects

normal jasper
#

but we can alleviate this with using lag compensation

#

gives the player more time based on how much latency they have, so that they have a better oppurtunity of having the server validate an action

tidal shuttle
#

Anyone know how to organize module scripts?

#

Like a template or general structure

broken briar
#

a module loader usually gets the job done

wild vector
#

yo doing simple scripting commissions for free dm me

broken briar
#

how simple

wild vector
ancient halo
#

I'm making a slide module class that uses a linearvelocity constraint. I'm trying to use a CFrame to snap the player character to the surface of the slope

#

it's working

#

but not as well

broken briar
#

you should use raycast and lookvector

#

you should never update a cframe every frame

ancient halo
#

really?

#

why not?

wide magnet
wide magnet
ancient halo
#

ok

open osprey
#

where to apply for skills role ui

wise turtle
#

u should ideally only be updating a cframe every 5 seconds because it performs a lot of calculations

wide magnet
#

the guy was talking about character controlling code which is inherently client sided on roblox which the server the replicates

wise turtle
#

client side is even worse because ur device can handle less than the server

#

just update cframes every 10 minutes

wide magnet
#

Wow

wise turtle
#

i tried updating a cframe every frame on my pc with a rtx4090 and it burned down

#

and i had to get a new pc

obsidian vessel
#

i swear to fucking god i rotated one part why the fuck is the script freaking out

wise turtle
#

u probably rotated the part every frame

#

u should only be rotating every 10+ minutes for maximum performance

shut sorrel
#

don't rotate the part at all for max performance

wise turtle
#

indeed

#

all objects should be static and anchored

obsidian vessel
#

i rotated it in the uhh

#

with the rotation tool

#

and now the script inside it

#

is living its own life

wise turtle
#

the rotation tool rotates things every frame thats why.

obsidian vessel
#

a

#

then do i like

#

make the shrodingers part orr

spice crow
#

bro when can I make

#

can i

#

make

terse edge
#

how do i use module scripts to store prices

slim junco
#

Does anyone know how to make the bodies R6 when you first enter a game? I already went to the settings, but it says the avatar tab has moved.

delicate shell
#

Hi i need help

So I have a ball basketball to be exact and I want to press a gui and on that gui is a meter showing the percentage of me making the ball go in the basket and the basket has higher chances of going in when you have upgraded you stuff and how do I make each ball has more multiplier based on their rarity

spice crow
#

When can I start making stuff for like commisions like inventory systems pet system and more

plucky eagle
#

is there a way to start 2 test servers in studio? i want to test messaging service

shut sorrel
compact fossil
#

can someone make a fixed version of this

#

for i = 1, 100000 do
if i == 10 then
print("i is equal to 10, so skip this iteration")
continue
end

if i == 200 then 
    break
end

    print("this statement is printed")

end
-- print("hello")
local counter = 1

while counter <= 10000000 do
print("this while statement is printed")

counter = counter + 1

end

if counter == 200 then
break
end

unreal nest
#

unreal nest
#

yes

#

🤔

obsidian geyser
#

Very nice

compact fossil
gaunt turret
compact fossil
#

yeah

gaunt turret
#

U dont need it anyway

#

The loop will continue aslong ss u dont break it

compact fossil
#

ok

shut sorrel
gaunt turret
#

also after ur if counter == 200 it won’t break cuz it’s not in the loop

#

Use task.spawn too

#

so u don’t freeze ur whole script

#

for some loops

iron kraken
#

what is it breaking tho

#

but if thats ur entire script it shud run

shut sorrel
#

He shouldn't use task.spawn in this instance, he needs to put the if counter 200 break in the while loop

gaunt turret
#

breaks, and continues and using taskspawn

woeful arrow
#

why does read voxels just return enum.air for everything when there is grass

frosty sorrel
#

who guys join me in studio for test game guys just 2 min

mossy shoal
#

working on dodgeball but dk what to do

  • should i use roblox physics
    or
  • should i use tweening/lerping
karmic tangle
#

ask yourself this; how much mental damage do you want

supple oyster
#

Physics sucks and unpredictable

karmic tangle
#

^

#

that too

mossy shoal
#

okay tweening it is

#

but idk cus like i was gonna go for a more messy style like timebomb duels has

#

but thats just tools n touchevent

full trout
tight hill
#

yo someone knows how to advance in scripting im stuck in beginniner level stuff

#

like making combat stuff and allat

vale flax
#

makinf combat systems urself id say is relatively intermediate depending on complexity

tight hill
sage anvil
#

guyys ima scripter

tight hill
rough vine
#

@opaque nest Could I speak with you for a moment?

light condor
light condor
# compact fossil for i = 1, 100000 do if i == 10 then print("i is equal to 10, so ski...

for i = 1, 1_000_000 do
  if i == 10 then
    print("i is equal to 10, so skip this iteration")

    continue
  end

  -- why loop to 1,000,000 if it always breaks at 200?
  if i == 200 then
    break
  end

  print("this statement is printed")
end

local Counter = 1

-- dude this will cause an obviously bad script exhaust timeout
while Counter <= 10_000_000 do
  -- either way this will absolutely tank framerate.
  print("this while statement is printed")

  Counter += 1

  -- add a task.wait()
  task.wait()
end

-- this is supposed to be inside of the while loop?
-- I'd assume so, if not then like why.
if Counter == 200 then
  break
end

gaunt turret
regal salmon
light condor
#

it's really really useful

light condor
# gaunt turret I’ve never used continue

imagine if you had a blacklist where you can't iterate over certain items in a table:


local Blacklist = {"Carrot", "Tomato"}

local ItemList = {"Olives", "Carrot", "Olives", "Tomato", "Pineapple"}

for i, Item in ItemList do
  if table.find(Blacklist, Item) then
    -- move onto next item!
    continue
  end

  print(Item, "was added to inventory :)")
end

ebon nimbus
#

hello guys

regal salmon
gaunt turret
#

Idk I just never had a need to use it

light condor
#

lol what did I just move my camera into

gritty brook
analog lynx
#

can anyone tell me how i can get more motivated or something like that or a way to get motivate myself because i just started and i dont know how to start

turbid socket
limber vector
#

so I was using chatGPT to help make a rock sizing system but after a million years the rocks dont scale and for somereason are invisble or gone or smth Idk here is the script please help before I spontaneously combust

gritty brook
#

Is...Is it just me or does Roblox's Studio Assistant not really work too well for specific things?

tired remnant
#

Or at all?

#

(It doesn’t work at all. Don’t use it)

gritty brook
#

Which isn't a good ratio but it makes me wonder

tired remnant
gritty brook
timber cobalt
slender cradle
#

who here would hates OOP and loves reddit

fallow tiger
spiral jungle
#

I use tweening for custom physics

merry saddle
#

It may be possible though I believe it requires much more work compared to just using the normal roblox physics

spiral jungle
#

Roblox physics are really unreliable

#

Especially if you want a skill based game

#

Where you throw the ball

#

So you can run the physics on the server and tween on the client so it’s smooth

#

And controlled

lean ocean
#

what about lerping

mossy shoal
#

yea i mentioned lerping

#

cus tweening itself is like not that good either

#

but compared to physics ya

spiral jungle
#

I mean I guess lerping works

balmy zenith
#

just simulate it

spiral jungle
#

Custom simulation 🤑

delicate shell
#

I have a scripting job if anyone’s wanting very easy commission pay only DM for more info

merry saddle
delicate shell
#

I’m looking for one

shut karma
#

HELLO

#

im looking for a scripter

delicate shell
#

I’m not a scripter

merry saddle
#

Wephy feel free to check dms

shut karma
#

so any scripters

#

its a simple script just to make my boat move and turn

#

and go up and down and tilt when turn and make engines move

cobalt sparrow
#

I'm looking for games as a reference for my own, what game has the best scriptnig in your guys opinion?

haughty trail
#

skids

#

noobs

void orchid
cobalt sparrow
#

what's the best roblox game in y'alls opinion?

unreal nest
half dust
#

Hiring a scripter for my game DM for informations and etc.

honest birch
#

Do you guys think that i can sell a procedural world generation script that i made (its kinda like minecraft) , i made it generate forests, not like spawn random trees, trees that make actual small/big forests and u can change the height of the map like if you want higher mountains or wider water pools etc ??

timber cobalt
honest birch
dapper night
honest birch
#

and i can sell it more times or just once ?

dapper night
honest birch
#

sry if im asking stupid questions

dapper night
#

if ur giving the system whole away

#

but if u wanna sell it more then once

#

make more systems

honest birch
#

alright ty

unreal nest
timber cobalt
sage anvil
#

/

crimson juniper
#

ohio ah boiz

#

caseoh rizz

copper spoke
#
local StarterGUI = game:GetService("StarterGui")
StarterGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
#

client side

#

wait

#

inventory?

#

like, when u press tab?

static coral
#

when u disable inventory core gui, it disables both hotbar and backpack

static coral
slender gale
potent igloo
#

what are good metrics to measure code productivity? me and my team would like to split our percentages according to how productive we are but we dont have a good metric for that

#

number of commits is bad because some of us commit a lot of small changes while some commit few big changes

#

number of prs is bad because some prs are small patches while some are complex new features

#

and number of lines changed is bad because sometimes we can paste code from the internet or maybe just add lots of lines that are just configuration tables and not actual logical code

ivory bronze
#

why doesnt it print anything when the attribute already exists? ```lua
function StateManager.CreateAttribute(character: Model, name: string, value: any, duration: number)
if character:GetAttribute(name) ~= nil then
print(name, "already exists!")
return
end

character:FindFirstChild("Humanoid").Died:Connect(function()
    character:SetAttribute(name, nil)
end)

character:SetAttribute(name, value)
task.wait(duration)
character:SetAttribute(name, nil)

end

half dust
#

Why is this happening?

#

Why my sword spawning on the ground instead on my hands

cerulean sparrow
half dust
cerulean sparrow
kindred heart
cerulean sparrow
#

Its too hard :((

iron kraken
#

is that stardew valley

#

it looks kinda good

iron kraken
iron kraken
#

could be that if u enabled network delay

cerulean sparrow
iron kraken
#

and are moving on the server

#

but by defautl network delay is 0

cerulean sparrow
#

It worked

median tree
#

nice

iron kraken
#

👍

cerulean sparrow
#

of SV ofc

iron kraken
#

looks pretty accurate

#

gj

cerulean sparrow
cosmic orchid
#

W

cerulean sparrow
placid vector
sonic sable
#

Anyone trynna make a game together? 🫩✌️

cerulean sparrow
twin cairn
#

Hey what's up everyone!

Was just curious how everyone here handles caching their Playerdata once it was loaded from the datastore

regal salmon
twin cairn
# regal salmon i'd usually just add it to a dictionary with the player's user id as a key

Then have a function for when it gets updated or is requested? Or how do you go about using it for the game? I've played around with making a DataService Module and caching everything in a dictionary in there but haven't really seen the benefits compared to player attributes making it easily acceisble from all Server side scripts (ofcourse don't rely on the client haha!)

regal salmon
twin cairn
#

Never get scared of overloading the server by trying to retreive too much data? I.E 20 players at the same time opening the store? or is that negligible

regal salmon
copper spoke
regal salmon
#

and you typically wont have that many players trying to retrieve data at once anyway

twin cairn
#

That's a fair point. Might be thinking about it too much lol.

Currently only call the DataStoreService once when the player loads, the rest is cached. Most of that is called only when opening a shop or trying to select a mission. That isn't something you're doing 40 times a second so shouldn't really be an issue performance wise

regal salmon
#

with few exceptions that are specific to what youre doing

lusty barn
#

good to make backup autosaves every few minutes

#

just in case idk lol

slender raft
#

yall think tryna make a black hole is a good starter project or na

neat oyster
#

for learning particle effects yea

#

you'd learn about overlapparams and stuff too

#

if you're trying to grab nearby things and add forces to them with workspace:GetPartBoundsInRadius()

neat oyster
#

for player characters you'd have to add the forces locally since they're the one's in charge of their character position

next heart
#

ggs

#

gemini 3 scares me

slender raft
fierce meteor
#

anyone tryna help me with a game?

neat oyster
# slender raft Hmm

players have ownership of their character model, that's kinda why exploiters can basically fly in every game that doesnt have checks

#

but it needs to be that way for the instant response when controlling their character

#

with anti-exploit server code you'd do stuff like keep updating a table of player location to see if they're staying in the air in one location for a while or if they move weirdly in the air like changing directions

#

one neat thing you can do is make a localscript with a while loop in it but destroy the script so there's code checking locally for weird exploits but the script doesn't really show it's there (while loops keep going even when the script is destroyed)

slender raft
#

That's neat

#

So I was thinking of using vector force instead of overlapparams

#

Any opinions on that

#

Honestly not even sure what overlapparms are so I'll go read about them

hasty laurel
#

im trying to make a phone and I'm working on the gui currently. im using the following code for all the numbers and characters on the gui the player can input for a number but I feel like theres got to be a better way then using like 10 of the same chunks of code.

star.Activated:Connect(function()
    if beepSound.isPlaying == true then
        beepSound:Stop()
        beepSound:Play()
    else
        beepSound:Play()
    end
    
    if number.Text == "..." then
        number.Text = "*"
    else
        number.Text = number.Text .. "*"
    end
end)```
#

it's just this x4

one.Activated:Connect(function()
    if beepSound.isPlaying == true then
        beepSound:Stop()
        beepSound:Play()
    else
        beepSound:Play()
    end
    
    if number.Text == "..." then
        number.Text = "1"
    else
        number.Text = number.Text .. "1"
    end
end)

two.Activated:Connect(function()
    if beepSound.isPlaying == true then
        beepSound:Stop()
        beepSound:Play()
    else
        beepSound:Play()
    end
    
    if number.Text == "..." then
        number.Text = "2"
    else
        number.Text = number.Text .. "2"
    end
end)

three.Activated:Connect(function()
    if beepSound.isPlaying == true then
        beepSound:Stop()
        beepSound:Play()
    else
        beepSound:Play()
    end
    
    if number.Text == "..." then
        number.Text = "3"
    else
        number.Text = number.Text .. "3"
    end
end)```
lusty barn
#

ts ass

slender raft
#

😭

#

damn bru u could be less blunt

neat oyster
#

also pretty sure you wouldn't even need to beepSound:Stop() cause when you play the sound it should stop what was playing before anyways

deft wraith
#

loving the code man

neat oyster
#

squanch lua local stars = {one,two,three,four,five} for i,star in stars do star.Activated:Connect(function() beepSound:Play() number.Text = number.Text=="..." and tostring(i) or number.Text..tostring(i) end) end

ebon viper
fluid wadi
#

hey guys

#

anybody interested in making a game

#

a scripter

strange kiln
#

so i made my own game

#

it's going well

neat oyster
deft wraith
#

w

neat oyster
#

cause you don't really want to loop over everything in the workspace

deft wraith
#

oh

neat oyster
#

hi

deft wraith
#

ok

dapper night
#

Making a website that helps people master lua, anyone wanna volunteer?

neat oyster
#

lua or luau

dapper night
vernal peak
dapper night
#

After they will know how to make tower defenses

vernal peak
dapper night
#

its through my knowledge of code

dapper night
vernal peak
#

And function could be mythic

dapper night
vernal peak
#

Then sum like print could be common

dapper night
#

FYP?

#

Fym

vernal peak
#

I’m cooking?

dapper night
#

?

dapper night
vernal peak
#

Like the rarity’s

#

The enemies could be exploiters

dapper night
ebon viper
dapper night
#

since if people wanna get into developing for roblox

#

then yea

ebon viper
#

the website aswell ? xD

#

Then i cant help, but i gladly help bug test it 🙂

dapper night
stone island
#

any1 know any fun projects to script?

normal tusk
#

something with gambling

#

Plinko perhaps

stone island
#

that might be the best idea yet

normal tusk
#

Plinkify me

#

Love when we said its Plinko time and we plinkoed all over the place

opaque linden
#

guys ive done it

#

IVE MADE SCRIPTING FUN TO LEARN

#

🥹

quartz epoch
opaque linden
#

YUHHH

supple ore
#

IT THE MOST BORINGEST THING ON EARTH

opaque linden
#

take it slow

#

and do it while on call

#

tats all i can say

#

literally

#

now im just vibing everytime i do it

supple ore
#

oh okay well what game are you making

opaque linden
#

im still just learning

#

like im beginner

supple ore
#

yea but what game you want to make

opaque linden
#

i dont want to make a game

#

i want to do commisions

supple ore
#

oh i see you want robux

opaque linden
#

ye

#

life

#

is roblox

supple ore
#

i mean everyone wants robux

#

lol

opaque linden
#

exactly

#

ima gtb bro its 1:35

supple ore
#

okay bro

opaque linden
#

cya gngyy

supple ore
#

cya

#

so um anyone wanna make a game together

summer aurora
#

never using attributes ever again unless to store data 🙏

#

I'm going back to values

cyan lantern
#

HELLO I WOULD LIKE TO FUCKING ASK
you made a 32 bit integer buffer in roblox
How critical it is to performance and memory if that value is constantly overflowed

compact spoke
#

idk

#

I do know but I dont feel like sayinig

#

Lol.

cyan lantern
#

I dont think you answers will be of any value anyway

peak jolt
#

your question doesn't make any sense either

compact spoke
#

if you want just 32 bit buffer.create(4) no

#

wisdom

somber vault
#

me love tung sahur

somber vault
#

can someone help me learn remote events

rotund pawn
#

How would you create a random small town generation algo?
My idea would be to create predefined road segments with "plots" for buildings, connect them randomly per criteria and then fill the random plots with buildings.

visual lagoon
visual lagoon
strong fog
visual lagoon
#

What does oop have to do with it?

mystic girder
#

Looking for smart devs to develop a steal a brainrot anti hit + auto joiner + notifier (You will be paid a high % when the project is released and you will get some money)

regal salmon
# somber vault can someone help me learn remote events

event:FireServer() from the client, event:FireClient() from the server
any script subscribed to the event through event.OnClientEvent or event.OnServerEvent will receive that firing and run the code in their function
its a way to communicate between the client and the server

#

i recommend checking out the docs

somber vault
#

Also made a system that gives random swords for coins

uncut niche
#

Guys are module scripts js like returning but across different scripts?

clear field
#

how to make when i click with tool it make animation

rigid rover
lusty barn
#

usually you’d be returning a table

native sail
#

looking for help
i am making a gamepass loader which loads gamepass that player owns its for a game same like pls donate and i am not abel to make it anyone has script or dev forum would really help me

shut sorrel
# native sail looking for help i am making a gamepass loader which loads gamepass that player ...
native sail
shut sorrel
# native sail i only want player created gamepass to load

I think there is a Roblox API you can use but I just end up using roproxy

https://devforum.roblox.com/t/player-created-gamepasses/1677536/3

native sail
shut sorrel
#

The user must have their inventory open to the public or it won't work too

#

I'm on mobile I can't give any scripts rn

signal salmon
#

This is a snapshot of the result of a procedurally generated dungeon.

signal salmon
#

Walls can have custom color and material, same for ceiling and floors. red marks are for door prefab

#

Stuff like enemies, chests or loots can be spawned easily because of the voxels / cells rooms and corridors are made of

signal salmon
small hound
#

2 seconds

signal salmon
small hound
exotic dirge
native sail
#

@shut sorrel
[GP][ERROR] Request failed: HTTP 404 - Script:26
[GP][ERROR] 404 Not Found — aborting further retries for this URL. - Script:26
[GP][WARN] Endpoint returned 404 - user may not have created any gamepasses or resource not found.

#

Maybe you can help once home?

signal salmon
# exotic dirge can it generate custom shapes too? is it infinite? can the rooms be orientated? ...

only rectangles. This is how you configure the generation

return {
    GRID_SIZE = 10, -- range -> 10 - 20 for not-abnormal results
    GROUND_Y = workspace:WaitForChild("Baseplate").Size.Y / 2 + 1,
    BASE_ROOM_SCALE = 5, -- base room scale: Performance impact: High. minimum 2    
    ROOM_ASPECT_RATIO_RANGE = { min = .2, max = 2 }, -- 0.5 means tall/narrow, 2 means wide/short
    SPACING_FACTOR = .5,-- minimum 0.2 (can cause merged rooms)
}```
#

u can control the variation in room horizontal dimensions using the aspect ratio range

signal salmon
exotic dirge
#

ok I am working on something like this but it can generate a room based on vertexpoints and is infinite

signal salmon
exotic dirge
#

ye urs is good too

signal salmon
#

how long does a typical dungeon generator like mine would take generate, say 500 rooms?

exotic dirge
#

do you plan on adding biomes

signal salmon
signal salmon
exotic dirge
#

if you use paralel lua and client sided

#

maybe then

signal salmon
#

These are the results when I generated 5k rooms. (it doesn't crash)

  Total parts:  46745
  Assembling parts took 4.09 seconds```
exotic dirge
#

ye thats pretty good

signal salmon
#

wanna see how 5k room looks like

exotic dirge
#

ok

signal salmon
#

lemme snap a ss

#

pretty crazy right

#

the baseplate is 3x the normal size

exotic dirge
#

ye how long did it take

signal salmon
#

i just showed u

exotic dirge
#

so 5k rooms also takes 2.4 seconds

signal salmon
#

no

#

5k rooms take 2.4 s

#

lemme calculate for 500 rooms

#

so that u believe me

exotic dirge
#

ok mb

signal salmon
#

500 rooms:

  Total parts:  4569
  Assembling parts took 0.35 seconds```
exotic dirge
#

what optimisation techniques do you use for this

rugged mist
#

I would hardly call those rooms

exotic dirge
rugged mist
#

looks like flat blocks with skinny blocks between then

exotic dirge
signal salmon
#

idk

#

i've never actually seen a similar system. most are using prefab models without corridors

rugged mist
#

what would be the point of corridors

#

besides the functionality of connecting the rooms

signal salmon
#

none

#

but u'd have to make squarish rooms

#

ig not. but still corridors are cool

rugged mist
#

gameplay will be weird with each room being connected by a skinny corridor might be a bit monotonous

signal salmon
#

besides I can control the length of corridors

#

so i can make sure they're not annoying

small hound
#

will every room be connected by a corridor or is it random?

signal salmon
#

no

#

actually every room is guaranteed to be connted

#

that's how I wrote the system

#

its not random

#

but i there's an option I added to add random corridors

#

for loops

exotic dirge
#

how do you even upload images here

small hound
signal salmon
#

yea

exotic dirge
#

and how do I get that

small hound
#

by chatting ig

signal salmon
#

yea

small hound
#

i hope or else i was wasting time

exotic dirge
#

ok then ill chat

small hound
#

are the rooms able to be decorated with models and stuff?

signal salmon
#

but yeah the system IS compatible with spawning props and decorations

exotic dirge
signal salmon
#

so i could randomly select different kinds of cells (like "Room" cells for spawning inside rooms)

exotic dirge
#

ye I don't like using a grid bc it severly limits positions

#

but ok

signal salmon
#

uhm. not quite

small hound
signal salmon
#

I could add a random offset for spawning. grid makes life easy instead

#

its a easy fix

exotic dirge
#

but your chunks are still locked to a grid right

signal salmon
exotic dirge
#

rooms yes mb

signal salmon
#

yes they are

#

they're all rectangular

exotic dirge
#

ok one more question

#

can ur rooms have more than 1 exit

signal salmon
#

yea. u can configure that in settings.

#

but its random

#

random loopways

small hound
#

do you have any controll on how props are placed not just random?

exotic dirge
#

you can just choose the outer cells right

signal salmon
#

prop positioning is easy also, like on wall or ceiling or floor

#

oh and I can have even more control if I check the neighbors' types. like I'd only place a wallLight on a wall

exotic dirge
#

how long have u been scripting for btw

signal salmon
#

i forgot. lemme check my first published project

#

first project where i started learning coding

exotic dirge
#

how did you learn coding this fast

finite bay
#

this is one of the first scripts ive made can anyone tell me if it will work? local baseplate = workspace:FindFirstChild("Baseplate")
if baseplate then
baseplate.BrickColor = BrickColor.new("Bright yellow")
end

small hound
exotic dirge
exotic dirge
small hound
#

yes

finite bay
#

Thank you

rocky basin
signal salmon
exotic dirge
#

server has everything loaded already

rocky basin
signal salmon
#

for some background, i was studying python for 1 year before moved here

exotic dirge
signal salmon
#

I*

exotic dirge
signal salmon
#

that system is just a project i built for my portfolio

signal salmon
#

im trying to join some teams and do some real work

rocky basin
signal salmon
#

I've only been rejected so far

#

but thats cool

small hound
rocky basin
#

at serverscriptservice

small hound
#

what was the code

exotic dirge
rocky basin
#

I don't do anything abt it

small hound
#

what was the code

signal salmon
#

it does work but WaitForChild is for LocalScripts.

signal salmon
#

Server scripts are executed after everything is loaded

rocky basin
signal salmon
#

yeee boi

rocky basin
#

mb guys

signal salmon
#

its np

#

everyones learning

exotic dirge
#

how many messages is this taking bruh

signal salmon
small hound
signal salmon
#

js an example

signal salmon
#

what should I add next to my portfolio? after this dungeon gen system

exotic dirge
signal salmon
#

like a general system for operating diff kinds of enemies?

exotic dirge
#

just very simple dummy that follows a player and attacks them if in range

exotic dirge
signal salmon
exotic dirge
#

but dont forget using PathfindingService

signal salmon
#

its slow

exotic dirge
signal salmon
#

PathFindingService

exotic dirge
#

is there a better option then

#

you could always use multithreading ig

signal salmon
#

yes but that uses pathfinding too

#

wait why multithreading

#

its for managing multiple enemies, init?

#

isnt it?*

exotic dirge
#

yes so its more optimised

#

you would have a standard script and clone it and put it under an actor and send data to it using bindables

#

i believe

#

you can find something similar on YT

signal salmon
#

for performance

balmy zenith
#

multi threading is not that trivial

balmy zenith
#

you can "predict"

signal salmon
#

yes ik, if u cant optimize pathfinding using the builtin service, then its skill issue

balmy zenith
#

depends tho

#

pathfinding itself isnt laggy, its just slow to compute the path

signal salmon
balmy zenith
#

perhaps

finite bay
#

can anyone explain why this does not work game.Workspace.Baseplate.Transparency = 1
game.Workspace.Baseplate.Material = Enum.Material.Brick

exotic dirge
#

first of all

#

use:
local baseplate = workspace.BasePlate
baseplate.Transparency = 1

signal salmon
#

500 rooms I generated for this screenshot

exotic dirge
balmy zenith
#

or do you somehow ensure spawn rooms without collisions

signal salmon
#

trial and error would be dumb

exotic dirge
signal salmon
#

take forever if not configured in detail

balmy zenith
#

trial and error as in

signal salmon
#

no it isnt

balmy zenith
#

generate room, check if colliding, generate another if so

exotic dirge
#

thats the right way in my opinion

balmy zenith
#

and not somehow magically generate a room with no collisions

signal salmon
#

the algorithm generates room without the need for checking collisions

balmy zenith
#

how

signal salmon
#

they're already separated

#

its a rather simple process

#

do u want me to explain in simple terms ?

#

the algo is called "BSP"

eternal kindle
exotic dirge
signal salmon
eternal kindle
exotic dirge
eternal kindle
eternal kindle
signal salmon
#

did u take that pfp in ur basement.

balmy zenith
eternal kindle
exotic dirge
#

bro BSP sounds difficult asf

#

if you look it up on wikipedia youll see

signal salmon
# balmy zenith sure, how does it work

basically, we start with a big rectangle called leaf. then choose a random axis (vertial, horizontal) and continue cutting until we have n number of leaves. then spawn rooms with random offset inside each leaf

balmy zenith
#

oh

balmy zenith
#

thats simpler than i thought

#

i did thst once without realising

#

oopsie

hexed pollen
exotic dirge
balmy zenith
signal salmon
hexed pollen
balmy zenith
#

is it arbitrary

signal salmon
balmy zenith
#

how do you determine to split

#

do you split all leafs at once

#

or is it 1 leaf at a time

signal salmon
# balmy zenith mhm

I generated 200 rooms in 10-15 seconds back then when I had random spawning and separation (trial and error like u said)

balmy zenith
#

actually wait

#

do you just split leafs till it reaches N

signal salmon
signal salmon
balmy zenith
# signal salmon its recursive

ok but is it at the same time tho say
A
B
you would split these at the same time
like
split A
split B
repeat

rather than
split A x100
split B x100
?

balmy zenith
#

oh ok

signal salmon
#

split A -> A, B, then split A and B. (each time choosing a random axis, vertical or horizontal)

#

i mean X or Z not vertical or horizontal

balmy zenith
#

how do you generate paths then? is it just checking adjacent partitions?

exotic dirge
#

i think splitting is great for optimisation but not for customisation

signal salmon
#

I used MST for generating paths. but about algos, they're nothing complex until u visualize they're working and how they're suitable for ur needs

balmy zenith
#

how does that work cathello

exotic dirge
balmy zenith
#

is a node just a voxel

signal salmon
signal salmon
balmy zenith
#

mmm

exotic dirge
#

dont you think doing it like doors would be better

signal salmon
signal salmon
#

but yea i could build the doors one too, it'd be easier

exotic dirge
#

ok thats cool

covert locust
#

yo how do i handle sfx and vfx replication

#

do i just use a 2 remotes

exotic dirge
covert locust
#

one for vfx and one for sfx

#

i mean for all clients

exotic dirge
#

ye

#

ig

covert locust
#

alr ty nick

shut quail
#

Hey guys do you have classes in Luau like in C# or na

exotic dirge
exotic dirge
mystic girder
#

Looking for smart devs to develop a steal a brainrot anti hit + auto joiner + notifier (You will be paid a high % when the project is released and you will get some money)

shut quail
glad thorn
shut quail
#

so u have redefine all ur functions and variables etc in every single script

exotic dirge
exotic dirge
exotic dirge
#

mb I forgot the .__index

shut quail
formal acorn
#

do yall think that door system with keys and animations is portfolio-worthy? beacuse i dont really know what to script for a nice portfolio

shut quail
#

thats nice, basicly same concept

shut quail
#

is a modulescript static or can it actually do stuff?

#

like,

#

imagine if I have a counter for everything something happends can I store that data in a modulescript or nah

shut quail
formal acorn
hexed pollen
exotic dirge
#

can someone help me with CFrames, it works but I think it can be more simple:

local partA = script.Parent
local partB = partA:Clone()
partB:ClearAllChildren()

local offset = CFrame.new(0,partA.Size.Y/2, 0)
local angle = CFrame.Angles(math.rad(45),math.rad(45),math.rad(45))
local targetCFrame = partA.CFrame * angle * offset

partB.CFrame = targetCFrame
partB.Position +=  offset.Position
partB.Parent = workspace
formal acorn
hexed pollen
#

Or you do a little of everything

formal acorn
#

but yeah i do little of everything

hexed pollen
formal acorn
hexed pollen
formal acorn
#

it can be something else than ui tho..

hexed pollen
#

You want to know what systems are good to make to put on your portfolio?

hexed pollen
# formal acorn yup

Best thing to do is go in scripter hiring and see what people want done the most

Alot of systems i see people want done are
Combat systems
Rng systems
Gun systems
Skills
And things like that

zenith sierra
#

can someone help me test my code

formal acorn
#

show the code

slate delta
#

Hii guyssss

lusty dawn
#

what should I make for fun

sonic sable
#

yo does anyone got experience or an idea on how these troll tower games work?

sonic sable
shut sorrel
lusty dawn
lusty dawn
fresh moat
#

Hello, Does anyone have experience in terrain generators algorithm?

rocky basin
#

phishing link 100%

warm jolt
rocky basin
warm jolt
exotic dirge
#

too bad I can't upload images yet

midnight geode
exotic dirge
#

no I wanted to show you some things I wrote on my own

#

to prove that I am not a skid

#

I solved the problem myself btw

midnight geode
exotic dirge
#

Ill dm you

ember nimbus
#

you're a skid

#

obv

exotic dirge
#

do I have to dm you too

ember nimbus
#

no

#

you're a skid

#

you used chat gpt to solve those problems

exotic dirge
#

ok

vernal ridge
#

How much should one charge to script a game like grow a garden

ember nimbus
exotic dirge
ember nimbus
exotic dirge
#

same thing

ember nimbus
#

exactly it's objective

midnight geode
#

yeah i can tell

ember nimbus
#

🦅

midnight geode
#

cuz ur a skid

#

u can just tell

#

liek what does objective even mean

#

skids these days 🤦‍♂️

ember nimbus
#

albert einstein

#

thank you

reef sorrel
warm crescent
#

yo bro thanks for the 25 bandos brodie

#

i made a game out of that idea

#

🤑

reef sorrel
#

nice bro

warm crescent
reef sorrel
#

thanks

shut sorrel
ember nimbus
shut sorrel
#

I find that subjective

torn cloak
#

can someone help me, i cant figure out how to make a border in which objects will collide but players wont.

torn cloak
hardy ermine
torn cloak
exotic dirge
#
local PhysicsService = game:GetService("PhysicsService")
local Workspace = game:GetService("Workspace")

local cubes = "Cubes"
local doors = "Doors"

-- Register two collision groups
PhysicsService:RegisterCollisionGroup(cubes)
PhysicsService:RegisterCollisionGroup(doors)

-- Set cubes to be non-collidable with doors
PhysicsService:CollisionGroupSetCollidable(cubes, doors, false)

-- Assign an object to each group
Workspace.Cube1.CollisionGroup = cubes
Workspace.Door1.CollisionGroup = doors

(from the docs)

torn cloak
exotic dirge
torn cloak
scenic plinth
warm crescent
#

lmao

scenic plinth
#

One of a very few brainrot games where i actually wanted to stay myself

#

Really enjoyable

warm crescent
#

thanks

median bobcat
#

phart can u give me some robux

hardy ermine
warm crescent
wind pasture
exotic dirge
wind pasture
#

yay

exotic dirge
#

ill look tmrw

wind pasture
exotic dirge
#

is it a good practice to load all of my uiModules with a uiLoader module

#

thats what im doing rn

exotic dirge
#

ok ty

#

ill come back on u tmrw

#

tysm again

wind pasture
#

@exotic dirge even tho its strict to activate it just do

local LeftGuiModule = require(path.to.module) -- put the path eg game.RepilcatedStorage.Modules.LeftGUIModule
local leftGui = LeftGuiModule.new()
leftGui:initialize()

median bobcat
warm crescent
#

no

sonic sable
#

anyone got any experience on troll towers or know how they work by chance?

obsidian geyser
exotic dirge
#
  1. Use task.wait()
  2. Why are you calling the function 4 times
  3. Table + looping would be better
#

otherwise its ok ig

obsidian geyser
iron kraken
exotic dirge
#

also define variables first

obsidian geyser
exotic dirge
#

local part = workspace.Part

iron kraken
obsidian geyser
#

A variable is a name thats stores information (its from my notes I have tooken)

exotic dirge
obsidian geyser
#

Im locking in tmrw

#

Today was my break day

woeful mural
#

why wont this work I get this error message for this line when I test my code

willow spire
neat oyster
final yew
#

I've been searching for sources regarding character customization. For my game I want players to be able to type in a "/hat [assetID]" command and apply the accessory, and to remove accessories typing "/clearhats" or something similar.

TLDR need sources regarding adding assets to characters using roblox chat with a clear command

#

Ive been really confused

neat oyster
#

you can use the .Chatted event to check like lua chattedConnections[plr.UserId] = plr.Chatted:Connect(function (msg) onCommandChatted(plr, msg) end)
make sure to disconnect when the player leaves.
In the onCommandChatted you can check to see if they own a certain gamepass and trigger the function for adding the hat

neat oyster
#

might not work with R6 characters

#

can't remember if it does

gentle stag
#

Our brains are @frigid umbra

neat oyster
#

yea

cobalt patio
#

can someone help me

balmy zenith
#

nuh uh

#

datastore should be good enough

neat oyster
#

pretty sure they get erased too when the data is too old, if you don't mind it erasing then memorystore could be fine

hexed cedar
#

Yall I have an inventory system and when the player equips the Glock a view model shows up, and I’m using a “Connection = render step”, and when the Glock is unequipped the connection is disconnected. Is there a better way to do this, something more optimized or smn? Is this a good/bad way of doing this? Any advice is appreciated.

neat oyster
#

yea as long as you're disconnecting after

#

also renderstepped is deprecated

#

now it's prerender

summer aurora
#

are you learning?

neat oyster
#

stepped is deprecated too

neat oyster
#

yea making admin commands is fun

summer aurora
#

i'm not sure what you mean

#

renderstepped never really causes unoptimization issues unless you do something excessive like creating new instances constantly

neat oyster
#

or loop over everything in workspace

summer aurora
#

(i learned this the hard way)

summer aurora
#

actually just in general why i dislike magnitude when using i,v in pairs

neat oyster
neat oyster
#

I also did something similar in my drawing game that scales parts near you based on the music playing

summer aurora
neat oyster
#

another neat trick is precomputing your radius check as a squared value so when you do the distance check you're only doing lua if a*a+b*b<sqDist then

hexed cedar
summer aurora
#

working on a big roblox game is like being a senior in high school,

either as long as it works and you do the bare minimum in the code for results. you are happy
or
you are hyperfocused on everything doing the maximum for success

neat oyster
#

yea you're not really paying for the server compute yourself so

summer aurora
#

just a separate folder named KillIcons then

AK47
AUG
Knife
azure granite
#

guys how do i make randomised calculus math questions

#

i already done basic derivatives and integrals but i want to make harder ones

balmy zenith
#

custom physics would be best

worldly spear
#

Maybe using fastcast module
U can make it bounce off walls and also detect if it hit the hole hitbox or another ball

#

I dont trust robloc physics

azure granite
#

function UiService.AnimateButton(button: GuiButton, visualFrame: Frame, callback: (() -> ())?): ()
    local OgSize = visualFrame.Size
    local OgPosition = visualFrame.Position
    local ScaleUpSize = UDim2.fromScale(OgSize.X.Scale * ScaleUpMulti ,OgSize.Y.Scale * ScaleUpMulti)
    local ScaleDownSize = UDim2.fromScale(OgSize.X.Scale*ScaleDownMulti,OgSize.Y.Scale * ScaleDownMulti)
    button.MouseEnter:Connect(function()
        SoundService.SFX.Hover:Play()
        spr.target(visualFrame, 0.5, 4, {
            Size = ScaleUpSize
        })
    end)
    button.MouseLeave:Connect(function()

        spr.target(visualFrame, 0.5, 4, {
            Size = OgSize
        })
    end)
    button.MouseButton1Down:Connect(function(input)
        spr.target(visualFrame, 0.5, 4, {
            Size = ScaleDownSize
        })
        SoundService.SFX.Hold:Play()
        
    end)
    button.MouseButton1Up:Connect(function(input:InputObject)
        spr.target(visualFrame, 0.3, 4, {
            Size = OgSize
        })
    end)
    
    button.Activated:Connect(function()
        SoundService.SFX.Click:Play()
        if callback then
            callback()
        end
    end)
end

Would this lag the game because im connecting 5 things to a single button

azure granite
#

even if i have likle 100 buttons connected with these

worldly spear
#

Not performance

azure granite
#

but even then its nothing right

worldly spear
#

Yeah

iron vigil
#

I’m genuinely curious are there any decent coding ai yet? I like to test them out sometimes but each time I do they’re always hella outdated. For ex chatgpt LOVES to use deprecated stuff and I’m just curious if there are any ai that are genuinely good at coding Roblox yet

tranquil lintel
mellow crag
#

any scripter looking for collab with vfx maker?
dm

clever sapphire
summer aurora
#

The most AI I use is Roblox's auto fill lmao

shut ridge
#

Such like wait((

#

()

summer aurora
#

tbh task. is like the double space pawn move in chess

sonic sable
#

does anyone have any experience with troll towers or know how they work?

tardy brook
#

During the dash, my animation plays, but after the dash ends there's a short moment with no animation before the walking animation starts. How can I remove this pause?

rocky basin
inland tartan
#

hey guys what is up!

#

Feral is looking for competent scripters we have multiple 1k+ CCU games!

#

send a message request to join us!

teal pewter
#

our top scripter makes 2.5k/week!

peak jolt
#

thats usd right

lean ocean
carmine egret
carmine egret
tardy pasture
hallow crater
#

Is this good enough for ui scripting?

ionic horizon
hallow crater
rocky basin
# tardy brook Priority is action

yeah, action overrides movement, try that the anim doesn't have "still" frames at the arms or legs, so it doesn't block the real movement anim

rocky basin
hallow crater
#

dragging n stuff

rocky basin
#

still he pays taxes so

hallow crater
#

dang

#

What kinda scripting work pays well

ionic horizon
rocky basin
hallow crater
#

ahh

#

can u guys code full systems?

rocky basin
hallow crater
#

bro how do u guys learn coding i tried learning it my brain cannot brain how much time it takes

rocky basin
#

by making small games

hallow crater
rocky basin
hallow crater
#

dang

ionic horizon
#

overtime you'll understand it better

hallow crater
hallow crater
rocky basin
hallow crater
#

damn

ionic horizon
hallow crater
#

i thought scripters were eating good

rocky basin
tardy brook
ionic horizon
rocky basin
ionic horizon
rocky basin
hallow crater
#

i think im also 2 years in the industry we are the same @rocky basin

tardy brook
hallow crater
#

in building*

rocky basin
hallow crater
rocky basin
ionic horizon
hallow crater
#

ion like making builds for portfolio cause its working without getting paid

hallow crater
rocky basin
ionic horizon
hallow crater
#

wanna see my builds?