#code-help

350 messages · Page 1 of 1 (latest)

blazing moon
#

yea but not everyone wants to do that

fluid sigil
#

evil mind virus

blazing moon
#

true

#

you can compile luau files to roblox binaries

#

aka building roblox files

jaunty flame
#

what do i do when making a combat system and when multiple people punch at once only one hitbox comes out

deft totem
#

idk why he doesnt jsut copy them and do it himself if that's what he's after 💀

blazing moon
#

sure that works

fluid sigil
#

real reason is cuz the people who make libs that get put on wally or pesde dont rlly care to

blazing moon
#

n wally doesnt do it for them

#

wally should do it for them

deft totem
#

i mean

#

can't you just make a cli tool to do it to wally installs

fluid sigil
#

you mean like

deft totem
#

wally registry is public

fluid sigil
#

wally has a download button that gives you a ready to use rbmx

wet owl
#

you can make the hits clash

#

you can make the first hit interrupt the other character

blazing moon
fluid sigil
#

wally is like

wet owl
#

you can make both hits hit

jaunty flame
fluid sigil
#

a barely maintained project

wet owl
jaunty flame
wet owl
#

oh

mellow hill
#

did anyone else connect their microphone to chat gpt so when you say "make this work" it sends the code to chat gpt and chat gpt fixes it

wet owl
#

ok so ig you did implement an interruption system idk?

#

it doesnt really make sense

jaunty flame
#

i used remote events if that changes anything

#

i think its something wrong with the fireserver thing

#

and it only working for one person

fluid sigil
blazing moon
#

lazy

hybrid rover
#

My keyframes for animating rigs arent showing up in roblox default animation edtior does anyone know why

blazing moon
#

im gonna make my own thing n ill do it then

fluid sigil
#

yew dew that

#

it better be good

blazing moon
#

not for roblox though

fluid sigil
#

for what

blazing moon
#

our engine

fluid sigil
#

who is our

blazing moon
#

me n some friends

#

we making a game engine

fluid sigil
#

awesom

crisp spoke
#

make el mujer chico simulator

fluid sigil
#

whats the scripting lang gonna be

#

luau

#

permaybe?

blazing moon
#

not sure yet

raw ermine
#

thanks! looks like it would help ill probably try it later. even if it works i'll probably end up not using them out of spite, though

#

should clarify spite out of them not adding prebuilt rbx files not you

grave belfry
#

who needs help with their code

novel drum
still heart
#

close them

novel drum
#

stop

still heart
gilded halo
#

Why write code on roblox studio ☠️

still heart
gilded halo
#

it's counter intutive

still heart
#

you think your cool cuz you use a different app to write your roblox code

gilded halo
#

🐒

still heart
deft totem
#

claude might be the goat he just wrote 900 lines of dog shit

gilded halo
#

better autocomplete

#

looks better

deft totem
still heart
#

it depends on your project

timber abyss
#

hey dm me

gilded halo
#

clunky af

deft totem
still heart
#

i just dont like people who think you need to use an IDE to make a roblox game

gilded halo
still heart
#

its better for larger projects, tho for small ones you might as well set it up in studio

still heart
#

"Why write code on roblox studio ☠️"

deft totem
gilded halo
deft totem
#

why are u talking to him like he's a programmer

#

he's clearly larping

#

2 acceptable code editors.

#

emacs & nano

#

maybe ratty too if ur a goat

still heart
#

nobody cares about what editor you write your code in

devout fractal
#

whats a reliable way of checking if a player is in the air? i tried humanoid state type but it worked 50/50

gilded halo
deft totem
still heart
#

they care if the game is actually good, and runs es expected

deft totem
#

cursor or any 'ai first' editor and u know to just ignore them

gilded halo
umbral sparrow
#

is it alright if i abuse while not?

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DataManager = require(game.ServerScriptService.Datainit.DataManager)

local GetInventoryFunction = ReplicatedStorage.Functions.GetInventory

GetInventoryFunction.OnServerInvoke = function(player: Player)

while not DataManager.Profiles[player] do
    task.wait()
end

local InventoryData = DataManager.Profiles[player].Data.Inventory

print(InventoryData)

return InventoryData

end

long otter
#

Hey all i currently have got a dance game released but i noticed our animations over time are chunking 2-3gb into the animation memory cache and no matter what i do i can't clear it or keep it clear so it doesn't just pile up

dose anyone have some insite or ways we can keep it from stop piling up without havving to reset the chars animatior every time

deft totem
#

you should opt to use a signal to convey when a profile is added

#

or manage the thread.

#

or add a time out

umbral sparrow
#

alright thanks!

gilded halo
deft totem
deft totem
#

besides, it's not like a memory leak like that would actually impact anything

frigid cloud
#

why is my gpt tweaking

deft totem
#

it's a super niche event that causes it

#

and it's just keeping a thread active

long otter
devout fractal
frigid cloud
deft totem
velvet sparrow
#

@jaunty flame dm me!

devout fractal
umbral sparrow
# gilded halo memory leak?

its where a game exploads with memory like 5-6 gig s and eventually makes the game unplayable cough cough deepwoken

frigid cloud
devout fractal
#

thanks

deft totem
#

idk its been a while since ive done shit on this assform

sharp surge
frigid cloud
devout fractal
devout fractal
devout fractal
#

ill try that too thank u

spice flare
gilded halo
deft totem
gilded halo
#

raycast and check that the upward velocity is not zero

#

or box cast

deft totem
#

i never thought of that

#

or if it's > a certain value but ig that only works if players aren't holding x or if the game only uses normal jumps with no flight

#

but that'd also give false positives when you're walking down a slope

#

ig it isn't that clever nvm

flint jolt
#

HOW DO I FIX THIS "[Rebirth] Using saved auth token... Roblox ID: 7922483799" Ai no help

deft totem
#

that's what i said :d

gilded halo
#

I said and

#

raycast AND check that the upward velocity is not zero

#

raycast gives false positives

deft totem
gilded halo
#

you can be on an edge

deft totem
#

mayb if u misconfigure

gilded halo
#

box cast works

deft totem
#

they r poor on perf

#

honestly just do 1 center raycast and then one at each leg's midpoint down

gilded halo
#

even with velocity check and raycast a slope on an edge would be a false positive

#

so boxcast is the only solution

#

or AABB

deft totem
#

aabb 😭 he so larp

#

you can also just use floor material btw

gilded halo
#

just boxcast

deft totem
#

floormaterial does it better

#

cuz its literally what roblox uses

burnt shale
#

floormaterial lwk sucks ass

#

from what i know

umbral sparrow
devout fractal
#
-- GAMEVARS
local Acceleration = 10
local Friction = 5
local WASD = {"W", "A", "S", "D"}
local IsMoving = false
local MaxSpeed = 20
-- CREATE ACCELERATION / DEACCELERATION

RunService.Stepped:Connect(function(DT)
    local PlayerGrounded = game.Workspace:Raycast(rootPart.Position, -rootPart.CFrame.UpVector * 3.2 , raycastParams)
    
    if PlayerGrounded then
        print("working")
        local PlayerDirection = humanoid.MoveDirection
        local Velocity = PlayerDirection * Acceleration * DT
        rootPart.AssemblyLinearVelocity = Velocity
            
    end    
    
end)``` how would i clamp velocity if its a vector 3 💔
solar eagle
#

and uh do checks before using the unit vector if the magnitude is ~0, cus then you get NaN vectors and everything blows up

steep sphinx
#

i went on a 17 hour date with my gf

velvet sparrow
#

@solar eagle check your dms

solar eagle
#

@velvet sparrow is that roblox catan in ur pfp

velvet sparrow
solar eagle
#

is it roblox catan tho

velvet sparrow
#

its an rts game, I guess its somewhat similar to catan

devout fractal
#

its fine ill just try an if statement or something

solar eagle
#

i have a math module that does edge case shit like this, and sometimes im too lazy to go pull it from a package or copy / paste between projects and i always end up rewriting the clampMag function

deft totem
#

dude how do i manage to write luau types so convoluted that claude can't parse this shit

#

he does NOT understand what im doing at all

gilded halo
#

show

gloomy kindle
#

how do i disable that white annoying thing when am writing codes?

gilded halo
#

press ins

#

on your keyboard

gloomy kindle
#

thank you

deft totem
#

using generics to extend behavior

deft totem
#

basically just advanced composition shit

gilded halo
#

You need less Abstractions

solar eagle
#

if you do anything fancier than C style structs in typed luau its eventually gonna be unworkable

gilded halo
#

Exactly

#

its slow

deft totem
#

that's what it is lol

#
export type Entity<Extension = {}> = Extension & {
    Update: (self: Entity<Extension>, dt: number) -> ()?,
    CleanUp: (self: Entity<Extension>) -> ()?,
    Owner: Player,    
    Coordinate: CFrame,
    Extensions: {string},
    Id: string,    
    Intent: {[string]: string}
}
#
export type BulletExtension = ModelExtension & {
    OriginEntity: Entity<CharacterExtension>,
    FiredAt: number,
    
    Origin: Vector3,
    Velocity: Vector3
}

export type CharacterExtension = {
    Character: Model,
}
ember musk
#

So much ceremony
I almost thought this was typescript while I'm on mobile

solar eagle
#

i see generics right there

pine hedge
solar eagle
#

did they add generic type restrictions?

deft totem
#

it enforces that the exntension be a table

#

i feel like im almost 2x as fast

solar eagle
#

ok lk thats kinda hot

deft totem
#

as claude is at implimenting stuff into my own codebase

#

like

#

claude can do the basic outline for features

#

but i still gotta go in and fix a bunch of bullshit

#

it'd almost be faster if i just wrote it myself

#

like it burnt through 7% of my usage thinking for 10 minutes

#

and then didn't even do the problem correctly.

#

(the problem was write a fuzzy auto complete)

solar eagle
#

they're making claude more like a project manager

deft totem
bleak egret
#

is it effective if I lets say I wanna build something and dont know how to build it, i could ask ai and it could direct me on what videos/sources/etc i would need to read or stuff i would need to know and how I'd structure the script, or would it just slow me down and be unneffective?

solar eagle
#

kinda cus all the search engines are getting enshittified more and more

bleak egret
#

ah

#

okay, thx

bleak egret
strange temple
deft totem
cyan crypt
finite chasm
#

f

cyan crypt
velvet sparrow
#

@cyan crypt are you taking comms rn

cyan crypt
#

not all beginners are but some are

cyan crypt
velvet sparrow
#

huge difference fr

strange temple
#

Avoid AI if you're a newbie

cyan crypt
frigid cloud
cyan crypt
strange temple
#

Strictly avoid AI if you're a newbie because it will just highly demotivate you to learn scripting

cyan crypt
#

its very easy to start vibecoding trash and getting nowhere

strange temple
#

You need basic understanding of certain terminologies and the functionality of it which can't be all fetched by using AI

bleak egret
#

how do I unlock the skill to make my own scripts?

strange temple
bleak egret
#

like complicated ones

strange temple
bleak egret
cyan crypt
# bleak egret how do I unlock the skill to make my own scripts?

it comes out of making modifications. Expect to google things 50-60 times before you start remembering how to write them from scratch.

Coding involves a lot of copy and paste, a lot of google. its normal to need to look up how to write something every time.

strange temple
#

I was heavily relying on AI for creating a viewmodel which shows fake arms in my screen because I was lazy to learn it and I was in a big remorse

#

At the end, I had to watch several videos, ask tons of people and then make my own working viewmodel

cyan crypt
strange temple
deft totem
strange temple
#

Don't use AI to make fresh projects from scratch

deft totem
#

like the 100 dollars in tokens

#

you throw at AI to solve a problem

cyan crypt
deft totem
#

you can get 10x better work from some indian

bleak egret
#

im talking about using ai to learn or simplify concepts

frigid cloud
cyan crypt
frigid cloud
#

my gpt today is so peak

deft totem
#

it's mental

cyan crypt
deft totem
#

llms are such bad teachers

cyan crypt
#

like if you want a "guide for tasks to do to learn lua" its probably beter to just make games

deft totem
#

because they're designed to make u think you're smart

cyan crypt
#

but if you wanna know how most people say. Fetch the character. its REALLY good for that.

cyan crypt
cyan crypt
# bleak egret wdym

i would say its not too useful to ask it to
-Make you a lesson plan
-Choose your next project

But extremely useful for
-Seeing common methods of doing things
-Explaining concepts/topics
-Getting keywords to google

#

if youre wondering what to do next, just keep making games. games provide you with a huge variety of tasks and are probably just overall the best way to learn

deft totem
#

never trust a program that can't count the amount of rs in strawberry to teach you integration

cyan crypt
deft totem
cyan crypt
#

wtf how did u know the guy

#

were u there?

deft totem
#

no

cyan crypt
#

howd you know it was him 😭

frigid cloud
#

that guy has been larping for a while

deft totem
#

he was the most likely person i knew of to do something like that

#

there's only like a few people here who regularly talk down to people

#

and that guy's the one who doesn't know how to do anything

solar eagle
#

only a few

deft totem
#

everyone else is mostly chill

velvet sparrow
deft totem
#

ive done enough irrepairable harm to this codebase for a night.

frigid cloud
tired trout
kind terrace
frigid cloud
#

nah it's not so presentable rn

velvet sparrow
gilded halo
kind terrace
#

lmao i was just lookin at that

#

it gets counter productive if intellisense cant just automatically pick up on ur types

#

ask knit why it had to reinvent the wheel

abstract wind
frigid cloud
#

claude's code is bloated

half tree
#

how to convert my game to knit or aero?

kind terrace
#

u dont its obselete now

half tree
kind terrace
#

multiple places?

half tree
#

yea as in my basketball game itll have park and mycourt etc and dont want to paste code all around

kind terrace
#

just keep the same pattern, but without knit

half tree
#

i have a main menu and things of that nature. should i just sync all of them together and require whats needed?

lofty scaffold
#

look at this game

kind terrace
#

if you still want those "knit features" like partioned and timed code executions just make urself or use a custom bootstrapper

lofty scaffold
#

dis game does architecture well

half tree
#

i just heard using Knit or Aero would be good for that i really dont know i never tried 🤷‍♀️

lofty scaffold
#

they are unc

#

u do not need them'

half tree
#

ok thanks

#

wait so how should i do it tho?

#

if you dont mind helping

kind terrace
#

keep low levels code (ex. detecting player region, ui transformation, data transformation) portioned off in ur game

lofty scaffold
#

architecture is probably the hardest part of programming and requires the most practice to build an effective intuition

#

or problem solving process

#

and its arguably the most important part

#

so u will learn more by doing

kind terrace
#

once u have low levels API you can start building into high level code, that uses these API on the surface

#

so ideally on the surface level code, it should be simple and easy to understand

half tree
half tree
#

thanks

plain prawn
#

looking for coders asap for a game jam

inner steeple
plain prawn
#

dm

foggy leaf
#

i know script.parent would access key but how do i access value like the child

frigid cloud
#

script.value

foggy leaf
#

when i do that it says theres an error

frigid cloud
#

idk if .value is a reserved word or not

#

btw to get the value of the instance it needs to be
script.instancename.Value

foggy leaf
#

im actually so stupid

#

thank you

cyan crypt
#

also who knows maybe i know integration but just not the name u never know

high lance
#

compared to wikipedia

kind terrace
#

ok u fixed it sry

foggy leaf
#

Yeah

#

Im just still new to scripting and dont really know what I'm doing lol

velvet sparrow
#

@paper anchor are you taking comms rn?

paper anchor
#

Why am I the person you ping

#

I have not talked in here in like 2 weeks

velvet sparrow
#

I was scrolling through the server

#

stumbled upon ur intelligence

paper anchor
#

depends on what you need and how long

velvet sparrow
#

I am working on an rts game

#

I'd need you long term

#

the project itself is 85% done

paper anchor
#

no thank you, not interested in long term

velvet sparrow
#

ouch

#

appreciate you responding still!

#

thanks

paper anchor
#

no problem

robust mango
#

cant forget not

marsh sierra
#

xor

robust mango
marsh sierra
#

ok

narrow leaf
#

can anyone solve this problem of mine? I was making a door system on Roblox Studio; for that, I used a hinge constraint and tween service. Before it, I used a weld and tween service for the door, and it also didn't work. Can you guys tell me where i am wrong. local model = script.Parent
local hinge = model.Hinge
local hingeconstraint = hinge.HingeConstraint
local base = model.base
local prompt = base.ProximityPrompt

local TweenService = game:GetService("TweenService")

local IsOpen = false

local tweenInfo = TweenInfo.new(1)

local tweenOpenGoal = {
TargetAngle = 90
}

local tweenCloseGoal = {
TargetAngle = 0
}

local openTween = TweenService:Create(
hingeconstraint,
tweenInfo,
tweenOpenGoal
)

local closeTween = TweenService:Create(
hingeconstraint,
tweenInfo,
tweenCloseGoal
)

prompt.Triggered:Connect(function()
if not IsOpen then
openTween:Play()
IsOpen = true
else
closeTween:Play()
IsOpen = false
end
end)

violet canopy
#

Who remembers the infinity stones

narrow leaf
#

i put that

#

hinge constraint to servo

#

changed the angular speed

robust mango
narrow leaf
#

well the hinge is anchored

#

but the door is not

#

Also, before doing this, I tried to use hinge constraint and CFrame with the TweenService to make the door. It worked, but not in the way I expected.

#

the hinge constraint kept pulling the door towards him

random dock
narrow leaf
#

can anyone solve my doubt

neon flume
#

can we not play animations on server anymore?

inland ore
neon flume
#

why

inland ore
#

Ruins UX

neon flume
#

ok...

#

but if we do it on the client side wil other ppl be able to look at the anims?

inland ore
neon flume
#

but im making a bg game

#

i cant have all the clients havin to do the same atck anim

kind terrace
#

what?

#

then send in diff attack anim

silk vortex
#

please someone explain

random heron
random heron
#

Son 😭

#

Should you be making a bg game if you don’t understand simple concepts liek this

neon flume
#

idk what else to do

#

oh wi\ait

#

does fireallclients make it so that every client can see the anim

random heron
#

Yeah that’s what you need to do so you can replicate your animation to other people on their clients

neon flume
#

oh alr

#

thanks

silk vortex
tall gust
#

yo

thick pilot
silk vortex
#

its just me and my friends

thick pilot
#

looks nice

rocky timber
#

feedback?

unique quail
vapid kernel
#

huh oh

rocky timber
#

man how u explain ts

#

😭

oak dawn
#

I was inserting some animations into my module script to run them into another function but then I get this error I check the animation IDs and they are fine, what could be the cause of this?

past siren
oak dawn
neon flume
#
events.PlayAnim.OnClientEvent:Connect(function(comboIndex)
    local char = player.Character
    local hum = char:FindFirstChild("Humanoid")

    local anim = punchAnimCycle:FindFirstChild(tostring(comboIndex))
    if not anim then 
        print("Not anim")
        return 
    end

    local loaded = hum.Animator:LoadAnimation(anim)
    print("Length:", loaded.Length)
    loaded:Play()
end)

why does this not wwork. (Combo index is int value with the punch sequence)

past siren
#

kinda looks goofy tho

#

but its alright I did this in like 10 min

#

just for port

oak dawn
past siren
#

ty

gritty gazelle
#

Hi

oak dawn
#

how do you exactly use it

neon flume
oak dawn
#

is it an instance or do you use the target's hrp

past siren
#

Thats what I do:
local dir = attackerRoot.CFrame.LookVector
velocity.Velocity = dir * 55 + Vector3.new(0, 25, 0)

#

So basically LookVector * Force and dir * 55

neon flume
#

yo monke

#

are u handling the anims on the server or client

past siren
#

the anims

neon flume
past siren
#

on client

#

and then I use a remote event to project it to server

neon flume
past siren
#

it eliminates lag

oak dawn
past siren
neon flume
neon flume
past siren
#

rbxassetid://123456 make sure its like that

#

and inside strings

oak dawn
#

oh shit i didnt put it like that

#

forgot the rbxassetid

oak dawn
#

el gato

tranquil apex
#

wow no vibe coders and actual helping in code-help?

austere stirrup
#

yoo everything works but my camera isnt offset does anyone know why?

past siren
oak dawn
cunning urchin
past siren
oak dawn
#

also any animators in here?

#

I need a hand with something

past siren
#

what I made in the clips were mine

oak dawn
#

its just conceptual nothing to work in

#

like

#

if I make an animation

past siren
#

ye?

oak dawn
#

and the animation looks stiff because the default animations are overlapping with it

#

what can I do to prevent that

past siren
#

ye

cunning urchin
#

change it to action

oak dawn
echo anvil
#

How to make a working infinite ocean with drowning system and swim system with waves

oak dawn
#

or can I change it on the go

cunning urchin
oak dawn
#

oh

echo anvil
oak dawn
#

so I have to make a new one?

cunning urchin
#

just 2 clicks

past siren
oak dawn
cunning urchin
#

click the three dots and change priority

echo anvil
oak dawn
#

whats the code for it

past siren
oak dawn
#

.AnimationPriority?

cunning urchin
austere stirrup
echo anvil
oak dawn
#

right

#

okay thanks ill check it out 🫂

past siren
cunning urchin
echo anvil
#

i can show u my game if u dont trust

cunning urchin
#

i recommend changing it in the animator and republishing it as an existing asset because it's universal

past siren
#

if U dont know how to do those then you

cunning urchin
#

so if you're running the animation multiple times you dont have to change .AnimationPriority every time

past siren
#

're just not experienced

echo anvil
#

but i did not learn how to make gerstner waves...

past siren
vapid kernel
#

any tips to scripting a gun system for th first timeeeee

honest verge
tranquil apex
vapid kernel
honest verge
#

"experienced"

cunning urchin
cunning urchin
past siren
cunning urchin
#

it somehow works

honest verge
#

you are a strong man, dake

past siren
#

like what abt

honest verge
#

takes a lot of courage to admit something that egregious

cunning urchin
#

yes sir

#

5 server scripts handling 1 remoteevent

#

❤️‍🩹

past siren
vapid kernel
#

can i have a monke fact

cunning urchin
#

oh yeah and every script does the same thing just written in a different way

past siren
cunning urchin
#

it's literally for dashing

vapid kernel
#

give me a monke fact right now 😡

past siren
vapid kernel
#

liar

oak dawn
cunning urchin
#

i genuinely dont know which one of the 5 scripts actually does the dashing because whenever i delete one the dashing just does not work

lyric peak
#

guys, is there a way to do complete game data saving, or do you have to do inventory, leaderstats, gamepasses, seperat;y;

cunning urchin
#

YES I've tried deleting every single one and it all doesnt work

past siren
#

forgot to record sound

oak dawn
cunning urchin
vapid kernel
oak dawn
#

I'd need to learn from you seriously man

past siren
cunning urchin
#

i mean im making a blade ball something something type game

#

except there's

#

no ball.,..,,.

#

yes only blades

#

i think you get it now

#

🤯

austere stirrup
#

uhm the body doesnt move with the camera and i dont get a error, help pls

past siren
#

how does that work

tranquil apex
cunning urchin
#

you

#

throw the blade

tranquil apex
cunning urchin
#

🤯

#

and you dont get the blade back unless the game blesses you with one

cunning urchin
tranquil apex
#

wait how is he getting no errors

cunning urchin
#

findfirstchild returns true or false

#

no error

tranquil apex
#

oh

cunning urchin
#

waitforchild returns a warning

supple tusk
#

find first child returns a boolean, waitforchild yield, which can lead to error

cunning urchin
#

parent.nonexistingchild returns an error when handling it

past siren
cunning urchin
#

it feels so robotic

#

oh wait not the animation

past siren
cunning urchin
#

the jump

past siren
#

cause Its buggy rn

#

haven't gone polishing yet

cunning urchin
#

you magically speed up in the air for some reason

austere stirrup
#

idk what u even meeant by that

austere stirrup
#

it doesnt work

#

can somone help pls

past siren
tranquil apex
honest verge
supple tusk
#

oh

#

but like

toxic frigate
#

how do i do a print?

austere stirrup
supple tusk
#

nvm

past siren
tranquil apex
#

the lowercase h to an uppercase

austere stirrup
#

i changed that

austere stirrup
#

still doent work\

cunning urchin
honest verge
#

i plan to add icons next to the currency labels in the lobby mode

cunning urchin
cunning urchin
cunning urchin
#

THAT SHIT DIDNT EVEN OPEN FOR ME

tranquil apex
honest verge
tranquil apex
#

what’s erroring? lol

heady blaze
honest verge
#

UI previewer

#

lets you simulate your ui with different values

cunning urchin
#

oh my goddddd

#

i didnt even

#

KNOW

heady blaze
honest verge
#

free

cunning urchin
honest verge
#

your ui has to be written in a way to support it though

#

using a reactive ui lib

heady blaze
honest verge
#

vide, fusion, react

#

i use vide

honest verge
cunning urchin
#

bro i installed uilabs and i was super confused and just uninstalled it

heady blaze
honest verge
#

no

#

react-lua

#

roact is old and deprecated

heady blaze
#

oh

cunning urchin
honest verge
heady blaze
#

ty

honest verge
honest verge
tranquil apex
hallow spade
# cunning urchin there's a version of react for lua?
cunning urchin
#

wowzers i was wondering why my ui was so shit

honest verge
#

i dont really like react-lua or react with roblox in general tbh

toxic frigate
#

coding is so bad 😭

honest verge
#

unless youre working in rbxts vide is a better option

heady blaze
honest verge
#

vide

heady blaze
#

alr i'll lookup the docs

past siren
#

someone just asked me to script them a whole steal or split brainrot game praysob

honest verge
#

for how much

past siren
#

10k

honest verge
#

eh

#

i wouldnt

austere stirrup
honest verge
#

insanely low amount

austere stirrup
#

still doesntt work

past siren
#

thats nothing my friend he's an animator he gets like 5k per good anim or more

cunning urchin
past siren
cunning urchin
#

the h should be uppercase

austere stirrup
#

IT WAS UPPERCASE

honest verge
#

i dont do comms below like 200k robux

honest verge
cunning urchin
austere stirrup
#

i keep getting this

#

now

tranquil apex
#

Positon 🤓

supple tusk
honest verge
past siren
tranquil apex
#

☕️

cunning urchin
#

Positon

#

😭😭

austere stirrup
#

?

heady blaze
austere stirrup
#

where

cunning urchin
heady blaze
supple tusk
cunning urchin
#

pls pls pls read over your script for any typos or case mismatches

honest verge
#

😭 😭

past siren
supple tusk
#

just use ai atp

austere stirrup
#

it

#

WORKSSSS

#

i love you al;l

cunning urchin
austere stirrup
#

🙂

#

i use it 90% of the time but sometimes i just dont

cunning urchin
#

i genuinely dont know why you would do that

#

like it there to minimize typos and make typing faster

#

also guys i got a little question

cunning urchin
#

in blade ball there's a problem where if you got high ping and try to parry you'll most likely die anyway because it took too much time for the remote event to reach the server. i tried to fix this in my own game by making the block time window start earlier for high-ping players. that may sound like an unfair advantage for laggier players but that's not the case cuz it only starts earlier, which doesnt make it necessarily longer. and this is completely server side and the client only has a prediction mechanism for where the projectile is going, so if they parry it's completely instant without waiting for server response.

is there a better way than this??

#

holy paragraph

past siren
#

Holy yap sesh

tranquil apex
#

i’m pretty sure deathball has projectile prediction too

#

they limited the ball max speed

barren depot
#

I need help with something... I downloaded a dynamic main menu by develuper and i tweaked some stuff in it including deleting the camreset code since I'm making a chapters option after pressing play instead of straight up resetting the camera and letting you move around.

But after trying to make the option to reset the camera on the start button from one of the chapters im making, i dont know how to make it work. Ive only been coding for a month and im trying to figure out how to fix it so im here asking help and hope maybe i can get answers 🥹

tranquil apex
#

in blade ball, sometimes you just have to pre parry

cunning urchin
#

yea i tried my best not to make this an open hole for exploiters to go through

past siren
frigid cloud
cunning urchin
#

before, the server validates the block first

#

then it can be deflected

frigid cloud
#

🧠

cunning urchin
#

but that becomes unplayable as the player gets laggier

#

so

#

i made the player predict the block

#

then the server validates

#

the server subtracts the player's ping from the block window, as it already started on the client

#

so that way, it started earlier without being longer

#

therefore no unfair advantage

#

now i wonder if exploiters could abuse this

#

that's what im asking

frigid cloud
#

I guess it's possible to make that but you gotta be good at understanding timestamp and networking

honest verge
#

and be a bit more specific

frigid cloud
#

lol bro is literally like me, making main menu as my first script except I didn't download stuff

honest verge
frigid cloud
#

bro why homura cost 67 million

frigid cloud
honest verge
#

idk the atd space is super competitive

#

aa and av have had like 20 page long stat calculation spread sheets with tourney strats

tranquil apex
#

iirc there was a universal desync issue going around for a bit

#

you could also try doing some rollback.. like.. say a client gets hit.. and they parry data finally reached the server and the timestamp shows they triggered it beforehand.. then revive them.. and parry i guess

honest verge
tranquil apex
#

ouu

cunning urchin
#

and kinda confusing

#

i mean if the knife reached them before they parry they'll definitely die

lilac badger
cunning urchin
#

i thought of that

tranquil apex
#

yeah

cunning urchin
#

yea this is just prediction

#

no timestamps involved

#

only ping

honest verge
#

rollback net code is normal among network-reliant games

#

only prediction is fine though

cunning urchin
#

the changes i made is like

#

the client predicts the parried

#

the server verifies

#

if the parry is valid, continue using the client's prediction

#

if not

#

cancel the parry and kill the client

#

that's all

cunning urchin
honest verge
#

or you can look at how 2d fighting games implement them

honest verge
cunning urchin
#

can you like give me a brief explanation of what it does

honest verge
cunning urchin
#

and why it's better than my prediction system

honest verge
#

because it actually effects the server's calculation and validation

stable crescent
#

Scripters can anyone helP me ?>

frigid cloud
#

you will need timestamp, prediction is for the effects, timestamp will be used by the server to check where you actually hit and calculates what you saw

stable crescent
#

I really want help
Do yall know the high performance water made by gpm

honest verge
#

you rollback the server's state to a clamped timestamp and perform the validation based on that time's state

cunning urchin
#

ORRRR

stable crescent
#

Im ffacing problem in that

honest verge
#

it should not make a feasible different or give an advantage to exploiters

stable crescent
#

Guys any1 Listening to me ?>

cunning urchin
frigid cloud
honest verge
#

its normal among AAA online competitive gaming

stable crescent
#

@honest verge @cunning urchin @frigid cloud @tranquil apex @lilac badger ?

#

are yall even listening Can yall Help me ?

honest verge
honest verge
honest verge
cunning urchin
stable crescent
honest verge
cunning urchin
honest verge
#

the client can already have its own prediction based on network

cunning urchin
honest verge
honest verge
cunning urchin
#

how so

#

oh shit right..

honest verge
#

im not saying you should use rollback netcode either fyi, prediction is good enough for your project

stable crescent
honest verge
cunning urchin
#

well that's another problem

#

how the hell am i gonna fix that

tranquil apex
stable crescent
#

Heres the custom water plugin i m using

honest verge
#

its an unavoidable thing with that kinda game

cunning urchin
#

i mean does blade ball have the same problem

honest verge
#

yes

#

very much so

cunning urchin
#

oh my goodness gracious

#

😭😭

stable crescent
cunning urchin
#

make your own water

#

🤯

tranquil apex
#

i don’t want to look in the code 🥲

#

i’m laying in bed

frigid cloud
cunning urchin
#

roblox water is shit

#

make your own water like a sigma

#

i dont think it's that hard

#

i mean

#

just

#

make the character move up constantly

#

and that's it

stable crescent
#

can anyone between u guys help me solve this problem !
?

#

If yall need payment i will pay

#

@cunning urchin @frigid cloud @tranquil apex @honest verge ?

frigid cloud
#

nah im chilling and eating burger

stable crescent
cunning urchin
#

it's not that hard (supposedly)

#

at most it should take like 20 minutes

stable crescent
cunning urchin
#

maybe make your own script

#

shouldn't take 150 lines of code or something

neon flume
#
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")

local events = rs:WaitForChild("Events")

local player = game.Players.LocalPlayer

local isBlocking = false

local ClickAttackDebounces = {}

uis.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.UserInputType == Enum.UserInputType.MouseButton1 and not isBlocking then
        local char = player.Character
        local hum = char:FindFirstChild("Humanoid")

        if char == nil then
            return
        end

        if hum == nil then
            return
        end

        if hum.Health <= 0 then
            return
        end

        if ClickAttackDebounces[player] then
            return
        end

        ClickAttackDebounces[player] = true
        local punchAnimCycle = rs.PunchAnimCycle
        local punchCombo = player.Values.PunchCombo
        local comboIndex = punchCombo.Value

        if punchCombo.Value >= #punchAnimCycle:GetChildren() then
            punchCombo.Value = 1
        else
            punchCombo.Value += 1
        end
        
        local anim = punchAnimCycle[tostring((punchCombo.Value))]    

        local track = hum.Animator:LoadAnimation(anim)
        task.wait()
        track:Play()
        print(track.IsPlaying)

        if ClickAttackDebounces[player] then
            ClickAttackDebounces[player] = nil
        end
    end
    
    if input.KeyCode == Enum.KeyCode.F then
        isBlocking = true
        events.Block:FireServer(true)
    end
end)

uis.InputEnded:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.F then
        isBlocking = false
        events.Block:FireServer(false)
    end
end)
``` why do i not see my anim playing 😭😭
deft totem
#

to be more specific

#

It refactored 3 typescript objects into luau

neon flume
deft totem
#

Or like a round modifier

sacred cedar
deft totem
#

If its an anime waifu game players would buy

amber hawk
#

Hey guys

simple hound
#

@stable crescent what’s the problem

#

I can ty and help

simple hound
amber hawk
#

Guys can anyone help me with my game

stable crescent
stable crescent
simple hound
#

What’s ur problem

simple hound
amber hawk
#
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")

local events = rs:WaitForChild("Events")

local player = game.Players.LocalPlayer

local isBlocking = false

local ClickAttackDebounces = {}

uis.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.UserInputType == Enum.UserInputType.MouseButton1 and not isBlocking then
        local char = player.Character
        local hum = char:FindFirstChild("Humanoid")

        if char == nil then
            return
        end

        if hum == nil then
            return
        end

        if hum.Health <= 0 then
            return
        end

        if ClickAttackDebounces[player] then
            return
        end

        ClickAttackDebounces[player] = true
        local punchAnimCycle = rs.PunchAnimCycle
        local punchCombo = player.Values.PunchCombo
        local comboIndex = punchCombo.Value

        if punchCombo.Value >= #punchAnimCycle:GetChildren() then
            punchCombo.Value = 1
        else
            punchCombo.Value += 1
        end
        
        local anim = punchAnimCycle[tostring((punchCombo.Value))]    

        local track = hum.Animator:LoadAnimation(anim)
        task.wait()
        track:Play()
        print(track.IsPlaying)

        if ClickAttackDebounces[player] then
            ClickAttackDebounces[player] = nil
        end
    end
    
    if input.KeyCode == Enum.KeyCode.F then
        isBlocking = true
        events.Block:FireServer(true)
    end
end)

uis.InputEnded:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.F then
        isBlocking = false
        events.Block:FireServer(false)
    end
end)
``` why do i not see my anim playing 😭😭
deft totem
#

What are the requirements for scripter roles?

frigid cloud
deep glacier
#

@amber hawk

amber hawk
#

Yea

neon flume
neon flume
amber hawk
#

can anyone here help build and script slaps for my game you will be paid (Dm for more information)

heady blaze
sacred cedar
#

might be a thing where you forgot to set the ids

cunning urchin
#

oh shit you didnt even load it

austere stirrup
#

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local IS = game:GetService("TweenService")
local RS = game:GetService("RunService")
local UIS = game:GetService("UserInputService")

local TI = TweenInfo.new(0.3, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut)

local renderConnection = nil
local shiftLockEnabled = false

local activeKeys = {

W = false,
A = false,
S = false,
D = false 

}

UIS.MouseIcon = "rbxassetid://129875024"

local FrontWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.FrontWalkAnim)
local LeftWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.LeftWalkAnim)
local BackWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.BackWalkAnim)
local RightWalkAnimation = hum:LoadAnimation(game.ReplicatedStorage.Animations.RightWalkAnim)

end

if input.KeyCode == Enum.KeyCode.W then
    FrontWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.A then
    LeftWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.S then
    BackWalkAnimation:Play()
elseif input.KeyCode == Enum.KeyCode.D then
    RightWalkAnimation:Play()
end    

end) why does shi not work?

sacred cedar
austere stirrup
#

i did

sacred cedar
#

not directly the humanoid

#

Lemme.

austere stirrup
#

i mean all animations work

sacred cedar
#

Lemme c

heady blaze
austere stirrup
#

i mean

austere stirrup
#

it used to work

sacred cedar
#

for uis

austere stirrup
#

idk

#

ask the tutorial guy

#

🙂

sacred cedar
#

is this the full code?

austere stirrup
#

njah

#

it was around 3k characters

#

but yh 2kl is max

sacred cedar
austere stirrup
#

i can send ss

#

btw this is al;so a shiftlock code

sacred cedar
#

okay what do you see not working about it

#

you previously said the animations work

austere stirrup
#

i mean the animations works if i dont use this script

#

but when i do use the script

#

my playyer looks like a junkie

#

if u want we can get in a private chat and i'll screenshare

sacred cedar
austere stirrup
#

dawh what is he wsatching

sacred cedar
#

based on the code alone I can see that

#

lmao

#

in ur case if you press A and then press W it doesn't really stop the other animation

#

rather it plays both at the same time no?

cunning urchin
austere stirrup
#

l;emme check

cunning urchin
austere stirrup
#

i think i need to add task.wait somewhere

#

sincewhen the animations plays once it wont stop

#

look at the ss

mortal eagle
#

if you want to replace the default walking animations and add strafing anim why not use the animate script?

austere stirrup
#

im standing still yet the animations is on

sacred cedar
#

the code is telling you:
when you press W play the animation

austere stirrup
#

i do

sacred cedar
#

where

austere stirrup
#

i use the animate script it self too

#

added my custom anim,s

#

but the script i send

#

makes it unplayable

#

uhm yh i think i found the reasn

simple hound
#

Guys is 2.7k robux decent for getting a scripter

austere stirrup
#

i need to add active keys

neon flume
frigid cloud
honest verge
tawny estuary
#

can someone help me with loading different lightnings without delay

tawny estuary
deft totem
native crane
tawny estuary
heady blaze
#

what's the best data replication module

inner steeple
native crane
#

idk where it was made

#

but i believe its called the final hour or sum like that

#

no its called der untergang

barren depot
#

I need help with something... I downloaded a dynamic main menu by develuper and i tweaked some stuff in it including deleting the camreset code since I'm making a chapters option after pressing play instead of straight up resetting the camera and letting you move around.

But after trying to make the option to reset the camera on the start button from one of the chapters im making, i dont know how to make it work. Ive only been coding for a month and im trying to figure out how to fix it so im here asking help and hope maybe i can get answers 🥹

I have the code and maybe more details if needed, dms is open for help 🥹🥹

native crane
oak dawn
#

guys is there a way to reference the player inside the players service using the player's model?
i tried doing it this way but i feel like it's wrong or there could be another way

hazy marsh
oak dawn
#

considering that the enemy variable is a model

simple hound
#

no need to be rude

crisp bronze
hazy marsh
heady blaze
oak dawn
#

oh

#

fuck i forgot about that one

#

thanks

heady blaze
# honest verge getplayerfromcharacter

yo do you know what's one of the best data replication module, i saw replica service made by the same guy who made profilestore but idk if there are better choices

honest verge
#

I just handle my own replication

wet owl
wet owl
wet owl
deft totem
onyx anvil
#

stopped reading after data 😭

deft totem
onyx anvil
wet owl
wet owl
#

i ended up making a custom one myself but i think replica probably works fine

onyx anvil
#

idk if it’s good or not I never used it but if it works for u then cool

deft totem
gloomy kindle
#

Why is this not working even when i touch the part nothing pops up in the output

local part = script.Parent
local Debris = game:GetService("Debris")

part.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(player)

if player then
    part.BrickColor = BrickColor.new("Really red")
    
    print("it shall be destroyd")

    Debris(part, 5)
end

end)

wet owl
#

local player = game.Players:GetPlayerFromCharacter(player)

vague plover
gloomy kindle
#

thank you guys

#

i got the debris wrong aswell

mellow hill
sudden patio
#

Literally doing homework on my phone in preop lol