#code-discussion

1 messages · Page 206 of 1

sudden anchor
#

mb gng

hearty dome
#

For the more experienced devs here. Is there any way to have deformable tiling meshes?

#

I read about editablemesh but I'm not sure it's what I'm looking for (especially because I'd probably need like 200k of them)

hearty dome
#

I need rails, freeform rails.

#

I need to be able to bend a mesh which would repeat

solemn grail
#

So, from my understanding, you want to bend one of the tiling meshes?

hearty dome
#

Ish? Are there tiling meshes even?

#

wrong everything

#

wrong channel wrong

#

just wrong everything

solemn grail
#

You can use skinned rigs for that instead of editablemeshes. They're easier to make + you can program the train to follow these bones and if it detects bend rails using bone cframe then the train will be derailed

#

I'm not sure how effective it is at performance tho

hearty dome
#

for multiple reasons

#

It needs to have physics

solemn grail
#

Editablemeshes don't edit collisions for performance reasons

#

But I'm not sure about the skinned rigs, never used those.

hearty dome
#

After, they don't get modified

#

so they can just always have the same collision

balmy zenith
balmy zenith
#

like ocean?

solemn grail
#

Basic unions will do so long as they don't exceed past your rails' vertices

balmy zenith
#

id use editable meshes if your rails are really dynamic

balmy zenith
solemn grail
hearty dome
#

Don't editablemeshes have collisions??

#

Like, I'm editing them at build time - they remain static at runtime

balmy zenith
#

then use a rail segment and repeat along the curve

hearty dome
#

(The idea is to make an intuitive track building plugin)

hearty dome
#

a lot of issues

balmy zenith
hearty dome
#

Archimedes is not enough

balmy zenith
hearty dome
balmy zenith
hearty dome
balmy zenith
hearty dome
balmy zenith
#

why not

#

just make a hole at the intersection

hearty dome
#

Take two rails separated by an arbitrary amount of studs.

solemn grail
#

You want to utilize roblox's physics engine?

hearty dome
#

Yes, I've fixed most problems with it already

#

I have formulas for max speed on stuff, ways to deal with the janky physics

safe wind
#

You are not allowed to hire scripters here, please check #scripter-hirable to find scripters

hearty dome
#

(Mainly gapfilling so that the tiny holes don't trip the train)

solemn grail
#

Editablemeshes and skinned rigs wouldn't be useful as their collisions wouldn't change.

hearty dome
#

which I have solved already (made my own gapfill plugin)

balmy zenith
#

so whats the issue

hearty dome
#

Really linking two existing rails is near impossible

#

Because it's not like you choose a start and end point.

balmy zenith
orchid arch
#

yall suck

hearty dome
solemn grail
orchid arch
orchid arch
hearty dome
#

ok bro

#

please leave then

solemn grail
#

Who, him ?

orchid arch
#

why would i leave

hearty dome
#

to fill in

#

with just "place tracks with x angle repeatedly"

orchid arch
#

mad cause ur inferior to me

hearty dome
#

@woeful dune

balmy zenith
solemn grail
balmy zenith
#

place rail segments along a curve

orchid arch
orchid arch
hearty dome
orchid arch
#

when you say something atleast be correct

#

otherwise you look like a dumbass

hearty dome
balmy zenith
#

is this a plugin for in use in studio only?

#

if so then just use an editable mesh

#

although

#

not sure how good roblox collision will be with meshes

hearty dome
#

I've been saying this from the beginning

hearty dome
#

sleepers. I can't exactly neatly gapfill with those in mind.

safe wind
#

bypassing, really?

balmy zenith
solemn grail
orchid arch
orchid arch
hearty dome
#

also editablemeshes seem to have collisions

orchid arch
#

mad cuz bad

#

billy badass over here

balmy zenith
#

you can convert an editable mesh into a meshpart which is normal

#

i believe

dusky rapids
#

does high recv mean build issues? or script issues? im getting 120 receive rn

dusky rapids
#

when i removed my scripts, still have a high receive. so safe to say its build issues?

#

also does high receive cause lag?

balmy zenith
hearty dome
viral kestrel
#

what seems to be the problem here?

local DataStores = game:GetService("DataStoreService")
local PlayerStore = DataStores:GetDataStore("PlayerStore")

game.Players.PlayerAdded:Connect(function(player)
    local leaderstats = Instance.new("Folder", player)
    leaderstats.Name = "leaderstats"
    
    local coins = Instance.new("IntValue", leaderstats)
    coins.Name = "Coins"
    coins.Value = 0

    
    local success, data = pcall(function()
        return PlayerStore:GetAsync(player.UserId)
    end)
    
    if success and data then
        coins.Value = data.PlayerData.Coins
    end
    
end)

game.Players.PlayerRemoving:Connect(function(player)
    local success, errorMsg = pcall(function()
        local PlayerData = {
            Coins = player.leaderstats.Coins.Value
        }
        
        PlayerStore:SetAsync(player.UserId, PlayerData)
    end)
end)

when i run it it says ServerScriptService.PlayerStats:18: attempt to index nil with 'Coins'

craggy steeple
#

print data and check urself

native oyster
#

guys how to make commands

shy dock
#

how would i go about making my torso and limbs lag behind my camera position so my head is in front of them but still aligned with the camera

graceful nymph
#

in a top-down 2d game how can the character be coded to be covered by a tree when they walk behind it but cover the tree when they walk infront of it

vast gazelle
vast gazelle
#

But there isn’t

#

Check out a tutorial

#

Ideally you should learn profile store or profile service (I forgot which one is the newest)

vagrant viper
#

Is it bad to use the OnClientInvoke function thingy when using remote functions?

#

Cos it means exploiters can get to your code?

vast gazelle
#

Ive never used a remote function

#

Mind telling why you’re using a remote function? I’ve never had a scenario where i couldn’t use something else

vagrant viper
vast gazelle
#

Ah alr

vagrant viper
#

Apparently you use them for stuff such as passwords etc in your game im not too sure

vast gazelle
#

I honestly don’t even remember exactly what they’re for

vast gazelle
#

Same with remote events

vagrant viper
vast gazelle
#

Alr

misty lotus
#

anyone elses plugins wont load?

foggy fiber
#

Bro 💀💀🙏

#

No limit

#

It's 10.thousand my bad

thorn lark
#

D

foggy burrow
#

How do you plan to verify if the player can use that skill?

#

Either way your still going to have to cross the server boundary to fire all clients

wise turtle
#

it would ensure that animations are synced across all clients

#

and also consolidate states to be server authoritative

#

which is important for parry based combat

foggy burrow
#

Nah

#

Animations shouldn’t be handled on the server

#

Animations already replicate to all the players meaning they are already synced

#

Though if you want to be further secure you could load the animations on a player on all the clients

wise turtle
#

because if you play an animation on ur client you would see it first before roblox replicates it to the other clients due to latency

foggy burrow
#

Player 1 does a skill (plays anim on their client)
Player 2 loads the anim on player 1 cliently
Player 3 loads the anim on player 1 cliently

wise turtle
#

thats not relying on roblox's animation replication

foggy burrow
#

You would have to create an animation handler to do this

wise turtle
#

thats doing it on the client and binding to another client's animator

foggy burrow
#

That’s why I said you can further improve those by loading animations on the player cliently

wise turtle
#

playing an animation on the server does basically that at the cost of a little overhead

foggy burrow
#

That way if player 1 is lagging

#

Player 2 will see the animation perfectly fine

foggy burrow
wise turtle
#

its not

foggy burrow
#

It’s not recommended

wise turtle
#

because it would fireallclients internally to play it

#

tweening on the server actually tweens it on the server

foggy burrow
#

No im talking about recommending

#

Most people agree that animations should be a client sided thing

#

Now if you think that the server works better for your use case

crude wave
#

L I G M A

foggy burrow
#

I just don’t know why you need animations to be server authoritative

wise turtle
#

i need combat to be server authoritative

#

so im not going to put extra effort into syncing animations and doign them on the client if theres basically no benefit to user experience

foggy burrow
#

I mean alr

#

Do you fire to the clients to do VFX?

#

When an animation event gets fired

wise turtle
#

yes

foggy burrow
#

Each time the aim event gets fired?

wise turtle
#

i fire to the clients when the hitbox has processed

foggy burrow
#

Yeah but let’s say your using a skill

#

That chargers

#

And you have a charge anim event

#

When that anim event

#

Get fired to you fire to the all clients to apply the VFX?

wise turtle
#

yes

foggy burrow
#

Yeah that’s not a good way to do it imo

#

They way I do it is now that all the clients load the animation on the player who started the skill

#

Those clients can listen to the animation event

#

And apply the VFX on their client without ever firing to the server

#

It saves so much remotes going back and fourth

wise turtle
#

its pretty negligible performance

foggy burrow
#

Trust me it’s not

wise turtle
#

the only thing ur method solves is the rare case where vfx packets are dropped

foggy burrow
#

I used to have it the way your doing it

foggy burrow
#

Into a 15 player server or something the amount of remotes would start to have a noticeable affect

#

It also depends how many skills you have

#

If each skill only had 1 remote then yeah I doubt it would have a noticeable difference

#

It if you have 7 skills each with 5 remotes that’s 35 remotes firing throughout the game

wise turtle
#

99% of skills have 1 remote

foggy burrow
#

Ah Alr then yeah

#

My skills would have 3-4

#

That’s why I changed it

wise turtle
#

most of my skills are like invisible

#

or just a combat animation

#

because its a star wars game

eternal kindle
#

can someone tell me how to open the toolbar in this new bad ui 💀

copper vigil
#

guys is it possible to make Roblox cursor invisible?

i have a custom cursor module yet my only issue is the Roblox cursor being above it regardless of the custom cursor ZIndex being very high

eternal kindle
copper vigil
#

do u know the way?

eternal kindle
#

yes

#

dont u make the mouse cursor icon your icon in client-side script?

copper vigil
#

I do not

#

since

#

I want the cursor to be able to change colors

#

I make a screengui in which I position it to where the mouse is etc

#

if I made the cursor icon the custom cursor I wouldn’t be able to change the size, color, etc

#

@eternal kindle

eternal kindle
#

let me see in a quick script

copper vigil
#

u want to see my script?

eternal kindle
#

no no

copper vigil
#

ok

eternal kindle
#

local UIS = game:GetService("UserInputService")
UIS.MouseIconEnabled = false

#

this will make the mouse invisible

#

the default one

copper vigil
#

tried that my mouse icon wouldn’t get disabled

#

I can show my script to further help

#

I also tried setting my mouse icon to nothing

eternal kindle
copper vigil
#

yes

faint ruin
#

Could anyone help me understand code?

neon grove
#

@winter flax

tame pike
#

Yow So i use ray cast logic to make a simlpe fire ball ability now want to make 2 more abilities the first one is a lighting attack form above kinda like bloxs fruits rumble fruit c skill but i have no idea of what logic to use any ideas?

winter flax
neon grove
#

Nothing

winter flax
humble portal
#

does anyone know how games like tsb and azure altch have "zero delay"?

hearty dome
#

Elaboate

#

It's probably optimistic prediction but elaborate

humble portal
#

like even if i have 150ms of ping, all my actions will come out basically instantly

#

and even on azure latch if i have like 200ms of ping i can kick the ball and the physics are smooth and everything is synced up perfectly

wise turtle
#

this is not true in TSB because they have input delay

humble portal
#

tsb has a really small delay based on ping

#

same thing based on azure latch, but like how do they accomplish this? normal remote events in roblox studio have a delay because of ping

wise turtle
#

thats just because input delay is rarely noticeable unless u have very high ping

wise turtle
#

prob some sort of client prediction

humble portal
#

what

wise turtle
#

server authoritiative ball system with the client synced to it via prediction

humble portal
#

ah ok that makes a bit more sense

#

how would it be implemented tho?

wise turtle
#

you just accelerate it so that it can catch up to the actual simulation

humble portal
#

what about the things like velocities from doing things like dahses? i would assume those are on the client

wise turtle
#

yes

humble portal
#

how would they be verifed if theyre on the client

#

like whats stopping a hacker from just making their dash go 3x as fast as a normal dash

wise turtle
#

thats possible in any game because movement is client authoritative

#

nothings stopping them really

humble portal
#

oh ok i thought there would be some weird extra element thank you

#

how would it work for other clients tho? in azure latch when someone kicks the ball it looks almost instant

wise turtle
#

assuming animations are synced they can just run the same logic

humble portal
#

hm ok thank you ill look into this

sharp totem
#

noob

violet jungle
#

how much should i spend on ADs?

#

to get like 50 concurrent players

tawdry turtle
violet jungle
#

also, how does the thumbnail work?

#

like where is it displayed

#

i don't see thumbnails on roblox anymore

#

like you know the old ADs

#

that were on the sides

tawdry turtle
violet jungle
#

so in creatives in ads manager i just upload the thumbnail of my game?

tawdry turtle
#

no u dont have to upload anything there u just select ur game in ads manager

pastel pine
#

Does anyone know how the Math.random method makes the random numbers?

#

Like does it base the rng off time

#

Or does it use another system

visual holly
#

labubu

quaint anchor
#

hello guys

somber vault
#

What do grow a garden use for toolbar(Like is there and open source one)

civic garnet
crimson portal
#

No

uncut harbor
#

im going to divide by 0 if thats okay

austere garnet
#

Coconuts can't speak english

quiet token
#

Am i doing it right? Its not printing it on the second image after the signal gets fired

hollow wind
#

oops meant to sed in code help

vocal laurel
#

In future use the Marketplace to avoid further intervention

floral aspen
#

anyone know why the pathfinding wont jump over higher walls??

local function computePath(player, targetPos)
    local character = player.Character
    if not character or not character:FindFirstChild("HumanoidRootPart") or not character:FindFirstChild("Humanoid") then
        return
    end
    
    local humanoid = character:FindFirstChild("Humanoid")
    
    local path = PathfindingService:CreatePath({
        AgentRadius = 2,
        AgentHeight = 5,
        AgentCanJump = true,
        AgentCanClimb = true,
        Costs = {
            Water = 20,
            Jump = 0.1, 
            Climbable = 2
        },
        WaypointSpacing = GRID_SIZE,
        MaxSlope = math.rad(60)
    })
    
    while character and humanoid and humanoid.Health > 0 do
        local startPos = character.HumanoidRootPart.Position
        clearPathVisuals()
        
        local success, errorMessage = pcall(function()
            path:ComputeAsync(startPos, targetPos)
        end)
        if not success then
            wait(CHECK_INTERVAL)
            continue
        end

        local waypoints = path:GetWaypoints()
        local status = path.Status
        
        visualizePath(waypoints, status == Enum.PathStatus.Success)
        
        if status == Enum.PathStatus.Success or #waypoints > 1 then
            local moveSuccess = moveAlongPath(humanoid, waypoints, targetPos)
            if not moveSuccess then
                wait(CHECK_INTERVAL)
                continue
            end
        else
            break
        end
        
        break
    end
end
gilded stag
#

For a tip jar skin system would it be better to make a completely new tool with that skin or should I just do it as a mesh

#

Like a mesh that gets cloned and welded

#

Or a tool gets replaced

vast gazelle
#

Doesn’t rly matter

#

Both can work if u code it right

shy dock
pearl shuttle
#

you would have to make a string and a few more codes

pearl shuttle
shy dock
pearl shuttle
#

eya

shy dock
#

how is that helpful

dapper karma
#

@pearl shuttle quit tryna ping everyone >:(
Its spam

civic garnet
shy dock
brazen plume
#

someone have a video for do money system

hidden dune
#

how do i save a value from playergui when player is leaving if it says not found player gui

#

ping me when answer is found im going in ultrakill

civic garnet
# shy dock how would i do it in third person aswell?
local RunService = game:GetService("RunService")

local Camera = workspace.CurrentCamera
local Character = script.Parent :: Model
local HRP = Character:WaitForChild("HumanoidRootPart") :: BasePart

Character:FindFirstChildOfClass("Humanoid").AutoRotate =false

RunService.Stepped:Connect(function(_, dt)
    local current = HRP.CFrame
    local goal = CFrame.new(HRP.Position) * Camera.CFrame.Rotation
    HRP.CFrame = current:Lerp(goal, 1 - 0.1 ^ dt)
end)
``` idk
hidden dune
#

sorry

#

sorry again

civic garnet
hidden dune
#

because i need to

civic garnet
#

to what

#

editing values from playergui as state isnt a valid method

#

id have a cache on the server with the player's state and edit that

#

you should also sync it to the client so the client can read from it

hidden dune
#

what

#

im not doing it in client

#

im only using server

civic garnet
#

why do you even put the values in playergui anyways

#

put it in the player instead

#

or literally make a dictionary with player state

wicked moss
#

if I wanna make a skateboard feel like your driving a skateboard would it be smart to use roblox vehicle seat
or should I script my own controller if the latter then any ideas where to start?

hidden dune
#

dude

#

is there any way to get values in player gui or no

#

when plr is leaving

#

js say

civic garnet
#
local PlayerStates = {}

function PlayerAdded(player)
  local Data = GetData(player)

  PlayerStates[player] = Data or DataTemplate
end

function PlayerRemoved(Player)
  local Data = PlayerStates[Player]

  Save(Data or DataTemplate)
end

bindable Get Data(player)
  return PlayerStates[player)
end
civic garnet
hidden dune
#

what does isbs even mean

civic garnet
#

its ass

#

it does not work

#

its shit

hidden dune
#

oh ok

#

why wouldnt it work

#

why does roblox destroy the values

#

when player pressed the button

#

leave button

#

immediatly

civic garnet
#

literally just parent the values to the player like leaderstats or have a variable with all player states you can edit/update and shit

hidden dune
#

alr

#

thanks

gilded dagger
#

is it good to play animations on the server

civic garnet
gilded dagger
brazen plume
#

How to put the UI on the corner for all devices

gilded dagger
civic garnet
gilded dagger
#

set the position to 1,0,1,0

civic garnet
gilded dagger
#

if it doesn't work mess around with the anchor point

civic garnet
#

if you play on client it will play on the server anyways

shy dock
gilded dagger
shy dock
#

and thats my problem

#

im trying to figure out how to do that

civic garnet
somber vault
#

What coding software should i use?

potent shell
somber vault
#

.......

#

Im not using scratch.

leaden void
tired remnant
topaz crypt
topaz crypt
gilded dagger
deft wraith
#

how to make murder vs sheriff/rivals type lobby queue system

dusky pendant
topaz crypt
topaz crypt
balmy zenith
#

how would you read/write a buffer like a dict

BufferUtil.read(someBuffer, "key", schema)
BuffeeUtil.write(someBuffer, "key", schema, value)

will prolly work but like no types :(
is there a good way to do this but with types?

hasty mesa
#

you convert the whole thing from a buffer to a dict

balmy zenith
balmy zenith
faint smelt
#

unless im misunderstanding

balmy zenith
#

but i still get no types

#

unless theres a way to do like

#

typeof(schema[key])

#

which might work?

balmy zenith
#

schema would be like
{
Key = {0, "u8", 1} -- bit index, type, primitive
}

#

hmm

balmy zenith
balmy zenith
#

🤔

hasty mesa
balmy zenith
#

in the buffer?

#

schema should store bit index

hasty mesa
#

not a map

balmy zenith
#

erm

#

idk what that means

hasty mesa
#

a map is dynamic and can have any keys

balmy zenith
#

yes its a fixed layout

hasty mesa
#

a struct needs to have its keys already defined

balmy zenith
#

static size, static keys, not static values

idle musk
#

it's fine

#

but if it's something like movement trigger it client side

balmy zenith
#

the type should be automatically correct right? im dumb

#

cuz function would need to detect which type to parse as

#

then return said value

#

maybe

#

or i should throw out types cathello

#

what if the schema was also a buffer..

#

erm

faint smelt
#

perhaps buffers aren't the way to go here...

#

Just Sayin

balmy zenith
#

rm

#

want buffers

shy dock
#

how do i fix pathfinding walk animation stutter

sweet herald
#

Yoo anyone on

soft goblet
coral tulip
#

exuse me?

dry sparrow
#

What did it say

cloud brook
shy dock
#

its because of the fraction of a second between the humanoid.MoveToFinished:Wait() and the loop starting again

#

i just made it check if the waypoint is within 3 studs of a hitbox part i anchored to the humanoidrootpart placed near the feet

#

which fixed another problem i had where the npc would get stuck when jumping over an obstacle

coral tulip
#

using ai for code

shy dock
#

chatgpt is so shit at coding

coral tulip
#

ong bro

#

ive used it like 2 times before

#

'and it was so trash

shy dock
#

ive tried to use it to make stuff when i was a little learner and oml now im looking back and it would make 30 lines of code into some crap 80 line pile of spaghetti

coral tulip
#

real idk how to script it yet but im pretty sure it was way to many lines i asked it to make a gun and it gave me 130 lines of code

shy dock
#

a month ago i tried to get it to fix smth and it gave me such a bad fix, i ended up fixing it myself like 30 minutes after and it was like 3 times better

coral tulip
#

oh lol

shy dock
#

depends how advanced it is

coral tulip
#

ehhh kinda mid

shy dock
#

does it have like bullet tracers and recoil

coral tulip
#

no

shy dock
#

otherwise 120 lines is ridiculous

#

lmao

coral tulip
#

ai so buns bro

balmy zenith
shy dock
shy dock
shy dock
#

im starting to use task.spawn and cancel

balmy zenith
shy dock
#

but i normally find some other way to do it

balmy zenith
#

loops cause issues, you shouldnt loop over the waypoints

shy dock
#

oh

#

it was smth else

#

what i was talking about earlier

#

but ill still try to use connections

#

so i cant do a for loop going through each waypoint

#

interesting. how come?

balmy zenith
shy dock
#

i see

balmy zenith
#

i think its just like hard to break out of

#

since you may have multiple of the loops running, and thats an issue

#

connections make sure you only move along 1 path

shy dock
#

alright thanks for helping

#

im gonna use connections when i get home and hopefully it goes well

coral tulip
#

yea i js asked ai to make a gun and it has 255 lines of code and has ammo, sound and muzzle flash

coral tulip
#

?

#

i was just proving ai is terrible

quartz obsidian
sturdy horizon
#

Shirou day

sly plover
#

sometimes when I play an animation it can cause jumping to like push backwards

#

its weird to explain

#

like walking backwards and jumping

#

causes like some fling/push back

#

player gains some weird velocity

copper frost
#

any scripter here that can work for %? game is 60% done

shy dock
#

oml roblox is down for me

#

frick these servers

copper frost
#

where ur from?

shy dock
#

australia

copper frost
#

iran banned roblox i think

shy dock
#

that was ages ago

copper frost
#

oh

summer aurora
#

daily reminder for everyone to thank their scripts by using this

while script do
print("thanks for working")
end
shy dock
copper frost
shy dock
#

yeah roblox is down for everyone rn

#

damn thats annoying

copper frost
balmy zenith
#

could a custom 3d physics engine in roblox be faster than roblox's physics engine?
the custom physics would only need to have simple OBB, Sphere, etc rigidbodies

compact spoke
#

probably yeah

#

depends on how you go about doing it

#

roblox has a lot going on in its physics though

#

which is why it can slow down a lot

#

custom solutions can be better cuz you can have actual deterministic physics

#

which roblox does not have

balmy zenith
#

just need some boxes to collide, context is like a factory with conveyers

compact spoke
#

yeah it would be faster then

#

just remember that no matter what the main bottleneck is always going to be actually moving the parts

#

may that be through bulkmoveto or some other strange method like bones which i hear are really efficent

balmy zenith
#

prolly gotta cull the visuals

lean ocean
#

what is this advertisement

dusky relic
#

bro just sent the most dogshit code

autumn obsidian
#

thank you ❤️

crude wave
#

yooo who on rn

karmic plank
#

me

crude wave
lean ocean
#

do 1, 1e834

crude wave
#

need to see ur reactions and check the print

#

how about this

shut ridge
#

Bropraysob Use exponentpraysob

flint forge
crude wave
flint forge
shut ridge
crude wave
#

lol fr

shut ridge
#

Lol it. Hurts me

crude wave
shut ridge
crude wave
#

yep

shut ridge
#

Power/Exponent

crude wave
#

oh yeah

shut ridge
#

It is the same as here

crude wave
#

i learned it as power only lol

shut geyser
#

Does anyone know stuff that'll look good on portfolios?

shut ridge
#

Lol

shut geyser
#

Makes sense

flint forge
#

or physics experiments, like cloth physics and so on

crude wave
#

isn't this scirpting

shut geyser
#

To be honest I don't realy like twitter and never got good results from twitter either. No one would ever follow me

crude wave
#

knew

shut geyser
#

I also don't understand why anyone would follow me.

#

Posts of progress on my game? who cares

crude wave
#

doge

flint forge
#

If you post interesting stuff people will follow you

crude wave
shut geyser
#

hm

#

my games all look pretty boring to be honest
(Maybe because they're all 1 week into development)

crude wave
#

don't tell me its damn brainrot

shut geyser
#

No lol

#

I don't watch tiktok/youtube shorts/instagram

crude wave
#

alright

shut geyser
#

Let me show you a WIP game of mine(currently in development, 0.5 weeks old)

crude wave
shut geyser
#

So we got cables that are made up of single segments and some ports

#

Gonna be a game about hosting and managing servers/websites

crude wave
#

thats boring as hell

shut geyser
#

In-game coding is also gonna be a thing.
We will try to also implement real-life networking stuff

#

Well we will try to add a gameloop

warm hedge
#
local function AlignModel(deltaTime: number): ()
        local Pivot = Instances.Player.Character:GetPivot()
        local MidFoward, TotalFoward = 0, 0
        local MidRight, TotalRight = 0, 0
        for _, SideVector in FowardSide do
            local RaycastResult = workspace:Raycast(rootPart.Position + (rootPart.CFrame.LookVector * SideVector), rootPart.CFrame.UpVector * -RAY_LENGTH, AlignVariables.RayCastPara)
            if not RaycastResult then continue end

            if OldNormal ~= RaycastResult.Normal then
                OldNormal = RaycastResult.Normal
                alpha = 0
            end

            TotalFoward += 1
            MidFoward += RaycastResult.Normal:Dot(Pivot.LookVector)
        end

        for _, SideVector in RightSide do
            local RaycastResult = workspace:Raycast(rootPart.Position + (rootPart.CFrame.LookVector * SideVector), rootPart.CFrame.UpVector * -RAY_LENGTH, AlignVariables.RayCastPara)
            if not RaycastResult then continue end
            TotalRight += 1
            MidRight += RaycastResult.Normal:Dot(Pivot.RightVector)
        end

        
        local NormalAngle = CFrame.Angles(-(MidFoward / TotalFoward), 0, -(MidRight / TotalRight))
        

        RotationMotor6d.C0 = DefaltC0 * NormalAngle 

    end

Can anyone tell me why in this code, the more the ramp is inclined, the more I sink into the ground? I'm manipulating Motor6D linked to the character's rotation, but I think there's code missing to compensate for the sinking, but I don't know where to start

shut geyser
#

pastebin exists ^

#

My friend and me primarely

#

and people who realy like details and realistic networks

#

Yeah....

#

We didn't want to use unity/godot since it would be too annyoing and we both'd have to learn it from the start

#

no

#

on roblox or external software?

#

I mean that's cool but that's not realy a game

blazing leaf
#

'''lua

sharp drum
#

dawg

somber vault
hidden dune
#

table.find(tablfind, {skin.Name, survframe.Name})
tablfind has the {skin.Name, survframe.Name}
as [1] = {skin.Name, survframe.Name}
it returns nil what do i do

hidden dune
#

what

somber vault
#

Table.find find a value you are inputing

hidden dune
#

ok someone told me the solution

#

other

somber vault
#

Nice

hidden dune
#

thanks anyway

#

sorry for wasting ur time

somber vault
#

Nah you good its like 2 seconds lol

shut geyser
maiden pine
#

This gif is amazing lol

brazen plume
#

Why when I launch the game the UI is shifted

shut geyser
shut geyser
#

Show me the size of the shifted element

#

and position

shut geyser
modern seal
#

is thss real

solid latch
#

so i hope this is just a passion project

shut geyser
#

I'm doing this for fun

#

Me and another friend realy like details and both have irl servers so we thought we'd make this just for fun.

summer cove
summer cove
cerulean perch
waxen edge
#

whats the most organized ways to make the attacks on the units
in the main
game

tds

vague trail
#

someone want to make with me a Fishing Game im a Scripter

ashen crystal
uneven jolt
#

Does anyone know why KeyframeReached isint working?

jovial crown
shut geyser
jovial crown
shut geyser
jovial crown
#

how u gotta implement the coding?

#

w out servers

shut geyser
#

Ohhh

#

Servers only work when the person is online. But the website can still be accessed and the data will also be stored.

#

It's gonna be complex

#

If that doesn't work then I'm using my personal server

shut geyser
#

My god this is in roblox....

#

The servers are free

jovial crown
#

gl On saving all the Data

shut geyser
#

Thanks

balmy zenith
#

whats he doing?

shut geyser
#

game about hosting/managing servers/websites on roblox

balmy zenith
#

um

#

how would you host a website on roblox..

shut geyser
#

Datastores?

balmy zenith
#

the roblox server would need to be up at all times

shut geyser
#

No?

balmy zenith
#

yes?

#

how else will the website stay up

shut geyser
#

The servers will be run on the server the accesser is on

#

for the time that he's on that site

balmy zenith
#

but you cannot remotely start up a roblox server without joining it

#

besides, how will you communicate to the roblox server from outside?

shut geyser
#

oh now i get what you think

#

literally

#

websites on roblox

#

not accessable from everywhere

balmy zenith
#

so inside roblox?

shut geyser
#

bruh

#

ofc

balmy zenith
#

so it wouldnt really be a website

shut geyser
#

it would?

balmy zenith
#

so just a webpage on roblox?

shut geyser
#

websites yes

balmy zenith
#

you cant visit it from the internet so like

#

as in google

shut geyser
#

just not accessible from WWW

balmy zenith
#

yeah

shut geyser
#

accessible in Roblox

balmy zenith
#

anyone could make a website?

shut geyser
#

?

balmy zenith
#

like would anyone be able to make one in the game

shut geyser
#

if they would be invested enough then yes

barren tundra
#

how do i define the type of this table to be {any}
Trading_Client.InTradeConnections = {}

#

in a module

balmy zenith
#

:: {any} cast it

barren tundra
#

yeah i tried that but it doesnt solve my problem

balmy zenith
#

elaborate

barren tundra
#

later on i do this

#

table.insert(self.InTradeConnections,
TradeOfferItemTogglePacket.OnClientEvent:Connect(function(action: string, item: Item, yourAction: boolean)
self:HandleDisplayItemToggle(action, item, yourAction)
end)
)

#

and the strict mode complains saying its not the same type

balmy zenith
balmy zenith
barren tundra
#

no in the module itself

balmy zenith
barren tundra
barren tundra
balmy zenith
balmy zenith
barren tundra
#

wdym

barren tundra
balmy zenith
barren tundra
#

helps communicate between server and client

balmy zenith
barren tundra
#

the table.insert is of course in a method

balmy zenith
#

why are you using self here

#

when you set the InTradeConnections in global scope

barren tundra
#

what am i supposed to use then

balmy zenith
#

Trading_Client.InTradeConnections this?

barren tundra
#

oh shit

#

im stupid

#

thanks

balmy zenith
static forum
#

Ur not accepting friend request

#

I can’t dm u

modern seal
#

anyonee have beginner scripter homework ideasss

#

i need likeee smol projects to learn w

wheat herald
sullen yarrow
#

Has any scripter here worked on steal a type games

dense ember
#

@static forum

#

Try now

smoky pecan
sturdy field
#

Yes

raven sail
#

What’s the best way to get profilestore data on the client

median tree
raven sail
#

Stupid question don’t answer that

#

Js read it, mb 😭

median tree
#

Idk about the loleris one

weak atlas
#

yo im thinking of making a game whats the best way to hire ppl while also making sure they dont steal parts of the game

manic rover
#

ok

austere garnet
somber vault
#

anyone know how to fix some virus which just spews out 80 thousand lines of arabic
game that has around 150ccu

dense ember
somber vault
#

geniunely not making ts up

somber vault
austere garnet
somber vault
#

my luaheap is seeing that random require scripts

#

full of arabic which translate to random dog facts

dense ember
smoky pecan
shadow loom
lean ocean
#

then searching require(

spark moat
#

who can script in studios?

foggy isle
spark moat
tired violet
#
local function rootMotion(): ()
    local character = CharacterHandler.get()
    local rootPart = character:WaitForChild("HumanoidRootPart") :: BasePart

    local elapsed = 0
    local originalCFrame = rootPart.CFrame

    for index, currentFrame in rootMotionData do
        if index == #rootMotionData then
            break
        end

        local nextFrame = rootMotionData[index + 1]

        while true do
            if elapsed >= nextFrame.time then
                break
            end

            local alpha = (elapsed - currentFrame.time) / (nextFrame.time - currentFrame.time)
            local offset = currentFrame.cFrame:Lerp(nextFrame.cFrame, alpha)

            rootPart.CFrame = originalCFrame * offset

            elapsed += task.wait()
        end
    end
end
``` anyway to improve or nah
somber vault
smoky pecan
#

local RunService = game:GetService("RunService")

type MotionFrame = {
time: number,
cFrame: CFrame
}

local rootMotionData: {MotionFrame} = {
{time = 0, cFrame = CFrame.new()},
{time = 1, cFrame = CFrame.new(0,1,0)},
{time = 2, cFrame = CFrame.new(0,2,0)}
}

local function rootMotion()
local character = CharacterHandler.get()
if not character then return end

local rootPart = character:WaitForChild("HumanoidRootPart") :: BasePart
if not rootMotionData or #rootMotionData < 2 then return end

local elapsed = 0
local originalCFrame = rootPart.CFrame
local motionCount = #rootMotionData

for index = 1, motionCount - 1 do
    local currentFrame = rootMotionData[index]
    local nextFrame = rootMotionData[index + 1]

    while elapsed < nextFrame.time do
        local alpha = (elapsed - currentFrame.time) / (nextFrame.time - currentFrame.time)
        local offset = currentFrame.cFrame:Lerp(nextFrame.cFrame, alpha)

        rootPart.CFrame = originalCFrame * offset

        elapsed += RunService.Heartbeat:Wait()
    end
end

end

rootMotion()

#

this much better

tired violet
#

yea i was also contemplating using runservice

#

ok thanks, ill do that instead

tired violet
smoky pecan
smoky pecan
tired violet
#

oh yeah, i guess ill change the for loop too

#

checking # each time is probably slower

#

its kinda preference but i like my conditions within the while loop too. unless theres a performance thing im unaware about, probably negligible if there is? lmk though

compact spoke
tired violet
#

task.wait was just faster and came to mind at the moment

#

not faster, but faster to type

smoky pecan
compact spoke
mystic belfry
#

Yo

compact spoke
#

any gain you might get from using runservice is going to mean nothing since setting the cframe takes like orders of magnitude longer anyways

tired violet
#

gain is gain ig

compact spoke
#

lll

#

i'm not an optimization dev so idgaf

#

some people get crazy over stuff like that

tired violet
#

fair and true

crimson portal
#

Who wanna be my friend

proven cosmos
iron kraken
#

good

#

👍

proven cosmos
#

thanks 👍

deep ermine
#

benefits of using RunService.Heartbeat over while task.wait() do?

iron kraken
#

heartbeat always runs after physics
task.wait i think is more varied in timing i think

hasty mesa
#

they are pretty much the exact timing

#

after stepped is task.wait() then heartbeat

iron kraken
#

👍

soft aspen
#

anyone wanna help me with coloring system in my fashion game ill pay afterhead

vernal peak
#

my sprint animation looks weird. Is that my fault or the animators? is there any way I can make it look smoother with scripts?

topaz crypt
vernal peak
#

so its not my fault?

topaz crypt
vernal peak
#

yeah

topaz crypt
#

Naw its not ur fault the animation just needs to be better

vernal peak
#

oh alr tysm i thought there was like some secert shit people right to make anims look better

remote bear
#

not sure why its saying it reached the buffer size limit when i = 29997 while the totalScreenInfo is 30000

balmy zenith
#

probably because you start at 0

#

you have 1 extra value

#

also why use a string?

#

thats just a waste

#

use actual uint8s

remote bear
remote bear
balmy zenith
balmy zenith
balmy zenith
#

so you gotta do i*8

balmy zenith
balmy zenith
remote bear
balmy zenith
#

the data it stores yes

#

but hex is 6 characters, each character is 1 byte

#

so you are wasting half your storage

#

stored as 6 characters = 6 bytes
hex data is only 3 bytes, so you wasted 3 bytes for nothing

remote bear
balmy zenith
#

by not using hexes

#

why would you use hexes

remote bear
wintry dock
#

Anyone know what fighting systems usually cost to get made?

patent sonnet
#

is anyone else having trouble opening rbxl files

haughty vortex
balmy zenith
#

he probably means uses less characters

balmy zenith
chilly stratus
#

I've been trying to learn scripting but I honestly don't know where to start. Any recommendations or fundamentals that I should learn?

paper current
chilly stratus
outer flax
# summer phoenix

bro I escaped code help channel just to meet you sending shitpost again

paper current
#

Because they don’t have any

#

Code be destroying us

summer phoenix
#

lets connect autism

balmy zenith
#

wat

#

i still need to figure out frustum culling bruh

#

how do the hell do i build frustum planes from fov

outer flax
#

why dont you try making interesting things instead

#

why do these furstum stuff

remote bear
#

i meant in color tags

balmy zenith
outer flax
#

like what's your project

balmy zenith
#

working on voxel system rn

#

and i wanna cull voxels outside frustum

compact spoke
#

that sounds like more work than you really need to do

balmy zenith
#

?

summer phoenix
#

anyone got a reason why ZonePlus doesn't work on small parts

#

does it need my whole character to be in it or sum

#

ima try itemEntered rq

#

nop

#

ima js use .touched mayne

loud wing
summer phoenix
nimble granite
#

Any one trying work on this deepwoken copy with me

thorn solstice
#

anyone wanna help me with this pre made quest system but help me set it up for my game will pay ofc

dusky swift
#

ok @fallen summit

wheat herald
#

Hey does anyone know if the 200 Lines of Code can be split in multiple Scripts (For the Scripter Skill Roll)

#

Ofcourse it needs to be working together in one System.

wintry totem
wheat herald
#

OK thx

wheat herald
#

So it needs to be in one Script only?

lean ocean
#

Yes

wheat herald
#

OK thx

loud bridge
#

💔

marsh kelp
smoky pecan
#

Give me 3-2 months Im done with learning and im advanced

#

rn imm beggninger know all the basics

balmy zenith
#

3 months to advanced.. woww

hasty star
#

i made a little thing but every time it walks the animation glitches and restarts?
anyways to fix

strong fog
#

how much time takes to get on home reccomendations?

hasty star
#

?

strong fog
# hasty star ?

how much time takes to get game on home reccomendations (algorithms)

hasty star
#

skidding?

grave zenith
#

hi

turbid quest
#

wsp

grave zenith
#

so what services u need

turbid quest
#

uhh i dont understand where you place scripts, local scripts and module scripts and for what purpose

turbid quest
#

and the wiki aint helping😭

grave zenith
#

I can't explain bro

#

this is type of things u understand in time

turbid quest
#

😭

grave zenith
#

took me like idk 1 year to understand

#

but u can learn in 1 month if u are 100% focused on understanding instances & services

#

it's like going in a surgery and asking the guy each tools and there functions @turbid quest

turbid quest
#

😭

grave zenith
#

@turbid quest if I can help I can send u what u need to learn for NOW

#

Services

  • workspace
  • replicated storage & first
  • Players
  • Starters (gui, character, packs, players etc...)
  • server storage
  • server script service
#

@turbid quest

turbid quest
#

thanks ill ss it for later

#

where did you learn them?

grave zenith
#

and when u learnt thoses u can do

  • Debris
  • Runservice
  • Lighting
  • Marketplace
  • SoundsService
  • TextChat
raven oasis
grave zenith
#

ppl explained me I think

turbid quest
raven oasis
grave zenith
turbid quest
grave zenith
turbid quest
#

thanks👍

grave zenith
#

even some experienced developers don't know about this

smoky pecan
balmy zenith
#

still aint no way you advanced at scripting in 3 months

balmy zenith
#

tutorials mean nothing except for the first week or two

grave zenith
balmy zenith
#

tutorials in general are stupid

grave zenith
#

@smoky pecan if u want to become advanced u need to read things like this: https://devforum.roblox.com/t/replicate-your-states-with-replicaservice-networking-system/894736
not tutorials

balmy zenith
#

knowing libraries does not make you advanced

#

knowledge does cathello

grave zenith
#

but yeah not making u 100% advanced by reading

#

this is just theorical

quartz wing
#

i was working in studio n i found some weird stuff, soo i have a simple server script saying "This file work", now this gets prints into the console in Normal test but if i run in team test it wont print why? and yes in filder i have all checked

#

any help, im so confused

halcyon sentinel
#

is obby for ugc games worth it , for advertising them with like 40 ad credits
will i be profitable
each ugc - hair and mask cost 39rbx each

scenic lily
#

yall is it possible to set color attribute via script?

lean ocean
#

why are we using debris in 2026

smoky pecan
slow drift
grave zenith
balmy zenith
balmy zenith
#

thats the best way

grave zenith
balmy zenith
#

thats not what libraries are

#

they provide you a solution

#

you dont understand shit

grave zenith
#

yes so it's making ur coding simple

balmy zenith
#

youre just using an api

#

doesnt mean you can code it from scratch can you?

grave zenith
balmy zenith
#

you need to understand anything in order to use it

#

thats just common sense

grave zenith
#

yes so it's making u more advanced knowing more advanced stuff

#

idk how to explain but that's the idea

balmy zenith
#

yeah obviously but this isnt restricted to knowing libraries

#

libraries doesnt do anything except convenience

grave zenith
#

libraries save life lol

balmy zenith
#

so?

#

doesnt means it magically makes you advanced to use one

grave zenith
#

do u know the definition of advanced

balmy zenith
#

but i view advanced as those who are top level

vestal flare
#

can anyone help me make like a chasing ai im not that good at lua

grave zenith
balmy zenith
grave zenith
#

that's what I'm trying to explain

balmy zenith
#

anyone can use a library

#

using a library just means you arent a noob

grave zenith
#

theen anyone can become advanced

balmy zenith
grave zenith
#

if you're think about more advanced it's called expert sir

balmy zenith
#

expert would be even higher yeah

#

but some skid who knows how to use a library isnt advanced

#

all you need to do is read the docs of the library

#

its quite literally handed to you

grave zenith
balmy zenith
#

"if the code works" is definitely not advanced level 💀

grave zenith
#

for me beginner advanced or expert is the way you proceed and how strong your code is. So beginner will not do things the same way as an advanced SO the advanced one use libraries that the beginner don't

#

do u get that

balmy zenith
#

yes so your definition of advanced is literally anyone who isnt a beginner

grave zenith
#

no

#

advanced is beginner but with proteins

balmy zenith
#

any decent scripter will use libraries

lean ocean
#

proteins

little rose
balmy zenith
#

they dont even gotta be decent to use libs

#

look how many skids wanna use datastore libraries so bad

#

they aint even know datastore yet fr

grave zenith
balmy zenith
#

but not being a beginner doesnt mean your good at scripting

grave zenith
#

maybe I'm a beginner who knows

vestal flare
#

guys how do i sed my code

smoky pecan
grave zenith
smoky pecan
#

is that roblox studio code?

vestal flare
#

`lua

grave zenith
#

without space

dusky relic
#

Other than that you should be using your own/making your own libraries

dusky relic
balmy zenith