#code-discussion

1 messages · Page 259 of 1

rotund pawn
#

Okay started up the gemini for this, sounds way more interesting thanks to "stop on hit" possibilities.

#

But, how do I handle the same logic for client replication without tweens? Do I have to replicate server code to client so I can have two moving shapecasts?

exotic lantern
rotund pawn
#

You mean like
~Server do Logic of fireball movement~
Task.spawn( Do both at the same time)
FireAllCleints(Params such as start pos, direction, size, effect type,...)

?

exotic lantern
rotund pawn
#

How am I able to sync client-server then?

exotic lantern
rotund pawn
#

Okay so
Generate timestamp in time now + X seconds (seconds used to cast animation before firing)
~Fire Server function and Client
While timestamp ~= target timestamp
wait
end

Would this work?

#

Might seem stupid, but this is my almost first time in 3D programming 😄

exotic lantern
rotund pawn
#

Okay, would you mind explaining me how to do it using "offset" without loops ? 😅

#

I understand everything and how to do it, except for perfect syncing. Which is great

exotic lantern
# rotund pawn I understand everything and how to do it, except for perfect syncing. Which is g...

In 3D programming and networking, we treat time as a coordinate. Offset means you don't wait for something to happen; instead, you calculate how much time has passed since the start and where the object should be right now.

Basically, the server sends a packet, and the client receives it at a specific timestamp. The client doesn't start moving from zero; it immediately calculates the position and renders the projectile already at that point. Use Heartbeat, not while wait. Forget about while and wait entirely.

#

Do I have to write another essay?

#

Omg

rotund pawn
#

Damn 😄 Thanks for the clarification

#

Yeah I understand this, I will try to implement something like that for my system. Thank you

remote bear
exotic lantern
#

lol

rotund pawn
#

I wonder how many games implement stuff like that, since most of spell based games seems laggy as hell

remote bear
rotund pawn
#

I was talking about spell stuff we talked above 😄

exotic lantern
#

For bypassing the chat your game will be banned :_

#

btw

remote bear
exotic lantern
#

No, I'm just saying. I'm not judging, by the way.

#

I'll say right away

remote bear
#

i know

exotic lantern
# remote bear i know

By the way, a question: how do you increase your rank? Lol. For some reason, I'm stuck at a low rank.

rotund pawn
#

Just talk

#

Takes a while 😄

dusky relic
#

Talk a lot

exotic lantern
#

I have one bronze account, but I forgot the password. I chatted on it an incredible amount, like for a whole week. Despite that, I remained at the bronze level.

rotund pawn
#

I think that there is some cooldown before you gain XP for ranks

deft coral
#

workspace get server time now can be a bit inaccurate so it isnt good for frame-by-frame but its good enough to shoot a fireball

rotund pawn
#

I will see what I can create with my current knowledge 😄

exotic lantern
deft coral
#

cframe + velocity * difftime

rotund pawn
#

I understand the theory of this. Will see what I can do when I get home.
What I really love is that with this I can easily stop fireball when it hits anything

deft coral
#

if it hits anything id just magnitude check if anyone was close enough reasonablyt and that it went a straight line

rotund pawn
#

This function is what I plan when I will create explosion type spells. Just effect and distance check during the effect. 😄

#

I will try to implement the spherecast for spells like fireball or explosion onhit stuff. If I fail I get back to tweens 😄

serene cradle
#

Might be time to make a proper reactive hitbox module

deft coral
#

or yk use the physics engine

rotund pawn
deft coral
#

one is a detection method the other moves the blocks

#

two different solutions to two different problems

#

not mutually exclusive

#

i wouldnt tween though

#

if you do, you gotta object pool or use TweenService:GetValue() in a collected loop

#

for like intensive tweens at least, otherwise its whatever, just ur missing out on physics interaction and some hit detection issues with collision

rotund pawn
#

I will see what Gemini suggest me how to create spherecast for spells I need, will try docs 😄
I do not want to spend weeks learning this just for simple magic playground for myself and my friends 😄

deft coral
#

use the spatial queries under workspace

#

thats it

#

:GetPartBoundsInBox

#

or in ur case

#

workspace:GetPartBoundsInRadius(pos, radius, params)

rotund pawn
#

For moving fireball?

deft coral
#

u can use that yeah, the center of the fireball is the position

#

radius is the size

#

its a ball

#

then params would just be a list of player characters so you only grab players

#

id physically shoot it personally with physics

rotund pawn
#

I was suggested that spherecast is better than creating physical part as hitbox.

deft coral
#

people are full of shit

rotund pawn
#

My goal is to fire sphere ball, that stops when hits first object (player,map) and damages the player if hit.

deft coral
#

granted, it depends on the application but if its a moving fireball, spherecast doesnt make sense to use it

#

thats more of a shotgun

deft coral
#

launch that mfer with physics

#

let the client who owns it do it or let the server do it

rotund pawn
#

Right now I use server for hitbox and fireallclients for effects

deft coral
#

or if u wanna get more technical, let each client do it based on updated values and have them linearly interpolate but thats beyond ur budget it seems for learning

rotund pawn
#

So just velocity, move forward untill range, hearbeat loop and stops on first detected object?

deft coral
#

not to be snarky either

deft coral
#

id again not use tween id just use physics

icy bone
#

Are there no better documentation for ik

deft coral
#

Deadass

#

Its a "hop in and try the water" kind of Instance

icy bone
#

yeah but the water is fucking pitch black

rotund pawn
deft coral
#

Come on in its radioactive and makes us feel fuzzy

icy bone
#

gonna have to use fucking unity documentation or some shit

#

gonna be on wikipedia

deft coral
#

its physically simualted so cosntraints on the attachments work

#

thats the big detail

#

if ur talking about the IKControl instance

#

LookAt works the best highkey, or Transform

#

Rotation I havent gotten to work at all

icy bone
#

bs

#

anyway time to

#

spend today learning it

deft coral
#

each joint is a point

#

and they have to stay a consistent distance away from each other

#

with one point being the "lead"

#

so like if u think of ur hand, ur elbow must remain a set distance away, so it bends to do that

#

the computer is just figuring out whats the shortest location it can do

#

based on where it is and where it should be

#

once u know that its p much straight forward to do procedural anim stuff

icy bone
#

So it's just maths I was assuming I needed to use the IK controls

#

Alr should be easier then

still egret
dusky fog
#

guys

#

I'm having problems with my gamepass system

#

is this module good?

cyan palm
#

Hey, running into some issues with discord.js / noblox.js. I'm trying to change the price of a t-shirt using this (image), but for some reason it wont work, here is my script:

#

Could someone take a look and help please

gaunt crater
#

?

zenith pollen
zenith pollen
dusky fog
stiff saddle
#

let me provide script just changed the variable

covert creek
#

Hey guys, I m newbie learning how to make reusable systems instead of simply hard coding everything, I made a little OOP based EffectService, it Emits, Plays, Stops, and Deletes itself, theres support for light, beams, trails, and particle emitters. I will make the same system using DOP (normal coding), but before I do that I wanted your expertise on what u would do and change, primarily about the attachment and surface placement.

Here's the Git: https://gist.github.com/Vandrgard/e7995ed1a62c914cbad90b483507699e

Gist

GitHub Gist: instantly share code, notes, and snippets.

#

btw, Finally lvl 5 lets gooooo

honest nimbus
#

How should i organise my projects? Its like a roadblock i cannot get past

peak jolt
#

start with 1 script and just keep expanding and refactoring

#

the organization comes over time and you can always change it up later as long as there are no hidden dependencies

honest nimbus
#

Thanks

candid isle
#

holy shit not roblox related but im trying to do a discord bot and its annoying me

#

it wont even run or start it

frail yarrow
#

discord is easy bro

candid isle
#

Python got me fucked up

frail yarrow
#

it is bro

#

you just dont know

candid isle
turbid stag
#

transforming any html file to a working exe dm me

frail yarrow
#

💔

turbid stag
#

??

#

wdym

frail yarrow
#

bro js using electron

turbid stag
#

@frail yarrow

frail yarrow
#

🥀

turbid stag
#

nah

frail yarrow
#

yah

turbid stag
#

nativefier

peak jolt
#

mv index.html index.hta

turbid stag
#

nah bruv

turbid stag
#

wanna see?

frail yarrow
#

Nativefier uses electron

turbid stag
#

but its js easier

frail yarrow
#

snca bro

turbid stag
#

anyways mb for wasting yall time ig

vocal forge
#

hi guys anyone interessted to join me making this new game im trying to develop? I kinda dont have any budget for now and will pay if revenue in robux. A scripter/coder would really help me alot now! and yes the game has brainrots in it :3.

sacred ore
#

Yo guys whats the easiest role u can learn. Like scripting modeling n stuff

dense wasp
deft pewter
#

you probably just coded some brainrot icl😭

dense wasp
#

dude why does everyone in this server assume im stupid

deft pewter
#

because you woudnt say scripting is the easiest💔

dense wasp
#

it is for me though

deft pewter
#

let me ask you this again, whats the hardest thing you coded

dense wasp
#

firstly idk why you're saying "again" since you never asked in the first place, secondly it'd probably be an npc ai i made

golden forgeBOT
#

👋 Just a reminder to read our rules and use the marketplace to hire!
-# Hiring or looking for work in our channels classifies as misuse and will result in moderation.

deft pewter
dense wasp
deft pewter
dense wasp
#

well that would've just made me look like even more of an arrogant prick

deft pewter
#

anyways fuck that statement or not, whats the hardest thing i coded

#

you*

dense wasp
#

im not saying im some divine programmer or something im just saying scripting is easier for me

dense wasp
nimble fjord
#

guys im going crazy, i cant make a dialogue system 😭🙏 what shud i do

deft pewter
dense wasp
nimble fjord
#

but how

dense wasp
#

you can probably find a tutorial on youtube

#

then just build off of that

nimble fjord
deft pewter
#

nah but what did you have the problem in

nimble fjord
deft pewter
#

yeah?

nimble fjord
#

Yh I can't figure out how to make it

deft pewter
#

oh

nimble fjord
#

And Im losing my mind over it

deft pewter
#

just to make sure, is it the thing that made u skip the text right? i never played pokemon just saw videos

#

of it

nimble fjord
#

its like if the text's too long

lucid sky
#

is there any way to make the moon ingame beat like a heart

nimble fjord
#

then the whole block gets pushed down

deft pewter
#

oh wait

nimble fjord
#

nvm I think I came up with a genius strategy

deft pewter
#

you mean like closing the chat

#

alr gl

nimble fjord
#

Im gonna use scales instead of Offsets

deft pewter
#

bro was using offsets

nimble fjord
#

ts gonna be so fire 🔥

deft pewter
#

istg everytime i use offset i know i will crash out

#

i had to make an inventory system with offset

#

holy stress, had to literally make the resizing system too

nimble fjord
#

and i didnt use them till now

deft pewter
#

it isnt hard to convert pixels to scale

nimble fjord
#

anyway i think i got it figured out

deft pewter
#

gl*

nimble fjord
#

thx u 2

static spear
#

people who disagree may have a more creative than a logical brain so it's 10x more difficult. People who are good at STEM subjects will be able to pick up coding easier than people who struggle at STEM

dense wasp
#

Im autistic so i find things like stem a lot easier than artistic stuff

#

I cant draw or 3d model to save my life even after years of trying

prisma aspen
#

we all moving to fennel 2026

(:Connect
  (. game (GetService "UserInputService") InputBegan)
  (fn [input gpe]
    ;; body
  ))
cunning obsidian
#

guys

#

what does "db" mean?

covert dew
#

database

#

in most cases

dense wasp
fickle python
#

holy shit I've just been adding enums for like twenty minutes

#

free me

#

hate this stupidass bot

astral shale
dusk pagoda
#

guys quick question if i have 5k robux will i be able to convert it to real money?

junior blade
#

from what i know ni

#

no

#

fun fact: from what i know, you can do this in module scripts (to know if its server or client)

RunService:IsServer() and (CODE IF ITS SERVER) or (CODE IF ITS THE CLIENT)

i only use this for like printing, for example

local Prefix = RunService:IsServer() and "[S]" or "[C]"

function Warn(...)
    warn(`{Prefix} {...}`)
end
toxic marlin
#

does anyone here use lemonade for scripting?

static spear
weary socket
flat kernel
#

how do u prompt a user to enable notificaiton for the game

vestal pumice
#

Math.promptusertoenablenotificationsforthegame(gameid)

#

With camel case

#

And uncapitalized math

tepid kelp
#

is there any scripter

severe venture
#

gang my brain is fried help

#

boolean??

peak jolt
severe venture
#

so its more clear

#

but that's where it's throwing the error

peak jolt
#

breakpoint

#

kinda ez

severe venture
#

i did

#

says its a boolean

#

in explorer, it's a frame

peak jolt
#

overwriting the variable somewhere

pulsar zinc
#

Anyone know any good tutorials for scripting?

elder turret
#

hes only bool

severe venture
#

ah shit

#

.Visible

zealous hollow
#

fellas, how are you guys qualifying your module scripts?

Are you just directly going like

require(game.ReplicatedStorage.Scripts.Fighting.Damage.DamageCalculator)

hundreds of times throughout your codebase

or are you using some trick/strategy/module to handle this?

I wrote some hacky module that builds an in-memory map of module names to their instances so you can just

scriptCollection.findModuleScript("DamageCalculator")

but then intellisense breaks since the caller can only know that its a module script rather than a DamageCalculator painandsorrow

frigid perch
static forum
#

Yh

fading bronze
#

i find making a module for modules kinda funny

zealous hollow
fading bronze
zealous hollow
#

but yeah i'ts just if you're silly billy like me and accidentally write god classes you will end up with 50 bomboclaat lines of require()s

fading bronze
#

i make small games so i do not need one :)
i see why you would though
also how does it work??

zealous hollow
#

how does what work?

#

the registry?

fading bronze
#

i didnt know you could require a module from a module

zealous hollow
#

I was gonna straight up send you my registry script but apparently I can't do that here

#

anyway yeah you just require a module from a module

fading bronze
#

thats useful yet useless to know at the same time

zealous hollow
#

the key lore here is that when you first require a module it builds a singleton instance of that module, and in further requires, gets that singleton as a reference

so the first time you require, it runs the script like it was a local script or whatever, but just has public methods exposed via its table

#

no its actually really useful to know IMo you should know module lifecycles

fading bronze
zealous hollow
#

you may be thinking a bit too restrictively about modules until now 🙂 they are very powerful

#

IMO the ideal game has 1 local script for client shenanigans, 1 server script for the server, and then a ton of orchestrated modules for everything else

#

but i have OOP brain rot so do with that what you will

fading bronze
harsh quiver
harsh quiver
#

it leads to better order, but it's not a definitive solution

#

when you reach to times where you have dynamic objects

#

created at runtime

#

such as tools

#

you'll either break into MSA or suffer under SSA

zealous hollow
#

what is MSA/SSA? sorry

harsh quiver
#

MSA = Multi-Script Architecture
SSA = Single-Script Architecture

zealous hollow
#

oh yeah makes sense

harsh quiver
#

although SSA can mean other things on other contexts, just serves this one

#

for the requires

deft coral
harsh quiver
#

on my old framework

#

I had an entire SSA loader

#

which grabbed all modules, and placed them under a list

#

then what you'd do was you had two ways

#

require directly or use a manager to get by string name

#

the latter only came to be

zealous hollow
#

... but the latter meant you had no intellisense, right?

harsh quiver
#

because I wanted to be able to move things

zealous hollow
#

yeah thats exactly wher I'm at lol

harsh quiver
fading bronze
harsh quiver
#

and manually type defining it

harsh quiver
#

cool stuff

#

allows for dataflow analysis and other junk

#

regardless I went off

#

you can choose whatever style you want

#

just think about what you plan to implement

frigid perch
#

holy crap he is a wizard

harsh quiver
#

or you'll build a wall that you'll later have to destroy

#

and it will take you too long to fix it later

static forum
#

Guys how does one achieve this

zealous hollow
#

oh im not here to try and tell you whats right or wrong, i'm just wondering how to deal with this

harsh quiver
fading bronze
frigid perch
harsh quiver
#

any further and it's over 🥀

zealous hollow
#

oh god damet the server rules killed my link

static forum
harsh quiver
#

realistically

#

roblox never designed the engine

fading bronze
harsh quiver
#

with the intention of a 'global' symbols system

zealous hollow
#

devforum thread strategies-for-indexing-finding-scripts-in-the-game-structure-directory/4329691 if you want the full lore? I made a post about it

harsh quiver
#

you have to either set globals yourself

zealous hollow
#

(just now, in scripting help)

harsh quiver
#

or figure

static forum
harsh quiver
#

im seeing the post rn

zealous hollow
#

king

fading bronze
#

what line?

static forum
harsh quiver
#

that's why we index by parts instead of repeatedly again and again

#

regardless, it's fair

fading bronze
static forum
#

Normally this would be eith | |

harsh quiver
#

Roblox just wasn't designed with 'global symbols' if you will

static forum
#

But those lines are gone

#

|

#

|

#

Them
Liens

#

Om the rigjt hand side

harsh quiver
#

back to this before i forget

fading bronze
#

idk what u mean by lines

static forum
#

Yes

harsh quiver
#
  • depends on your architecture and what you want to sacrifice

  • fully qualified declarations, I have no reason to move modules around 99% of the time.

  • N/A

fading bronze
static forum
#

Wsit can u make it
Longer

fading bronze
#

transparency property

static forum
#

So if an see properly

harsh quiver
#

I'm not sure why you wouldn't just

#

cache the path with the scripts

#

then after doing so

#

... require them all in a chain and save them to local variables

#

without doing the chain repeatedly

static forum
harsh quiver
#

as in just

local folder = path.to.modules
local a = require(folder.a)
local b = require(folder.b)

fading bronze
static forum
#

U don’t use Figma

fading bronze
#

huh ..?

static forum
#

Nvm thx I get
It

zealous hollow
#

I guess its just a fact of life in the 'blox.

Thanks for your time! 🙏

harsh quiver
#

ehh, dw

#

you can do whatever solution you want

#

you'll just bear with its shortcomings

#

just how it is 🥀

zealous hollow
#

I was low key hoping for some smart hack or language usage Sadge

fading bronze
zealous hollow
#

RemovePolymorph() // ez clap

no way bro was really coding in loading screen tips

fading bronze
#

😭

static forum
harsh quiver
#

what do you mean?

#

hit on contact

#

open profile and make a dm

static forum
harsh quiver
#

then bad

#

idk what to tell you then xd

deft coral
#

What is bro on about

#

"How do i bypass peoples privacy settings" like what

finite pier
#

just be doing require('@self/module') or require('./module')

slender marten
#

guys how do yall script uis

#

i mean organization for it

zealous hollow
broken grove
zealous hollow
#

wow neat, thanks!

Still doesn't seem to fix intellisense though, unfortunately

finite pier
zealous hollow
mild sequoia
#

guys is this good

GetPlayerService
pro = yes
noob = no
jump = space
walk = wasd

lag = smooth
graphics = very good/best
enemies = ok
hacker = no
yes = e
bugs = no
players = many

wise turtle
#

im sure there are studio plugins that do the same thing though

restive kelp
#

would cloth physics on my meshpart accessories be a scripting thing or a setting thing

topaz crypt
#

For those of you who do server side hitboxes etc but animations on client. Have you tried using tags/attributes as Animation markers for the server to read rather than purely timing things? If so is it more time accurate than waiting or is it not worth going through the trouble

restive kelp
#

dont do server sided hitboxes do server sided sanity checks

restive kelp
#

open sourcd module*

wise turtle
#
restive kelp
#

ty

#

and i have to have bones in my meshparts right

topaz crypt
restive kelp
# wise turtle yes

anything else rqlike a setting change or anything or is JUST starting it all it takes

wise turtle
#

read the docs

wise turtle
restive kelp
#

ty

mild sequoia
clever pecan
#

how many of yall use opus 4.5

zealous hollow
#

the claude model? i do, its the default claude atm right?

deft coral
#

good with math though i wouldnt use it for much else

clever pecan
clever pecan
deft coral
turbid socket
wise turtle
turbid socket
wise turtle
#

oh sure

clever pecan
turbid socket
wise turtle
# deft coral i do a lot of math so yes id say i use it daily

Following on from the previous video at https://www.youtube.com/watch?v=cyyR7j2ChCI, I now attempt to formalize a different proof of the same assertion using the large language models Claude 3.4 Sonnet and o4-mini-high, after giving them the informal and formal proofs from the previous attempt as reference.

The informal proofs were taken from h...

▶ Play video
wise turtle
turbid socket
wise turtle
#

me too

vernal peak
#

if I make these weapon modules thats in Server Storage access the PlrStateService, is that not good? bc I can only think of them accessing the stun service directly otherwise its not possible

mild sequoia
regal salmon
#

youre really only going to get people who want to build a portfolio to work for free (aka beginner-intermediate). most 'experienced' developers won't work on games when there's only rev share / no gain

#

that's not to say there's none that will work on a game for just rev share, but the amount is a lot lower than i'm sure you'd like

zealous hollow
fickle flame
#

what do you guys think of the new command bar

#

pretty w studio update imo

turbid socket
icy gale
fading bronze
#

I enabled it in beta features a bit ago

junior blade
exotic lantern
weary socket
exotic lantern
weary socket
#

You remember me?

exotic lantern
#

Yes

weary socket
#

Ayy

exotic lantern
#

Lol bro, we actually in discord group

weary socket
#

Wdym

#

Oh

#

Are u still doing that rpg game

exotic lantern
weary socket
#

Ah I quit

exotic lantern
#

Ah

weary socket
#

Rpgs take too much time

exotic lantern
#

That true

weary socket
#

Ain't nobody got time fo dat

exotic lantern
#

ah

lavish matrix
#

Anyone wanting to create a horror game with me?

exotic lantern
lavish matrix
balmy sorrel
#

Anyone wanna give me 25k USD so I can get a 2014 S197 GT?

balmy sorrel
#

Anybody else?

balmy sorrel
exotic lantern
#

rank*

lavish matrix
lavish matrix
balmy sorrel
#

ok if you give me 25k I'll just do it

#

you have my word

#

25k USD and I'll work on your doors game

exotic lantern
#

K i can give u 25k Rials

lavish matrix
balmy sorrel
shell sorrel
#

looking to create free scripting things for my portifolio. DM me so i can start getting nice portifolios + u get free scripting works. - intermediat scripter

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team.

drifting ice
#

ok soooo when am i hired for every roblox game

lavish matrix
lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

shell sorrel
#

looking for full time scripting hirements. Intermediat scripter, looking for payment per task. 500-1k per task.

#

dm

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

drifting ice
stiff dagger
#

How would I make a gifting system for dev products?

modest pagoda
#

Who can help me make a game I don’t have any ideas and can someone help me make the game

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

modest pagoda
#

Bet but I don’t know how to do shit

#

DMs

#

@lavish matrix

round panther
weary socket
# round panther I have same question

You'd use MarketplaceService to detect when a dev product is made then show a gui to the user to get which player to target then apply the beneift to that player

#

However if the game shuts down in the middle of this process or even datastores fail u gotta add a safety net to prevent angry people reporting you

#

For that safety net I would record in your datastore taht they purchased the dev product and record that the benefit wasnt gifted. Once the benefit is gifted remove the 'not gifted' record from the datastore. If user logs in with a 'not gifted' record in the data store then you already know the gifting process failed last time and then you can retry gifting.

#

or use MemoryStoreService for the safety net which is even smarter.

weary socket
round panther
#

I could have asked this to ai but the ai just agrees to me everytime

weary socket
#

Duping items is the real trick here which u will have to test for heavily

#

Cuz if they find it ur whole game economy is screwed

#

Maybe add a gifting cap per minute

round panther
#

I like the blox fruit type thing. you buy a gamepass which is actually a developer product and you store it into your inventory and can trade it

weary socket
#

Record which items were gifted so u can delete them if a dupe is found. Record the time which they were gifted so u can have a reasonable way to tell if they used a dupe

round panther
weary socket
#

I worked for a roleplay game before with an inv system and let me tell u, dupes and data store crashes are not hard for players to do.

#

Oh ok sure dont woryr about it then

#

probs the most annoying thing for you to do then is making the gifting UI TBH

round panther
weary socket
#

How do u check for gamepass, with the MarketPlace:HasGamePassid() thingy?

round panther
#

yes

weary socket
#

also gamepasses are not dev products in terms of coding, so be careful

#

dev products dont have a :HasDevProductId() method

round panther
#

if MarketplaceService:UserOwnsGamePassAsync(player.UserId, PASS_ID) then

weary socket
#

You could have an array in the data store called "PassesUnlocked" that has the id of each game pass AND/OR dev product

#

careful cuz if they get gifted it, you have to stop them from buying the gamepass again

#

cuz otherwise ulll get spam messaged for refunds

#

people will inevitably misclick/forget

round panther
#

Bro I think I would have to burn my all codes and rewite it 😢

weary socket
#

Yeahhhhhh probably, thats coding alright xD

round panther
#

I think I should make gamepass also dev product

#

I will store if the user has bought it

weary socket
#

you should make it either game pass or dev, not both

round panther
#

dev is better i think cuz u can buy multple times and is suitable for gifting

weary socket
#

yep i would choose dev

round panther
#

I spent a full night to make the shop code. and now i am back to square 1

#

i mean not full night 2 hours maybe

weary socket
#

With dev products u need to implement a callback called ProcessReceipt, cuz this call back will be spammed for the same DEV product id (on purchase) until the callback returns 'yep, it processed'

#

If ye need help bug fixes I can always help

#

I've done this all before

round panther
weary socket
#

Also roblox expects you to store their UserId in the datastore as metadata, I think SetAsync has a way to set their user id associated with the record that they purchased the dev product

weary socket
round panther
weary socket
#

Yeah ill probs just post it here

stiff dagger
weary socket
#

DevProducts.server.lua

round panther
#

Thx

weary socket
#

DevProducts.server.lua

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MarketplaceService = game:GetService("MarketplaceService")
local PurchaseService = require(game:GetService("ServerStorage").Services.PurchaseService)
local ProductsConfig = require(game:GetService("ReplicatedStorage").Data.ProductsConfig)
local DataService = require(game:GetService("ServerStorage").Services.DataService)
local InvTypes = require(ReplicatedStorage.Data.InvTypes)

local function registerFragPurchase(idx, data)
    PurchaseService.RegisterDevProduct('FragmentPurchase', idx, data, function(plr : Player)
        local profile = DataService.GetProfile(plr)

        if not profile or not profile:IsActive() then
            error()
        end

        profile.Data.Currencies.Fragment += data.Amount
        print(`Granted {plr.Name} {data.Amount} fragments!`)
        print("Product Details:", data)
    end)
end

for idx, data in ProductsConfig.DevProducts.FragmentPurchase do
    registerFragPurchase(idx, data)
end


MarketplaceService.ProcessReceipt = PurchaseService.OnProcessReceipt

local currencyToProducts = {
    Fragment = "FragmentPurchase"
}

ReplicatedStorage.Remote.Shop.BuyCurrency.OnServerEvent:Connect(function(plr: Player, currency : InvTypes.Currency, optionIdx : number, productDetailsToConfirm : {}?)
    local cat = currencyToProducts[currency]
    
    assert(cat)
    
    if productDetailsToConfirm then
        if not PurchaseService.ConfirmDevProductDetails(cat, optionIdx, productDetailsToConfirm) then
            return
        end
    end
    
    PurchaseService.BuyDevProduct(plr, cat, optionIdx)
end)
#

This will probs confuse you more cuz it's custom code for a game I made

#

I never added trading cuz I had no need for it

#

Trading is like u said just a simple item transfer or soemthing,

round panther
#

ok lemme see the codes

weary socket
#

I posted two scripts

#

one is a module (PurchaseService)

#

DevProducts is the normal script

#

Need both for it to work

#

DataService is really just ProfileStore

#

Oh yeah i just realized the code for the dev products is not there

#

Oh wait it is

#

in DevProduct script

round panther
#

@weary socket Btw is making your own ingame curruncy good? Like I make lets say Gems my premium currency so player can buy gems with robux and everything is able to be bought by Gems. So I don't have to code so much. Is there any flaw in this idea?

weary socket
#

Maybe if people can somehow duplicate currency, but if you got good code, then nope! it's fine, lots of games do it, including mine (I just call it Fragments in the script)

#

Its actually smarter cuz u can make people buy bundles of higher currency to make more robux

#

so they kind always overpay a bit in theory

#

cuz they will usually have left over currency

round panther
#

And I would make it so the amount they can buy is either a bit small or a bit high to what they want to purchase. So they have to buy higher and i will make money from the kids hahaha

round panther
round panther
#

Ok i am disabling my scripts so i can work on my new code byee. thx for the help @weary socket

weary socket
#

Refer to the offical roblox documentation tho, it's a life saver

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

peak jolt
#

then why are you in this channel

#

just to mock us

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

gaunt atlas
#

can anyone please give me some tips about scripting?

#

i wanna learn efficiently along the way

#

i just don't know where to start

static forum
gaunt atlas
sonic mist
#

like the best way to learn is to do

#

remake a mechanic from one of your favorite games for example

gaunt atlas
gaunt atlas
sonic mist
sonic mist
wind saddle
gaunt atlas
gaunt atlas
wind saddle
#

yeah i know, you just have to find your own way and expand from there

#

could go back to basics, pen and paper

sonic mist
#

(remove the space since i cant post links yet)

sonic mist
#

this video explores variables, functions, and provided luau objects

#

even tables, events, etc

gaunt atlas
#

i got it, thank u

deep plume
#

hvb

lavish matrix
#

Anyone wanting to create a horror game with me? We need more people to add to the team. Were not looking for any coders.

jovial crown
#

Hiring here is not allowed btw, im not gonna report you tho

#

Just note

sacred ore
#

Oh ok ty

fresh basalt
#

making a giant public math library... wish me luck...

#

i finished the pathfinding module

uncut nest
errant elm
dense wasp
kind shore
#

guys how to send image in this group ?

vernal peak
#

what does session locking mean?

fresh basalt
fresh basalt
#

right now we are working for pathfinding

static spear
fresh basalt
#

from a simple npc moving back and forth to a full on supporting horror games or npc companions

#

we are making sure the pathfinding will work for all types of games

#

then we will move on to tweens or curves

bitter harbor
#

hi guys

fresh basalt
#

u can use it in animating a block or the curvature of a arrow shot

bitter harbor
#

hru

fresh basalt
#

i am good

bitter harbor
#

good

native sundial
#

im trying to optimise my game for console and for some reason when i press the share button (small left button opposite settings) on a ps5 controller, the virtual cursor automatically selects a button and when i try to move it, it just goes to the next button instead of letting me move the cursor freely on the controller, how do i make it so i can move it freely?

fresh basalt
native sundial
#

i just had to enable the virtualcursormode in startergui

solar inlet
fresh basalt
lapis parrot
#

can any1 help test my game

honest hedge
#

how do I make my own roblox character models for my game and make it the characters that players join as?

azure coral
#

if all the scripts and objects inside the custom character models are alright then it should work

honest hedge
#

alright thanks, do you have a certain video on it or should I just search one up?

azure coral
# honest hedge alright thanks, do you have a certain video on it or should I just search one up...
honest hedge
#

alright thanks

serene cradle
#

anyone got any idea on rootmotion support

#

wish roblox would get this fixed

peak jolt
#

and yes it is really tedious especially when not all torso translation is actually root motion

serene cradle
#

Useless updates lately but no good ones like these

peak jolt
#

cause roblox devs arent that interested

karmic wadi
#

if roblox actually removes R6 im quitting

peak jolt
#

they have been pushing stuff like new char controller, curve animations, animationconstraint, new animator methods, animation parameters, ... and people just arent using it and have no idea they exist or how to use it

serene cradle
umbral path
#

Anyone trying to sell robux for higher value dm me

sonic mist
#

i dont see them removing r6

#

cause like there are games that depend on it

#

that would break soo many games

#

removing classic faces on the other hand, is easier for them, since not a lot of games depend on classic face being present in avatars

errant elm
#

So essentially mouse, but its bound to your right joystick and the A button.

shadow loom
#

yo can anyone help me price a system rq

karmic wadi
round vector
#

Rate this script my friend made


bridgePart.Transparency = 0.5
bridgePart.Anchored = true
bridgePart.CanCollide = false

local buttonPart = game.Workspace:WaitForChild("ButtonPart")
local isTouched = false

buttonPart.BrickColor = BrickColor.new("Really red")
buttonPart.Anchored = true



local function buttonTouched(partTouched)
local humanoid = partTouched.Parent:FindFirstChildWhichIsA("Humanoid")
  if not isTouched and humanoid then
    isTouched = true
    bridgePart.Transparency = 1
    bridgePart.CanCollide = true
    task.wait(2.5)
    bridgePart.Transparency = 0.5
    bridgePart.CanCollide = false
    isTouched = false
  end
end

buttonPart.Touched:Connect(buttonTouched)```
#

He started a day ago

junior thicket
#

I just realised my scripter role got approved

#

Finally 🔥

sonic mist
#

congrats

sharp gulch
harsh shadow
#

Lets say I make a code the codes parent is called Button so it would be:
local Button = script.Parent
And I want another thing called Button can I call the same since the script is inside it’s own Button?
Or do Increase with 1 each time like
Button1
Button2
Button3

#

Im genuinely curious

#

I started scripting yesterday

strong tide
harsh shadow
slow crow
#

guys i just finished brawldevs basic tutorial on scripting , everyoen is telling me to instead of watching his advanced one to just make stuff , what do you guys suggest me to make

harsh shadow
#

I started yesterday I’ve already learned 5-10 lines of code I would advise you to try ur self

#

You can watch but watching won’t make it stick in ur head

#

Try doing something out of what you learned so far

slow crow
#

i know i already finished it

#

i did all his learning objectives

harsh shadow
#

W

slow crow
#

i tried applying each thing to a script of mine and did my own thing

#

but im kinda confused where to go from here

harsh shadow
#

Same man rn I’m tryna watch another tutorial so I’m 100% sure

slow crow
#

which tutorial did u watch

#

first

harsh shadow
#

Yesterday I had ChatGPT explain

#

Which helped a lot

slow crow
#

is chatgpt good? ive been using brawldev

harsh shadow
#

Is brawldev an ai?

slow crow
#

his tuts are realy good but also super duper simple

slow crow
harsh shadow
#

Is it on YouTube

slow crow
#

yeah

harsh shadow
#

Ok perfect

#

I’ll search him up

#

Thanks man

slow crow
#

he has 2 a basic and advanced

#

he explains very well but if u know the basics the first few videos would feel like a waste of time

#

but i suggest watching em anyway

harsh shadow
#

Yooo they are short aswell

slow crow
#

yeah theyre spaced out between 18 vids tho

waxen edge
#

is it my studio stupid or smth why is the module scripts putting syntax when u require another module script i mean it works fine but its stupid

harsh shadow
slender marten
slow crow
#

if u used gpt to help u and didnt understand suggest u watch him

covert hound
#

Hey chat, I just have a question for anyone here. I recently finished learning how to script and I dont really know what to do next, Im not ready to make my own game because Im the most uncreative person ever so I rlly want to do commissions, but because I only know how to code, how would you guys recommend making a scripting portfolio? Would I just show off random stuff I script?

maiden kiln
#

for example i made a deepwoken inspired combat system with features from like for honor and made some money off of that

#

or you can contribute to some opensource stuff on github

covert hound
#

Thats not a bad idea 😮

maiden kiln
#

yeahhh'

covert hound
#

Should I maybe make a game where I put all my scripting stuff and have it all in one place?

maiden kiln
#

but also experiment yk? like make a game where you are using primarily meleehitboxes with spatial querys but then also make a game primarily based around moving hitboxes and experiment with raycasting

maiden kiln
#

this will also help u with organization

#

like do you know how to organize your code

#

module loaders? yk

covert hound
#

Eh... Im still pretty basic when it comes to that part of it all

maiden kiln
#

its a big plus if you can make a really good combat system, but make it really easily customizable using module loaders

maiden kiln
#

experience makes you better

maiden kiln
covert hound
#

OH

#

I think I get that now

maiden kiln
#

yeeee

#

if u ever need help with that u can dm me

#

ive made a lot before

covert hound
#

Thx! 😄 👍

vernal peak
#

is DataDelve safe

regal salmon
#

ive been using it with no problems

vernal peak
# regal salmon yeah

do u use ProfileStore and DataDelve? DataDelve to see and delte corrupted data and profilestore to save?

regal salmon
#

my data doesnt often get corrupted

vernal peak
regal salmon
#

i forget what its called

#

but it can be edited in datadelve

tough belfry
#

Could anyone explain this in their terms : MasterSword.__index = MasterSword

weary socket
tough belfry
#

Ok so i have to use it with lets say setmetatable (basicSword , MasterSword)

weary socket
#

It explains to the Lua interpretor that key value pairs that are not in the original table can be looked for in the MasterSword table

tough belfry
#

ok so it eliminates the chances to get nil

#

if u dont have a object in ur table

#

i ll try to practice it thanks

weary socket
#

basicSword[someKeyhere] can still return nil

#

theres a way to explain thats really good hold up ill try

tough belfry
#

oh i get it , but it helps since it looks into MasterSword just incase that exist

#

i m 30 minutes in trying to learn OOP so its gonna be a challenge lol

strong tide
#

why is it so hard to apply what I've learned when trying to make a game

weary socket
#
local basicSword = {}
local MasterSword = { lol = "XD" }
MasterSword.__index = MasterSword 

setmetatable(basicSword, MasterSword)

local someKey = "lol"

basicSword[someKey] -- gives XD
--because: basicSword[someKey] is the same as the following:

local value = basicSword[someKey]

if not value then
  value = getmetatable(basicSword).__index[someKey]

end
#

Look at the last 3 lines of code

#

There u go

#

exactly what happens

tough belfry
#

thanks a ton

weary socket
#

__index is extracted from the metatable and used to index essentially 🙂

#

except __index can be a function, and in that case, __index(mytable, mykey) would be called

tough belfry
#

i see and that avoids having to rewrite 1000 lines of code for every new thing i add i just check the master sword for the same key

#

very efficient thanks

weary socket
#

metatables just add extra instructions, and if u can visualize those instructions, its the easiest thing ever

slender yew
strong tide
#

i don't understand __index in terms of OOP

weary socket
#

in a sense

#

is that what u meant

#

or you mean how does __index even mimick OOP?

weary socket
slender yew
#

Maybe its urs

opal pecan
weary socket
# strong tide ye
local MasterSword = {  }
MasterSword.__index = MasterSword 

function MasterSword.Slash(self)
  print("Slash")
end

local mySword = {}
setmetatable(mySword, MasterSword)
mySword:Slash() --prints slash even tho Slash isnt defined in mySword table

weary socket
slender yew
slender yew
weary socket
#

the glare on on the SurfaceUI buttons

opal pecan
slender yew
#

how simple

weary socket
slender yew
#

like would I need to include an entire content directory too

slender yew
weary socket
#

Why are you so defensive?

slender yew
#

thank god we’re not the same person

opal pecan
strong tide
weary socket
#

Ah, I see. That explains.

weary socket
slender yew
opal pecan
#

ok whoever writes next gotta answer

weary socket
#

I mean it likely clones a map locally somewhre and sets your position there

slender yew
weary socket
#

camera wise

slender yew
#

anwser me and @opal pecan now

weary socket
#

The white flash gives it away

opal pecan
weary socket
#

The other possibility is the whole map is placed in a viewport frame that covers the screen, but viewport frames dont render sky so idk why it would be that, they would need a workaround

opal pecan
slender yew
#

What are we figuring out guys

weary socket
weary socket
slender yew
#

1 hour of coding a reusable plug and play modular system or 15 hours of tweening camera cframe

weary socket
#

u right

weary socket
#

0-0

slender yew
#

u real asf for that bro

weary socket
#

u replied to urself

slender yew
#

u should whip this one next ._.

slender yew
weary socket
#

Bro I am not sure if you're here to ask Roblox related questions or stir up emotions

slender yew
#

good observation

#

god forbid darian madrix’s emotions get stirred up

#

good night

opal pecan
#

sleep well

echo belfry
#

how do u guys learn to implement math into ur code to make better movement or maybe add swinging in ur game, I honestly don’t get it

somber vault
#

Take a lua class

#

Implement learning

echo belfry
somber vault
lost pebble
remote bear
#

8 thousand lines praysob

quaint thunder
lean canopy
#

is 60k enough for a realisitic bike driving system thats physics heavy

remote bear
#

oh nwm you mean robux

lean canopy
#

i meant robux lol

remote bear
#

yeah i would say 60k is resonable if its proformance friendly, expandible and well put together

#

but its a hard maybe since i dont know how good it is

fast bronze
#

guys just instead make a game

#

trust

somber vault
#

Could anyone give me Robux to advertise my game or give me tips of how to without Robux please and thank you

fickle python
#

hopefully i never have to touch this combat system again holy shit

cunning ivy
#

anyone made first person?

floral quarry
#

Just a question (if it’s even possible to do efficiently) can there be a system where you can take a photo of your avatar in game WITH the surrounding maps, and be able to save that photo in game so you can look at it and keep a collection of photos?

#

In other words, collecting photos of yourself in game and keeping them to look at

frail yarrow
regal salmon
bleak glade
remote bear
echo belfry
#

oh is it when they touch the yellow lines

cobalt yoke
#

chat should i feel guilty for copying the toolbox scripts?

echo belfry
#

toolbox scripts suck u shouldn’t

cobalt yoke
#

i want to copy this

#

but i dont wanna feel guilty

#

like practically steal it

echo belfry
#

u can use it as inspiration just don’t copy it all exactly

#

u won’t learn like that

cobalt yoke
#

thanks my consicious is clean 😭

echo belfry
#

it’s better to just use documentation to work on ur problem solving from my experience

quaint thunder
quaint thunder
echo belfry
quaint thunder
thorny trench
#

wtf

cobalt yoke
#

never heard the term?

thorny trench
#

nest maxxing

#

nesting maxxing

#

ya hurd

obtuse nimbus
#

unironically using 'maxxing' will always be funny to me

gentle shoal
#

this is somebody else's work NOT mine. im a beginner scripter and i would like to know if this is complicated or how long it would take to learn just out of curiousity because idk at all what they're saying lol. i don't have image perms so this is the code from the image:
updateTools()
trove:Add(playerData:GetKeyChangedSignal("EquippedTool" .. 1))
trove:Add(playerData:GetKeyChangedSignal("EquippedTool" .. 2))
trove:Add(ReplicatedStorage.GameConfiguration:GetAttrubuteChangedSignal [IMAGE CUTS OFF]
once again this is NOT my work

fickle flame
#

hey is that your work

gentle shoal
#

yeah

gentle shoal
#

because no image perms

regal salmon
#

not what i meant smh my head

gentle shoal
#

because im just curious

#

i really dont know much about scripting

#

other than what a variable is 😭

regal salmon
#

wouldnt worry too much about that for now, focus on the basics

#

that uses mostly third party modules

#

you can find the documentation for them easily

#

but a lot of it will be explained the more you learn the fundamentals

gentle shoal
#

ok thanks

regal salmon
#

just from that small snippet its hard to tell exactly what its meant to be doing

#

top function is a custom function, bottom one is cut off

gentle shoal
#

yeah someone called him a genius so i was just curious if it was brilliant or the other guy is just beginner lol

thorny trench
#

✌️

cobalt yoke
#

is there a btter way to do this?

#

its hard on the eyes 😭

thorny trench
fickle flame
#

I wouldn't put that in a single line with ifs or ands for assignment

#

unless you want to make your code less readable

thorny trench
#

ya ik lol

#

just lazy maxxing

autumn hull
#
if math.abs(Direction) >= 0.5 then
  Offset = math.sign(Direction) * 6
end;
thorny trench
#

ye what I was boutta say frl

thorny trench
#

He says in the code discussion channel

#

💀✌️

echo belfry
#
local cam = game.Workspace.CurrentCamera
local plr = game.Players.LocalPlayer

local character = plr.Character or plr.CharacterAdded:Wait()

local humanoid = character:FindFirstChildOfClass("Humanoid")

local connection = nil
local ServiceRun = game:GetService("RunService")



local function CameraBop()
    local Y = math.sin(tick() * 20) * 5
    local base = cam.CFrame
    cam.CFrame = base * CFrame.new(0,Y,0)
    print("working")
end

humanoid.Running:Connect(function(speed)
    if speed > 0 then
        if connection then return end
        connection = ServiceRun.RenderStepped:Connect(function()
            local Y = math.sin(tick() * 7) * 0.2
            local base = cam.CFrame
            cam.CFrame = base * CFrame.new(0,Y,0)
            print("working")
            
        end)
    else
        if connection then 
            connection:Disconnect()
            connection = nil
        end
        
        
    end
    
end)
``` is there a smoother method for camera bopping? ts is so ass bro 😭 the camera moves up automatically in a weird way and goes back to the middle position immediately when connection is disconnected
#

seems to only look good in first person

deft coral
#

ask chatgpt, deadass

#

or claude

#

just go "how do i turn this into spring math and what is springs in interpolation methods"

#

the tldr is it interpolates but uses the current state's momentum to simulate a more realistic physical reaction, like dampening

#

also i wouldnt do ur code like this, id do both x and y, and i wouldnt tie the connection inside an event

echo belfry
#

ill check it out though

deft coral
echo belfry
# deft coral wdym

everytime i use chatgpt it just feels like cheating, i prefer to try and problem solve without it

deft coral
#

using AI to help you understand something has been shown to increase brain activity than if you were not using it

#

so just ask it "do not code it for me, tell me about spring math and force me to work through it":

echo belfry
#

ohh alright i understand

autumn hull
#

be aware of it writing some nonsense

deft coral
#

that too

autumn hull
#

turn on search feature

tribal mango
#

I had to have Gemini help me with the derivative of Ax^2 the other day

#

😂 😂 😂

fleet silo
lean canopy
#

Physic developers

astral swift
#

i can help

shy cipher
flat stream
#

looks gay

shy cipher
#

I learned ternary logic from parkour legacy's source code

#

doesn't work on me

slender yew
woeful marlin
#

conclusion :

  • make game like knockout but it does have more minigames such as goat rage, invisible, slippery floor, random power, etc
  • make saveprofile for each player
  • inventory for skin/item
  • shop for buying item/skin
    200$ for this is good price?
pliant flare
#

Even just copying it will let your brain recognize patterns letting you understand better next time you have a similar problem

magic skiff
#

who can build a bot for me ill pay well

astral shale
#

how to make two proximitys appear at thte same time

tidal bolt
alpine blaze
#

Lowkey is recreating gang beasts possible

hollow turtle
prisma aspen
prisma aspen
tidal heron
prisma aspen
# tidal heron interesting

the first () says if direction is >= 0.5 then offset is 6, if it isnt then offset is nil, then theres the or, and if the first value is nil it does the second check

hot hatch
#

Are the 13 year olds onto something or just spitting shit?!

dusky relic
#

spitting shit

floral quarry