#code-discussion

1 messages · Page 248 of 1

shy bronze
#

nop watching yt on profilestore

karmic cobalt
#

i know dont worry

#

im just cuirouis about amount

#

if for asym game 40 it too much

#

but i mean the game works, and players plays, no errors

#

no problem

#

and memory usage its not that hhigh

#

so o think

#

its fine

#

@ocean ferry yo you think 1 remote for 1 script its optimally option?

#

like one for exithandler one for generahandler etc

limpid basalt
#

what projects should i build to flesh out my portfolio more?

ocean ferry
#

Info pass can be just one remote

#

Depends on what u doing, but having too Many remotes its not at all optimal because client can have trouble getting and sending info

#

If one breaks can make a chain break of inf yield if info cant pass

#

But still works

#

Im not too advanced at scripting but my remote usage its normal on info read and pass

#

Not much remotes but if the info u want know its different from others u can do various, make sure ur remotes dont spams if u have Many

mild sequoia
#

is this good

rotund pawn
#

Bugs = false

#

and it should be good

ocean ferry
#

Hackers its boolean

#

Use false

mild sequoia
#

wasd = walk = true

ocean ferry
#

No

#

Free robux = pls

mild sequoia
#

if player press space player jumps true

rotund pawn
#

also gameplay/story is undefined

mild sequoia
ocean ferry
#

Updates = daily

mild sequoia
#

no

#

im a blox fruits developer

ocean ferry
#

Mid fruits

mild sequoia
#

updates = every decade

ocean ferry
#

True

mild sequoia
#

now its peak

ocean ferry
#

Me out me sleepy

mild sequoia
#

3 updates snd theyre 30

ocean ferry
#

Sleep = true
task.wait(900000)
Sleep = false

mild sequoia
#

sleep = yes
time = 90 hours
sleep = no

ocean ferry
#

90 hours 🥀

#

Attempt to index nil

#

Im out cya

woeful adder
tribal meadow
#

Hey guys I'm trying to make my portfolio and I was just wondering if yall have some recommendations for me. (I still haven't made it responsive for mobile and I am planning on adding more stuff)

https://portfolio-lg4f.vercel.app/

karmic cobalt
#

Is there any api in roblox that converts numbers to roman numerals or do I have to make a table 1 = I 2 = II etc.

limpid basalt
candid quail
#

how

river sedge
#

made the gamepass icons

#

Ig it can go to here because I scripted it

gilded badger
#

Here a simple code : lag = no

Bugs = no

Hackers = no
Pls

Graphics = good

lean lance
#

Dear people of hiddendevs, how would you approach a system with lots of NPCs with their own pathfinding threads? I've been looking for a solution but they always have the worst optimization

ornate needle
#

Any got suggestions for a starter scripter, any easy systems to remake

shut sorrel
# lean lance Dear people of hiddendevs, how would you approach a system with lots of NPCs wit...

Don't use humanoid, build a rig and use a animation controller, apply physic movement using vector force constraint, keep it upright and rotate using alignorientation, this alone lets you use up to 500+ at least for me, or even take it a step further and use cframe list directly for the animations just takes more work to implement. Instead of everyone having pathfinding you can group together the bots to form a boid which all move as one unit, and apply your own pathfinding to that boid

remote root
#

what kind of use would remote events give

limpid basalt
remote root
limpid basalt
#

its in every roblox game ever

client handles stuff like key presses, vfx, camera controls; stuff from the player's computer
the server handles authoritative game state, data, physics, etc

#

search up client-server runtime and look at the roblox documentation

slow hull
stray flower
#

teach ne

sage phoenix
#

can anyone name any examples of some modules I could create that are agnostic?

limpid basalt
#

stuff like topbar plus and profile service are agnostic

sage phoenix
#

i know about those two but im just trying to think of others that I can create as well

shut sorrel
#

something that handles connection

sage phoenix
sage phoenix
shut sorrel
#

like maid or janitor

sage phoenix
#

ah and cleans them up when necessary and so on?

shut sorrel
#

A networking module like packet would be a good project

limpid basalt
#

i was gonna say signal but there's already a lot of those

shut sorrel
#

Keep track of connections, disconnect when not needed

limpid basalt
#

but it is good for learning more about networking

sage phoenix
#

signals are like a replacement for BindableEvents right? or something along that line?

limpid basalt
#

yeah\

sage phoenix
#

ok so:

Tables Module,
Networking Module (e.g Packet)
Signal Module
Maid/Janitor (Connections Handler/Cleaner)

fleet silo
sage phoenix
#

I want to enhance my knowledge mainly and be able to constantly create more things that can be beneficial to me e.g Utility Modules and Systems/Services that I can just add in to anywhere and work

but mainly this is all just a passion thing for me as I code for the fun of it and want to learn more

fleet silo
#

Ahh

#

Well this is a great way to learn

shut sorrel
#

I would say think of making a project that needs you to make a module like that too, just more of a motivation and good way to test it in practical use

tough belfry
#

Hi guys . I am currently creating a checkpoint system for obbies and I would like to know if collections service should be used or if I should use a folder to store the checkpoints . Thanks

ember nimbus
#

also iirc bindable events have annoying scheduling behaviour

#

the bindable event serde thing is probably inheritance's fault

thorn arch
#

hey @grand crag, i ran into this error

#

seems odd

#

cant trace it

#

@iron kraken you ever seen this either?

graceful delta
#

not really code r dev related but, is anypone else having issues with avatars?

#

keep spawning like this

peak jolt
#

noob

elder wyvern
#

does anybody know how I can have my StarterCharacter have my actual avatars stuff

#

like accessories, skin color, shirt and pants

silk ember
#

guys where can i find the best scripters for my game?

daring dirge
#

in a game dev server

teal bolt
#

im trying to figure out vpfs and im trying to recreate a player health/energy bar with character display that copies the player movements.. but everything i try isnt working.. anyone know how to do this? i can send a reference over if you want

iron kraken
#

u can prob find the bug if u just comment stuff out

thorn arch
thorn arch
#

began happening after i set up a few nested context providers

fringe chasm
#
local tool = script.parent
local player = game.Players.LocalPlayer
local playerstats = player:WaitForChild("leaderstats")
local coins = playerstats:WaitForChild("Coins")

tool.Equipped:Connect(function()
    while true do
        coins.Value += 1
        wait(1)
    end
end)

Players.BuilderOverGuardian.Backpack.Coin.Script:3: attempt to index nil with 'WaitForChild'

#

bruh

limpid basalt
#

is it a local script or a normal script?

fringe chasm
#

my bad.

#

i was using script

#

thx

last knoll
#

Anyone know how to make the camera move in a main menu??

limpid basalt
#

allg

fringe chasm
limpid basalt
limpid basalt
last knoll
fringe chasm
limpid basalt
limpid basalt
fringe chasm
#

like if we compare to a cashier in mcdonald or walmart

#

becuz uhh im 20 and i quit everything to start earning online

limpid basalt
#

ive just been honing my skills for a couple years now and im 16 so i dont have many opportunities to get work doing roblox scripting

iron kraken
#

1 bajilion dolar pasive incom

limpid basalt
#

you probably should've learnt scripting for longer before quitting lol

brittle hinge
#

Has anyone who has posted on the #scripter-hirable channel got comms from there, I want to know wether its worth it to get it

iron kraken
#

u make more money from a regualr job bru

fringe chasm
#

to explore the world

iron kraken
#

lol

#

only way is to make a game

limpid basalt
#

top .1%

#

good luck bro

twilit widget
iron kraken
#

it can be good

fringe chasm
iron kraken
#

but u dont know how to code no?

fringe chasm
#

i do know
ive adapted to basics in a 2 days and went to advanced

iron kraken
#

ok

fringe chasm
#

could take 5-6 days for advanced

#

then ill start making games ig

iron kraken
#

prob cooked ngl

limpid basalt
#

how many games are there on roblox that would've made the developers money the could live off of

#

there wouldnt be that many out of the total number of games on roblox

fringe chasm
#

more then 500

#

1k id say

iron kraken
#

1k ccu u can make a living off of

serene zenith
limpid basalt
#

500 / 40,000,000 is still super low

limpid basalt
#

like, stupidly low

twilit widget
iron kraken
#

i dont think its that hard to get 1k ccu

fringe chasm
#

it could be alot more

limpid basalt
#

it probably is

fringe chasm
#

10k realistically

limpid basalt
#

lets say 20,000

20,000 / 40,000,000 is top 0.05%

fringe chasm
#

there are those 100 ccu low laying games we wont know which provides some devs 200 a week

iron kraken
#

not long term

#

maybe for 1 or 2 months

#

and 200 is high for 100 ccu

serene zenith
iron kraken
fringe chasm
limpid basalt
#

youd make more with minimum wage no?

fringe chasm
#

not really, i dont live in USA or europe

iron kraken
#

and its easier than working

limpid basalt
#

albeit rarer to get

fringe chasm
#

and It also depends on the games

iron kraken
#

everything is luck

brisk spindle
#

im thinking of using an external code editor should i try using argon or rojo (I got like 3 years of experience of coding in normal studio)

fringe chasm
#

why are we assuming statistically

iron kraken
#

tbh roblox is prob more fair than getting a job

fringe chasm
#

if game is bad, ofc its one of the 99%

#

to be with 0 ccu

iron kraken
#

and its easy to setup

fringe chasm
#

and one thing i know is, never make passion project your first game lol

#

try out some simple fun ideas

limpid basalt
brisk spindle
#

ight thanks

fringe chasm
#

idk-

#

concept of the game also matter

#

which can make the chances higher

limpid basalt
#

you could have the best game idea and best execution of it but it could still go unknown

honest pagoda
#

yall i want to make a npc movement system that controlls the movement of around 40 npcs how would i do it the best way

Move on the cilent? bc i want so the server does not lag

iron kraken
honest pagoda
#

thats the thing

#

i still have to know where it is

iron kraken
honest pagoda
#

bc i want less lag on this

honest pagoda
iron kraken
#

yea

honest pagoda
#

mhmm i will look into it

#

what could a exploiter do

limpid basalt
iron kraken
#

i dont think its exploitable anyways unless they change the roblox game code

limpid basalt
#

ive never looked into network ownership

fringe chasm
#

this trend of making sloppy copy paste games started after 2020
2019 was roblox peak of unique games

#

i hope it ends soon

honest pagoda
#

well thank you kind sir

iron kraken
#

which means they have to change the code from the assembly code which is pretty hard

limpid basalt
#

@iron kraken look at the docs for network ownership

#

it says under security concerns that roblox cant verify physics calculations when a client has ownership so they can exploit it

honest pagoda
limpid basalt
#

you can use it but the only concern is that they could fling npcs out of the map which i dont really think thats that much of an issue given the big performance increase

honest pagoda
#

yeah but still,

#

i want good performance and not easly to exploit

#

well i will see

limpid basalt
#

im sure you can do server checks and make sure the npc isnt out of the map or something

honest pagoda
#

yeah you right

fervent lintel
#

how do i replace a default anim with a custom anim, my custom one has priority idle, it's in r6 and my game is in r6, i copy and paste the "animate" script into startercharacterscript, i go to the idle thing under animate and paste my id, and i also go into the script and replace the default with my custom id, but it still doesnt work

iron kraken
#

what im saying is the client giving the server a fake position that isnt the actual client position

#

that would be very difficult to do

deft aurora
#

Who tryna crack

glass pumice
elder wyvern
#

does anybody know how I can have my StarterCharacter have my actual avatars stuff
like accessories, skin color, shirt and pants

vapid wedge
fervent lintel
#

i think i got one of the two wrong

bleak glade
shut sorrel
deft coral
void imp
#

promise module is so godly ❤️‍🩹

eternal solar
#

scripting is fun but watching tutorials is not 😭

winter belfry
#

so real what we do?

autumn oak
#

how do i change a player's avatar rig type from r6 to r15 or the other way around?

foggy osprey
#

Question to those who passed the scripter verification, what did you do ?

peak jolt
#

passed the scripter verification

peak jolt
#

EvaluateStateMachine

foggy osprey
north dagger
#

ima glaze so hard rn

rich moat
eternal solar
eternal solar
#

but they sound fun

rich moat
north dagger
#

once u understand OOP and start trying to do some systems u gonna love them

eternal solar
mossy pagoda
#

hey does anyone have anything i should code? cuz i have a lot on my mind rn and want to code something, so if you need something for a game or anything let me know.

north dagger
junior jackal
north dagger
#

i personally love it

brazen pelican
#

lua was never made with the intent for it to be an object oriented language, just because it supports it doesn’t mean it’s good

#

like yeah, it’s good to have as with any language, but that’s where the good things about it ends really

#

i personally find lua misses a lot of things that C has, considering lua is a C based language

twilit widget
lusty ivy
#

can any1 help with my script

fleet silo
#

Why we using pastebin in the big 26

fleet silo
dark roost
#

Well

#

Well

#

Well

regal salmon
#

RegisterCollisionGroup doesn't return anything, so setting a variable to it will just be nil

wispy tendon
#

where is the collisiongroup editor?

fleet silo
wispy tendon
charred slate
#

L
\

#

cXDSXVZ
x

misty valve
#

L

cXDSXVZ
x

hasty raft
#

tables and module scripts are cooking me

weak flax
#

domethedeep — 9:41 PM
is there a ay to change the ui back to the old ui?

ripe hinge
#

even copied the time stamp

weak flax
#

yes bro does anyone know

ripe hinge
primal maple
#

Where can I sell my assets?

#

@ripe hinge

ripe hinge
#

dont think this server has a asset selling channel

#

rodevs does though I guess

primal maple
#

Do you have a server for selling assets?

#

@ripe hinge

ripe hinge
#

god the pings WHYYYYY

#

dms ill send

spring ice
mossy karma
#

i remembering seeing a while back that someone said PlayerAdded:Connect(function)end) was bad but i forgot the reason, does anyone have an idea why?

spiral monolith
mossy karma
#

yeah

#

i was trying to condense it

spiral monolith
#

Other than that its actually fine there’s nothing wrong with passing in an anonymous function

#

It might just be better in some instances to write the function seperately and pass it in the connect method so you can run the function whenever you want

mossy karma
#

speaking of which

#

is there a way to pass a variable if its needed?

#

for instance: Players.PlayerAdded:Connect(onPlayerAdded)

#

doesnt player need to be passed like: onPlayerAdded(player) or something similar?

regal salmon
#

for example, that code will send the player to your method

#

but if it sent two variables, but you only allowed one in your function, you'd only get the first

mossy karma
#

so theres no need to create an anonymous function just to run the function with variables, right?

regal salmon
#

correct

mossy karma
#

sweet

wise stratus
#

I am having issues to decide if I should play animations locally or on the server.

If I play it on the server and a player joins late they will still see the animation, but if its server -> clients and another client joins after will they miss the animation?

#

unless roblox does something behind the scenes my brain says that the new client would miss the animation

wispy fossil
#

would you not run the anims server side and send an update to players on the client to let them know what part of the animation it's in?

#

or that the animation started or whatever

regal salmon
# wise stratus I am having issues to decide if I should play animations locally or on the serve...

if you want it synced across all clients or to play on every client even if they're new, i'd go server-side
however, if you don't want that, or need it synced with client-side events (e.g. a cutscene), then client-side
new players will NOT start the animation automatically when they join unless there is an outside factor set, like a boolvalue or something
but you can remedy this by just sending the remoteevent or whatever to the new player when they join

uncut pawn
#

im indexing nevermore docs why is there 800 pages 💔

still bluff
#

balls

dapper root
#

Guys, someone has offered to script a complete Obby game for me (UI, stage, troll, etc.). How much should I offer him?

little vapor
exotic escarp
#

Fully scripted etc

dapper root
#

yes

exotic escarp
#

Dm

brittle spade
#

i mean everything needs to be perfect

#

uis, scripts

potent cargo
#

i neeed help

zenith sierra
#

im a beginner scripter, what are modular scripts really used for

uncut nest
fallen depot
zenith sierra
fallen depot
#

you can store a bunch of information inside of a module like a table and that includes stuff like functions

#

its really good for organization & it's a vital knowledge spike for development

#

so, for example if i have a modulescript that looks like this for example

#
local Module = {}

function Module.Test_Function(A, B) -- We can put a function in this module.
  print(A + B)
end

return Module
#

i can then have another script, whether it be a server script or client script

#
local our_module = require(game.ReplicatedStorage.Your_Module) -- this just assumes our module is located in ReplicatedStorage

our_module.Test_Function(6, 2) -- will print 8, because the function adds A & B
fallen depot
#

you cant just do local our_module = game.ReplicatedStorage.Your_Module

#

you need to require it

#

modules are very useful for organization because when you have a bunch of scripts, you might notice that some of your scripts will need to be doing the same sorts of functions as other scripts and it's annoying and repetitive to retype it all

#

having a module allows you to condense a bunch of functions (like for example if you wanted to make some sort of module dedicated to using specific math calculations) and allow them to be reused anywhere

#

i hope that summarizes it pretty well

slender yew
#

why are anims in roblox studio so unreliable, sometimes it plays and other times it doesn't what could be the reason?
I have

  • the animator
  • animation variable
  • animation track

only thing that I didnt set is animation priority, but why would it only sometimes get overriden?

slender yew
#

simple and straight to the point

oblique willow
#

Dm me if anyone needs help with systems such as combat systems, NPC systems etc I can only code, don't ask me to animate or design UIs. I'm doing this for free as an act of kindness so dm me quick

nova blaze
#

hey does anyone know how to hide big accessorys in my game?

#

like is there a code that detects that or something, if anyone knows please dm me and let me know how to hide these big accessorys

jovial ore
#

guys how do I make the player move in determined positions in a cutscene along with the camera?

#

What would be the best method for it

serene cradle
#

i fixed about 30 mins ago

jovial ore
#

could you mark the message for me to see?

serene cradle
jovial ore
#

alr

serene cradle
fast basin
#

any1 know what external api can get asset details (economy api has high rate limits)

slate nova
#

I need help with a tutorial; for some reason everything works, but the Beam still doesn't appear. Does anyone know why?

unique needle
#

Simple as that

wispy lion
#

like you made it yourself?

oblique willow
#

Dm me if anyone needs help with systems such as combat systems, NPC systems etc I can only code, don't ask me to animate or design UIs. I'm doing this for free as an act of kindness so dm me quick

serene cradle
cyan fractal
#

guys can someone tell me why my script isnt working

if player joins then
hacks = off
create number money and make its parent player
show main menu
unreal oar
#

use a free luau convertor like chatgpt

stoic monolith
slate shuttle
#

I want to start learning coding from 0, do you have any tutorials you'd recommend or advice? :"]

stoic monolith
#

You might pick up bad habits from a tutorial, so it's best to play around and look around on forums and discussions after learnign something new!

slate shuttle
dusky kestrel
slow drift
#

have you tried

#

learning how to code

#

i mean, youre not going to be sucessful by following tutorials blindly

dusky kestrel
#

Anyways, anyone know how much your able to invoke on the client? Trying to see if it's possible to get even a slightest of detections for when executors inject

stoic monolith
stoic monolith
#

most (good) cheats put themselves onto the coregui

slow drift
#

is a death sentence

slate shuttle
dusky kestrel
stoic monolith
dusky kestrel
#

or only for developers

slow drift
dusky kestrel
stoic monolith
slow drift
#

with technical terms

stoic monolith
#

I don't know if this is doable in roblox localscripts

slate shuttle
#

i just want to try every hobby possible idk
I've already tried drawing digitally, painting with watercolour/gouache/pastel/charcoal, sculpting irl, sculpting in blender, making music, making 3d gfxs, voice acting, animating, dancing.. uh forgot what else
And now i wanna spend a few months engaging in coding

dusky kestrel
#

guess it's going back to making anti-cheats that'll be bypassed in a day ¯_(ツ)_/¯

#

so tired of roblox

stoic monolith
slow drift
#

just dont make them

slow drift
#

its a waste of time or resources

#

theres such a tiny amount of exploiters

#

its pointless

slate shuttle
stoic monolith
#

hehe

dusky kestrel
stoic monolith
stoic monolith
slate shuttle
austere egret
dusky kestrel
slate shuttle
#

I sometimes dream I'd collab with someone who codes and would make 3d and 2d art for their game, but then i remember i dont have friends who code 💔

slow drift
stoic monolith
dusky kestrel
#

other games you'll be met with like a one day ban at most

#

and by that point there already on another alt

#

and using a VPN

stoic monolith
#

Also, I can inject on the homepage

#
  • my ESP loaded in on other games (I didn't use them and left, I am ethical :D)
dusky kestrel
stoic monolith
half rune
half rune
#

its what i'll do if i ever make that tag game

dusky kestrel
stoic monolith
#

oh, well!

dusky kestrel
slate nova
smoky gust
dusky kestrel
#

oh wait

#

read this wrong lol

slow drift
slow drift
#

if you have a bug just ask your existing scripter to fix it

peak jolt
torpid junco
#

HD is the only place where someone gets hired as the role "bug fixer"

spice venture
#

FINDING GAME SCRIPTER FOR GAME

ornate gazelle
#

Snap back to reality

teal yacht
# slow drift is a death sentence

lol i had this attention problem back when i was learning scripting, and i couldn't read 1 doc bc of this + my english, now that i am on college and learned how to study and control this attention, i basically reserved lol, i love reading any docs any when i watch some video teaching something i usually get bored

#

I'm learning the theory behind it and i am basically learning lua again bc i am finding so much things that i didn't know bc i just coudn't read one doc without losing attention

#

i save my understanding on obsidian of each topic

slow drift
north robin
#

Wassup dear scripting fam, I´d have a question... how did you all start out on scripting and do u have tips for me; im just starting out!

fleet silo
#

I think beginners shouldd watch a lesson on youtube and use docs when theyre practicing on their own

north robin
#

documentarys?

#

hmm do you have any videos or smt?

mossy karma
#

whats the best way to detect collision with a player and a moving part like a sphere? i need the player to ragdoll any time they are touched by boulders, but .Touched isnt reliable and in my experience causes a lot of lag

mossy karma
fleet silo
#

Its open source modules

steel condor
# north robin Wassup dear scripting fam, I´d have a question... how did you all start out on s...

what i did was i found a copy of a game i liked a lot and kept experimenting with its code until i started recognizing stuff and eventually figured out the basics of scripting that way, but i think the best way is to learn the basics the normal way (watch a youtube video, read documentation, something like that) and then enhance your skills by practicing, and whenever theres something you dont know look it up in the devforum and try to understand how it works

#

also im decently experienced with scripting but i have no idea of what i should make to show off as my work, i mostly just have a bunch of different places i use to practice so i can't display anything interesting as my past work

#

so does anyone have any idea of something i can do that would show off my scripting skills while not having to use assets i can't make myself (models, vfx, etc)

ivory dragon
#

is it possible to do player to player transactions within a game with robux, like trading it

deft coral
#

No you cannot trade robux

ivory dragon
#

Can players within a game trade items for Robox currency - where one player sells an item and the other player gets the robox currency?

ivory dragon
thick quest
#

Discussion

north robin
ivory dragon
#

not possible at all? whether against or with tos terms?

steel condor
thick quest
#

P sure

deft coral
#

The only way to trade is to let people buy each others gamepass

thick quest
deft coral
#

Which i do not suggest as its against tos to do it like that, and the cut roblox takes makes it take out too much from the trade to be worth it

#

Thus u cant rlly make a game around it

north robin
thick quest
steel condor
north robin
#

not like its suppose to be a whole game just scripts

steel condor
#

i see

green smelt
#

.

near wasp
#

if anybody knows how to. a grid placement system dm me

deft coral
near wasp
deft coral
#

That is the help

near wasp
deft coral
fleet silo
karmic cobalt
#

yo If i'm able to insert ugc from marketplace via insertserivce, i can use them in my game as killer skins ? due to new roblox ugc tos, When I tried insert one face it was "you not hhave permission to insert this asset" but rest i can insert freely

junior ridge
#

does anyone know how to make it so the animation keeps its position after it ends?

steel condor
steel condor
#

i'm not sure if theres a better way to do it

junior ridge
#

like this?

#

_animationTrack.Stopped:Connect(function()
_animationTrack.TimePosition = _animationTrack.Length
_animationTrack:AdjustSpeed(0)
end)

#

instead of the stop, i can use getmarkerreachsignal?

steel condor
junior ridge
#

alright

steel condor
deft coral
junior ridge
#

it still snaps back to the original position

steel condor
north robin
#

can someone explain me what "returning" is i dont rly get it

peak jolt
#

like when you come back

north robin
#

no in roblox lua haha

peak jolt
#

when you come back out of a function

north robin
#

i dont get the point of return+

peak jolt
#

to where it was called

#

thats returning

junior ridge
north robin
#

i dont get it

#

whats the point of it

junior ridge
#

here let me show you a piece of code

north robin
#

im watching a script guide

junior ridge
#

i d'm you

north robin
#
local function hi()
    print("hi")
    -- Scripts bla bla bla
    return "Awesome"
end

hi()

local hotdog = hi() 
print(hotdog)
``` this is the example
#

i dont get what the point of it is

brazen pelican
junior ridge
#

you basically return a value when you call the function

junior ridge
tough kettle
#

anyone have idea of icosahedron type game?

peak jolt
#

icosahedron type game

north robin
obtuse lagoon
#

anyone want to dev something with me? dm me i can code just provide a idea and help with everything else

peak jolt
#

what tbe fuck is an icosahedron type game

brazen pelican
autumn oak
#

what are some cool yet simple modules i could script?

junior ridge
#

in the function, you returned "hotdog". so now when you call that function. you would get a variable that is equal to "hotdog"

brazen pelican
tough kettle
#

damn

brazen pelican
autumn oak
peak jolt
#

_ _

autumn oak
brazen pelican
autumn oak
#

its not just headless btw

brazen pelican
autumn oak
#

oh lol

brazen pelican
#

make a module loader or smth

autumn oak
north robin
brazen pelican
#

look it up

peak jolt
junior ridge
vapid radish
#

or

#

ahh i see

vapid radish
#

i mean

autumn oak
#

but my game has literally no mechanic system rn

vapid radish
#

you can do a data wrapper

#

one of the more fun things you could make is a ui toast/notification module

#

or a smooth motion module

floral timber
#

Is anyone here a decent scripter

vapid radish
#

with camera and movement

autumn oak
peak jolt
vapid radish
#

i mean something dynamic

#

like camera sway, recoil settling, ui smoothing, etc.

autumn oak
#

hmm okay not bad

vapid radish
#

idk man

#

i feel like you should just work on a passion project if you're bored

#

it looks good on a resume depending on where you apply

#

but you have to show proficiency

peak jolt
# autumn oak but my game has literally no mechanic system rn

you know how roblox plays walk and run animations based on if your walkspeed is large enough? extend that so for 4-12 walkspeed the current animation is a weighted blend of both walk and run and make sure theres no slipping/shuffling on transitions but continuous stepping

autumn oak
#

perfectioning module scripts is satisfying

vapid radish
#

for me, modulescripts are the most useful objects you could use in studio

autumn oak
peak jolt
#

cause it works

brazen pelican
#

they’re useful for way more than luas wack implementation of oop

#

oh i misread nvm

autumn oak
brazen pelican
#

i mean i’d argue they are the most useful if you can utilize them properly

vapid radish
#

any serious game ends up being mostly modules

peak jolt
#

now silly games on the other hand

vapid radish
#

depends on the scripter

#

even a good scripter would use modulescripts on a throwaway game

#

its like a habit

vapid radish
peak jolt
#

i should make a slop game and just buy 5 trillion ads

#

what game can chatgpt make in a day

vapid radish
#

in a day is wild

vapid radish
vapid radish
#

LMAO

#

i wont doubt doctor gpt anymore

naive swallow
#

Is crazy.

tight hatch
naive swallow
#

You don't need a bf or gf when you have chatGPT.

#

Or friends.

#

Or famliy.

eternal solar
#

are coroutines important

vapid radish
#

depends

#

theyre pretty useful

#

they let you run things without freezing everything else

iron kraken
#

it creates a new "thread"

eternal solar
iron kraken
#

its important bru

eternal solar
vapid radish
#

you only use it for stuff like delays, animations, and background tasks

vapid radish
#

but not every project needs it

iron kraken
#
while task.wait(1) do
 print("CMON CUH")
end

while task.wait(1) do
 print("CMON BUH")
end

ok so how u gon make these two while loops both print

#

thats ur mission

eternal solar
#

wait i mean the first

iron kraken
#

ok

vapid radish
#

yep

iron kraken
#

its time shared btw

#

which means all the threads shares time on the cpu

iron kraken
#

yes so they are not running at the same time

eternal solar
#

does that change anything

iron kraken
#

yes for performance

#

its lower performance to have more switching

eternal solar
#

oh alr

vapid radish
#

if you're not working on a serious project, don't worry about coroutines.

#

performance and optimizing isn't what you should be learning first

eternal solar
vapid radish
#

alright then just keep learning

eternal solar
#

it takes me an average of 3 hours per brawl dev video tho 😭

vapid radish
#

i dont know how good his videos are but

#

you should look at roblox documentation constantly

eternal solar
vapid radish
eternal solar
#

i'll check that out thanks

wise turtle
vapid radish
iron kraken
wise turtle
#

nevermind read ur message wrong

iron kraken
vapid radish
#

it only really matters if you’re spawning tons of threads

iron kraken
#

switch more between process/thread mean u gotta switch over the memory and the params and look through cache possibly more work for computer basically

north robin
#

hi guys

#
local part = game.Workspace.Bart

part.Touched:Connect(function()
    local newpart = Instance.new("Part")
    newpart.Parent = game.Workspace
    newpart.Anchored = false
end)

game.Workspace.ChildAdded:Connect(function()
    
    print("A new part has been added to the workspace!")
end)

how do i get the new part from the earlier function into the childadded function?

vapid radish
#

ChildAdded gives you the new part automatically (function(child)), there's no need to store it

vapid radish
cobalt yoke
#

do yall have an idea how i could make a simple way to cycle through some colors

#
local function RandomColor()
    return Color3.fromRGB(math.random(1, 255), math.random(1, 255), math.random(1, 255))
end```
#

this is all i have right now

vapid radish
#

just put the colors in a table and cycle an index

cobalt yoke
#
local function CycleColors()
    local colors = {
        Color3.fromRGB(255, 0, 0),
        Color3.fromRGB(255, 165, 0),
        Color3.fromRGB(255, 255, 0),
        Color3.fromRGB(0, 255, 0),
        Color3.fromRGB(0, 255, 255),
        Color3.fromRGB(0, 0, 255),
        Color3.fromRGB(128, 0, 128),
    }
    for _, color in ipairs(colors) do
        script.ColorCorrection.TintColor = color
        task.wait(0.1)
    end
end``` smt like this?
#

@vapid radish

twilit widget
vapid radish
#
local colors = {
    Color3.fromRGB(255, 0, 0),
    Color3.fromRGB(255, 165, 0),
    Color3.fromRGB(255, 255, 0),
    Color3.fromRGB(0, 255, 0),
    Color3.fromRGB(0, 255, 255),
    Color3.fromRGB(0, 0, 255),
    Color3.fromRGB(128, 0, 128),
}

local i = 1

while true do
    script.ColorCorrection.TintColor = colors[i]
    i = i % #colors + 1
    task.wait(0.1)
end```
vapid radish
#

you're welcome Thumbsup

mossy karma
#

is it fine to save datastore when someone leaves or should i save anytime the values change?

mossy karma
#

well that makes my job easier : D

brazen pelican
brazen pelican
mossy karma
vapid radish
#

2012

surreal perch
#

i have an great idea for a game but i have no money and no coding/modeling skills

vapid radish
#

then speak to a game developer

surreal perch
#

dont know any

vapid radish
#

go find some

surreal perch
#

how

vapid radish
#

if you have no money to hire anyone, no management experience, and no coding/modeling skills then you realistically have no choice

mossy karma
#

improve skills 🔥

surreal perch
#

k

#

ty

vapid radish
#

the first step is just learning one small thing or meeting people while you learn. ideas are cool, but skills are what let you actually build them

peak jolt
gloomy kettle
vapid radish
#

individual systems yes

#

but not everything one system can accomplish can be told in a single sentence

vapid radish
surreal perch
gloomy kettle
gloomy kettle
craggy elm
#

.

iron kraken
#

so just pick a green color then lerp the blue value

zenith ivy
#

can somebody help me fix something in my code theres no errors but it wont work ( please vc me even if u wont talk so I can screenshare)

mossy karma
#

if theres no error then id guess its probably a mispelled variable

zenith ivy
#

unless im blind

mossy karma
#

what is it thats the problem and what have you done so far to solve it?

rain jetty
#

WHO NEEDS HELP WITH CODE HELP

iron kraken
#

JJEJEJEGJEGIHJEGUIEIGUHEGE

zenith ivy
#

somebody help 😭

#

Im blind

#

I can't find it

dark juniper
#

In the explorer

#

Then go to line 34

#

That’s where ur error is

regal salmon
past rose
#

is ZonePlus good if i want to make a safe zone?

timid mica
past rose
timid mica
past rose
#

so basically u got a part and u can check when player enters or leaves that part with zoneplus

#

so u can make biomes , safe zones and stuff like that

#

but idk if it s optimized, eh should be

graceful delta
#

im in a cafuffle

#

whys nothing happening

#

and yes, i've also tried "i == time"

twilit widget
graceful delta
#

i realised the issue

#

i had the times listed in there as ["x"] instead of [x]

twilit widget
wild veldt
sharp nimbus
#

why does this say it is indexing nil

#

train.Touched:Connect(function(otherPart)
local parent = otherPart.Parent
local humanoid = parent:FindFirstChildOfClass("Humanoid")

austere vessel
#

its indexing nil cause it cant find otherpartsparent that has humanoid, make it
train.Touched:Connect(function(otherPart)
if otherPart and otherPart.parent:FindFirstChildOfClass("Humanoid") then
local parent = otherPart.Parent
local humanoid = parent:FindFirstChildOfClass("Humanoid")
end
end

#

@sharp nimbus

sharp nimbus
#

thanks

crimson gale
#

it also runs perfectly on server

eternal solar
#

how did you guys get through the tutorial stage bc i find it really to hard to watch tutorial videos at times

remote phoenix
remote phoenix
#

learn core mechanics - how to store data, how to create a part and modify it, etc

eternal solar
eternal solar
#

i mean the data

#

i know how to make a part and stuff

high turret
#

chat how much of coding is just winging it because im taking a coding class and moving forward while winging it 😭

runic pawn
remote phoenix
eternal solar
#

one of my future projects i want to make is similar to fisch

remote phoenix
#

usually the idea is you have something you absolutely need to make, like a genre you absolutely love playing and wanna make your own

remote phoenix
#

or you just learn how to make core mechanics until you have enough knowledge to be out of tutorial hell

eternal solar
remote phoenix
#

there's learning the language, then there's learning to make stuff you know what I mean

eternal solar
#

for the genres i dont really have a favorite bc i play them all but i just want to make games that i find fun

eternal solar
#

i wanted to make a staff that spawns a meteor and i got carried away with it 😭

remote phoenix
#

lol

crimson gale
rocky magnet
#

he does NOT suck

hoary cedar
#

They were referring to their projected progress

rocky magnet
#

mb

waxen rivet
#

guys where do i submit my project for game jam?

waxen rivet
#

oh ok ty

atomic hearth
#

rate my skill

shell wraith
#

How do u learn scripting? Like videos,tutors,documentation,book,paid lessons?

granite igloo
#

videos to start off, then documentation and trying out stuff mostly

shy cipher
compact echo
#

guys help

#

.

hoary cedar
compact echo
#

how do i turn the original leaderstats UI off

#

like if pressed TAB it will not open

tired bronze
#

dont press tab

regal salmon
compact echo
regal salmon
#

lmao

cloud wyvern
hoary cedar
#

Knowing how to write the appropriate prompts is a vital skill

#

This begins in middle school as you develop research skills

atomic hearth
compact echo
# hoary cedar

i already sent the script to him and he said this code will work only with the old UI cryingdead

regal salmon
#

untrue

atomic hearth
cloud wyvern
#

release tomorrow

atomic hearth
#

DAMN

shy cipher
atomic hearth
#

what yall saying to this banger background

ornate gazelle
wary urchin
#

anyone know how i can make a hiring post ?

vocal forge
#

so guys anyone familiar with this pack? can i get sued because of this or striked?

supple spindle
wraith shadow
steep light
ember nimbus
#

probably nothing

#

depends how general it is

wraith shadow
#

theres fucking cash grab obbies that use ts

steep light
#

This ain’t no free system

wraith shadow
#

This isnt original

#

Even if you made it good job but id say you should use these skills to make something else

steep light
wraith shadow
steep light
dusky relic
wraith shadow
#

You make whatever you want

steep light
steep light
dusky relic
wraith shadow
steep light
#

The thing is tho

#

I absolutely SUCK at scripting!

#

I can model stuff tho

limpid basalt
#

wsp guys

wraith shadow
#

I think that fills the hole

steep light
wraith shadow
steep light
wraith shadow
ornate needle
#

hey guys, i just started scripting 2 days ago

rn im trying to make the button make player faster, whats my wrong here??

local Speed = game.Workspace.SpeedButton.Main

Speed.Position = Vector3.new(-1.5, 0.6, 18.7)

Speed.Touched:Connect(function(Boost)
    local hum = Speed.Parent:FindFirstChild("Humanoid")

    if not hum then return end

    if hum then
        hum.WalkSpeed = 20
    end
end)

limpid basalt
#

Speed.Parent should be Boost.Parent

lapis parrot
#

why when i place a model on the ground and then when i load into studio its in a new position, its rigged and all

#

mods ban him

hasty talon
#

Hi

atomic hearth
naive sierra
#

Can I get a game debug dev in this server?

atomic hearth
#

its real

shell wraith
#

Rate Best ways to learn scripting:

Documentation
Brawldev Popular scripting lessons
Roblox coding book
Roblox game: "Scripting school"

buoyant magnet
compact echo
#

GetPropertyChangedSignal
is this event good to send number values from the server to the client

kind spire
#

is it possible to upload the code from roblox game to github? Like a Backup

fading juniper
#

ai is surprisingly good for learning

opal meadow
#

can I script

wraith shadow
#

Is bro agreeing eith everything

compact echo
small wraith
#

ok

wraith shadow
#

I think pari should delete their roblox account

compact echo
wraith shadow
#

caught in 4k

compact echo
#

for 0.3s

#

i saw him

ember fractal
compact echo
unreal geode
compact echo
unreal geode
fallen mango
#

there’s a hidden code in my game that’s a virus that makes a gamepass pop up everytime a player joins? can anyone help me find it?

#

i can pay

#

games completely finished too and wanting to release it today

compact echo
brittle spade
#

is it inspired?

ember fractal
#

anyone know how to get globals to work in neovim. My lsp keeps saying the globals are wrong and adding them in settings havent worked

settings = {
  Lua = {
    runtime = {
      version = "Luau",
    },
    diagnostics = {
      globals = { "game", "workspace", "script" },
    },
    workspace = {
      library = {
        "/path/to/api-dump.json",
      },
      checkThirdParty = false,
    },
  },
}

unreal geode
brittle spade
ember fractal
#

works fine in studio

brittle spade
#

lua_ls barely has any luau support

ember fractal
#
 -- LSP
  use 'neovim/nvim-lspconfig'
  use 'williamboman/mason.nvim'
  use 'williamboman/mason-lspconfig.nvim'

  -- Luau LSP with Roblox support
  use 'lopi-py/luau-lsp.nvim'

  -- Autocompletion
  use {
    'hrsh7th/nvim-cmp',
    requires = {
      'hrsh7th/cmp-nvim-lsp',
      'hrsh7th/cmp-buffer',
      'hrsh7th/cmp-path',
      'L3MON4D3/LuaSnip',
      'saadparwaiz1/cmp_luasnip',
    }
  }

  -- Formatting and Linting
  use 'nvimtools/none-ls.nvim'
  use 'jay-babu/mason-null-ls.nvim'

brittle spade
#

i have bad news

#

that config is for lua-language-server

ember fractal
#

give it to me straight doc

brittle spade
#

luau-ls

#

and also

#

luau-lsp can't even read json directly

ember fractal
#

which one am i suppost to use then

mellow echo
#

I'm making a game where players push blocks around and merge them, but the bigger blocks are harder to move because of the mass, and the smaller the player's character is the harder it is to move the blocks. Does anybody know what I could do??

ember fractal
brittle spade
ember fractal
brittle spade
#

yea

ember fractal
#

thats the one im using

brittle spade
#

your code isn't using that

kind shore
#

hidden devs is not even hidden anymore

brittle spade
#

it's using the lua version of it, not luau

#

those are different things

#

for example, for luau, you can't use json files directly

#

you need to use Lua files, not JSON

fallow tiger
#

cuz you probably just want massless

ember fractal
#

in after/plugin/lsp.lua you can see my lsp config. im pretty sure im using it

brittle spade
# ember fractal https://github.com/NotPandaByte/nvim

settings = {
Lua = {
runtime = {
version = "Luau",
},
diagnostics = {
globals = { "game", "workspace", "script" },
},
workspace = {
library = {
"/path/to/api-dump.json", -> this is the problem
},
checkThirdParty = false,
},
},
}

ember fractal
#

because i havent put in the dump?

brittle spade
#

on the code you presented there

brittle spade
ember fractal
#

im not tho

brittle spade
#

the file ends with.json

#

it's a json file

ember fractal
#

its going to lua lsp not luau

brittle spade
#

well in that case uh

#

lua lsp can't read json files as library sources

ember fractal
#

what is the right way then 🥲

brittle spade
old forum
#

Greetings i would like for sombody to help me understand Object oreinted programming

ember fractal
old forum
#

local Rectangle = {}
Rectangle.__index = Rectangle
function Rectangle.new(width, height)
local object = {}
object.Width = width
object.Height = height

return setmetatable(object, Rectangle)

end

function Rectangle:GetArea()
return self.Width * self.Height
end

local rect = Rectangle.new(10, 10)
print(rect:GetArea())

function Rectangle:GetPerimeter ()
return (self.Width + self.Height)*2
end

local rect = Rectangle.new(5,10)

old forum
#

not the best for what im tryign to do

slow hull
old forum
brittle spade
#

you're using the "rect" variable 2 times in your script

old forum
#

so do you know how to do OOp by your elf

#

self*

brittle spade
old forum
brittle spade
#

you can't create 2 variables under the same name

#

lol

old forum
#

ik

#

but the script work s

#

i need help just making sure i can do this on my own

brittle spade
#

the script does work

old forum
#

yes

brittle spade
#

you know, i think you got it

#

you just need to maintain good and organized code

#

style, etc

old forum
brittle spade
#

a script working IS good but it is not as good as maintaining overall great code

old forum
#

yea

brittle spade
# old forum yea

I think you can make it out as a great scripter, just set optimizationa and organization as your main focus rn

old forum
covert locust
#

if i delete a script do the functions in it automatically get cleaned up?

north robin
#
local part = game.Workspace:FindFirstChild("Bart")

part.Touched:Connect(function()
    local newpart = Instance.new("Part")
    newpart.Parent = game.Workspace
    newpart.Anchored = false
end)

game.Workspace.ChildAdded:Connect(function(child)
    if child.Name == "Part" then
    print("A new part has been added to the workspace!")
    wait(1)
    child:Destroy()
    print("The part was useless so I´ve killed it!")
    end
end)
```What do yall think of my code ive started yesterday! :D
north robin
#

i will continue ;)

ember fractal
#

good luck

north robin
#

thanks

kind seal
fresh grail
#

Does anybody know where can i find a code that for moving the humanoid part in my case ive made an orca and ive put the humanoid in the main part ive tried a script in starterplayerscript but it didnt work to move it. Anybody pls help

fresh grail
stuck hinge
#

?

#

that doesnt make it moveable

fresh grail
#

Yea ik bro ive put the scrip and it didnt work

autumn oak
stuck hinge
#

script?

fresh grail
#

I might be wrong bc im new to programming and i am ABSOLUTELY bad

fresh grail
#

Or wait

#

local player = game.Players.LocalPlayer
local character = workspace:WaitForChild("Orca") -- Your Model Name
local hrp = character.PrimaryPart -- The body part with Humanoid

local speed = 30

local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")

local move = {W=false, A=false, S=false, D=false, Space=false, Shift=false}

-- Track key presses
uis.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.W then move.W = true end
if input.KeyCode == Enum.KeyCode.S then move.S = true end
if input.KeyCode == Enum.KeyCode.A then move.A = true end
if input.KeyCode == Enum.KeyCode.D then move.D = true end
if input.KeyCode == Enum.KeyCode.Space then move.Space = true end
if input.KeyCode == Enum.KeyCode.LeftShift then move.Shift = true end
end
end)

uis.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.W then move.W = false end
if input.KeyCode == Enum.KeyCode.S then move.S = false end
if input.KeyCode == Enum.KeyCode.A then move.A = false end
if input.KeyCode == Enum.KeyCode.D then move.D = false end
if input.KeyCode == Enum.KeyCode.Space then move.Space = false end
if input.KeyCode == Enum.KeyCode.LeftShift then move.Shift = false end
end
end)

#

-- Movement loop
runService.RenderStepped:Connect(function(delta)
local dir = Vector3.new()
if move.W then dir = dir + hrp.CFrame.LookVector end
if move.S then dir = dir - hrp.CFrame.LookVector end
if move.A then dir = dir - hrp.CFrame.RightVector end
if move.D then dir = dir + hrp.CFrame.RightVector end
if move.Space then dir = dir + Vector3.new(0,1,0) end
if move.Shift then dir = dir - Vector3.new(0,1,0) end

if dir.Magnitude > 0 then
    hrp.CFrame = hrp.CFrame + dir.Unit * speed * delta
end

end)

#

Ts is it

#

@stuck hinge

stuck hinge
#

are all the other parts welded to the hrp?

fresh grail
#

Yah

#

But ive made all parts in 1 weldconstant

#

Is that ok

stuck hinge
#

idk what u mean