#code-discussion

1 messages Β· Page 271 of 1

woven palm
#

you might as well say 99 nights is a rip off of 7 days left to live

deft coral
#

The ole "who asked" defense, typical of the receded chin

tacit sparrow
#

put it somewhere useful

#

😭 WHEN DID I say i like brainrot games or I love brainrot games?

deft coral
#

Ill counter with a "imagine naming yourself beastyyy" and a "drop ur games"

woven palm
#

you still havent named a game atp you jut talking to talk

shy cipher
deft coral
deft coral
#

What am i gonna show up in the files next

woven palm
#

thats why im saying the swtich up is crazy

shy cipher
gusty compass
#

skibidi

tacit sparrow
#

this shows a lot tbh

shy cipher
woven palm
tacit sparrow
woven palm
deft coral
#

His name is beast boy like he named himself after the green dude on teen titans its chopped

tacit sparrow
#

pretty suspicious

tacit sparrow
#

whats wrong with it

deft coral
#

Like im just the messenger

shy cipher
deft coral
#

Im giving energy i receive

woven palm
tacit sparrow
woven palm
#

grown ahh man talking about larping

deft coral
#

Im a microwave in here yk washrrmmmmmm waasmmrrmmmmmm brrrrrrrrrrr

deft coral
#

Nah yeah u right mhm

woven palm
#

is he so slow to know you can make a new account

deft coral
woven palm
#

like since i lost my old account im now supposed to retire and go do some else ??

tacit sparrow
woven palm
#

unless you want to get my account back

tacit sparrow
#

suspicous

deft coral
woven palm
shy cipher
#

yk you can admit you were wrong we ain't gonna make fun of you πŸ˜”

woven palm
#

like i even met my scripting teacher here back in 2020 on my old account

deft coral
#

Detective beast boy on the case

woven palm
#

this dude gotta be on spectrum

deft coral
#

Vine boom

shy cipher
#

beastyy before and after substances

woven palm
jovial crown
#

@stuck radish

tacit sparrow
#

is this a ragebait πŸ’€

woven palm
#

soon as you said this bs anything you been saying sicne then is just rage bait

#

i dont take you serious enough

tacit sparrow
#

😭

#

i was bored ok

shy cipher
#

don't mind him πŸ”₯ he doesn't know what he's talking about 😒

tacit sparrow
#

alr fine mb cht

#

chat

#

πŸ₯° love yall spread peace and all that bs

shy cipher
#

see you white boy

tacit sparrow
woven palm
tacit sparrow
deft coral
tacit sparrow
woven palm
woven palm
jovial crown
shy cipher
deft coral
#

πŸšͺ πŸƒβ€β™‚οΈ

woven palm
#

they not gon ban me bc i never got banned before

deft coral
#

πŸšͺ

woven palm
#

cant even use your alt in the big 26

tacit sparrow
peak jolt
woven palm
deft coral
#

Wait

woven palm
deft coral
tacit sparrow
#

mods here arent chill and allat

woven palm
#

you joined the server in 2026 i for sure dont know why you even talking atp

peak jolt
deft coral
woven palm
tacit sparrow
woven palm
#

what they got with me

woven palm
shy cipher
#

ineternet here as backup too

tacit sparrow
woven palm
#

and in conclusion to wrap up this pointless convo beastyyy doesn't know what hes talking about and hes blinded by trends so dont listen to him and do what you want Thumber

#

D1 time waster

tacit sparrow
#

goodluck with that shitty 99 nights rip off

#

with probably 20 ccu

woven palm
#

you might as well just say every game is a rip off each other

#

bros to slow not to know what a game genre is laugh

#

ong this dude just chatting dont listen to him

shy bronze
#

have anybody made a shooter game? i got a question on the hit detection

shy cipher
woven palm
#

alr did this once and proved someone wrong

#

imma do it again praysob

jovial moat
#

That has nothing to do with what I was saying

tacit sparrow
jovial moat
#

Guy asks for feedback, gets feedback, and then doesn't use the feedback

#

That's Hidden Devs, folks

tacit sparrow
#

i asked to organize ts

woven palm
#

he dont know shi

tacit sparrow
#

Literally my fan

weak radish
wise turtle
#

truee

remote root
#

if destroy and debris were in a fight who would win

hollow mural
#

how would I make a football ball not be horrid with the roblox physics, I heard I could use raycasting?

autumn ermine
#

then complain after the comm that their game is laggy, buggy but it works

#

I got com'd to fix some guys place because the scripter they hired before made things work

The person complained that their fps was at a constant 20 fps no matter what.
I played the game and saw script activity. One of the their scripts was at 81.4% USAGE Skull

#

The script had a while true do, get descendants inside of workspace, pooled all parts and destroyed parts if there's more than 100,000

#

"anti-lag" script

rain wyvern
#

.

hollow mural
strong sigil
woven palm
#

grown ahh man

gaunt pagoda
#

you guys Claude cooked their AI model so hard lol

#

this is literally what it wrote

#

🀣

#

this was the code btw

#

4.6 is going great so far haha

rare kelp
#

ok.

gaunt pagoda
ocean swan
#

I'm a beginner in scripting. I've noticed certain words in my script have different colours. Does anyone know where I can find what each colour means/knows what each colour means? This will help me read and understand scripts better. Thanks

woven palm
quasi urchin
twin pumice
#

how i get started with scripting and what should i make first to get the hang of it?

slim rose
shy cipher
shy cipher
# twin pumice how did u start gng

open roblox studio, build a house to get used to the UI, open toolbox, drag stuff into your "game", check out its scripts, try to find out how the basic stuff works, then you can watch yt tutorials to give you more insight

#

once you have some base in coding, then you can start reading docs or books on programming (in lua)

shy cipher
#

spend more time coding than watching videos, otherwise you will go in what's called "tutorial hell" and it is a real thing

twin pumice
#

ik how to build etc im familiar with studio ui etc but scripting is another story lwk

#

ty for help tho

shy cipher
#

it's when you can't make anything of your own and only what you see in videos

#

it pretty much makes you a chud who thinks they're a programmer

twin pumice
#

like a gun or smthin

iron oyster
#

believe it or not, you think about it

#

what makes a gun? what defines a gun?

shy cipher
#

not knowing how to make it

#

tutorial hell makes you memorise how its made

#

not actually make your way to making it

twin pumice
#

trial and error?

shy cipher
twin pumice
#

thanks for the words of wisdom

shy cipher
#

do you know why we put "local" before any variables?

#

or how = is different from ==?

#

or what "stack begin" and "stack end" means in the output when your code errors?

twin pumice
#

Im freshie

shy cipher
#

try to understand the bigger picture, it helps a lot when you want to build your systems

shy cipher
# twin pumice Im freshie

you can always ask me for insight or have questions in DMs, I'm ultra haxxer programmer scripter 99999

hollow night
#

Guys, yall think if i make an value that is the player name, and if they do an action to basically check if they are the owner of that thing, if yes then do smth [its for like an ownership module]

alpine dirge
#

does someone work with procedural inverse kinematics

shy cipher
wet copper
#

assign the instance to the player, maybe with tables if u want it easy

weak radish
# autumn ermine "anti-lag" script

Lmao ive seen people joke about adding 20 anti lag scripts to reduce lag but i didnt realise there were people who actually used stuff like that

autumn ermine
weak radish
#

Just make it worse

#

Obviously there are ways to reduce lag but there are some people who think they work like just a free reduction of lag rather than trade offs

plush forge
#

i think part of why roblox devs write more shitty code than other engines devs is because most game engines use oop languages or languages that have very easy oop, which forces you to write modular systems and code which is the mindseet NEEDED for gamedev and roblox just so happens to pick the language notorious for oop

proven plover
#

not everything needs to be oop

void tusk
proven plover
#

πŸ”₯

void tusk
#

i use my dice object and pass it into my runner object that runs modules which calls my scheduler object singleton

proven plover
#

my math utils are all objects as well

#

im veri kewl

heady spire
#

how do i go about handling the hitbox of a fireball projectile ability, ive seen raycasts mentioned but i dont get how that works with a projectile it seems more like something for hitscan so i just have no clue how to make accurate hit detection

potent igloo
#

like

while task.wait() do
  local result = workspace:Raycast(lastPosition, currentPosition - lastPosiotion)
  if result then
    return result
  end
end
heady spire
#

so i gotta do math πŸ₯€

potent igloo
potent igloo
#

but most of the times yeah

potent igloo
# heady spire so i gotta do math πŸ₯€
#

its a famous module

#

to create raycast projectiles

nimble spade
#

Is there a limit on how many stats you can have in leaderstats? I created 5 but only can see 4

subtle finch
#

what would fuck over the ram

#

on ur pc

iron kraken
#

i hate oop

regal salmon
#

it makes sense, wouldnt want the leaderboard to cover the whole screen

heady spire
#

how do i load animations beforehand like the first time i use an ability the animation and the effects are out of sync but is there a way i can preload animations

peak jolt
heady spire
#

wdym reuse the same track every time

peak jolt
#

local track = loadanimation

on mouse click
track:Play()

regal salmon
heady spire
#

ohh so its bad practice to do loadanimation():play()

regal salmon
#

yes

#

especially if timing is necessary

#

because your animator needs to take the time to load the animation when its run

peak jolt
heady spire
#

oh what didnt know that was a thing

regal salmon
peak jolt
#

per animator

regal salmon
#

ah okay

heady spire
#

ok then its not so bad

peak jolt
#

it is bad.. it means after punching 32 times your character will remain inanimate entirely until you die

heady spire
#

but thats only if u do loadanimation every time right

peak jolt
indigo torrent
peak jolt
#

they are instances yes

heady spire
#

ok yea then thas cool

indigo torrent
heady spire
#

can i do something like loadanimations and store it into a table for abilities that should always be responsive then do table.clear if u were to change abilities/moveset

regal salmon
#

it would just clear your table

#

the tracks would still be loaded

heady spire
#

ah how do i do that then

peak jolt
#

the default roblox animate script works like this for specific reasons but for your own animations i would never recommend doing it like this and just reusing 1 cached track per animation never calling destroy (unless to clean up)

heady spire
#

thats what i meant to do

regal salmon
#

loop through the table and call destroy on each one

heady spire
#

ok cool

heady spire
#

how does preloadasync differ

#

@peak jolt

void tusk
#

pretty sure you dont need to call destroy on animation tracks if they are no longer referenced

peak jolt
#

you use them in tandem, its not a different thing, it just ensures the client doesnt need to download the animation data on demand but already has it in memory when the animation is needed

void tusk
#

so you can also just remove its reference if you wanna clear an animation track

heady spire
#

but if theres a loaded track limit how do you work with that do they just unload themselves

void tusk
#

every instance parented to nil will be garbage collected if there are no longer references to it

heady spire
#

parented to nil?

void tusk
#

animation track is an instance, and when you call :LoadAnimation, the animation track it creates has nil as its parent

heady spire
#

i was just boutta ask that ok makes sense

void tusk
#

you can actually parent the animation track to workspace if you wanna see the instance in your explorer

peak jolt
#

you cant

void tusk
#

oh rlly now

#

ur right, parent property is locked

#

pretty sure you can with tweens tho

#

at least that was how it was in the past

peak jolt
heady spire
void tusk
#

if there are no other references to them they should be

heady spire
#

what if theyre referenced in a modulescript but that also is cleared from the client when abilites change/moveset changes with table.clear

void tusk
#

you should check regardless with animator:GetPlayingAnimationTracks() after you've cleaned them up

void tusk
#

it returns a table of playing animation tracks

heady spire
void tusk
#

every time you call loadanimation that is a new animation track

#

it doesnt matter if its the same animation

heady spire
#

does this not happen in testing on studio because the way i have it rn its doing loadanimation(anim):play() and i just spammed it but its having no trouble playing the animation doesnt seem like theres any limit

void tusk
void tusk
deft coral
void tusk
#

meow

glass briar
#

hey can someone tell me why this wont work?

cloud parcel
slow crow
#

how fast do yall think i cna learn fronted luau

cloud parcel
#

Use Script instead

regal salmon
# glass briar

if you wish to use a LocalScript in the workspace, you have to make a Script, and then set the "RunContext" property on it to "Client"

glass briar
glass briar
#

Sorry haven't heard of this yet

civic sierra
#

Change the script man

regal salmon
#

you can't use normal LocalScripts

regal salmon
# glass briar Could u explain this a bit more

add a normal Script like you would if you were making a script for the server. then in the Properties window with it selected, find the Run Context property, and change it from Server or Legacy (i dont know which it is by default) to Client

#

that'll make it run the code client-side while still working in workspace

glass briar
#

I got it working

woven terrace
#

local function loop()
    task.spawn(function()
        while true do
            local part = Instance.new("Part", workspace)
            local part2 = Instance.new("Part", workspace)
        end
    end)
end

for i = 1, 24680 do
    loop()
end

trail pebble
#

Anyone want to make a One piece game with me (no pay, for fun)

wicked scarab
#

yo

#

DiscoverGameIcons experienced an error: sabuiltin_StartPage.rbxm.StartPage.Src.Network.GameCache:20: Item has no Id or FilePath or ContentId

#

how do u fix that

smoky flare
#

yo where can i find gfx people

remote root
#

how accurate camera positions πŸ’€

mint grail
regal salmon
near smelt
#

local module = {}
module["Inventory"] = {}

module.AddItem = function(itemName)
if module["Inventory"][itemName] then
module ["Inventory"][itemName] += 1
else
module["Inventory"][itemName] = 1
end
end

return module

module, replicated storage

local Players = game:GetService("Players")
local rs = game:GetService("ReplicatedStorage")
local folder = rs:WaitForChild("PlayerInvs")
local temp = folder:WaitForChild("InvTemp")

Players.PlayerAdded:Connect(function(player)
local clone = temp:Clone()
clone.Parent = folder
clone.Name = player.UserId
clone = require(clone)

end)

serverscript, serverscriptservice

Im Learning scripting and i realised this doesnt work when I try add a tool AND THEres mo tutorials for the backpack And stuff

#

yoo

#

I didnt make it on my own im tryna get a hang of it

#

but no one teaches about backpack and tools for inventory

royal pebble
#

is roblox forcing their shitty ass assistant auto complete in the script editor now

#

i do not remember turning this shit on

#

nvm just disabled it it turned on for some reason

dense spade
royal pebble
dense spade
royal pebble
#

true

near smelt
#

bro whose these randoms saying they dont like my code

hard garden
#

hi

rose raptor
#

why is c++ so fucking awful to use outside of the basic command-line based applications

#

ive been messing with win32 apps and i feel like they made everything 10x more difficult to understand than needed

near smelt
#

yeah

lost pebble
#

there's no need to clone it. you just require it once and use it from there

lost pebble
# near smelt yeah

it should probably look something like this:```lua
local inv = require(rs.InvTemp)

players.PlayerAdded:Connect(function(player)
inv.AddItem(player, item) --add another parameter for the player.
end```

near smelt
#

I wasnt asking about that sorry I was jus wondering how to add tools to ur inventory or something I dont really understand it

#

its fine ill jus try watch some more videos on inventories

lost pebble
ivory bronze
near smelt
near smelt
ivory bronze
lost pebble
near smelt
# ivory bronze can i see the code? cuz i do it like that and it works fine for me

local rs = game:GetService("ReplicatedStorage")
local toolsFolder = rs:WaitForChild("Tools")

local module = {}
module["Inventory"] = {}

module.AddItem = function(itemName)
if module["Inventory"][itemName] then
module ["Inventory"][itemName] += 1
else
module["Inventory"][itemName] = 1
end
end

local toolTemplate = toolsFolder:FindFirstChild(itemName)

if toolTemplate and toolTemplate:IsA("Tool") then
local clone = toolTemplate:Clone()
clone.Parent = player:WaitForChild("Backpack")
print("Tool found: ".. clone.Name)
else
warn("Tool not found or not a Tool:", itemName)
end
return module

near smelt
ivory bronze
lost pebble
ivory bronze
near smelt
ivory bronze
near smelt
# ivory bronze wait how do you get the player here? and also make sure it is a server script in...

heres the server script so it makes more sense
local Players = game:GetService("Players")
local rs = game:GetService("ReplicatedStorage")
local folder = rs:WaitForChild("PlayerInvs")
local temp = folder:WaitForChild("InvTemp")

Players.PlayerAdded:Connect(function(player)
local clone = temp:Clone()
clone.Parent = folder
clone.Name = player.UserId
clone = require(clone)

clone.AddItem(player, "Poo")
end)

dense spade
regal salmon
#

seems to be a module script

near smelt
dense spade
#

learn to name variables nicelypraysob

near smelt
#

bro it said clone = InvTemp:Clone()

#

not my fault u didnt understand it

dense spade
near smelt
dense spade
dense spade
near smelt
tame temple
#

Does anyone have a game i can make it famous if i get money or payment

shy cipher
# near smelt I wasnt asking about that sorry I was jus wondering how to add tools to ur inven...

if you have a tool, you can store it pretty much anywhere (even server storage). if you want the player to be able to access it on will, put it in player.Backpack and they can use roblox's inventory system to get the tool. but if you want to make your own system, you need to parent the tool to the player's character so they hold it in hand. un-parent from the character so they unequip it

lost pebble
# near smelt wow I didnt realise, ru tryna it say it canceled out the local clone?

it doesn't "cancel" it. the new instance still exists. it just that clone holds the require of the new module instead the new instance. but then the function ends and clone is no longer accessible and isnt being used. so it's kinda pointless (it's pointless to clone module script in the first place since it defeats the whole purpose of a module script)

near smelt
#

its jus that one youtuber man always messing up smth

#

idek what to do anymore to learn

lost pebble
# near smelt idek what to do anymore to learn

well, you learn by making stuff (start with small stuff). but you have to know the basics beforehand. yt tutorials are good for that. then you want to use the docs and devforum to help out through making your own stuff. considering you dont know if you're using the PlayerAdded event or not, you might need to take a step back a little

near smelt
near smelt
#

does the dev forum talk about making systems?

lost pebble
near smelt
#

alright thanks ill try use it ina bit

lost pebble
#

you're welcome

lavish plinth
#

whats a good networking module?

kindred pulsar
#

hey it sounds weird but can someone send me a somewhat complex script so i can study it?

kindred pulsar
#

ok bro

tacit sparrow
#

dont worry ill send u 1

kindred pulsar
#

thanks

tacit sparrow
#

happy reading

#

@kindred pulsar

kindred pulsar
#

tysm

tacit sparrow
#

:<<

kindred pulsar
small prawn
# tacit sparrow

How do people make the ui in a script bro if i tried doing that it would look shi

dense spade
#

anyone here willing to read my DataManager module to see if there are anything i should improve?
if yes ill send the link

shy cipher
#

it's hundreds of lines and was from when I was still a chud

tacit sparrow
#

:)

shy cipher
#

No its VIP only

#

buy the gamepass

opal yarrow
#

yo i want to play sound on client should i clone it and parent it to the character or just play it from local script and the sounds will be inside the replicated storage or is there a better way??

tacit sparrow
#

quit scripting

#

helps a lot

opal yarrow
woven terrace
#

gm

tacit sparrow
#

i am stealing that btw

sweet sage
#

ITS MALWARE DONT CLICK

#

MODS GET IN HERE

tacit sparrow
#

and its not

kindred pulsar
idle hollow
#

Can someone help me putting timer on an event

slender yew
#

System stack

tacit sparrow
#

It automatically turns them into this since they’re long

kindred pulsar
#

let me try

#

oh its true

fierce agate
#

Who here scripts rq?

#

@tacit sparrow do u script?

tacit sparrow
#

ye

stone cradle
wheat swallow
#

can someone tell me how to import faces to a model

fierce agate
tacit fox
#

Can someone pls teach me how to make a inventory

ruby kite
magic grail
#
            billboard.Name = "EmojiTag"
            billboard.MaxDistance = 40
            billboard.Size = UDim2.new(0, 120, 0, 35)
            billboard.StudsOffset = Vector3.new(0, 2.5, 0)
            billboard.AlwaysOnTop = false
            billboard.Parent = head
            billboard.LightInfluence = 0 

            local text = Instance.new("TextLabel")
            text.Size = UDim2.new(1, 0, 1, 0)
            text.BackgroundTransparency = 1
            text.TextScaled = false
            text.TextSize = 18
            text.Text = ownedEmojis
            text.Font = Enum.Font.GothamBold
            text.TextColor3 = Color3.fromRGB(255,255,255)
            text.Parent = billboardβ€˜β€˜ ```
#

Guys How do I make that the text doesn’t get bigger the further you go away

#

It’s like emojis above a players head

#

And the further you go away from that player it gets bigger but it shouldn’t

#

I tried text.textscaled = false but it’s still the same

#

Please ping me if u got a solution

fringe chasm
magic grail
#

What should I write instead

fringe chasm
#

scaleee

magic grail
#

Ye but how

#

What’s the difference

fringe chasm
#

1,0,1,0

#

you wrote 0, 120, 0, 35

#

the right values are offset

#

the left are scale

magic grail
#

So just

Billboard.Size = UDim2.new(1,0,1,0)

#

@fringe chasm

fringe chasm
#

yea, just edit the scale till it matches the offset siz

#

size

magic grail
fringe chasm
#

and also uuh

#

use offset again

tacit sparrow
magic grail
#

Gtg now

#

Thanks for ur help tho

copper arrow
#

Yo guys i need to make a good working knockback system for npcs, but i don't know what to use i tried assembly linear velocity but it's so laggy

fierce agate
cobalt rock
#

any1 made fps games before?

trail pebble
#

anyone want to help make a one piece game with me? (no pay, for fun) need whatever help i can get.

abstract flare
#

Ive tagged certain buttons inside of startergui, but when i loop through the tagged buttons it doesnt get the buttons inside the playergui but instead the ones inside startergui, does anyone know why?

gaunt pagoda
#

does anyone know if i can use 64 bit numbers with robloxes 32bit library?

jaunty fiber
#

guys what am i doing wrong it makes the part2 invisible before i touch part1:
local part1 = script.Parent:FindFirstChild("Part1")
local part2 = script.Parent:FindFirstChild("Part2")

part1.Touched:Connect(function(otherpart)
part2.Transparency = 0.5
end)

gaunt pagoda
jaunty fiber
gaunt pagoda
jaunty fiber
#

ohhhh

#

i understand i need to state that a humanoid needs to be touching the part for that to work

gaunt pagoda
#

i was about to say

#

right now it fires no matter what touches it

jaunty fiber
#

mb im a biginner i started a week ago

gaunt pagoda
#

np

#

anyways

#

i need help with my problem

jaunty fiber
gaunt pagoda
#

i wanna know if its possible to use a 64 bit number in roblox's 32bit library

jaunty fiber
#

idk abt that

tacit sparrow
gaunt pagoda
#

the documentation says it only uses 32 bit numbers but ive used 16 bit numbers no problem so i have no clue whats going on

jaunty fiber
#

finnaly now its fixed i just added otherpart.parent:findfirstchild:("humanoid") if humanoid then the things i want

jaunty fiber
#

anyways ty for the help

jaunty fiber
rain wyvern
jaunty fiber
#

js typing like that cz im bored to uppercase lol

mighty wedge
#

how can i add an idle to my tool? like specifically for it with legs though, since i animated legs, ik basic version without legs but im confused on this, should i use runservice or what?

stone garden
#

imagine learning scripting in 2026

rancid ingot
#

does anyone have a recommended workflow for importing a massive english dictionary (10k+ words, plus definitions) into a luau table

merry hull
#

how does modern ai (something like an algorithm, pathfinding) works?

pastel pine
#

Does handing a gear with local scripts generated on the client to another user trigger those local scripts for said user whose been handed the gear?

#

Like let's say i have a local script that does a teleport clientside which is cloned into the tool purely on the client for one user

#

User drops tool

#

User2 picks it up

#

Does user2 have access to that teleport functionality for the tool that was generated client side for first user

merry hull
#

they dont replicate to the server

#

us2 will not get that localscript

pastel pine
merry hull
#

i think only ss created objects that can replicate to everyone

#

i suggest try using module scripts, it fun

pastel pine
#

I was only asking because I was afraid that was gonna be a security issue

#

For my game

honest fern
merry hull
honest fern
merry hull
#

very helpful, thanks

static coral
merry hull
#

who to trusts now

static coral
#

me

#

test it yourself

merry hull
#

ight

static coral
#

create part on client while testing under your character then go to server view

#

it will not be visible to the server or any other players

#

however, if u stand on the part for example

#

you will appear to be floating to other players/the server

merry hull
#

so basically it will only be visible to the client who owns it

static coral
#

because you are responsible for replicating your character's position so that there is not input delay

merry hull
#

and others dont

static coral
merry hull
#

ight so im almost right

static coral
#

ye

merry hull
#

sorry, new to multiplayers

pastel pine
#

How do I animate this thing, I got it from tool box and idk where to start

pastel pine
#

Does this mean its already rigged

merry hull
#

ye

#

use roblox animator or moon

#

then start animating

static coral
hot copper
stone garden
storm nacelle
#

Hey everyone, im making a tycoon game. I am doing this to learn more and get more experience and its going great so far i just have a question. For tycoons, how should i save player data? I get how data stores work and have wrote a few but i cant think of a way to save the players progress off the top of my head it seems confusing. you cant save models or anything. i have heard stuff about a "profile service" should i use that? how do i go about saving player data like what they bought and stuff?

steady oxide
#

I want to make a game like timebomb duels, i should use touched,raycast or getpartsinpart for the hitbox? also the hitbox should be in the bomb or the character hrp?

fierce agate
#

@wraith crypt can I have ur help rq I fixed mainly everything

warm flicker
#

does anyone want to join my dev group :D

tacit tendon
#

Is there any API that allows me to distribute group funds to players in game?

jagged mortar
#

Is there anyone who can teach lua on roblox studio to me for free I do know a little all ready

maiden night
warm flicker
potent igloo
#

like basically profile store will add autosave and profile locking, at the cost of a more confusing interface and worse type checking than normal data store service

#

and yeah you cant save models but you can save booleans, strings, numbers and tables, and thats enough to be able to represent anything
to save player progress you could maybe save the name of all the models that the player bought, and to load it you just iterate through all the names saved and load the models

tulip seal
oak flicker
#

67

wise birch
#

does anyone know how to aniamte something that can leave your hand and come back in the aniamtion and have it player properly in the game I tried using motor 6d but its giving me issues

serene oasis
#

Is it possible to create some gravitational change? like flipping the gravity upside down?

#

Oh nvm it's possible

idle stream
#

guys is there any chance to give my friends gamepasses for free?

azure locust
#

Guys i need to learn scripting were do I start?

#

shut up

novel portal
#

Tutorials

#

And make systems

rose notch
#

I'm tryna make the camera follow the player but lack behind a lil bit, but all my attempts have atleast a little bit of jitter and I'm not sure why but I think it may have to do with this

proper violet
#

don't set root part.cframe

rose notch
proper violet
#

humanoid.AutoRotate = true

rose notch
#

I don't want that

proper violet
#

ok?

rose notch
#

wdym "ok?"

#

bruh

elder wharf
pure flame
#

Making ur own datastore is so hard

#

Especially making it reliable

#

Profile store has so many tutorials there’s no reason to not use it

potent igloo
rose notch
potent igloo
#

to make it reliable enough you just gotta use updateasync and add reconciling

dark juniper
#

Welcome to hell buddy

#

Ur now the most miserable guy on any dev team

elder wharf
rose notch
#

how do I remove this jitter

elder wharf
remote root
#

what is "Focus" in camera and why does it have a different value than cframe?

dark juniper
potent igloo
#

why dev forum

#

if theres documentation

dark juniper
#

cause it can explain it to me like I’m 5

#

Also documentation is for mid elos

#

Low elos don’t understand its beauty

elder wharf
rose notch
#

I tried in RenderStepped

#

Heartbeat

dark juniper
rose notch
dark juniper
#

hmm

elder wharf
rose notch
#

I want a custom camera.

#

the default camera isn't good for animations that move around too much

#

because it doesn't follow the torso

dark juniper
#

And I’d say it’s likely ur animation

rose notch
dark juniper
#

yea that sound good

rose notch
#

it's not

#

it's something else-

dark juniper
#

send vid

#

Also send pic of script

rose notch
dark juniper
#

what’s the point of that lerp head position

#

u have there

rose notch
#

it doesn't matter if I disable them btw

#

so it's because I'm setting the position in a certain way that roblox doesn't like it

dark juniper
#

but isn’t that just an up vector

#

since the head is only above the torso

rose notch
dark juniper
#

Oh I see do you want to make it so the head trails behind from the lerp

rose notch
#

not the head

dark juniper
rose notch
dark juniper
#

How so?

rose notch
#

it just gets all the little details in animations,
so like my head goes from side to side during my run animation

#

and it helps with exageration

dark juniper
#

Ah ok so that’s what your trying to do

rose notch
#

no I've already done that

#

ok ok

#

let me show you the part I want specifically

#

well actually

dark juniper
#

Well yes I know that I’m just restating it

rose notch
#

yea ur right

#

but I'm just having problems with the jitter

#

I already have the result I want, I just like, don't want my character to jitter

dark juniper
#

Trying doing +=

#

Instead of =

#

See what that does

#

@rose notch

rose notch
#

that will NOT work...

#

that will continuosly add its own position onto its original position

#

then it will keep on adding onto itself

#

over and over

#

yea it just went to space just now

dark juniper
#

well try adding the difference

rose notch
dark juniper
#

subtract the current position from it and see what happens

#

Then += add that

rose notch
#

ah I see

#

that's not a bad idea actually

#

wait no the same thing would happen

dark juniper
#

would it

rose notch
#

yea it just did

#

cuz even tho its a difference

#

ur adding onto the original position

#

then ur making the difference bigger

#

then doing it again

#

the lerp is fine

#

its just where I'm doing it

dark juniper
#

Hmmm

#

Just remove the torso head lerp in it for now

#

Simplify it real quick

rose notch
#

nah

#

it still jitters

dark juniper
#

even when that’s removed?

rose notch
#

yea I swapped it to hrp.Position too

#

it was smoother I think

dark juniper
#

Hold up lemme get on my computer

rose notch
#

but still jittered

dark juniper
#

Copy paste it here

#

I’m gonna do some testing for u

rose notch
#
runServ.RenderStepped:Connect(function(dt)
    
   
    lastCamPos = camSubject.Position
    camSubject.Position = hrp.Position
    cam.FieldOfView = lerp(cam.FieldOfView,(Velocity().Magnitude/10)+75,0.9)
    
    
end)
#

that's literally it

#

and it still jitters

viral verge
#

anyones knows why I can't buy the devproduct?

viral verge
rose notch
#

idk what that is but uh, check with roblox support I guess

dark juniper
rose notch
dark juniper
#

bro

rose notch
dark juniper
#

are we deadass i hop on my computer to help then u say its a framerate thing

#

😭

rose notch
#

what I mean is that

peak jolt
#

Use bindtorenderstep with priority higher than camera

rose notch
#

yea I was about to say, I need something that fires every single frame right before rendering

#

and any time the character position changes

dark juniper
#

yea wassup

viral verge
#

yes so

#

I'm making a dev product

rose notch
viral verge
#

And I get this error when trying to buy it: purchased failed because something went wrong

dark juniper
#

whats ur code

viral verge
#

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

local MoneyServer2xProduct = 3546394222

MarketplaceService.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == MoneyServer2xProduct then
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if player then
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
local money = leaderstats:FindFirstChild("Cash")
if money then
money.Value += 1000000
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
end
end
end

peak jolt
#

Enum.renderpriority.camera.value

rose notch
dark juniper
viral verge
# dark juniper how do u prompt the product purchase

local MarketplaceService = game:GetService("MarketplaceService")
local gamepassId = 3546394222

script.Parent.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(game.Players.LocalPlayer, gamepassId)
end)

dark juniper
#

try promptproductpurchase

viral verge
#

omg

dark juniper
#

instead of promptgamepasspurchase

viral verge
#

lmao I'm so dumb

dark juniper
#

well

#

yea just try that

viral verge
#

yaaa fixed

#

thank you!

dark juniper
#

goated

#

yea i remember having problems with that in my old game

#

roblox products r weird

#

glad its fixed

rose notch
dark juniper
#

@rose notch

#

i like that code pls send

rose notch
#

this works butttt the moment you change the 1 to anything else it kinda gets messed up

viral verge
#

@dark juniper can exploiter easily change the value of an intvalue in the workspace?

dark juniper
viral verge
#

ohh nice so they can't without a remote event from client?

dark juniper
#

yea

viral verge
#

good

dark juniper
#

as long as u guard ur remotes efficiently u should be good

viral verge
#

good

#

thanks : )

dark juniper
#

np

rose notch
#

OH WAIT

#

I HAVE AN IDEA

#

I'll make another bind to render step

#

and make it so THATS when I set the previous vector

rose notch
#

also that shit I said did not work at all

peak jolt
#

you need to make the priority a higher number than camera not the other way around

rose notch
#

ok I just did it and it didn't work :(

#

in fact the higher I set it the worse it gets-

#

its only relitavely smooth when it's above the priority of the camera

#

but the weird thing is that there's no jitter when the alpha is set to 1

#

I think I finally got it

void tusk
#

i ran into this issue before but i kinda decided to not fix it

#

the character is the thing that is jittery

#

when you have camerafocus on the character (no lerp) you follow it perfectly so you dont see the character jitter

#

at least thats what im thinking

#

a fix could be to use the character's cframe as a base, and apply an offset which you lerp

rose notch
#

if you cap the lerp it won't jitter

#

but you cant go inbetween

#

I'm gonna try,

#

lerping the lerp-

#

the first one is for large movements and the small one is for micro movements

#

ok

#

I figured it out

clever mist
#

how do i lower network load from high part amount without streamingenabled

rose notch
#

I just swapped to using the humanoid velocity instead

#

so basically it would subtract the velocity from the hrp position and that gives basically the same result

void tusk
#

you could also try for a spring if you want a different kind of smoothing

clever mist
void tusk
#

replicating 30k unanchored parts would be a high server load

clever mist
#

anchored

void tusk
#

if its anchored your network send should be nil after initial loading

#

well given you arent modifying any of their properties

#

you should be completely fine with stationary anchored parts

clever mist
#

what if they get replicated constantly

#

by a placement system

#

talking 50-200 parts

#

about 20k max at a base

#

ping is high at 4 players and streamingenabled helped but broke game

#

so i assume its part replication

void tusk
#

so like players would be able to see the part placement of other players ?

void tusk
#

so hold on are these things moving every frame

clever mist
#

nope

#

just a lot of parts getting replicated and destroyed

#

constantly

void tusk
#

you could consider a part cache

#

basically create a bunch of parts beforehand

#

idrk what your issue would be since you havent given enough details

#

replicating 200 parts should be trivial

clever mist
#

a model has 20-200 parts, if you place a lot of them in a short time would load like 20k parts

#

idk if its that but when theres 3-4 players in server

#

ping goes up

void tusk
#

instead of creating those models on server, consider storing only the relevant information

#

like cframe, owner, and other state

clever mist
#

would the non important parts lag client a lot

void tusk
#

?

clever mist
#

if i replicated them on client

#

instead of server

void tusk
#

regardless of whether its on the client or the server, the client is still rendering the part

#

by leaving the client with creating the parts, you just free up the server load and reduce the amount of data that needs to be replicated for new parts

clever mist
#

doesnt it lag less if replicated on server

#

or same

void tusk
#

it would result in higher ping if you replicated a model from the server vs just sending a table of data

clever mist
#

i can replicate the few parts server needs on server

#

rest on client

#

would that work

void tusk
#

yeah it would work

#

might be a lil difficult to work with tho

clever mist
#

ill figure something out

#

thank you

nimble oar
#

anyone need a clothing desginer

dense spade
#

what is the best form of sword combat?
raycasted,hitbox detection or magnitude checks?

answer me as a gamer,what feels the most comfortable

ruby iron
#
dense spade
outer flax
ruby iron
#

hmmmm thats more user preference I think

dense spade
#

woudnt doing so many shapecast on server tank performance

ruby iron
#

yeah

ruby iron
#

you can run 10k every frame and it's fine

dense spade
ruby iron
#

you will only be running 1 every frame so its ok

#

yeah

#
  1. you only cast when you're in combat (swinging your sword)
  2. do it on the client
dense spade
dense spade
ruby iron
#

you can enable and disable it with animation events

ruby iron
#

especially for pvp games, input times matter and it will feel really laggy

dense spade
ruby iron
#

you can't really do much except server matchmake so people join servers where they have lower ping

outer flax
#

do small hitbox on client then do magnitude check on server πŸ₯Ά

dense spade
outer flax
dense spade
#

im thinking like
client checks for hit detection and sends info to server
server calculates lag in account and makes sure that hit was valid

ruby iron
#

sure that can work but it has to be instant

#

like instant feedback

dense spade
#

idk how to figure out the lag accountingWHYYYYY

ruby iron
#

delay ruins the experience and tanks your game

ruby iron
dense spade
ruby iron
#

accept that exploiters will be able to "hit" npcs/other players on the client, so mitigate it with some basic server sided checks

#

a magnitude check will eliminate 99% of client sided hitbox problems

outer flax
dense spade
ruby iron
#

but i mean

#

client detects hit -> sends information to server -> server does magnitude check and other checks -> applies damage onto victim on server

dense spade
#

ok

#

seems fine to me for now ig

ruby iron
outer flax
#

isn't it already here

ruby iron
#

yeah but it's in beta

#

not full release yet, only in studio

fleet maple
#

not knowing any prior LUAU and then seeing this chat is a whole nother level of weird πŸ’€

outer flax
#

someone other than roblox also did it 3 years ago and it's like 3x more optimized than current roblox one. Both of them are unusable tho (performance problems)

ruby iron
#

uh chickynoid

#

yeah it was laggy as hell because chickenrobot guy made it before roblox had udp remotes

#

roblox def has the best solution tho

#

used it and its pretty nice

#

but you can't just enable it on your game, cuz it breaks everything lmao

#

have to code using it from the start

fleet maple
#

and I'm too poor to hire people

dark juniper
#

just be an animator/modeler/vfx artist and you will be happier

fleet maple
#

ggs

outer flax
outer flax
dark juniper
fleet maple
#

FL studio plane controls vs Roblox studio scripts

dark juniper
#

and still sell a lot

fleet maple
#

I can't tell which is worse πŸ˜”

outer flax
dark juniper
#

im sure plenty of games need music

fleet maple
#

so now I do free stuff with actually good communities

dark juniper
#

idk u should keep trying I think there are a lot of big games wiht money out there

#

who would pay for music

fleet maple
#

I make music as a HOBBY dawg I ain't trying to be big

dark juniper
#

true thats also important

#

idk twin u do u ig

fleet maple
#

I need a coder horribly but I'm POOR

fringe chasm
#

I can be hired for few thousand robux

fleet maple
#

pmo

#

This job needa hurry up

dense spade
tired mirage
topaz elbow
modern seal
#

task.wait sad_hamster

dense spade
dense spade
#

i dont think any investor wanna pay if you dont have visible experience

tired mirage
#

that guy is begging for a free scripter just make whatever you can with your skill and get a investor instead of begging for a free scripter in chat

dense spade
karmic crest
#

my script stopped working and i had a saved version but every time i reimported it would have new erros andim trying to find the working version but SERVER IS BUSY RIUGHT NOW

warped ivy
#

Anyone wanna commission a Wiki from me? for your game!

grim void
dense spade
#

ill do anything for the money rn WHYYYYY

ashen narwhal
#

dm me priv

vast silo
#

yo guys whats the best datastore plugin paid or unpaid i dont really care

dense spade
vast silo
#

cant find it

plush oxide
#

use profilestore

vast silo
dense spade
#

creator hub

vast silo
#

im not sure

dense spade
vast silo
#

woah wait i never knew this

#

is this new?

dense spade
turbid viper
mild badge
#

does having waitforchild inside a renderstep bad for performance?

turbid viper
#

what are you wanting to use it for?

peak jolt
#

It just doesnt make sense to put it there because you will keep spawning new waiting threads every frame until the object exists and then those hundreds to thousands of threads will run at once

#

If you need something like the camera or character you just early return if it doesnt exist

stuck needle
#

Good morning yall

#

Is there any way to detect a game decompiling attempt on my game and then kick the player off?

regal salmon
#

decompilers likely dont do anything that your game can detect

strong sigil
#

any way on how i can improve it

shy cipher
# regal salmon decompilers likely dont do anything that your game can detect

I need help again, I don't know how to stop the objects from inheriting the constructor function inside a class. I was thinking of doing

 __index = function()
--if constructor is being accessed, return  
end

but I'm not so sure, there might be better ways to do it. this is the code I'm talking about (I've documented it well)

https://gist.github.com/drickmortey/aaa4c25eb7fe89675870bc91bdf4dc08

Gist

a lot of code has been omitted, only the code in question is present here. I also included one command to demonstrate how the .new function works, and if you were wondering, yes it works. I just ne...

turbid viper
# shy cipher I need help again, I don't know how to stop the objects from inheriting the cons...

I believe I've identified the issue.
So in the current setup it seems like every command object inherits everything from commands, including the new constructor. That’s why cmdList.kill.new() is valid.

A few ways you could fix it:

  • Splitting the class table: Keeping new in a separate table from the instance methods. Instances inherit only the methods table, not the constructor.
  • Using a custom __index function: Override __index and return nil when someone tries to access "new", but this is a bit slower.
dense spade
strong sigil
plain nebula
#

Yo can someone help me out with setting up gamepasses ill give you a present

zenith cloak
#

there is still no better way to make a differentplace the main place of a experience right?

warm flicker
#

does anyone want to join my dev group :D

hard garden
#

composition vs inheritance

hard garden
chilly canyon
#

Watch CodeAesthehic video

hard garden
chilly canyon
azure jay
azure jay
twin cairn
#

Hey guys!

If you guys would want to have a floating head only, that you can attach accesories too. How would you go about doing that? All my trys just result in the player dying over and over again.

somber vault
#

Brug

#

Is anyone gonna hire scripters

hot copper
somber vault
#

I'm not that experienced

wintry iris
somber vault
#

hello

somber vault
pastel pine
#

Can exploiters ever invoke remote events that are only meant to be invoked from the server remotely onto there client?

somber vault
#

Idk

stuck needle
stuck needle
somber vault
#

someone can send me a cool video about combat systems? i have some questions about organization, i want modular

somber vault
sturdy vessel
#

Question does a ui artist to loading screens or does a scripter?

regal salmon
sturdy vessel
#

Oh alright ty

pastel pine
#

If I use purely remote events I'll be fine right

regal salmon
pastel pine
#

Alright great thanks

wintry iris
pastel pine
#

Yes they can but if communication goes only from server -> client for my remotes ill be fine from what I've just tested

wintry iris
wintry iris
#

but at the end of the day you don't care about that because fuck client

pastel pine
#

At least in my case

hot copper
#

except for the character cause they own it

warm flicker
#

anyone wanna be a part of my dev team :D

hot copper
#

thats why exploiters can tp and fly

#

and modify anything on their character

azure jay
wooden willow
#

can we vibecode in roblox?

elder turret
wooden willow
elder turret
#

u can

smoky flare
#

hey guys

#

can anybody tell me what cache is

prisma vigil
#

Damn when did they update the luau website

#

you can even see the bytecode now

prisma vigil