#code-discussion

1 messages · Page 98 of 1

rugged mist
#

when the player leaves it gets the timestamp that they left at

#

when they rejoin, it calculates how much time passed and how much each plant has grown, grown fruit, etc

steel hinge
#

local gay = Gay.New()

upper sleet
steel hinge
#

😭

civic bison
viscid finch
#

Guys

#

How much robux is good for the first commission?

thick oxide
#

I need help. I'm calling all children from replicated storage and its saying stack overflow. How do I fix this?

#
local Room = {}
Room.info = require(script.RoomInfo)
Room.lastTurnDirection = nil
Room.random = Random.new()

function Room.GetRandom(PrevRoom)
    local PossibleRooms = game.ReplicatedStorage:GetChildren() <--The error
    local RandomRoom = PossibleRooms[Room.random:NextInteger(1, #PossibleRooms)]
    
    
    local Direction = Room.info[RandomRoom.Name]["Direction"]
    local HasStairs = Room.info[RandomRoom.Name]["Stairs"]
    local PrevHadStairs = Room.info[PrevRoom.Name]["Stairs"]

    if (PrevRoom.Name == PrevRoom.Name)
        or (Direction and Direction == Room.lastTurnDirection)
        or (HasStairs and PrevHadStairs) 
    then
        return Room.GetRandom(PrevRoom)
    else
        if Direction then
            Room.lastTurnDirection = Direction
        end
        return RandomRoom
    end

end


function Room.Generate(PrevRoom)
    local RandomRoom = Room.GetRandom(PrevRoom)
    local NewRoom = RandomRoom:Clone()
    
    NewRoom.PrimaryPart = NewRoom.Entrance
    NewRoom:PivotTo(PrevRoom.Exit.CFrame)
    
    NewRoom.Parent = workspace.GeneratedRooms
    
    return NewRoom
end

return Room
empty wind
#

what the fuck is "HSRDataContentProvider" service?

#

like bro it does nothing there isn't a single command for it

wary furnace
#

so I have this gui displaying the coins and gems you have while its also displayed in the leaderboard stats, is there a way I can make the leaderstats for coins and gems not show while still keeping the amount you have in the gui ?

#

the parent for coins local script is the text label

hoary cedar
wary furnace
hoary cedar
wary furnace
#

Hmm it’s not working

#

The text label just goes back to saying “label”

hoary cedar
wary furnace
junior robin
#

no

late flint
#

@pearl inlet

#

its optimization tactics

pearl inlet
#

what

late flint
#

local variables faster than global

#

go benchmark

pearl inlet
#

you still use the global var

#

through the local one

late flint
#

yes but it loads onto stack faster from local

#

doesnt call __index of fenv metatable

#

to call them every time

#

i can make benchmark and send

pearl inlet
#

wait lemme find your application real quick

#

not here

late flint
#

application id [removed]

pearl inlet
#

found it already

#

dw

late flint
#

at least i can agree on it being hard to read

pearl inlet
olive needle
#

Yo can anyone help me install react and typescript?

late flint
#

wait shit am i not supposed to open a ticket for this

pearl inlet
#

you can

late flint
#

time to figure out how to open ticket

dense aspen
#

hi

#

can anyone help with my problem?

#

the multiplier breaks completely

late flint
dense aspen
#

this is the upgrades script ```lua
priceInt = game.ReplicatedStorage.priceOfUpgrade
clicksInt = game.ReplicatedStorage:WaitForChild("clicks")
clicksMul = game.ReplicatedStorage:WaitForChild("clickMultiplier")
plr = game.Players.LocalPlayer

--plr.PlayerGui.clickUIScreen.clickUIFrame.upgradesButton.Text = "Price: "..100
priceInt.Value = 100
plr.PlayerGui.clickUIScreen.clickUIFrame.upgradesButton.Text = tostring("Price: "..priceInt.Value)
button = script.Parent
button.MouseButton1Click:Connect(function()
if clicksInt.Value >= priceInt.Value then
clicksInt.Value = clicksInt.Value - priceInt.Value
plr.PlayerGui.ScreenGui.currencyFrame.clickLabel.Text = tostring(clicksInt.Value)
priceInt.Value = priceInt.Value * 2
plr.PlayerGui.clickUIScreen.clickUIFrame.upgradesButton.Text = tostring("Price: "..priceInt.Value)
clicksMul.Value = (clicksMul.Value) * 1.5

    plr.PlayerGui.clickUIScreen.clickUIFrame.mulLabel.Text = tostring("Multiplier:"..clicksMul.Value.."X")
    plr.PlayerGui.clickUIScreen.clickUIFrame.doublePer.Text = tostring(clicksMul.Value * 2)
end

end)

#

and this is the pass script ```lua
local MarketplaceService = game:GetService("MarketplaceService")
local clickMultiplier = game.ReplicatedStorage:WaitForChild("clickMultiplier")
clickMultiplier.Value = 1

local player = game.Players.LocalPlayer

MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then

    return Enum.ProductPurchaseDecision.NotProcessedYet
end

if receiptInfo.ProductId == 3306982751 then
    clickMultiplier.Value = clickMultiplier.Value * 2
    player.PlayerGui.clickUIScreen.clickUIFrame.mulLabel.Text = tostring("Multiplier: "..clickMultiplier.Value .."X")
    player.PlayerGui.clickUIScreen.clickUIFrame.doublePer.Text = tostring(clickMultiplier.Value * 2 .."X")
    

end

return Enum.ProductPurchaseDecision.PurchaseGranted

end```

pearl inlet
#

-# you're cooked (I know from experience)

dense aspen
late flint
pearl inlet
#

y

late flint
#

y like "yes" or y like "why"

pearl inlet
#

y like why because y

viral herald
#

What is the most efficient way of retrieving any player's leaderboard position? (in the context of OrderedDataStore)

late flint
pearl inlet
#

but banned for what

viral herald
#

wait wrong channel

late flint
#

u said am cooked

pearl inlet
#

in a diff way

#

you'll see

#

not spoiling anything

#

;]

late flint
#

k

woeful gate
#

guys how much robux would i need to pay a scripter to make a round based system game where you steal the object and keep your bar green by holding it if it drops to zero you die so steal it back from others to survive?

hoary cedar
woeful gate
ruby cipher
woeful gate
#

is it that complex?

ruby cipher
#

takes like 20 mins

hoary cedar
ruby cipher
#

no way 10-15k

hoary cedar
#

That costs $35

woeful gate
pearl inlet
woeful gate
#

they dont like it they can switch to unity or fortnite

hoary cedar
#

Pay in USD if you're unhappy with it

marsh kelp
woeful gate
lilac gale
#

gamedev without doing half the work costs money

#

you have to understand that

marsh kelp
hoary cedar
lilac gale
marsh kelp
#

devex rate is only used if you earnned from your game

woeful gate
lilac gale
#

paypal, cash app, venmo, visa gift cards

#

all methods of cash payment that are 70% the cost of robux post devex

marsh kelp
#

no one gets payed in devex rate and go to buy clothes, they do withdraw it in cash

lilac gale
marsh kelp
#

that's why you seem people don't accept Robux at all

marsh kelp
#

maybe easier for the taxes?

woeful gate
lilac gale
marsh kelp
#

you don't pay 60$ for a job then pay 60potato*** for the same job

lilac gale
#

is there a reason why you're so adamant on not paying in the cash equivalent

marsh kelp
#

maybe they don't understand how devex works

#

or at least that's the only reason I can think of

lilac gale
#

first you have to pay over 1.4x to cover taxes ALONE
then you have to pay over 70% to cover devex
its much worse than covering sales tax lol

woeful gate
lilac gale
marsh kelp
#

but what can we do?

woeful gate
lilac gale
marsh kelp
#

that's why you should pay in cash

woeful gate
#

not gonna do it

lilac gale
#

no reason lol

woeful gate
#

i dont have too

#

if i have robux i will use robux

#

any1 can take the offer if there willing

lilac gale
#

good luck

marsh kelp
#

good deal

lilac gale
#

i think hes just not old enough to pay in cash

#

most people who offer robux are either ugc creators, or just kids

marsh kelp
#

then don't pay in kids currency

#

or only give it to other kids

marsh kelp
marsh kelp
lilac gale
#

idk how you get confirmation from 5 people that it's a certain amount, argue that it isnt, and leave lol

lilac gale
#

ive been hired to fix systems that those kids create (sometimes even people who were paid a good amount)

#

and its completely shit

marsh kelp
#

I don't agree with it but you'll get the quality you ask for without complaining about the adults pay rate

marsh kelp
lilac gale
#

tru

marsh kelp
#

then you ask for the real rate xD

hollow burrow
#

me when paypal cashapp and basically everything is blocked in my country

lilac gale
#

g2a and other resellers sell visa gcs

pine torrent
#

I was assigned to improve a gun system
I looked inside, was amazed like seriously how good it is
Did nonsense shit because tf the system is perfect

hollow burrow
lilac gale
pine torrent
lusty patrol
#

whats vibe coding

woeful gate
pine torrent
#

No nonsense shit and uses coroutine

lilac gale
marsh kelp
#

paypal was banned in my country, and they only lifted the ban in 2023

lilac gale
#

and thus triggering whenever any proximity prompts fire

lilac gale
hollow burrow
hollow burrow
pine torrent
lilac gale
#

i dont think you want all your code to run parallel all the time

#

certain cases where it cant

woeful gate
pine torrent
#

Coroutine was used perfect

marsh kelp
woeful gate
#

@lilac gale i understand ur still learning but its important to accept how things really work

hollow burrow
lusty patrol
#

where would yall recommend for others to go to when it comes to learning lua?

hollow burrow
#

like you can't use visa cards

marsh kelp
hollow burrow
#

like they made 1 card type available

marsh kelp
#

you don't have any international bank*** supported in your country?

lilac gale
hollow burrow
# marsh kelp not visa

no no the goverment made 1 card type available that can't interact with the other ones

lilac gale
#

thats what it looks like from here

pine torrent
pine torrent
#

Lua + java

lusty patrol
#

i mean like roblox lua

lilac gale
hollow burrow
#

and you can't use the other card types for payments

lusty patrol
lilac gale
#

if so just learn the engine and what roblox offers

pine torrent
lusty patrol
#

i only watched brawldev videos and terrible youtube tutorials

lilac gale
# lusty patrol nope

learn general programming languages not specific to roblox first so you have programming knowledge
then apply that to lua

most people who learn lua from tutorials dont understand core parts of programming since theyve never learned it

pine torrent
#

Lua is simple to read

#

You can't struggle

lilac gale
marsh kelp
lusty patrol
#

why do i gotta learn java and stuff

hollow burrow
#

not cuz of the goverment

pine torrent
lilac gale
hollow burrow
#

crypto still works tho

lusty patrol
lilac gale
#

russian?

woeful gate
#

period

hollow burrow
lilac gale
pine torrent
lilac gale
lusty patrol
marsh kelp
#

what? but I heard that Russia had a good economy/job market

woeful gate
lilac gale
hollow burrow
#

good thing rent is 200$ and u can make 5k a month just from comms

lusty patrol
pine torrent
#

Everything else no

pine torrent
lusty patrol
pine torrent
lilac gale
lusty patrol
pine torrent
#

Python

lilac gale
#

didnt take a single point i made

#

good luck

pine torrent
#

C++

woeful gate
hollow burrow
#

and alot of them

pine torrent
woeful gate
#

remember unity or fortnite is always an option

lilac gale
hollow burrow
#

if you can't hire someone good for the price they asked then find someone worse

lusty patrol
lilac gale
woeful gate
marsh kelp
lilac gale
lusty patrol
lilac gale
#

calm down

hollow burrow
marsh kelp
#

they want to pay less than 5$/1.500Rbx

hollow burrow
#

YOU ARE BROKE

lusty patrol
#

i know literally almost nothing about luau

lilac gale
#

why dont you just find a scripter

woeful gate
hollow burrow
#

ur so stupid bro

marsh kelp
#

+1

lilac gale
#

dodged it all 3 times

hollow burrow
lilac gale
#

actually replied to my bait instead of my question

woeful gate
#

simple project dont see the need to do it

lilac gale
lilac gale
hollow burrow
marsh kelp
lilac gale
#

the same person who'd pay in exposure and percentages btw

#

(game isnt open for release and a total of 0 ccu)

woeful gate
lusty patrol
#

approximately how long will it take me to learn python

woeful gate
#

lawl ur so funny

lusty patrol
lilac gale
#

its not hard at al

#

basics within a week

marsh kelp
vestal flame
#

i got a custom made backpack made to match my hotbar ui i have, and when u toggle it u cant see the image of the items or the names. any idea how to fix or anyone who could help?

lilac gale
# lusty patrol oh that's not that bad

it really isnt. i hope you find programming fun, though! don't learn lua just for roblox, i suggest checking it out for other parts of your life if programming interests you

woeful gate
#

lol some rando told me i had to pay 100 bucks to create the project

#

in dev discussion

lilac gale
woeful gate
#

lmao i cant trust what any1 says in this server now ngl

lusty patrol
#

several roblox scripters are telling you the same range of price

marsh kelp
# lilac gale its not hard at al

depends on the person... it took me 2 weeks to understand what the f variables are ( even though I know but got confused by the ppl teaching )

woeful gate
#

it was @jaunty path

pine torrent
#

I think @woeful gate is a ragebaiter

lusty patrol
#

time to learn the basics of python ig

lilac gale
woeful gate
woeful gate
pine torrent
#

Use single script for all kill bricks 👍

marsh kelp
lilac gale
woeful gate
# ruby cipher takes like 20 mins

how much robux should i pay to make this game a reality? Game Concept:
A round-based competitive multiplayer game.
Players start in a lobby.
At round start, players are teleported to random spawn points on the map.
One player is randomly chosen to hold a core object.
Players steal the core from others to become the holder.
Holding the core fills a personal bar; not holding it drains the bar.
If a player’s bar drains fully, they die (eliminated from the round).
The round lasts for a fixed time limit (e.g., 90 seconds).
If time runs out, player holding the core with the fullest bar wins.
If only one player remains alive, that player wins.
After a round ends, players return to the lobby, and a new round begins automatically.

lilac gale
#

i thought there'd be a direct translation

pine torrent
lilac gale
rapid panther
#

How should I handle Dev Product purchases, like what event should I use from MarketplaceService, it only needs to grow all plants like in grow a garden basically so its just a repeatable purchase

lilac gale
#

hold it to win

lusty patrol
lilac gale
pine torrent
#

CollectionService bro

lusty patrol
#

i'll be such a good scripter

lilac gale
lusty patrol
lilac gale
#

read it for a calm 20 seconds

lusty patrol
#

is it cause half of the time theyre wrong

pine torrent
#

Codehelp is a dismorale organisation

lilac gale
#

ignores your questions, and if you're terrible you're gonna be turned into a gif

pine torrent
#

They'll shit on you

lilac gale
rapid panther
lilac gale
#

exhibit a

marsh kelp
#

the devforum is the best ❤️

pine torrent
lilac gale
pine torrent
#

Posting

#

Otherwise they'll send you link to issue

#

Telling you to read how it works first

marsh kelp
lusty patrol
#

where would you guys recommend others to learn luau besides dev forums?

pine torrent
lusty patrol
pine torrent
#

Maybe YouTube

hollow burrow
#

and if it doesn't have an answer then

lilac gale
#

isnt there an official roblox scripting tutorial

hollow burrow
#

find it

marsh kelp
lusty patrol
#

watched a raycast tutorial and it set me back hours

hollow burrow
#

but i asked it 1 question "where to start scripting"

lilac gale
pine torrent
hollow burrow
#

and it answered really good

rapid panther
#

AI dont work well usually I used it a lot like two months ago and your better off just asking for help cause itll give you outdated stuff as well

hollow burrow
#

yeah mb for scripting its actually really bad

lilac gale
#

it would allow you to manage their connections in one big place

#

better than hundreds of individual scripts

hollow burrow
#

if you can just find someone competent to help you

#

and willing

lilac gale
hollow burrow
#

willing is important

pine torrent
#

I cba

marsh kelp
hollow burrow
#

but it's like most good scripters didn't have anyone good helping them

#

so you dont really need it

hollow burrow
pine torrent
#

Roblox forums

hollow burrow
#

i never asked anything

#

you just need to know how to google

marsh kelp
#

and that's the best thing about it

hollow burrow
#

and the learner mentality

lusty patrol
#

is the roblox ai assistant any good for scripting

pine torrent
#

This shit is intended for degenerative people

#

And still wouldn't work

marsh kelp
lusty patrol
#

dev forums it is

pine torrent
#

It failed to create kill brick with print statement

marsh kelp
pine torrent
#

Guess what

marsh kelp
#

deleted the game?

lusty patrol
pine torrent
pine torrent
#

I can tell you now

lusty patrol
pine torrent
lusty patrol
#

the only problem is i have to memorize like 3 billion variables or whatever

marsh kelp
#

maybe when first starting.. but with time it'll all come to you without trying

lusty patrol
lilac gale
#

what if you want the server to do something?
it’ll be more annoying to set up 300 remote events

marsh kelp
#

or like the rest of us. you'll search for it

lusty patrol
#

whenever i try to make somthing and for the love of god can't figure it out

lilac gale
#

and connections are not as expensive as you think unless they’re created constantly for no reason

lusty patrol
#

9/10 times it's because i didn't know the variable for it

lilac gale
#

you don’t have 9 million kill brick connections

#

don’t micro optimize every facet of your beginner game

#

no reason

marsh kelp
lusty patrol
#

quick question

#

when it comes to exploiters who use local scripts

#

how do you patch that

pine torrent
#

U can't

marsh kelp
#

kill the local script

lusty patrol
#

do you just make an anti cheat or do you have to change it to be server sided

pine torrent
#

Bro

#

Don't think about anti cheat just yet

#

You're too inexperienced

marsh kelp
#

you sure you're a beginner?

pine torrent
#

There's a whole different system on anti cheat

lusty patrol
#

i don't even know how to handle data

pine torrent
#

It requires tons of knowledge on how roblox works

lusty patrol
#

i don't know remote events or tables

#

i don't know how to make a gun even though i'm halfway there

marsh kelp
copper apex
pine torrent
marsh kelp
#

but that's something that even the most experienced programmers struggle with... so don't think about it now

pine torrent
#

Solara integrates inside player module scripts and it's basically impossible catching out

lusty patrol
#

ok then uhh

pine torrent
#

UI scripts are in CoreGui which is inaccessible by default

marsh kelp
lusty patrol
#

how do i make a gun once i'm done with the ray cast thing

pine torrent
copper apex
# lusty patrol yes

IIf youre new just watch the brawldev series then after that make small projects from what you learned, you will learn more about scripting and programming in general once u start practicing cuz then you will be googling all the time

pine torrent
#

The _G exploit got patched

lusty patrol
#

i don't wanna touch his advanced scripting guide

copper apex
#

Do you want to learn?

#

You gotta get out of your comfort zone

#

IF you REALLY want to learn

pine torrent
#

Don't think about anti exploit until you're somewhere in advanced knowledge which is further than you think

marsh kelp
#

and touch everything you don't want to touch

#

but not math

lusty patrol
#

the only thing i'm good at

pine torrent
pine torrent
lusty patrol
pine torrent
#

🙏

marsh kelp
#

no CFrames and no physics

copper apex
pine torrent
marsh kelp
pine torrent
copper apex
#

The math you will use is pretty much simple, unless you are making something advanced

#

Or physics related

pine torrent
#

Vector2 is used for gui

pine torrent
#

Like springs

#

Or wheel logic

marsh kelp
#

:((( the fun stuff are all advanced math

lusty patrol
copper apex
#

Yeah i use Quenty's spring module from his nevermore engine

marsh kelp
lusty patrol
#

i know who robin is after joining this server less than a hour ago

marsh kelp
#

@copper apex

copper apex
#

Vector3 is just the position

lusty patrol
#

or if they change color or shape or smth

#

right?

copper apex
#

Orientation is the rotation of the object yes

#

Its not the color

#

Its easier to think of them as matrices

marsh kelp
#

oh it's a math thing right?

copper apex
#

Matrices arent that hard to understand

pine torrent
#

If you can't 3d then learn 4d

#

Waiting for vector4 to drop

copper apex
#

Space-time yes

marsh kelp
#

yeah agree but you don't see them unless you need to

copper apex
#

Let's add space time in roblox!

lusty patrol
copper apex
#

Thats where I learned it

#

Idk where else it could show up

#

But they could show up anywhere honestly

lusty patrol
#

where its like

#

[2 4] + [3 6] = [5 10]
[5 7] + [5 1] =[10 8]

copper apex
#

Yeah pretty much

marsh kelp
#

if you're good with math then you'll have an easier time learning to program

#

it's mostly logical thinking after you learn the syntax

copper apex
#

If you take a linear algebra course (mainly it's applications) you can get a lot from it

#

I heard a lot of people take discrete math but I'm not a comp sci major so i didnt take it

lusty patrol
#

ik dev forums but i wanna know where to look in dev forums

marsh kelp
#

but your way

copper apex
marsh kelp
#

some learn from books, others from youtube

lusty patrol
copper apex
#

You just have to write thats the way to learn

copper apex
lusty patrol
#

i already finished the raycast part even though it'll a lil flawful and i have no idea how to learn it

#

i wanna know how to make it damage something

marsh kelp
#

you can finish a video, follow the tutorial and not learn anything

copper apex
#

I think a lot of beginners underestimate the power of the internet, THERES so much resources you just have to learn how to find it, as you program more and more, you will realize how important it is to just research

marsh kelp
#

can you make something different with it?

lusty patrol
#

i asked for help in another server, got a flawed answer

copper apex
#

Dont ask in servers

lusty patrol
#

i looked at a youtube tutorial and it set me back hours

copper apex
#

In my opinion, i think u should figure it out urself

lusty patrol
#

i looked at dev forums and one of them told the guy to just switch to a hitbox system instead

copper apex
#

You dont get nothing out of it

marsh kelp
lusty patrol
marsh kelp
copper apex
#

Also i think a gun system for a beginner is extreme, start with a door system maybe? Open, closing, locking, build up your logic before you get to more advanced things

copper apex
# marsh kelp :((((((

Tutorials where they just show you the code suck, but if they actually teach you with a lesson, then its good

lusty patrol
#

i think it'd be better if i just

copper apex
lusty patrol
#

learn it right away

copper apex
#

Before you make systems

#

No its not

marsh kelp
#

same as ra.yd.. raycasts are on the advanced side not the beginner one

copper apex
#

It is better to build up your foundation

#

You get a more deeper understanding instead of just understanding "gun systems"

marsh kelp
#

but if you have the basics down you can learn the rest yourself with a bit of searching

spring fern
#

How does data storing work, does it make a folder in the player with values in it?

copper apex
lusty patrol
#

gues i'll go fuck myself

rotund ore
#

Great decision

lusty patrol
#

why the hell is my tool broken

safe onyx
rotund ore
#

So real

#

But some answers are really easier to find just by googling

marsh kelp
lusty patrol
#

why is my tool just broken

#

every time i pick it up it locks me into place

static coral
lusty patrol
#

if i'm making a gun do i need a custom model from another place and put the script there

marsh kelp
safe onyx
lusty patrol
#

if i don't anchor them together they just fall off

#

if i anchor it it locks me in place

static coral
rotund ore
marsh kelp
static coral
#

preferably export it/make it in blender so that its 1 model

lusty patrol
static coral
#

just use weld constraints

marsh kelp
#

no, but there's plugins for it

rotund ore
marsh kelp
#

tbh it's best to just put one part as the gun if you're just starting out

static coral
marsh kelp
#

wait nvm

marsh kelp
rotund ore
static coral
rotund ore
static coral
#

its 1 part

#

0 welds

marsh kelp
#

blender than roblox for someone just starting out?

#

you're evil

rotund ore
#

Yea

static coral
#

you can just make it in studio

marsh kelp
#

still evil

static coral
#

and then export and reimport it as a mesh which will then be 1 part

rotund ore
#

+if that's from studio parts he can just union them

static coral
lusty patrol
#

how do i weld

static coral
rotund ore
rotund ore
lusty patrol
#

duuuuuuuuuuuuuuuuuuuuuuuuuuuude

marsh kelp
rotund ore
rotund ore
lusty patrol
#

why does that exist if weld constraint is right there

rotund ore
#

...

marsh kelp
rotund ore
safe onyx
#

can someone help with my code pretty please

rotund ore
marsh kelp
#

@lusty patrol make the gun just one part.. you're coding not building

rotund ore
#

Again - watch tutorials about making a tool

rotund ore
#

Stop making it harder for us to explain each step

marsh kelp
#

Wait you're actually there? WAT

safe onyx
#

what

lusty patrol
rotund ore
#

And I already explained how to do it

lusty patrol
rotund ore
#
  1. Create tool
  2. Create part inside it
  3. Rename part to Handle
lusty patrol
#

last time i did that i watched the worst raycast tutorial oat

rotund ore
#

Now the part is attached to arm

marsh kelp
patent merlin
#

why coding so hard

rotund ore
#

If you want to add more parts:

  1. Create a Weld Constraint inside the Handle
  2. Set Part 1 to Handle
  3. Set Part 2 to the new part you created

MAKE SURE NO PARTS ARE ANCHORED

lusty patrol
#

it's like picking a tortilla to eat instead of a perfect burger right infront of you

marsh kelp
lusty patrol
rotund ore
#

I am telling you to watch tutorial about making a tool, not about scripting it

marsh kelp
#

not a help one

rotund ore
lusty patrol
marsh kelp
#

if you need to ask for real help then go to the devforum

marsh kelp
#

memes

lusty patrol
#

and i cant navigate the dev forum to my advantage

rotund ore
rotund ore
#

Exact thing you needed - of how to create a tool

lusty patrol
#

one of them just told the OP to switch to a hitbox system

#

i looked at documentation

rotund ore
#

You haven't even created a tool yet, why are you watching tutorials about raycasting...

lusty patrol
#

they talked about a different type of raycast

rotund ore
#

From conversation we had for the last couple of minutes - you at least had problems with it

lusty patrol
#

you told me to look at a roblox youtube tutorial

rotund ore
#

After explaining it with text...

lusty patrol
#

3/4 of them are 7+ minutes long

#

when you explained it in one sentence

rotund ore
#

You finally welded it?

lusty patrol
#

yes i did

#

i had to do it twice cuase i accidentally messed up

rotund ore
#

Cool, around 1k more steps to go

#

to a working gun

lusty patrol
#

yea i'm so excited

rotund ore
#

Making a working gun system from 0 is quite hard, so I just took someone's unfinished one out of dev forum or smth like that and finished it)

rotund ore
#

Nope

#

I hate raycasting

lusty patrol
#

that's literally like

rotund ore
#

In one moment they work, in the next one it goes completely new direction

lusty patrol
#

the equivalent of copying from a roblox youtube tutorial

rotund ore
#

Cause there's nothing bad about learning and copying from youtube tutorial. I didn't just took finished work and did nothing with it

#

No reason to invent a bike, when you can improve it

spring fern
#

Vault 8166

rotund ore
spring fern
#

פרחים

marsh kelp
spring fern
#

DOPZASL

ocean yacht
#

Who scripts & wants to make a button incremental?

stray cobalt
#

@solemn herald

#

Dyk how to do the reservation script for code?

#

I got told u do

solemn herald
dry hamlet
#

real hoppy819!!!

#

@spring fern did you ask how datastore works?

spring fern
#

Yes

dry hamlet
#

So lets say you have values under a folder called leaderstats. Basically what it does is get these Values to the PlayerId In General Terms. then you just set the values to the id so when the player leaves

#

thats the easiest way i could say it

spring fern
#

Ohh ok thank you

dry hamlet
#

you understand? that was kinda confusing

safe onyx
#

how women look at you when you tell them attempt to concatenate string with nil

high root
lusty patrol
#

holy shit my gun is somewhat working

dry hamlet
#

why wouldnt it be

#

quite easy

#

making a gun game rn

#

you new to scripting?

lusty patrol
#

i found an issue with my gun script tho

dry hamlet
#

what is it

#

I could help you

lusty patrol
#

lemme record it

dry hamlet
#

you do know how to use tools right?

lusty patrol
dry hamlet
#

i heard someone say you ddint

lusty patrol
#

sent it

somber vault
#

dm

empty wolf
#

const creativeTemplates = [
"Here's an innovative approach to consider: [CREATIVE_IDEA]. What makes this particularly interesting is [UNIQUE_ASPECT]. We could take this even further by [ENHANCEMENT].",
"Imagine if we approached this from a completely different angle: [ALTERNATIVE_PERSPECTIVE]. This opens up possibilities for [OPPORTUNITIES]. The creative potential here is [POTENTIAL].",
"Let me share a creative framework for this: [FRAMEWORK]. This approach is powerful because [BENEFITS]. You could adapt this by [CUSTOMIZATION]."

#

const template = this.selectRandomFromArray(creativeTemplates)

#

yeah abs not thats stupid

fair cypress
clever pecan
#

Does anyone know what my target sent and received KB/s should be for my game to run smoothly for players on relatively weaker wifi?

clever pecan
marsh kelp
indigo thorn
indigo thorn
acoustic fable
#

anyone need a small time coder for like UI or some small to medium size systems?

south spruce
#

do long scripts make the game lag a lot?

lost pebble
rain smelt
#
framesizeX=frame.AbsoluteSize.X
framesizeY=frame.AbsoluteSize.Y
buttonsizeX=button.AbsoluteSize.X
buttonsizeY=button.AbsoluteSize.Y
button.MouseButton1Click:Connect(function()
    local randX=math.random(0,framesizeX-buttonsizeX)
    local randY=math.random(0,framesizeY-buttonsizeY)
    button.Position=UDim2.new(0,randX,0,randY)
end)```

why is the random started form 0 & not -(frame-button)?
#

UI, btw

hard badge
#

In short.. Metatables just set tables that are more complex that allow you to do more operations on them??

lost pebble
rain smelt
#

yea

#

frame-button is to prevent button from going outside of frame

#

why start from 0 tho

lost pebble
lost pebble
hard badge
rain smelt
#

nah like, last time I made a script for spawning coins in a coinzone, back then code for random positioning of coin was:

local offX,offY,offZ=coinzone.Size.X/2,coinzone.Size.Y/2,coinzone.Size.Z/2
   local randX,randY,randZ= math.random(-offX,offX), math.random(-offY,offY), math.random(-offZ,offZ)
newcoin.Position=coinzone.Position+Vector3.new(randX,randY,randZ)```
lost pebble
rain smelt
#

oh is it cuz the position of UI depends on the top left corner?

lost pebble
rain smelt
hard badge
rain smelt
lost pebble
lost pebble
#

oh. it's read only

magic bough
#

should i change anything or is this good as is

lost pebble
#

if that's what you want. it's your game. looks good though

ancient halo
#

Whats up with this table.find?

#

I may have figured the promblem

#

no

#

it's not working

#

here's the code im using

for _, stack: Type.StackData in bar do
        if stack._Name == Item.Name then
            foundStack = stack
        end
    end
    
    if foundStack then
        print(table.find(foundStack._Items, Item))
    end
lost pebble
#

what's foundStack?

#

@ancient halo

ancient halo
#

a table

lost pebble
#

so you're looping through a table with tables?

jade marlin
#

if it prints nothing then foundStack wasn't found

ancient halo
#

am i?

jade marlin
#

if it prints nil then table.find didnt find anything

ancient halo
#

ok

jade marlin
#

try using prints to check

ancient halo
#

foundStack is a stack which is a table

#

and a "stack" is this:

export type StackData = {
    _Name: string,
    _Image: string,
    _ItemType: string,
    _IsDroppable: boolean,
    _Items: {Tool},
    --_StackID: number,
}
#

"_Items" is the thing i'm using tab;e.find on

magic bough
#

are UI corners meant to disable when the size is negative?

lost pebble
magic bough
#

this is when its positive

ancient halo
#

I know

magic bough
#

the ui corner just disables when its negative

#

intentional or bugged?

lost pebble
jade marlin
#

And what is the problem

ancient halo
#

also it's the fact thats it's giving me nil

jade marlin
ancient halo
#

what am I refering to?

magic bough
#

was just curious cause i noticed it when i made a typo

jade marlin
jade marlin
ancient halo
#

No it's what I'm using table.find on

red sonnet
#

is there any known way to make a seperate reflection color for a specific mesh?

jade marlin
ancient halo
#

Why wont table.find work"

jade marlin
#

How do you expect it to work

#

And how is it behaving right now

ancient halo
#

It looks through the table, and tells me where the "needle" is located?

jade marlin
#

yeah that's what it does

#

and why does it not work

#

you seem like you know what it does

magic bough
ancient halo
magic bough
#

its scripted so that the Y value on size gradually increases

#

and rotating doesnt work so increasing the Y makes it go down either way

#

negative UI sizes are really bugged so that isnt really an option either

jade marlin
magic bough
#

wdym

jade marlin
#

so ehen it grows it does from the bottom to the top

magic bough
#

thats what im trying to do but as i explained above, since rotation doesnt work the UI will always be increasing downwards

#

this is what happens if i rotate it and then lower the starting point

#

only way that ive found to make it go up is negative size, but those r broken so i dont wanna do it

jade marlin
lost pebble
magic bough
jade marlin
#

oh I see

#

I don't really know how to fix that though I'd try to rotate and stuff

#

Godspeed

magic bough
#

this is how i've had it set up

#

and then after doing (1, 0, 0, 1 - yScale) it stopped showing up

#

nvm, works if i do (1, 0, 1 - yScale, 0)

#

first time ive used udim2 so idek what the differences are between numbers

#

is it just the same as this

lost pebble
magic bough
#

oh

#

is udim just

#

X scale, X offset, Y scale, Y offset

#

?

lost pebble
#

yes

magic bough
#

makes sense

#

i havent used it till now

#

ty tho

lost pebble
magic bough
#

entire UI turns dark then gradually lightens

#

instead of going from light to dark

lost pebble
#

are you changing the size with what i sent?

copper apex
#

Is there a reason why it has to go from down to up

lost pebble
#

preference

magic bough
#

and because its starting at 1

#

the scale is going from filling the entire thing to filling nothing

#

instead of vice versa

lost pebble
magic bough
#

huh

#

how would changing the position fix it

#

wouldnt that just drag it away from the ui

lost pebble
#

no

magic bough
#

works now

#

how is gradually changing the position causing the same effect as a 180 rotation though

copper apex
#

It flips the position of the gui object

magic bough
#

but with what he sent which is basically doing the exact same thing

#

its the same effect as a 180 degree rotation

#

ion understand

#

i think i get it now actually

#

is it because its matching the speed of resize

#

just to mimick it without actually rotating

lost pebble
# magic bough ion understand

what it does is sets the position opposite of its size. Size = 0 Pos = 1 Size = 0.25 Pos = 0.75 Size = 0.5 Pos = 0.5 Size = 0.75 Pos = 0.25 Size = 1 Pos = 0

magic bough
#

yeah

#

its weird but it works perfectly

#

makes it seem like the top and bottom switched out but in reality its just the top moving at the same speed as the resize

fossil echo
#

Hey guys I’m kinda stuck right now I learned the basics of coding and I don’t know where to go from their

#

I know their is a lot more to learn but where should I go to learn it

#

And where do I go to learn the key terms

#

And stuff

#

I’m just so lost and don’t know what to do any help?

jade marlin
#

There's a link in the pinned messages

#

You could probably refer to it

fossil echo
#

Alright what about learning like all the terms for scripting?

ancient halo
#

What the hell is table.find

rigid tundra
#

yo can some help me out with my combat script?

#

I can hit once, but after that, I have to do an M1+M2 to attack again. Otherwise, I can’t attack

bleak magnet
#

Does anyone have a development team I can join ill work for free 👍

spice summit
#

guys im not sure how too feel rn

#

had this massive game breaking bug wit my cards

#

and it kinda just fixed it self

#

randomly

#

i cant seem to replicate the issue and i changed litteraly nothing

ancient halo
#

What the fuck is my table ,find doing?

#

I'm not sure what I'm doing

#

But im rufering to the samw thing

#

at least i think i am

#

I dont think it;s the tables

#

I'm refering to the same instance

cobalt rock
#

erm, what

patent night
#

What does local do within code?

upper sleet
#

Whats the best way to make smooth dashes?

shy bronze
#

how to not let a character spawn but the game and ui loads normally?

upper sleet
#

What are you trying to achive?

shy bronze
#

@upper sleet i meant to do is a main menu and load the character later and the viewmodel when he spawn

#

i disabled characterautoload but it didnt load the ui

#

should i just trap players in a box before loading in?

upper sleet
#

Yeah you could try that

valid torrent
#

as for the character you can trap them in a box and move them to whatever spawnpoint you want when you want the actual game to start

upper sleet
#

wdym

valid torrent
#

just make sure you change the camera type back to custom from scriptable

ember nimbus
#

kiss kiss heart heart

ember nimbus
#

note this section

#

primarily

upper sleet
#

😭

tough solstice
#

anyone a professional coder?

#

dm cuz im planning something "big"

white aurora
#

mew

stable cedar
#

anyone a scripter thats down to make a game in 2/4 weeks, dm ill explain current idea

manic nacelle
dense flame
#

Hiring a scripter payment 0.0000000000001%

ember nimbus
#

0.0000000000001% of $1,000,000,000,000,000,000,000?? that's a steal bro

exotic tendon
#

Hey everyone, I really need help with a per-player collectible system I'm building. 😓

I'm working on a game where Fragments and Clues (named Fragment1–10 and Clue1–10) should appear one at a time in sequence for each player.

🔧 Setup:

All fragments and clues are stored in ReplicatedStorage.

I use ShowNextItem and HideItem RemoteEvents to show/hide items.

I clone items into Workspace via ShowNextItem.

Player clicks/taps to collect, it should show text (from a StringValue), play sound, fire save event, and hide the item.

❌ Problems:

  1. All fragments and clues appear at once when the game starts.

  2. Clicking or tapping doesn't do anything — no hint text, no disappearance, no progression.

  3. The per-player logic isn't working. Everyone sees everything.

🔍 What I want:

New players should only see Fragment1 and Clue1 on join.

When they collect Fragment1, only then should Fragment2 appear, and so on.

Same for clues. Everything must be per-player.

When collected, the item should disappear and show lore/clue text through Hint UI.

I’ve tried separating the logic into ServerItemHandler, ItemVisibilityManager, and save/load scripts using DataStores. But I’m stuck and frustrated. 😩

Any help is super appreciated. 🙏 I can share scripts if needed.

proven violet
#

Is there a way to detect when a player's speaking?

ocean yacht
#

dm if u script and want to make button incremental (i invest robux)

static coral
proven violet
#

Doesn't detect when players are speaking

static coral
#

just check roblox services tho there is a way

proven violet
#

I don't think there iss

#

Heard I can try using an AudioEmitter in the character?

#

Lmao if that makes sense 😭

static coral
proven violet
#

Oooh

#

Trying this

buoyant junco
gilded stag
#

is it best to keep models that i want to duplicate/clone and put back into workspace in serverstorage or replicated?

silver verge
gilded stag
chilly imp
#

Does anyone know where i can find tutorials and documentation on ai cars?

gilded stag
hallow crag
chilly imp
#

Where would i find a module?

hallow crag
#
chilly imp
#

Alr

#

Thanks

hallow crag
stable cedar
#

anyone a scripter thats down to make a game in 2/4 weeks, dm ill explain current idea

chilly imp
#

Wait @hallow crag, would there be any actual module scripts that i can use?

hallow crag
#

u need

chilly imp
#

Oh OKAY

#

caps

hallow crag
#

you need to create a node graph first tho

gilded stag
hallow crag
#

why would u need to do that

gilded stag
#

what else would i do

#

and then it copies the booth onto it

hallow crag
#

clone the booth on the server

#

then pivot it to the position you want

#

or if u want the booth to be completely client sided (wont be seen by other players) then clone it on the client

gilded stag
hallow crag
#

do all the gui things on the client

#

and then booth modifying/cloning on the server

wary star
gilded stag
#

or else i wouldve doen that

hallow crag
#

😭

gilded stag
gilded stag
hallow crag
#

and then to decorate use a remote

gilded stag
#

yes yes i did but thanks so much

hallow crag
#

okay

wary star
#

That made me laugh

#

W pfp btw

ocean yacht
#

dm to make button incremental i put 20k robux to ads

mild moth
#

Looking for someone that can handle fandom wiki

rugged island
#

we arent lol?

proper edge
ocean yacht
#

kk

true fern
static coral
#

bodycolor and humanoid:addaccessory and humanoid:removeaccessory

wraith quarry
#

Ahh can someone help me I want the tools have a custom walk animation and when the player unequipped the tool they will back to the original walk animation

ruby cipher
neon bridge
#

@ruby ciphernoob

shell breach
#

how do i fix this black thing

ripe plume
#

hey guys, what would be the optimal way to code a jumping rope game? the collision is important, as I am currently using option 2 and sometimes the rope goes through players, or kills players that are lagging

  • hingeconstraint
  • heartbeat on server
  • client-sided heartbeat, current speed remote event sent from server
jade marlin
#

I'd make it client sided since it's ping based

#

the 3rd option seem best

potent pike
#

I got a problem since sometimes with my code the "cam 1" doesnt get detected and I have to restart the test few times to make it work again once. How do I fix it

local ts = game:GetService("TweenService")
local camFolder = game.Workspace.Cameras
local camera = game.Workspace.CurrentCamera
local blackFrame = script.Parent.blackFrame
local button = script.Parent.EnterButton
local label = script.Parent.GameTitle

button.MouseButton1Click:Connect(function()
button.Visible = false
camera.CameraType = Enum.CameraType.Custom
end)

local ti = TweenInfo.new(

3,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.Out,
0,
false,
0

)
camera.CameraType = Enum.CameraType.Scriptable

blackFrame.Visible = true

camera.CFrame = camFolder.cam1.CFrame

task.wait(3)

#

Thats the code above it is slightly modified from a youtube tutorial

potent pike
#

Can you explain please? I am quite new in scripting and roblox studio overall

lone saddle
#

if you use that you can make sure your code waits for the cam1 to exist

potent pike
#

Where should I insert it then?

limber vortex
#

function module.ChangeCombo(char)

local combo = char:GetAttribute("Combo")


if lastSwing[char] then
    
    local passedTime = tick() - lastSwing[char]
    if passedTime <= 2 then
    
        if combo >= MaxCombo then
            char:SetAttribute("Combo", 1)
        else
            char:SetAttribute("Combo", combo + 1)    
        

        end
    else
        char:SetAttribute("Combo", 1)
    end

end
print(combo)
lastSwing[char] = tick()

end

so I run this right and even tho it shows my attribute is 2 when I check it still prints out 1 why is that

lone saddle
#

because combo variable is being set then changed and then not updated to the new attribute value

#

so your printing what it was before you changed it

vocal vortex
#

what do i use oop for

hallow crag
vocal vortex
# hallow crag whatever u think needs oop

gng im asking cuz i feel like its useless unless ur making a singleplayer game or like a minigame of some sort, im making plr pvp and i jus wanted to make sure cuz its way better to use attributes and module functions imo

vocal vortex
hallow crag
#

what is it then

vocal vortex
#

a class based structure

hallow crag
#

yeah its just preference if u prefer to use attributes then use attributes

vocal vortex
#

im saying i can make a char class and do actions w it or use attributes

#

i feel like its easier w attributes thts why im askin

hallow crag
#

depends what situation ur in

vocal vortex
#

im asking what oop is actually useful for or better to use

#

for creating enums or your own datatypes yeah

#

but in a game sense

#

if you understand what i mean

hallow crag
#

then u could store the npc state

#

position etc

#

and create a moveto function in it for example

vocal vortex
#

oh so like enemy ai for example? have classes for each and make them cointeract

hallow crag
#

yeah

vocal vortex
#

yk when one fights u and the others back off