#code-discussion

1 messages · Page 275 of 1

humble gorge
#

sometimes 16h

#

I was awake for 20h multiple times because I couldn't fall asleep until 7:40am

copper spindle
#

Hey, its actually nice now. Go sleep

humble gorge
#

I don't wanna wake up at 4AM

copper spindle
#

Or try hiring some body if you don't get satisfied. But its fine for now for u

humble gorge
#

it's 9pm rn

copper spindle
#

Yo are u indian

humble gorge
#

I usually go to sleep at 11pm

#

na

#

I'm Russian (9:27pm in my timezone rn)

copper spindle
#

Ok, its 9 57 here in india

humble gorge
#

honestly it sucks in Russia

#

nice

#

wth why is my wifi so slow

modern seal
#

??????????????????

void pond
#

Can anyone experienced give me tip on how to use ads on a new game like how mutch ad credits should i use per day and how long should i run the ads for and should i run a returning users ads after that?

young willow
#

Hey

#

guys is there any better way to make abilities, i just have a remote event for every ability and a script for the event for the ability.

cerulean void
#

aloha

noble sonnet
#

yo, does anyone have any ideas on how to make my ragdoll head stop jittering left and right so much? right now it kind of folds into itself and looks broken instead of reacting naturally. i’m also trying to make deaths look more realistic overall, so if anyone has suggestions for cleaner joint limits, better constraints, collision settings, or anything else that helps ragdolls feel more natural in roblox, lmk

noble sonnet
#

im going to try replacing ballsocket in head with wedge

subtle fractal
#

A

subtle fractal
#

hmm
ill let u know

#

english 100

cerulean void
nova shore
#

im the best programmer

alpine dirge
noble sonnet
#

my ragdoll script works perfect in test mode and 2 player client and server test mode but when I save to roblox and join the game in 2 dif devices the ragdoll just seperates and dies like regular roblox bo-dy parts seperating any ideas anyone?

sage vessel
#

sus boi

sage vessel
#

uigrid layout dead space sucks

kindred leaf
#

can someone please help? why is my bones not lining up with the dam bird

kindred leaf
#

not quite

half cobalt
grizzled tide
#

@nimble cosmos

fiery valve
#

how do i fix the issue that when i make the screen smaller the frame and what inside move from their space?
i tried to use autoscale plugin and also tried to add UIAspectRatioConstraint

half cobalt
fiery valve
#

can i dm you ? to show you how it build cause i cant send images here

neat escarp
#

A lot of devs code in TS or is it rare?

jovial crown
neat escarp
# jovial crown Rare

Yea that's what I've assumed. Why even bother to use TS if roblox uses luau natively, I mean ig it is faster at large codebasss but still

#

Sounds like a nightmare

jovial crown
neat escarp
jovial crown
#

Who cares about that deep of optimization on roblox

neat escarp
#

Yea u are right. TS can be used in other things as well so it might be worth to learn

jovial crown
#

There aren't Aaa games

#

Which need optimizations

#

And not all aaa games got optimization

neat escarp
#

AI frames

jovial crown
#

Such unoptimzation

neat escarp
#

Lazy ah devs

last oracle
#

How would i manage a custom hotbar and custom backpack, like two folders for each inside of the player?

clear blaze
#

bro whats wrong here why is giving me this error: Players.CrodieeBlox.PlayerGui.Interface.PlayerMenu.MenuHandler:39: attempt to index nil with 'Completed'

for this script:

spawn(function() while InMenu do local Tween1 = TweenService:Create(PlayerCam, CameraTweenInfo, {["CFrame"] = MenuCamTweenPart.CFrame}):Play() Tween1.Completed:Wait() local Tween2 = TweenService:Create(PlayerCam, CameraTweenInfo, {['CFrame'] = MenuCamTweenPart.CFrame}):Play() Tween2.Completed:Wait() end end)

neat escarp
hasty cobalt
neat escarp
#

What is game producer role?

young crystal
fervent widget
#

asdasdasasdasdds

chilly ruin
#
if statement then

else
  --stuff
end

while scripting in vs code, Roblox IDE enters an extra "end" statement when i press enter on the else line, instead of going one line down

if statement then

else
 
end
  --stuff
end

i searched through settings of the extension but couldnt find a solution. how do i fix it its pretty annoying😭

#

it works just fine when i disable the extension

clear blaze
#

is scripting with vscode better?

chilly ruin
icy heron
viscid token
#

i also agree that it depends on personal preferences since vs code looks prettier than roblox studio

chilly ruin
#

i hope they fix ts💔

kindred leaf
dense wasp
#

I think you should add some sort of friction to the flight to make it feel more like a bird

kindred leaf
#

Thank you!! And it has a little bit, and speed boost when you go straight down

#

Oh do you mean to the animation

dense wasp
kindred leaf
#

They can’t lol? Okay I can implement that

dense wasp
#

Oh LMAO im an idiot and i wasnt paying proper attention

kindred leaf
#

Oh, was is the video cut?

dense wasp
#

No no i just looked away for a second and it had turned quite a bit so it looked like it turned suddenly

vernal peak
#

guys my stunClass is clearing stun, but it needs movementservice to clear it. if i fire signal for my stunClass parent (stunHandler) to then fire another signal for movementService to clear stun, would that be too much signals?

golden yoke
#

guys im tryna make a damn STROLLER and i cant add seats on the tool it doesnt workk

late valve
# golden yoke guys im tryna make a damn STROLLER and i cant add seats on the tool it doesnt wo...

the reason u cant add seats to a tool is cuz roblox disables seat physics when they are inside a tool model since the tool is technically "attached" to your character so it breaks the sit trigger. basically u gotta put the seat in a separate model in workspace or use a fake seat script that plays a sitting animation on whoever touches the stroller because seats and tools just dont mix right together in the same parent.

golden yoke
#

whats the simpliest way

#

i dont want it for any complex purposes just to play the exact role a default roblox seat does

torn holly
#

prob just play animation

#

anchor sitting player's hrp, cframe it to the seatpart, and weld constraint

frigid furnace
#

does anyone need help with coding?

#

does anyone need help with coding?

icy bone
#

Can you delete 107000 datastores for me

frigid furnace
#

does anyone need help with coding?

simple agate
#

idk why people use vscode other than to have an area to write the scripts nicely... connecting it to the game is just so extra and I dont rlly see much benefits... but then again its probably just because I'm not that advanced with my scripting yet

simple agate
spice cypress
#

They do

frank mango
#

why isnt this working? its supposed to show a gui when a tool is equipped:

`
script.Parent.Equipped:Connect(function()

game.StarterGui.ScreenGui.Enabled = true

end)`

late valve
#

Inside the tool?

sand furnace
#

code helpp

#

👀

#

oh wrong chat

cobalt pewter
#

guys what tutorials should i start watching to learn scripting or is there a better way to learn it

warped shore
#

is it possible to take a chunk out of a part? like for a mining game

frank mango
brazen sphinx
#

just hop on studio

#

99% of lua scripter kids wannabes quit before theyve made a single shitty game

jovial moat
#

Experimentation is key _heghagha

brazen sphinx
jovial moat
brazen sphinx
#

u can also self promo on tiktok insta youtube

brazen sphinx
fickle wyvern
#

just showcasing random scripts

glass briar
#

Hey when do yall know when ever to use FindFirstChild and WaitForChild

brazen sphinx
#

FindFirstChild can return nil and doesn't yield
WaitForChild yields potentially forever

lament hazel
glass briar
#

Bro

glass briar
#

WHAT ARE U TALKING ABT

lament hazel
glass briar
#

😭

jovial moat
#

PDF jokes aren't funny :(

#

They are bad people

lament hazel
lament hazel
jovial moat
#

Cuz it's fucked up to say somebody is, can be clipped out of context

jovial moat
#

Tell them sorry, not me f_sob

lament hazel
glass briar
#

It all good

hasty cobalt
jolly gorge
#

like a discord bot or website

#

but i agree if ur not working on a big project its probs more efficient to jus code in studio

woeful birch
#

i have a dev product wrapper that streamlines handling product purchases, if anyone wants to try it out hit me up

brazen sphinx
#

wally packages

#

roblox typescript

#

roblox rust

distant hamlet
#

just put the fries in the bag lil bro

daring jetty
#

can someone help me make a laser in my base cuz im making a game called brainrot heist but idk how to add lasers in the bases

dense spade
daring jetty
#

ok

#

ty

#

wait

#

wydm by Tag

dense spade
#

CollectionService

daring jetty
#

o ok

dense spade
#

in the part properties got Tag

#

its the most bottom

#

there are plugins to help u setup tags quick

daring jetty
#

send them fr

dense spade
#

i dont use them,i use command bar like a chad

daring jetty
#

i lowk dont know how to code only build so idk how im even gonna manage

daring jetty
#

im broke WHYYYYY

#

is this script good?


local lasers = CollectionService:GetTagged("Laser")

for _, laser in pairs(lasers) do
    print(laser.Name)
end```
dense spade
#

yep

#

then do
laser.Touched.....

#

u dont need

in pairs(lasers) do

just do

in lasers do

daring jetty
#

okey dokey

#

yo wait

#

i thought ur pfp was that giga chad guy then i thought it was a knight

#

i looked closer and its a roblox giga chad

graceful condor
#

It’s Lego 🥀

simple cosmos
#

bro its like 5 lines 😭🥀

daring jetty
daring jetty
#

IM A MODELER

daring jetty
#

YEAH im quitting this doesnt work

#

ima go back to commisions

warped crag
#

ok

#

goodluck

simple cosmos
#

js use ai

daring jetty
#

WHich ai

simple cosmos
#

make it explainn

warped crag
#

chatgpt

#

gemini

daring jetty
#

i tried that

simple cosmos
#

js use gpt bro

daring jetty
#

didnt work lowk

simple cosmos
#

L

#

didnt give context

daring jetty
#

i cant even touch the laser

warped crag
#

lemonade?

daring jetty
simple cosmos
warped crag
#

alr..

daring jetty
#

tf is that-

simple cosmos
#

go back to modeling 🤣 🫵

daring jetty
#

yeah bye

simple cosmos
#

lowk

daring jetty
#

bro i wanna be a scripter but i cant understand it

#

ima try to make an ez simulator

#

wait is lemonade good

warped crag
#

yea

#

oyu just type what you want in the game

#

you'

#

then it makes everything for you

#

like yea

acoustic belfry
#

whats a good playlist to learn scripting

warped crag
#

ask gpt

jolly gorge
#

back in like 2018

#

watch his series

#

copy everything he does and play around

acoustic belfry
#

bet i saw him and BrawlDev

jolly gorge
#

then move on to devforum

#

just make sure you actually copy everything hes doing

#

and play around see how stuff gets affected

acoustic belfry
#

bet bet thank you

jolly gorge
#

ye

#

its probs way easier now too cuz gpt can explain concepts to u

#

and tell u issues

acoustic belfry
#

yeah for sure i tried learning a while back made some stuff and quit now im like braindead to it

civic garnet
#

its the modern day gng 😭

jolly gorge
jolly gorge
#

is it any good now

#

used it once like 2 years ago and it was ahh

#

never used it again

simple cosmos
#

chatgpt is still hotass tho

#

wont die out

#

lowkey forgot those exist

ocean ferry
#

i was doing dumb exploiting in other games and i wante decompile tools script

#

but i found a game wo give functions to tools witjout put a script inside them, how thats works?

wooden harbor
dark yoke
#

Isnt that crazy

#

U get nicer answers on the devforum compared to stack overflow tho

last oracle
#

How do I create a custom hotbar with a custom backpack? Do I need to create a folder for both in the player?

icy heron
#

by scratch

wooden harbor
dark yoke
wooden harbor
sullen willow
#

Any idea's that i could make for a portfolio?

#

I've made a couple of things before. But it's always been rejected by the admin when i submit it

calm zenith
#

Yo guys what do you think is the best AI for coding

dim compass
dark yoke
#

Or in most people's eyes

dim compass
#

yeah

unborn prism
#

@woven palm

iron kraken
candid roost
#

yo chat

#

I lowkey have a question

dusky relic
candid roost
#

i know

#

that's why I have a question

pale rose
pale rose
candid roost
# dusky relic check your own bio

i don't know if that's a good thing or not, my idea was to offer my service as a "pentester", so like if someone is making an anticheat, i'll bypass the anticheat, and give the open source. Just like in cyber, offense and defense.

#

well same for roblox 🤷‍♂️

#

find vulns that could potentially bupass an anticheat

#

and get paid per vulns found

pale rose
#

This is called ethical hacker no?

candid roost
dusky relic
#

You could do that yeah, but unless you're not able to make your own executor and such, you wont be considered a "professional"

candid roost
candid roost
#

so should I post this idea in scripter for hire?

#

i mean idk

#

i don't like making antichets and games in general

icy heron
#

no it technically breaks TOS unless you get your own executor added into the game by the dev

candid roost
#

that's why I wanna offer my service as red teaming

icy heron
#

i mean tehn again whose gonna snitch lMAO

candid roost
red sky
#

SELLING 2 CASH-GRABS GAMES. (low price)

pale rose
icy heron
candid roost
#

that's why I wanted you guys opinion

red sky
pale rose
candid roost
red sky
#

dm

icy heron
#

yo bro*

red sky
#

yo

icy heron
#

ill do - 2k

red sky
#

ok

#

nah lol

candid roost
#

how about -10k??

icy heron
#

dm me

red sky
#

im joke

pale rose
#

I offer

#

-25k

woven palm
#

Y'all not beating that

candid roost
#

mm

dense spade
red sky
#

Good price 😄

candid roost
#

100k and 1 dollar and 1 quarter

woven palm
pale rose
#

1 Ecentric shop teacher

candid roost
#

1 million 1 dollar and a quarter

dense spade
pale rose
#

Beat that

candid roost
woven palm
woven palm
#

1 billion and 1 dollar

#

I'm Tony stark for a reason

woven palm
#

Batman not touching tony stark money

dense spade
pale rose
#

Money Power

woven palm
#

Iron is also just each suit prob costing 50mill

brazen sphinx
simple cosmos
clear blaze
#

Hey

#

could soemoen plz tell me whats wrong

local SwordSlash = RS.SwordRemotes.SwordSlash

SwordSlash.OnServerEvent:Connect(function(Player)
    local Character = Player.Character or Player.CharacterAdded:Wait()
    local Humanoid = Character:FindFirstChild("Humanoid")
    
    local Hitbox = Instance.new("Part")
    Hitbox.Parent = workspace
    Hitbox.Color = Color3.new(1, 0.0547189, 0.279103)
    Hitbox.Transparency = 0.6
    Hitbox.PivitTo(Character.HumanoidRootPart.CFrame)
end)```
red sky
#

SELLING 2 CASH-GRABS GAMES (low price)

clear blaze
#

@echo dagger

weak radish
#

and what's the point of getting humanoid if you don't use it

weak radish
weak radish
elfin timber
#

hey, havent been on roblox studio for a while. im at a point where i have to make some ui and im here to ask about the best ways to just make simple clean ui

#

i just used the basic roblox elements before

#

do i just keep on doing that?

weak radish
weak radish
clear blaze
analog sandal
#

roblox ai is crazy🙏

errant reef
#

Can someone send me a script that opens and closes a door?

limpid shale
#

i get no error but when i play it wouldnt do the anim

errant reef
plucky depot
#

how useful are animation handlers

heavy shadow
#

guys help me

#

i need a script to hatch eggs

potent igloo
#

or you dont own the anim

#

or the script isnt running

heady sluice
#

One message removed from a suspended account.

brazen sphinx
heady sluice
#

One message removed from a suspended account.

brazen sphinx
#

yet all the front page games use vscode

simple cosmos
shy cipher
iron kraken
#

it lowkey doesnt matter

bold hound
iron kraken
#

most benefit to vscode might be like bieng able to use copilot

shy cipher
#

visual studio skid

hot copper
#

i use roblox studio code editor

bold hound
iron kraken
#

also auto complete on vscode might be better

hot copper
#
  • better version control
iron kraken
#

yea i dont even bother too much of a hassle

brazen sphinx
heady sluice
#

One message removed from a suspended account.

shy cipher
brazen sphinx
limpid shale
#

i feel its something from roblox

brazen sphinx
heady sluice
rose notch
#

conveyors, what are those? sorry for the late response btw.

just to clarify, I'm talking about accessing the GetSet parts of "Part.AssemblyLinearVelocity"

Basically

--Back End of our Server Script
local function addVelocity()
  --regular addition to the velocity of the part
  part.AssemblyLinearVelocity += Vector3.new(0,50,0)
end

--Back End of Roblox's physics script or sumthin
RunService:BindToSimulation(function(dt) --idk if the BindToSimulation function actually has a delta time variable
  part.Position += part.AssemblyLinearVelocity
end)

--if we want to add time manipulation effects the easiest way to do this would to just multiply the Velocity by time as it's being added to the position, so something like this

local timescale = workspace.timescale --would be cool if it was a workspace property

RunService:BindToSimulation(function(dt) 
  part.Position += part.AssemblyLinearVelocity * timescale
end)

brazen sphinx
heady sluice
rose notch
brazen sphinx
#

its legacy af tho ill agree

heady sluice
#

One message removed from a suspended account.

rose notch
# heady sluice One message removed from a suspended account.

make a module where you can automatically rig the R6 model with a part or something.

actually that's probably what the humanoid root part is for,

then make a table of enums with all of the States the character can be in.

then add a health variable, walkspeed variable, and all the other stuff you need.

now the problem that I don't know how to solve is animations.

#

you need someone more experienced for that.

#

I aint qualified lol

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

oh then yea, that's basically all you gotta do

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

outer flax
#

RunService.Heartbeat:Connect(function()
hrp.Orientation -= Vector3.new(hrp.Orientation.X,0,hrp.Orientation.Z)
end)

#

it should stays upright

rose notch
#

with some maths and maybe a raycast to make sure they dont glitch into the ground.

heady sluice
#

One message removed from a suspended account.

rose notch
rose notch
#

how do you do that?

outer flax
#

bro animates the hrp ☠️

heady sluice
rose notch
rose notch
heady sluice
#

One message removed from a suspended account.

rose notch
#

what animator do you use?

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

can you show me an example?

heady sluice
#

One message removed from a suspended account.

outer flax
#

🗣️ 🔥 he spitting facts

heady sluice
#

One message removed from a suspended account.

rose notch
#

how do you implement your animations?

heady sluice
#

One message removed from a suspended account.

rose notch
rose notch
heady sluice
heady sluice
rose notch
# heady sluice One message removed from a suspended account.

like I said, humanoid states, basically if the state is not equal to tripping, then the humanoid will stay up right,
then something will happen to change the state of the humanoid to tripping,
then it will fall over because there's a piece of code that is no longer keeping the character up right.

rose notch
#

and root motion is very good

#

are you certain he's editing the hrp?

#

and not the torso?

heady sluice
rose notch
heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
heady sluice
#

One message removed from a suspended account.

outer flax
#

you forget -

heady sluice
#

One message removed from a suspended account.

heady sluice
outer flax
#

idk how that's happening when we never touch the position

rose notch
rose notch
heady sluice
outer flax
#

wait lookalong exists?

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

average position

#

wait

#

does it?

#

hold up

heady sluice
#

One message removed from a suspended account.

heady sluice
outer flax
#

that's just animating the torso nothing should break but without humanoid the legs might become collidable by default which mess it up

rose notch
heady sluice
#

One message removed from a suspended account.

outer flax
#

with humanoid the legs are uncollidable and the rig stands with hipheight instead

distant hamlet
#

you need to overshoot and snap back

rose notch
#

but it does kinda look ass ngl 😭

distant hamlet
#

i see shit i call shit

heady sluice
distant hamlet
#

well this time i did give criticism

rose notch
heady sluice
rose notch
rose notch
heady sluice
rose notch
#

if I typed in the function wrong uh

heady sluice
rose notch
#

look for the look along

heady sluice
#

One message removed from a suspended account.

rose notch
#

yea there u go

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

outer flax
#

isn't it LookAt

rose notch
outer flax
#

oh

#

good to know

rose notch
#

the difference is in the second parameter

rose notch
heady sluice
#

One message removed from a suspended account.

rose notch
heady sluice
#

One message removed from a suspended account.

rose notch
#

like flings like how

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

heady sluice
distant hamlet
#

animator lowkey a noob

heady sluice
#

One message removed from a suspended account.

distant hamlet
#

that ones not good tho

heady sluice
#

One message removed from a suspended account.

rose notch
# heady sluice One message removed from a suspended account.

ah I see,
yea what the guy said above me.

make a raycast and shoot it directly downwards.
then if the raycast touches anything and the distance from the hrp is equal to 1.5 or higher then set the position of the hrp to the position of the raycast + 1.5

distant hamlet
rose notch
#

ye

#

it good

outer flax
#

who's the modeller tho

#

looks good fr

heady sluice
heady sluice
heady sluice
rose notch
#

you can set it to whatever tho

heady sluice
rose notch
heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

I prolly got it messed up

rose notch
#

try increase height very slightly

heady sluice
#

One message removed from a suspended account.

rose notch
#

also you should probably make the legs uncollidable

heady sluice
#

One message removed from a suspended account.

heady sluice
rose notch
heady sluice
#

One message removed from a suspended account.

rose notch
#

because with the raycast it shouldn't do that anymore

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

heady sluice
#

One message removed from a suspended account.

heady sluice
#

One message removed from a suspended account.

rose notch
#

try adding some prints

#

or something, to check what the raycast is getting

heady sluice
#

One message removed from a suspended account.

rose notch
#

OH

#

make their Y velocity equal zero when the raycast touches the ground

#

so just do Velocity*=Vector3.new(1,0,1)

heady sluice
#

One message removed from a suspended account.

heady sluice
#

One message removed from a suspended account.

rose notch
#

because then the animation will screw it up

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

WHAT THE FUCK

#

send a video

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sturdy ember
#

Is it possible to learn coding with just yt videos

heady sluice
sturdy ember
heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
heady sluice
heady sluice
#

One message removed from a suspended account.

sturdy ember
heady sluice
rose notch
#

so the ray length will be the height

#

so ray length = height

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
#

because there's no physics in the air since there's no humanoid state for standing on ground

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rose notch
heady sluice
#

One message removed from a suspended account.

heady sluice
#

One message removed from a suspended account.

hard garden
#

hi guys

#

i just discovered instance:GetDebugId()

#

should i use it or meh

rose notch
# heady sluice One message removed from a suspended account.

alr now you can no longer avoid the creation of your own sates.

give your dude some states like

"falling"
"idle"
"walking"
"hurt"

or whatever you feel like.

when the character is not touching the ground, set their state to "falling"
if they are touching the ground set the state to "Idle"

now if the raycast hits something and you are falling, ignore the distance between the hrp and the raycast position.

HOWEVER, if the state == "idle"
check the difference from the raycast length and the position that was actually hit.

if length-distance>.1 then
set the hrp to the length of the racast
else set it to the position of the raycast

weak nest
#

can someone rate my script

#

it took me a week to make

heady sluice
#

One message removed from a suspended account.

weak nest
#

lmk if its good

heady sluice
#

One message removed from a suspended account.

weak nest
#

this is for myself

#

the code

spice cypress
#

i think people worry so much about modular code they end up making a framework instead of a game

rose notch
# weak nest

I don't like reading other ppls code when it's long so don't ask me-

hard garden
rose notch
#

use it

#

see what happens

hard garden
hard garden
rose notch
hard garden
#

print(workspace:GetDebugId())
-- outputs: 1_53513626

#

the word itself

#

"DebugId"

#

it doesnt change too

#

it remains the same

#

w discovery or nah

rose notch
#

odd

hard garden
rose notch
#

also why is this the way it is?

hard garden
weak nest
shy cipher
#

better move on from offering percentage

hot copper
#

yo its insane how bots are progressing on discord

#

"bro real talk" 😭

jovial moat
#

That's hilarious

hot copper
jovial moat
#

Bio? "Roblox"

hot copper
#

Yea insane

#

and he joined today

jovial moat
#

The AI context lasts only for one word

hot copper
#

bro 😭

bold lodge
#

Anything but scripting

hot copper
#

i worked so hard today ngl

#

so i might just stop scripting for the rest of the century

hot copper
#

need a rest

bold lodge
hot copper
#

doing some animation controller

#

gotta lock in

#

gl

bold lodge
#

a

heady sluice
spice cypress
#

im not saying modular code is bad, i just think people try and abstract and decouple their code so much that they spend more time thinking about what their project will look like at the end instead of just writing code

#

like you should write code so it's easily refactorable not so it never has to be refactored

heady sluice
#

One message removed from a suspended account.

weak nest
spice cypress
#

all im saying is it doesn't really matter if it's a long file

#

if tight coupling doesn't matter then it's not too important to sperate it

#

when the project gets bigger that's when u might do smt like that

heady sluice
#

One message removed from a suspended account.

#

One message removed from a suspended account.

fluid pier
#

local repStor = game:GetService("ReplicatedStorage")
local events = repStor:FindFirstChild("Events")
local land = events:FindFirstChild("Land")
local PurchaseLandEvent = land:FindFirstChild("PurchaseLandEvent")

local ServerStorage = game:GetService("ServerStorage")
local handlers = ServerStorage:FindFirstChild("Handlers")
local PlotManager = require(handlers.Plots.PlotManager)

local prox = script.Parent

wait(3)

prox.Triggered:Connect(function(plr)

    print("a1")

    local plot = prox:FindFirstAncestor("Base")
    local ownerValue = plot:FindFirstChild("Owner")

    local owner = ownerValue and ownerValue.Value    
    
    warn("The owner is ", owner)

    if plr.Name == owner then

        print("player is the owner")

        if plr.leaderstats.Cash.Value >= 20000 then

            plr.leaderstats.Cash.Value -= 20000

            local plotValue = "Plot"..prox.Parent.Parent.Parent.Value.Value
            PlotManager:GiveLand(plr, plotValue)

            print("Player bought land")

        end

    end

end)

#

when theres more than 1 person in the server, it isnt printing after a1

#

cant figure out why

#

anyone have an idea?

limpid shale
#

I made a cutscene from moonAnimation and i made a camera animation
but i am stil new to scripting so how can i make a script that when event happens it plays the animation with the camera or just i have to make the camera by my own?

agile verge
hot copper
#

that makes it even better

#

lmao

fluid pier
#

i changed it to that cus it wasnt working to try to fix it, before it was

local owner = prox.Parent.Parent.Parent.Parent.Owner.Value

and it still didnt work

#

it works when im in studio

#

but when i try it in game

#

it doesnt work

fluid pier
#

js a plot system

fluid pier
#

in their plot

#

right

#

forgot it got deprecated

#

no but theres 0 errors

#

and it works in studio test

#

just doesnt work in game

agile verge
fluid pier
agile verge
fluid pier
#

ik

#

i js use it all the time cus it works

#

and it looks cleaner

#

yh

#

right

#

lemme try it

agile verge
fluid pier
#

still didnt work

agile verge
#

@fluid pier

#

whats the issue

primal python
#

Best to remove wait before prompt too

primal python
#

Show how it looks in explorer

fluid pier
primal python
# fluid pier

yeah it can error because of "Value" possibly, id suggest here to remove value instance and SetAttribute Plot1Barrier with Owner

primal python
#

And such way you will save time not depending on Value inside

#

Plus I would generally put script not inside prompt

#

But inside model itself

#

But yeah its unecessary I mean

#

Just use attributes instead of this way you did

agile verge
primal python
#

Like you can fix script if instead trying to reference in find first childs, define them before and use attributes

#

Because if it works in studio but not in game then its loading issue

#

Plus for clarity you can test with 2 players local server

agile verge
agile verge
primal python
#

it seems like loading longer

agile verge
#

could be

#

who knows

#

does it not even warn after a1?

#

he aint even replying

primal python
#

he said a1 warns

#

But yeah anyways this is very old way to code on roblox

agile verge
#

I ususally code this way

#

whats the new way

hasty shore
#

yall whats better, bridgenet or bytenet

primal python
# agile verge really?

I mean look he find first child everything and also wait before loading prompt using deprecated wait

#

Plus he find first child things inside prompt as if there were server sided exploits

hasty shore
#

simon

#

r u expert pro

primal python
agile verge
primal python
#

I dont like both

agile verge
#

😔

hasty shore
primal python
#

Like both are 5 years old

hasty shore
#

oh just a preference thing

#

i mean but i was askin which was better

fluid pier
#

fixed it!

celest whale
#

Hello guys, is it possible to get chat history (messages) through Roblox API?

#

nah i don't need to save them though

broken grove
celest whale
warm flicker
#

does anyone want to join my dev group :D

limpid shale
#

I made a cutscene from moonAnimation and i made a camera animation
but i am stil new to scripting so how can i make a script that when event happens it plays the animation with the camera or just i have to make the camera by my own?

hasty shore
#

i am working on a triple a game

#

ah okay

agile verge
celest whale
#

you're wrong dude, you likely don't even know for what i need it, maybe even I'm just curious

#

who the hell even said that i'm going to save it

#

i mean it's good that you can, like, guess, but these guesses are completely false you know

#

alright but who would ask it in there if I was asking it for something illegal

#

yeah I know dude, i'm not likely crazy to save it somewhere

#

anyways thanks for the warning, but no i'm not using it for saving/leaking

#

because i'm not sure if there's allowed to ask"how could i do this"

limpid shale
celest whale
#

alright, nobody is stopping you from having those guesses but im NOT doing that

#

I am sure, i know better for what i am using that

celest whale
shy cipher
#

I'm not stopping you from doing it

celest whale
#

alright

tardy mason
thick kelp
#

Is there anyway to make Npcs follow players without using a heartbeat? I feel as though a lot of heartbeat functions on the server is very performance heavy, i cant use movedirection to see when the player is moving since if they just move in one direction the move direction doesnt change, it wont update

vernal peak
#

guys, for vfx this what im thinking: I have the server create the hitbox and name it the weapon name and the skill number. then I have clients listen to part.added in workspace and then put the hitbox name into a dictionary which finds that skills vfx and then the clients clone it onto the part (inside an attachment in the middle or sum shit)

#

good or bad?

sullen fox
#

how many loc do you guys think a game like frontline took

agile verge
broken grove
#

Albeit even then it's questionable

limpid shale
knotty raft
#

what do you have to do to get image perms

modern mulch
#

how do i check the server side output log on team test?

rough cloud
#

hey guys

winter belfry
#

all my scripters, have yall ever made robux from scripting?

weak nest
#

obviously people have

winter belfry
#

ik

modern mulch
#

how do i make this table readable

#

im doing this in team test

winter belfry
#

uhhh

#

brother wth

vernal peak
#

everytime i go to other games

modern mulch
#

exactly bruh

vernal peak
#

they always got a table like that

winter belfry
#

lol so real

modern mulch
#

it keeps happening in the dev console

#

im trying to get the table for player data but it keeps giving me that string

#

i cant prog without it

#

someone help please 😭

vernal peak
brazen sphinx
#

can only be read in studio output

modern mulch
#

is there a way to see the server side output on team test?

brazen sphinx
#

else u gotta convert everything to a string n print the string

#

do trickery and turn everything to strings then format it in a way that emulates tables

#

p much what studio output does on the backend iirc

modern mulch
#

damn

#

thats gonna suck yo

signal wraith
#

would anyone be up to teach me im learning to code and im still a beginner but im not sure what to learn first

static coral
#

you need to loop through and print

signal wraith
#

cuz i dont know what to learn when

#

like what builds on what

proven condor
#

you can watch brawldevs entire series

#

its really good

signal wraith
proven condor
#

yeah

#

its really good imo

#

for me it took 3 months to be come good at scripting

devout blaze
#

hey

#

hey

proven condor
#

hey

plush forge
#

my problem with bytenet is it has literally no error handling

warm flicker
#

is any scripter willing to join a dev group :D

steel drum
#

guys has any1 played tongue battles game on roblox?
how does their tongue tool exactly work, any1 got any idea?

shy cipher
warm flicker
#

but you can say so..

shy cipher
#

I mean I would be interested if y'all were actually coordinated and had a sort of funding for any hypothetical games

warm flicker
#

30+ pre members

#

for our project

shy cipher
#

and that is?

warm flicker
#

also we are like 40% done

#

but our current scripter is sick/has exams so progress been slow

#

and our other scripter is more of a client scripter

shy cipher
#

what kind of scripting do you guys need

proven condor
#

dawg

#

30 members

#

thats for working 30 members

warm flicker
warm flicker
proven condor
#

this is for one game?

#

bro shoot me a dm if you ever need

shy cipher
#

@warm flicker discord limited my account access for some reason after I sent you a message 💔

#

can't talk in dms now

warm flicker
#

bru

#

do u have a alt

shy cipher
#

I'll try something hold on

#

this might be absolute genius

warm flicker
#

🤔

shy cipher
#

damn it's patched ❤️‍🔥

warm flicker
#

no alt?

shy cipher
#

eh it's probably because I use proton VPN and it turns on automatically in the background as long as I have wifi connected

#

discord's been shady recently

warm flicker
shy cipher
#

pfffffft

#

papi discord's not credible after these recent allegations

tardy mason
shy cipher
#

imagine storing someone's suspicion rating from how much they look like a politician

#

why is that even a thing

shy cipher
#

do I look like a bot to you

warm flicker
#

buddy

#

i believe you 😭

shy cipher
#

I guess I'll have to make an alt

#

give me a hot minute 🔥

shy cipher
devout blaze
shy cipher
#

I have an old email from tutamail so I'll try to recover that account

#

it's fly as hell so don't mind

#

@warm flicker sent a request on my alt

twilit steeple
shy cipher
# twilit steeple

wouldn't this remove any advantage of a switch statement if there's so many function calls

#

would be more practical to roll with a generic if

twilit steeple
#

idk

prisma mason
mint wedge
#

Literally no point in this

shy cipher
#

@warm flicker omagah

#

not giving them my info

warm flicker
shy cipher
#

I'll send an appeal like a chud

devout blaze
#

Ney

vernal peak
#

any way I can force a client script to fire a event?

#

i want npc to m1 but it cant click

shy cipher
vernal peak
#

should i do a task.delay

#

and js do it infintly?

shy cipher
#

fire a remote, server authorises, if authorised client plays the animation, server handles the damage and hitbox

#

don't run animations on the server

devout blaze
#

Yes

shy cipher
#

see you

warm flicker
#

bye

devout blaze
#

Hey

vernal peak
#

yo even tho i had (Damage: number), my script still gave damage to my class even though Damage was a instance
shouldnt it return if Damage was not a number?

frozen mango
vernal peak
#

what the fuck is the point of : if it dont even return end when the type check came false

dusky relic
#

or are you talking about, object:Method()

vernal peak
dusky relic
hasty cobalt
vernal peak
hasty cobalt
dusky relic
#

@hasty cobalt Don't put your age in your bio, btw

hasty cobalt
#

why

dusky relic
#

People are weirdos + age racism

frozen mango
# fluid pier ```lua local repStor = game:GetService("ReplicatedStorage") local events = repS...
export type PlotManagerType = {
    GiveLand: (self: PlotManagerType, plr: Player, plotName: string) -> ()
}
export type Services = {
    repStor: ReplicatedStorage,
    events: Folder,
    land: Folder,
    PurchaseLandEvent: RemoteEvent,
    ServerStorage: ServerStorage,
    handlers: ModuleScript,
    PlotManager: PlotManagerType,
    prox: ProximityPrompt
}
local function tselect<T, K>(tbl: T, ...: K): any
    local results = {}
    for _, key in ipairs({...} :: {any}) do
        table.insert(results, (tbl :: any)[key])
    end
    return table.unpack(results)
end
local repStor = game:GetService("ReplicatedStorage")
local serverStorage = game:GetService("ServerStorage")
local events = repStor:FindFirstChild("Events") :: Folder
local land = events:FindFirstChild("Land") :: Folder
local purchaseLandEvent = land:FindFirstChild("PurchaseLandEvent") :: RemoteEvent
local handlers = "@game/ServerStorage/Handlers/Plots/PlotManager" :: ModuleScript
local PlotManager = require(handlers) :: PlotManagerType
local Services: Services = {
    repStor = repStor,
    events = events,
    land = land,
    PurchaseLandEvent = purchaseLandEvent,
    ServerStorage = serverStorage,
    handlers = handlers,
    PlotManager = PlotManager,
    prox = script.Parent :: ProximityPrompt
}

task.wait(math.pi)```
#
local prox:ProximityPrompt, plotManager:PlotManagerType= tselect(Services, "prox", "PlotManager") 

prox.Triggered:Connect(function(plr: Player)

    local plot = prox:FindFirstAncestor("Base")
    if not plot then
        return
    end

    local ownerValue = plot:FindFirstChild("Owner")
    if not ownerValue then
        return
    end

    local owner = (ownerValue :: StringValue).Value

    if plr.Name == owner then

        local leaderstats = plr:FindFirstChild("leaderstats")
        if not leaderstats then
            return
        end

        local cash = leaderstats:FindFirstChild("Cash") :: IntValue?
        if not cash then
            return
        end

        if cash.Value >= 20000 then

            cash.Value -= 20000

            local plotValue = "Plot" .. tostring((prox.Parent :: Instance).Parent.Parent.Value.Value)

            plotManager:GiveLand(plr, plotValue)

        end
    end
end)```
#

code wisely goat.

winter belfry
#

what does UserInputServices do?

#

.

round vector
#

nba 2k

vernal peak
#

u see how everything slow ash right?
but the ping is at 50
why it like that

#

r they doing client prediction vfx or is it the server that plays it?
cuz everything feel so delayed even tho ping at 50
or is it the animations have too much endlag?
from what im seeing i think the animation endlag is too high and chaining combos feels weird
or it not fading or sum shit

agile shore
#

Why doesn't my code work?

local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(100, 100, 100)

#

I lwk tried everything alr

winter belfry
#

mmmmm

#

looks correct bro.

agile shore
#

exactly my point

#

you know what happens when I run it?

#

Nothing, no errors, no outputs, NOTHING

#

Its local, in starterplayerscripts

#

and I dont see a reason why it isn't working

winter belfry
#

lol

#

how long have u been learning scripting?

agile shore
#

2 weeks?

#

But I already know very much

#

and am working on 2 big projects you could say

#

I gotta say tho, I quitted like a few months ago

#

when I only did basics

#

but I still remember all of them

#

so I just learned about other stuff and restarted

winter belfry
#

yeah same

vernal peak
#

thats what debugging is

#

i would print camera

#

and see if its nil

agile shore
#

yeah thats why I did

vernal peak
#

or sum shit

agile shore
#

exactly THAT and it printed "cam changed"

agile shore
#

I dont have image perms

#

but it prints "cam changed"

#

I put it at the end

#

of the script

empty crystal
#

i made a basic gun OOP system and idk what i should learn in coding now can anyone tell me some suggestions on what to learn? would be much appreciated

agile shore
#

Then you will notice you dont know how to make something

#

then you will learn that

#

and it is way more fun that way

empty crystal
agile shore
#

and you actually remember shit

agile shore
empty crystal
#

should i like search up a tutorial on how to do set thing i want and if the tutorial uses things idk then i learn them?

agile shore
#

watch a tutorial on LinearVelocity for it

#

then you should be able to make it

empty crystal
empty crystal
hasty cobalt
#

actually not sure if cframe can even do 100,100,100 i never actually tried that lol

agile shore
hasty cobalt
#

pretty sure you always had to send over a position, no?

#

oh hm

agile shore
#

I have seen like 3 tutorials on it