#code-discussion

1 messages · Page 63 of 1

hollow yew
#

like left click to shoot, r to reload, etc

glacial drum
#

have to click the box with the two little lines in it to add an event that GetMarkerReachedSignal can use

civic garnet
#

cant you make this parallelelelelel

remote bear
civic garnet
remote bear
civic garnet
#

why dont you just glfw + opengl it or something 😭

remote bear
glacial drum
formal viper
#

yo im trying to make like an actual game independently but i rly dont know what to make, can someone give me light suggestions so i can get a lil kickstarted yk

granite forge
#

Ask chat gpt

formal viper
#

im trying to find like a replayable game thats like pretty chill

rancid bay
#

something similar to blood debt and dingus maybe>

formal viper
fervent jetty
#

if im tryna make a restaurant game (like that burger place in bloxburg, or Work At a Pizza Place), and I have a customer spawn in, whats the best way to like store there order, do I just make a attribute??

#

I think im using too many modules scripts tho idk

hollow yew
#

like

#

1 sec

hollow yew
# hollow yew like
local order = {
    ["Hamburger"] = {
        pickles = 54,
        tomatos = 1,
        buns = 0
    },
    ["Soda"] = {
        type = "coke",
        size = 5000
    }
}
``` or smth
polar furnace
#

Somebody give me a task to do in studio (scripter)

sudden estuary
#

but 2d

young olive
silver drum
#

does anyone have a good website that has all the syntax n wut not for lua roblox? i cant find a good one and tbh idk how to use github i get lost ash, would appreciate it if given 🙂

silver drum
#

thanks u

little heart
#

what makes it so that the PlayerAdded function doesnt add to the value, though the PlayerRemoving does?

patent flare
#

any scripters?

serene terrace
#

It will work fine inside of actual roblox though

little heart
#

okayyy thank you

fickle talon
#

How did they set up the characters in this

#

Mine looks really odd whenever I place it in the camera and cframe it

copper jay
hollow yew
#

ok

willow marsh
# little heart what makes it so that the PlayerAdded function doesnt add to the value, though t...
sweet magnet
#

Hello interface channel

little crest
#

Hi

weak radish
runic ocean
#

wasapppp

civic bison
#

Chat when I hover on a button, all the buttons which are located with the button I hovered on get the tweening animation for some reason

civic bison
runic ocean
#

what

cloud linden
#

Guys i need to get hired for phyton scripting, where should I ask for a commission?

runic ocean
lofty belfry
#

hi guys can someone help me script overhead UI it doesn't want to show in my game and the GUI dm me

karmic coral
#

Im recreating a game. i need a scripter dm me if u experienced. payment is 50% and 10-15k rbx upon release. i do modelling & ui and some vfx. im investing 100k into the game. dm fast.

white dock
#

What difference between average session time and average play time in analytics ?

stable urchin
#

In our game we have a framework where service modules are able to fetch eachother by interfacing with the framework.

white aurora
#

bro luau has type annotations?

#

wew

sharp wave
#

uh

#

im a couple years late

rigid cedar
#

Why dosent this show the prefix? No errors and everything seems correct: ```lua
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local RankUpdateEvent = ReplicatedStorage:WaitForChild("RemotesFolder"):WaitForChild("UserRanks")

local top100Ranks = {}

RankUpdateEvent.OnClientEvent:Connect(function(rankTable)
top100Ranks = rankTable
end)

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

if message.TextSource then
    local userId = message.TextSource.UserId
    local rank = top100Ranks[userId]

    if rank then
        props.PrefixText = string.format("<font color='#00C8FF'>[#%d]</font> %s", rank, message.PrefixText or "")
    else
        props.PrefixText = message.PrefixText or ""
    end

    props.Text = message.Text
end

return props

end

golden hill
#

whats the difference between scripting and programming

ripe plume
civic bison
ripe plume
#

try to create a different element for just the bg and tween that if j dont want it to tween

ripe plume
# civic bison Wdym?

when you tween an element, descendants are also tweened if u use scale, if this is not your intended purpose do what I said right over

olive holly
#

genuinely tweaking, someone set up a creature model to spawn in with a humanoid part when it used around r60......

tropic sequoia
#

Yo guys, how do I find a find a part that is non existing yet and clone it to the backpack? For example, ```re_equipitem.OnServerEvent:Connect(function(player, input)
local slotsFolder = player:WaitForChild("Slots")
local main = slotsFolder:WaitForChild("MainSlots")
local backpack = player:WaitForChild("Backpack")
print("reached server")
if input == Enum.KeyCode.One then
print("equipping")
local cloneToBackpack = main:---->here<---:Clone()
cloneToBackpack.Parent = backpack
end
end)

return BackpackHandler``` The folder doesn't have the item inside of it yet. Got any ideas how I would get the child of the folder and not use GetChildren()?

somber vault
#

15$

craggy niche
tropic sequoia
#

the items won't be always in one place

craggy niche
#

put the part in replicated storage and then clone it from the script

tropic sequoia
#

okay I have an idea

fleet gull
stable urchin
#

In roblox code containers are called scripts so writing in them would be called scripting

#

But you're programming a game, writing its game logic

#

And programming can be interpreted in multiple ways aswell

#

You are creating programs, consisting of logic

golden hill
#

the programmer creates the logic and the scripter uses it

stable urchin
#

I don't know what you drew that conclusion from

#

Lol

golden hill
#

the programmer makes the software

#

and the scripter writes the scripts in the software

stable urchin
#

I'm grabbing my laptop, phone keyboard is insufferable

#

back

golden hill
#

OHHHH

#

ok

stable urchin
#

but the meaning of language depends on what everyone thinks of it so if everyone thinks that scripter and programmer mean the same thing then the language will bend to that

craggy niche
#

if i making an ability that hits enemy into air, then flies up and hits them down, do i need to fly up in the animation? or just a still flying animation then use vectors to make the player fly instead

hard wolf
#

How do you make classic sword skins with the same hitbox for all skins?

#

Changing the default Mesh object inside the classic sword works and keeps the Handle part's hitbox static regardless of mesh, but it doesn't allow for rotation and if the modeler doesn't perfectly rotate the sword you can't change it later. Especially bad when i already have like 50 skins all with different rotations

hard wolf
#

Yes but SpecialMesh/FileMesh allows for position offset and scale offset

#

But not for rotation offset

#

Which is a big problem

wise adder
hard wolf
#

The hitbox part worsk well and is positioned correctly

#

But the hit detection is just broken

wise adder
#

how come

hard wolf
#

Player to player collisions are disabled and that seems to mess wit hthe hit detection, when i re-enable player collisions it works

#

Can you equip 2 tools on one character?

wise adder
#

then you just gotta switch up the collision group for the hitbox too

#

I guess you're probably using .touched

hard wolf
#

Yes

#

It's the default sword script with improvements

wise adder
#

Either the collision groups or properties of player or hitbox aint right

#

not sure for what .touched accounts for

#

check out the documentation

somber vault
#

Should I use text compression in MessangingService

stray oak
#

uhm 😭

cloud linden
#

No lag?

unique summit
#

is it possible to change the lighint in diffrent areas in a game?

unique summit
#

whats that?

cloud linden
#

Light emitters

unique summit
#

okay

cloud linden
#

And put transparency to 1

unique summit
#

ok thxs

somber vault
#

I need 600 players to test out an infinite player servers method

cloud linden
silent ether
#

guys theres something wrong with my game
how do i locate the asset so i can delete it

languid iris
#

Search it up

silent ether
#

errorr

#

which is why im confused

languid iris
#

Show me the error

silent ether
#

maybe i put the wrong url id
whats the correct one so i can put in asset id

languid iris
languid iris
kind magnet
#

220 lines of code for simple shared health mechanics lmaoo 😭

silent ether
languid iris
kind magnet
languid iris
silent ether
#

the issue

languid iris
languid iris
kind magnet
#

a lot of it is just griefing mechanics my friend helped me make

#

havent properly tested it yet

#

i'll send it over if it works lol

#

also, love your bio - mortal man is amazing

languid iris
languid iris
#

SOMEONE KNOWS

kind magnet
#

im a pop fan and so when i listened to tpab for the first time the bar was set so unbelievably high 😭

languid iris
#

What's your favorite song on it?

silent ether
languid iris
#

If no free models

#

Why are you using assets

#

Did you get those remotes from the marketplace?

silent ether
#

no

languid iris
#

Then they can't do anything bad

silent ether
#

its a medical system
and my concern is
the naming

#

since they are technically drugs

languid iris
#

OHHHH

#

You should probably change the names

silent ether
#

which ones in particular

languid iris
#

And find any other things in any other directory that are named after drugs

languid iris
silent ether
#

ok

#

i will try

#

thank

obsidian yacht
#

Any scripters free to help me with something small rq?

silent ether
#

@languid iris since roblox warned my account from it...and the asset is apparently deleted, do i even need to do anything since maybe they removed it from my studio too?

#

or do they not automatically remove bad stuff

obsidian yacht
# sudden estuary ask

So i have coded a UI that works, except for when the user closes the UI, and go to the region designated to reopen it, it wont reopen until the session is restarted?

languid iris
silent ether
languid iris
#

Wait they have the asset name

#

Just check the game for it

silent ether
#

ngl idk how to do that

sudden estuary
modern sundial
#

does anyone know how to fix "This experience is currently not available" after publishing it

sudden estuary
obsidian yacht
hollow vine
#

yo does anyone know how to make those blob eating games and tell me how to setup the blob

sudden estuary
obsidian yacht
languid iris
potent breach
#

Yo

merry karma
wise meadow
#

MAY THE 4TH BE WITH YOU CHATTT

glossy pivot
#

Huh

cosmic tusk
#

best way to learn lua

wind crown
#

is anyone familiar with solarhorizon lightsabers, i am trying to change the model hilt, the hilt appears behind me not in my hand

fallen depot
# cosmic tusk best way to learn lua

wrong! best way to learn lua is actually by playing Dead By Daylight! 😁 This is because the game is so shit that it will motivate you to learn 10x as fast!

stiff ibex
#

hiiiiiiiiiii

gray maple
#

i should actually make gpt speak like that to break the ice

cosmic tusk
gray maple
#

I love the tiny brain many lies part lmao

wind crown
#

i had to change position but why is it so small

cosmic tusk
#

🗣️ never trust local script

gray maple
#

🔥

fallen shore
#

Imagine still using roblox to create games.

#

Ts tragic.

spare reef
#

Which constraint allows parts to be unanchored and not fall apart

spare reef
#

I want it to be destructible tho

abstract dagger
#

delete welds

fallen shore
abstract dagger
#

facts

oblique epoch
#

stfo

civic rain
lyric zealot
#

Guys how long does it takes to get good at this coding language?

lyric zealot
fallen depot
#

so its just up to you and how much you wanna learn i guess

#

but i would say 1 year is a good estimate to have a really good grasp of the language

lyric zealot
#

Nice

#

So I kinda know the basics of coding

#

because I've done other coding languages

#

So wheeeeeeeeeere should I start?

#

With UI?

lyric zealot
fallen depot
lyric zealot
#

Ive done basic UI

#

and like walking on a block makes it disappear type stuff

fallen depot
#

you should get a basic grasp of the language & engine, UI might be a little much right now & you'd be skipping over a lot of steps by going straight to it

lyric zealot
#

Also hovering over something makes a sound effect

fallen depot
#

what id recommend is just coming up with ideas for small projects

lyric zealot
#

hm

fallen depot
#

and executing them

#

like even if its nothing impressive, as long as ur learning

#

first thing i ever made was a button that set the baseplate to a random transparency & color

lyric zealot
fallen depot
lyric zealot
fallen depot
#

so that you're comfortable

lyric zealot
gleaming gull
#

Learning programming in ooga booga language.

cosmic tusk
#

best way to learn lua change my mind

static coral
cosmic tusk
#

who is doctor pickle 💔

cosmic tusk
#

ai doesnt know it :(

static coral
#

doctor pickle has his own ai converter somewhere

#

you give it topic and it will present in doctor pickle style iirc

#

check his channel its there somewhere

cosmic tusk
static coral
#

if u want

static coral
cosmic tusk
#

hahahah wrong got me good🙏

runic ocean
runic ocean
foggy river
runic ocean
foggy river
runic ocean
#

i made this discord acc like a month ago

#

cuz my main got banned 💀

#

it got hacke

shy lion
#

hey guys , i made a anti cheat system , can anyone try it?

silver drum
#

hello people, quick question, have u guys ever had to use the # key thing for coding? like for example

local str="chicken"
print(#str)

^ it would then give length of string or number of elements in a table

shy lion
#

its to make the strings numbers or something like that

static coral
#

it just returns the length

silver drum
silver drum
abstract dagger
#

amount of players still alive

#

amount of items or objects in a folder

silver drum
#

im trying to make a list of usfull things i can use later instead of trying to remember or forgetting yk

abstract dagger
#

like #folder:GetChildren()

#

amount of animations in a folder

static coral
abstract dagger
#

amount of x, y, z

silver drum
silver drum
static coral
silver drum
silver drum
abstract dagger
#

oh i don't mean it as x, y, z dimensions

#

i just meant it as "etc"

silver drum
#

ohh alr alr alr alr thanks thanks fs

wind pasture
#

Who here wants to be my friend

distant tiger
lethal light
craggy niche
zenith holly
#

How good is the course is my question

fallen depot
#

sorry

civic rain
#

im trying to write a very simple code, could someone tell me why this isnt working?
Image

tribal prawn
# civic rain

uh try removing the hit parameter and js print it directly

#

no while loop

#

because .Touched already detects when the part is being touched

#

idk try that

civic rain
craggy niche
#
local CollectionService = game:GetService("CollectionService")
local ObbyFinish = game.Workspace.ObbyFinish
local KillBrick = game.Workspace.ObbyFloor
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RNGModule = require(ReplicatedStorage.Modules.RNGModule)
local debounce = false
local SpawnLocation = game.Workspace.SpawnLocation

local ObbyRewards = {
    Coins = 1,
    SpecialPickaxe = 0.01,
    Pet = 0.02,
    DoubleCoins10Min = 0.5,
    DoubleCoins15Min = 0.2,
}


KillBrick.Touched:Connect(function(hit)
    local Character = hit.Parent
    if Character then
        local Humanoid = Character:WaitForChild("Humanoid")
        if Humanoid then
            Humanoid.Health = 0
        end
    end
end)

ObbyFinish.Touched:Connect(function(hit)
    local Character = hit.Parent
    if Character then
        if debounce then return end
        local debounce = true
        RNGModule.weighted_rng(ObbyRewards)
        local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
        if HumanoidRootPart then
            HumanoidRootPart.Position = SpawnLocation.Position
        end
        task.wait(10)
        local debounce = false
    end
end)

any ideas why ObbyFinish is acting as a killbrick?

#

only obbyfloor (KillBrick) should be acting as a killbrick

#

also it isnt teleporting the player and the debounce isnt working

tribal prawn
#

because it changes the character to whatever hit.Parent is

craggy niche
#

no, it sets "Character" variable to hit.parent (the player's character)

tribal prawn
#

it seems fine

#

maybe other scripts are evolved in this

craggy niche
#

nope, there arent any others that deal with anything similar

tribal prawn
#

they can logically try to find a fix or straight up find the source of the problem

velvet vapor
#

If raycast hits a model, does it return a model as .Instance or a child of this model?

hasty mesa
#

it returns a basepart

#

so a part that has been hit

velvet vapor
#

thanks, really appreciate it

tribal prawn
#

model = part right

velvet vapor
#

no I meant like you have a complex house as a model for example and ray hits it

#

and the question was what i will get as a result

tribal prawn
#

that's different isn't it?

lucid shadow
#

anyone able to develop a rat

tribal prawn
#

@hasty mesa he said model not a part

velvet vapor
#

he said yea it will return a basepart inside this model

tribal prawn
#

yeah but model ~= part

tribal prawn
velvet vapor
whole schooner
tribal prawn
sour stone
#

Are there any scripters/investors that are interested in developing a brainrot game with me? I pay in game revenue! DM me for more info!

whole schooner
sour stone
#

Well what do you script in/

#

?

whole schooner
#

lua

sour stone
#

All right uh

#

Well I am currently hiring a dev team

#

Ill pay them in %

#

The game idea is very popular right now so it has high success chance

whole schooner
#

okay well im 6 year roblox scripter i know mostly everything

#

need atleast ui artist then and a builde

sour stone
#

Alr DM me

sour stone
#

Ill get them

#

Im a builder and a modeler myself

acoustic vigil
#

dm me to make a game together

noble stratus
#

any testers?

ruby gazelle
#
--!strict
local HttpService = game:GetService("HttpService")
local ObserverClass = {}

ObserverClass.__index = ObserverClass

type callback<T...> = (T...) -> ()

type connection<T...> = {
    ["Callback"] : callback<T...>,
    ["Disconnect"] : () -> ()
}

type eventsList<T...> = {
    [string] : {[string] : connection<T...>}
}

type Observer<T...> = typeof(setmetatable({["Events"] = {} :: eventsList<T...>}, ObserverClass))

local function New<T...>() : Observer<T...>
    return setmetatable({["Events"] = {}}, ObserverClass)
end

function ObserverClass.Connect<T...>(self : Observer<T...>, Event:string, Callback : callback<T...>)
    if not self.Events[Event] then
        self.Events[Event] = {}
    end

    local id = HttpService:GenerateGUID(false)

    local connection : connection<T...> = {
        ["Callback"] = Callback,
        ["Disconnect"] = function()
            self.Events[Event][id] = nil
        end
    }

    self.Events[Event][id] = connection

    return connection
end

function ObserverClass.Fire<T...>(self: Observer<T...>, Event : string, ... :  T...)
    if not self[Event] then
        warn("Event has no callbacks")
        return
    end

    for _, v in self.Events[Event] do
        task.spawn(v.Callback, ...)
    end
end


return {New = New}
``` hello is this good observer
#

I plan to add a listen method to it in the future to run when a certain property is changed but havent done that yet

acoustic vigil
#

dm me to make a game together

cunning badge
# ruby gazelle ```lua --!strict local HttpService = game:GetService("HttpService") local Observ...
--!strict
local HttpService = game:GetService("HttpService")
local ObserverClass = {}

ObserverClass.__index = ObserverClass

type callback<T...> = (T...) -> ()

type connection<T...> = {
    ["Callback"] : callback<T...>,
    ["Disconnect"] : () -> ()
}

type eventsList<T...> = {
    [string] : {[string] : connection<T...>}
}

type Observer<T...> = typeof(setmetatable({["Events"] = {} :: eventsList<T...>}, ObserverClass))

local function New<T...>() : Observer<T...>
    return setmetatable({["Events"] = {}}, ObserverClass)
end

function ObserverClass.Connect<T...>(self : Observer<T...>, Event:string, Callback : callback<T...>)
    if not self.Events[Event] then
        self.Events[Event] = {}
    end

    local id = HttpService:GenerateGUID(false)

    local connection : connection<T...> = {
        ["Callback"] = Callback,
        ["Disconnect"] = function()
            self.Events[Event][id] = nil
        end
    }

    self.Events[Event][id] = connection

    return connection
end

-- You missed the self.Events here but I see you wrote it correctly in line 25.
-- I've fixed for you.
function ObserverClass.Fire<T...>(self: Observer<T...>, Event : string, ... :  T...)
    if not self.Events[Event] then
        warn("Event has no callbacks")
        return
    end


-- You need a pairs wrapper here to make a proper table.
    for _, v in pairs(self.Events[Event]) do
        task.spawn(v.Callback, ...)
    end
end

return {New = New}

Just some quick commented fixes. There's a few design choices I'd do differently, but I can't really comment until I see how you implement the listener.

acoustic vigil
#

dm to join dev team

zealous acorn
#

does anyone know how to make a stranger system

cyan isle
ruby gazelle
zealous acorn
#

on the contrary i need to find smbdy who can help teach me script

cyan isle
zealous acorn
zealous acorn
cyan isle
#

Took me like 4 - 5 hours. 😭

cyan isle
zealous acorn
cyan isle
ruby gazelle
cunning badge
# ruby gazelle Yeah sorry I sent a version where I hadnt fully added self.Events by me simply f...

Huh I may be a bit rusty, but it's because you are using a generic for loop. Line 50 I think, but 53 after I added my comments.

It can still work because Luau assumes pairs for the most part, but sometimes it doesn't so it can silently fail. Mhmm, in your case, it shouldn't really be working since you cited you are in strict mode which I see you've noted at the top.

At the end though, if it works for you, that's good 🙂 Sorry I can't provide more help. And nice you spotted the other ones on your own.

ruby gazelle
rugged island
#

local CacheObjects = require(script:WaitForChild("CacheObject"))

always had this question.. do we need to waitforchild for objects inside a local script?

raven sonnet
#

if it is in startergui u don't need to use waitforchild since everything is replicated at the same time

bleak glade
umbral cedar
#

What is the most recommended Signal module to use in Roblox games?

rugged island
#

if the script is in startegui

raven sonnet
rugged island
#

i dont look at performance into that detail

#

i should do that tho

raven sonnet
raven sonnet
velvet vapor
rugged island
#

Instance:FindFirstChild() is a more efficient alternative to WaitForChild()

#

thats true

#

am trying to find where it states how much waitforchild impacts performance

lusty barn
slate nimbus
#

is there any scipters willing to work on a game for free? if so dm me

lusty barn
#

WaitForChild waits until a child by that name is found

#

FindFirstChild doesn't yield and can return nil

lusty barn
umbral cedar
velvet vapor
umbral cedar
#

🙏

rugged island
#

anyway

lusty barn
hallow linden
#

Is there some easy way to find when an object ends? As in, if I know an object is in a certain position and have raytraced info about it, can I tell where the closest point where it reaches an edge is?

rugged island
#
local ClientEvents = game:GetService("ReplicatedStorage"):WaitForChild("Main", 25).Events.Client

Would WaitForChild be needed in that serverscript

lusty barn
#

by saying it was an alternataive

lusty barn
#

contents of ReplicatedStorage are replicated before DataModel.Loaded fires

rugged island
lucid shadow
#

anyone able to develop rat i’ll pay

rugged island
#

is that better

lusty barn
#

not really

rugged island
proud idol
rugged island
lusty barn
#

literally just finds the first child

#

else it returns nil

rugged island
lusty barn
#

whereas WaitForChild doesn't return nil unless timeout

proud idol
# rugged island huh

Roblox loads all instances serverside before any script runs, which is why u dont need waitforchild serverside (unless u use streaming enabled)

rugged island
#

thats what the code says

rugged island
#

yea streaming enabled isnt a property for replicatedstorage

proud idol
#

Do u know what streaming enabled does

rugged island
#

and unloading

#

only for viewable objects

#

or visiual objects for the client

#

Not something outside of the workspace

#

its not a property for replicatedstorage, the code is requiring something from the RS

proud idol
#

So u wouldnt need waitforchild then

rugged island
#

Yea dizzyco cleared that for me

#

am trying to break down on performance

#

Thanks guys

#

cya

placid agate
placid agate
rugged island
#

have you guys ever read robloxs animate script?

#

its so no neat 😠

lofty plinth
#

Its not 2 bad

rugged island
#

i dont like it

lusty barn
#

25 char variable name is crazy

rugged island
#

wait wait

#

look at this LMAO

#

why do they do this bro

#

it looks so ai

#

yk how ai does _no capital letter, Capitalize

like

dataTool

#

Instead of DataTool

#

whats the point

#

i cant read it

dark basin
#

im new to scripting i spent some of my days learning the basics but i was wondering is there anything you guys would recommend for me to watch or use to help gather a full understanding on scripting?

summer scarab
proud idol
rugged island
#

i hate it

rugged island
rugged island
#

PascalCase

lofty plinth
#

Alot of wat they do even if its ugly is fairly smart

copper apex
chilly canyon
#

Aight

chilly canyon
dark basin
#

is there anyone who can help me this but when i try to code soemthings it like i dont know how to start off or what way to do it for example i want to make a dash system but i dont know i would start off like it may sound weird but if you know how to help please tell me any feedback is good

chilly canyon
#

Start with the basics

dark basin
#

what do you mean

#

i learn most of the basic but i dont know how to apply it

spark arrow
#

then the movement velocity for each direction (should be ran off the client for best performance depending on the game)

#

then add effects and animations

spare reef
#

As a beginner scripter is it good to just repeat making killbrick scripts until I’ve memorized it? Thats what I’m doing rn. I’m on the third time and I’ve almost memorized it

dark basin
spark arrow
dark basin
#

Oh

#

Makes more sense alright

tiny widget
#

Calling it ai is so crazy

#

Junks embarrassing

tiny widget
#

Script a variety of different things that peak your interest

spare reef
turbid moth
#

u should learn abt variables loops data types and variable manipulation as in modifying it and stuff @dark basin

spare reef
#

Yes

tiny widget
#

Who cares, do you want to make a game?

spare reef
#

Yes

tiny widget
#

Then learn to script

turbid moth
#

aim to understand it

spare reef
#

What do you recommend starting off making. I understand all the data types

#

And functions

#

Basic stuff

spare reef
#

Like for loops?

#

Or while loops

turbid moth
tiny widget
#

And while and repeat

turbid moth
#

that would require a loop

spare reef
#

K

tiny widget
#

Another loop

turbid moth
#

and also for u to generate a random color value

spare reef
#

That sounds hard

turbid moth
#

its not

spare reef
#

Could yall hop on voice and help me through it if I get stuck?

turbid moth
#

use online resources if u cant figure it out

tiny widget
#

The better beginner project imo is a memory game

turbid moth
#

i have never tried lua so i cant help u

#

only know other languages

spare reef
turbid moth
spare reef
#

Why haven’t you tried to learn luau

turbid moth
#

wasnt really that interested

#

in making a roblox game

spare reef
#

Hm

#

O

turbid moth
#

ik it wouldnt be hard since i already have a good understanding of programming basics but i dont want to learn it yet

spare reef
#

Ye

#

See, right here is a perfect example where I get stuck. I made the variable. Now I have no clue if I need to do something before making the loop or not

#

I think I got it

#

But I’m not sure

#

Uhh

#

Idk how to randomize colors

turbid moth
#

if its rgb then

tiny widget
# spare reef Wdym

A simple memory game. You spawn in, theres a screen with a surface ui. Several objects representing a color with click detectors or proximity events and an object with the same set up to start the game.

On the server create the game logic to generate a random color sequence then display that sequence to the player, then have to repeat it and what not

turbid moth
#

generate 3 random values between 0 and 256

tiny widget
#

Its straight forward

turbid moth
#

then u uhh

spare reef
#

Oh gosh. I never done anything with ui

turbid moth
#

ik how to do it but not how to explain it

spare reef
#

Ye

turbid moth
#

rgb requires 3 values between 0-256

#

u then store those 3 values in a variable and set the brick color to the value of that variable

spare reef
turbid moth
#

just putting all 3 of those together wont work though

spare reef
#

O

turbid moth
#

u gotta make it like

#

where each number is it has to be the variable where the value of the random value is stored

spare reef
#

WHY IS NOTHING HAPPENING 😭

tiny widget
spare reef
#

Oh ok

tiny widget
#

People tend to move away from them for other methods

spare reef
#

This is the simplest script ever and nothing is happening 😭

tiny widget
#

Maybe not proximity

spare reef
#

Do I have to make the loop a function??

#

@turbid moth

#

@tiny widget

turbid moth
spare reef
#

Idk why nothing is happening

#

I don’t think u gotta call a loop

#

Pretty sure u don’t actually

turbid moth
#

if u use a while loop

spare reef
#

Only functions

turbid moth
#

as long as the condition is true it repeats infinitely

spare reef
#

while true do

turbid moth
#

then

#

the block of code inside of the loop is executed

spare reef
#

Ohhhh

turbid moth
#

like

#

if the condition is true the block of code is executed

tiny widget
spare reef
#

It says unable to assign property brick color. Brick color expected, got string

#

Ohhh

turbid moth
#

im not a luau scripter

spare reef
#

But how do I change it

#

Is it vector 3??

spare reef
#

Wdym

turbid moth
#

like uppercase lowercase

#

Aa

tiny widget
#

Oh you sent a string

spare reef
#

Well yeah, but it shouldn’t be

tiny widget
#

Show the code

turbid moth
#

i remember how i typed 1 letter in lowercase in javascript

spare reef
turbid moth
#

and didnt know why my code wasnt working

#

for 30 minutes

spare reef
#

Don’t roast my script 😭

tiny widget
spare reef
#

Yep

#

Here come the roasts

#

What I do 😢

#

What’d I do wrong

turbid moth
#

so basically

#

the issue u made there is

#

installing roblox studio

spare reef
#

lol

tiny widget
#

Use BrickColor.new() to wrap the names

spare reef
#

Shit

tiny widget
spare reef
#

Is it a string in the brackets?

#

Yeppp

#

I’m stupid bro

spare reef
#

Ty

#

IT WORKSSSSSS SHSIRKFJJFHEHEIRBUENEBEGDGEHWHWHEHUE

#

So uh what should I make now

#

@turbid moth

#

I want something quick

#

Cuz I’m goin to bed soon ish

turbid moth
#

now make it a randomly generated rgb value

#

if roblox studio takes those

spare reef
#

I don’t think they do

zenith holly
#

It can

#

Instead of brick color u use one of the ones that take numbers as an input

#

The rest you should try to figure out on your own

tiny widget
zenith holly
#

yesm

spare reef
#

Okay I’m special nvm

rugged island
spare reef
#

But I would have no clue how to go about making it random

#

Like ik math.random but

#

I mean tables

zenith holly
#

try it out

spare reef
#

But idk how to actually make it random

zenith holly
#

math.random(?,?)

#

what do the question marks take

spare reef
#

What’s mathing though

spare reef
#

I’m looking at documentation rn

#

This is a whole lot of useless information that I don’t understand

median echo
#

how long to learn rblx studio

spare reef
#

Like scripting

median echo
#

yhea

spare reef
#

Or the controls

median echo
#

scripting

spare reef
#

Oh

median echo
#

mb lua

spare reef
#

Idk, it’s taken me a while

spare reef
#

Do u have any experience with other coding languages

median echo
#

yea js, py

spare reef
#

Oh

#

It’ll be fast for u then

#

This is my first coding language so

median echo
#

i see

spare reef
#

Ra

#

Where do I see the information I understand about math.random

spare reef
#

I’m trying to make a color change random colors

#

Idk what a hyperbolic cosine is

copper apex
#

You dont need hyperbolic cosine to randomize colors

spare reef
#

Ik

#

I was just saying it’s still stuff I don’t understand at all

copper apex
#

Dont overwhelm yourself

#

A really good programmer with lots of experience still uses documentations

#

IT TAKES TIME to understand everything

#

And even if you do, you forget stuff

spare reef
#

I assume I’d put the math. Random in a while true do loop?

copper apex
#

Depends on what you're doing

spare reef
#

I just don’t know how to go aboun it

zenith holly
#

your thoughts are getting somewhere

spare reef
#

I’m tryna make a part change to a random color every 5 seconds

#

I already got it to change colors but not random

copper apex
#

Pseudocode:

while true do
get random color using math.random
assign color to part
wait for 5 seconds

zenith holly
#

ima just tell him

spare reef
#

DONT

#

I have to learn mostly myself

zenith holly
#

alright

spare reef
#

Is math.random a function or what

#

Like what goes in or outside brackets?

copper apex
#

Learn to read the documentation

zenith holly
#

then a reminder here most things are WAY MORE simple that you think

spare reef
#

Idk how

copper apex
#

It tells you everything in front of you

spare reef
#

WAIT

#

DO I PUT BRICKCOLOR IN THE BRACKETS

copper apex
#

No.

zenith holly
#

close

spare reef
#

GOSH DANGIT

zenith holly
#

but no

copper apex
#

The paramaters are two numbers

spare reef
#

There’s 3 numbers in colors tho

#

Vector 3 and run

copper apex
#

As you can see in what I sent above

spare reef
#

Rgb

spare reef
copper apex
#

You can randomize a red, then green, then blue

zenith holly
#

r | g | b

spare reef
#

I though it was just 2 numbers in the parameters

copper apex
#

Yes a color is from 1-255

zenith holly
#

yes

spare reef
#

Ohhhh

copper apex
#

Get a color for red, so do math.random(1, 255) for red, then for blue, then for green

spare reef
#

I’m still confused but I’ll try

copper apex
#

You can simply this further so you dont have 3 redundant lines for this same function

spare reef
#

Do u put it in one math. Random or do u have to make 3 of them

copper apex
#

Okay so, math.random(x, y) takes two paramters

spare reef
#

Ye

copper apex
#

x is a number, y is a number

#

You do
local red = Math.random(1, 255)
local blue = Math.random(1, 255)
local green = Math.random(1, 255)

#

Obviously its redundant, but just make it work first

spare reef
#

Outside of the loop?

copper apex
#

No inside the loop if you want it to change every 5 seconds.

spare reef
#

Ok

copper apex
#

Then, you will have a red, green and blue. Now you can set the color3 of a part with those variables.

#

To change their color.

spare reef
#

Sooo

#

Vector3.new(red, green, blue) ???

copper apex
#

Vector3 is not for colors

#

It's Color3

spare reef
#

That’s what I meant

#

It don’t work

#

Attempt to index number with “blue” ?

spare reef
#

Tf

#

I did that

lusty barn
lusty barn
#

show your script

spare reef
#

Don’t roast it

lusty barn
#

you put a period instead of a comma

#

also no need for another color change after the wait, it will loop back by itself

spare reef
#

Bruh

#

Oh shitty

dark basin
lyric zealot
#

Hey guys

#

Where uh should I like start

#

I forgor 💀

lethal light
#

Is it just me or i cant view my past studio history?

lyric zealot
#

I know like some basic stuff

#

so whats basic beginner projects to do as a beginner scripter

#

someone tell me please

fast nova
#

does anyone have a copy of shinden?

lethal light
#

is anyone having issues with view history?

median echo
#

is there any challenges for coding in lua

median stone
#

can anyone help on how to make it so you teleport if you reset while sitting in a chair

copper apex
#

Have an open and close function

lyric zealot
#

hm.. Not to annoy you but what should I do next after that

lyric zealot
lusty barn
#

and of course in the connection just set their humanoidrootpart's position

lusty barn
chilly canyon
#

hard coded the shit out of it

hollow dawn
chilly canyon
#

💔

viscid orbit
#

what

zenith holly
#

😔

jagged sluice
#

What is this 😭

chilly canyon
#

ik 💔

hollow dawn
#

bro 😭

#
function UIAnimations:__hideButtons(shouldHide: boolean)
    local targetPositionKey = shouldHide and "HidePosition" or "OrigPosition"
    local tweenInfo = TweenInfo.new(0.2)

    for _, buttonData in self.HideableButtons do
        local button = buttonData.Button
        local targetPosition = buttonData.Positions[targetPositionKey]

        TweenService:Create(button, tweenInfo, {
            Position = targetPosition,
        }):Play()
    end
end
chilly canyon
#

yooo

#

you're good at problem solving

hollow dawn
#

sick lol

jagged sluice
#

Fire

dark juniper
#

this makes zero sense

chilly canyon
#

How?

hollow dawn
polar furnace
#

can somebody help me yo can somebody help me test my game (it will only take a minute)

fickle wedge
#

is the best way to script just asking questions and watching tuns of tutorials following along and comprehending them?

lost burrow
#

updated my npm packages after a few months and now suddenly my modal/button builders are breaking

#

how do i fix it

#

discord.js

fickle wedge
mint cloud
#

Wdym

#

Completely unrelated

#

Nobody vibes with chatgpt anyways 😦

iron skiff
#

anyone got 2 player obby systems?

eager dagger
#

if u put _ on stuff it's either to update a preRender __update or other shit

mint cloud
#

Only time I see the double underscore is on python boilerplate

eager dagger
azure gate
#

anyone knows how to make smooth jump like in rivals or aresnal?

#

plz do tell

#

😄

gilded gyro
#

hello guys i wanna ask for who can code

#

make a simple damage script TrollSus

spark arrow
#

I can

azure gate
#

indicator?

#

then iam in

tardy pasture
iron skiff
spark arrow
iron skiff
gloomy kraken
gilded gyro
gilded gyro
#

because Color3.new are ranged to 0.1
use Color3.fromRGB instead if u want it ranged to 0-255

charred night
#

positionkey = bool and "yes" or "no"
thing = positionkey == "yes" and 1 or 0

#

💀💀💀💀

#

nvm dawg im dyslexic forgive me

hardy pilot
visual vector
#

guys can anyone help with making my dream game

visual vector
visual vector
open rock
#

I bet you aren’t paying

visual vector
visual vector
velvet vapor
#

Is there a way to remove the thing: when I put part on the baseplate, roblox automatically inserts a weld inside it?

ripe plume
#

yeah turn off welds at the top

#

or 'joint surfaces' its called something like that if I remember correctly

chilly canyon
velvet vapor
#

How people usually write scripts for one tool that is being cloned afterwards? Adding localscript to every tool seems garbage, but if I use tags + script with collection service I guess it will work only tagged tools on the moment of script execution

tardy pasture
#

seems like a waste off time

hardy pilot
tardy pasture
#

rojo ?

hardy pilot
tardy pasture
#

what the hell is rojo

hardy pilot
tardy pasture
#

no im lazy

#

ur the one talking about rojo so explain it to me like im a baby

gloomy kraken
tardy pasture
gloomy kraken
tardy pasture
velvet vapor
gloomy kraken
chilly canyon
gloomy kraken
#

nvm i'll read it myself

chilly canyon
#

you can search it up

tardy pasture
gloomy kraken
#

im stupid yeah

#

tagadded

crimson lagoon
#

guys im trying to make a battlegrounds game but I'm suffering and I don't know which part of the script I'm doing wrong

When I go into developer console no errors are marked
Nor is anything markeed

The event I'm trying to do is when left clicked, an animation is played.

chilly canyon
#

but still depends on the person if you really want to use VScode over roblox studio

umbral carbon
#

What do you call a table that owns Facebook?
A metatable 🥶 🤫

tardy pasture
#

nope i prefer roblox studio

crimson lagoon
#

amy help?

gloomy kraken
umbral carbon
crimson lagoon
# gloomy kraken https://media.discordapp.net/attachments/1174881190055006224/1228103207847198720...

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local Events = ReplicatedStorage.Events

local AttackHitboxes = require(script.Parent.AttackHitboxes)

local ClickAttackDebounces = {}

Events.ClickAttack.OnServerEvent:Connect(function(Player)
local Character = Player.Character
if Character == nil then
return
end
local Humanoid = Character:FindFirstChild("Humanoid")
if Humanoid == nil then
return
end
if Humanoid.Health >= 0 then
return
end
if ClickAttackDebounces[Player] then
return
end

ClickAttackDebounces[Players] = true
local PunchCombo = Player.Values.PunchCombo
local Animation = script.PunchAnimationCycle[tostring(PunchCombo.Value)]
local LoadedPunchAnimation = Humanoid.Animator:LoadAnimation(Animation)
LoadedPunchAnimation:Play()

if PunchCombo.Value >= # script.PunchAnimationCycle:GetChildren() then
    PunchCombo.Value = 1
else
    PunchCombo.Value += 1
end

task.wait(LoadedPunchAnimation.Length + 0.1)

if ClickAttackDebounces[Player] then
    ClickAttackDebounces[Player] = nil
end

end)

gloomy kraken
#

change it to <=

crimson lagoon
crimson lagoon
mint cloud
#

Plz use the code formatting 🙏

oblique epoch
#

Dm me if u wanna make a V2 of a game that no longer updates. u must be a sripter & ill invest into game ads too. I also have community from the old game. If this project goes well i can pay 10-15k robux.

slender yew
#

what r the requirements for scripter discord role

lost burrow
dark juniper
#

i just dont get using it for functions like that

chilly canyon
#

Reserved?

#

I don't think there's a metamethod called __hideButtons

dark juniper
#

there literally isnt

#

thats why im saying the double __ is stupid

#

just use one _ if your doing internal stuff

zenith holly
#

doesnt it

#

initiate on startup tho

#

with 2 underscores

dark juniper
zenith holly
#

i was watching a tutoriall on how to make npc's using oop

#

and first few minutes in he explained that putting __SumFunction() makes it fire when you start the game

dark juniper
#

I don't think it does that

chilly canyon
dark juniper
chilly canyon
#

It literally depends on the person, so it's not really that stupid

dark juniper
#

I literally said it in content of naming convention wise

chilly canyon
#

Who cares about that

dark juniper
#

I'm telling you its ok but like I don't know how people reading your code would feel

cerulean perch
#

what do i do more WHYYYYY

narrow vault
chilly canyon
#

Why would they read your code

dark juniper
#

thats how you make games?

cerulean perch
#

i added BUNCH of comments

narrow vault
dark juniper
#

look dude all im telling you is the double underscore is bad naming convention

cerulean perch
#

and even had this in the begning of the script ```lua
--[[
This script handles an in-game character customization system using HumanoidDescription.
It allows players to:
- Search for accessories, clothing, and faces from the Roblox catalog.
- Equip and unequip items dynamically.
- Change the skin color of specific body parts.
- Save avatar for rejoining

Functionality:
- Fetches catalog items using an HTTP request to a proxy service.
- Applies and removes accessories using HumanoidDescription.
- Save and load avatar using ProfileService

]]

chilly canyon
dark juniper
#

if you end up making a game

cerulean perch
chilly canyon
#

I already have a bunch of games

#

Working solo

narrow vault
dark juniper
#

yea but working with people literally is just better and allows you to make better games

#

also if you hire scripters to help you theres that too

cerulean perch
#

can someone show me an example of "well" commented script that they accept

dark juniper
#

look dude im not gonna get into the nitty gritty

cerulean perch
#

its always hi

narrow vault
#

only scriptone uses the big ass red declined

dark juniper
#

im just telling you, that the double underscore, its not proper naming convention

cerulean perch
#

him

chilly canyon
narrow vault
cerulean perch
#

board of failing

dark juniper
#

like your using a metamethod naming convention for your functions

#

thats genuinely just confusing

narrow vault
cerulean perch
#

but im closer than ever

chilly canyon
#

We'll if you're really a programming you should know that It is not a metamethod

narrow vault
narrow vault
#

i wanna see what got u rejected

dark juniper
#

anyways

ebon mango
#

i do not understand any of this

cerulean perch
#

i will just try to comment the code even more, and add some type of steps explaining to

dark juniper
#

I've read a lot of open source stuff

glad oyster
dark juniper
#

like on roblox

#

and like ive never seen a single person use the double underscore

cerulean perch
winter pulsar
#

how do i find investors?

narrow vault
#

scriptone wants god tier type of code

dark juniper
#

then ur good

cerulean perch
dark juniper
#

!strict

#

yea but its probably implied

cerulean perch
#

they wants "explanation"

cerulean perch
narrow vault
cerulean perch
dark juniper
#

send me ur code

narrow vault
dark juniper
#

^

cerulean perch
#

i worked hard on it cryingdead

#

u know what

#

i dont even care at this point

narrow vault
nova scaffold
cerulean perch
cerulean perch
#

my older attempt were lame tbh

narrow vault
glad oyster
narrow vault
cerulean perch
nova scaffold
narrow vault
#

now i see why scriptone declined it

cerulean perch
#

is anyone here passed it?

narrow vault
fossil salmon
cerulean perch
fossil salmon
cerulean perch
fossil salmon
#

what is it for

cerulean perch
#

...

#

nvm

fossil salmon
glad oyster
oblique epoch
#

dm me to tweak up my old game and reupload it must be a scripter game could possibly releasing within 1-3hrs legit just need some changes. possible payment upon release ill also give 50%

cerulean perch
fossil salmon
#

is it hard