#code-discussion

1 messages · Page 151 of 1

fair copper
#

like control the arm to rotate and be relative to the enemy i locked

#

procedurally via scripting?

#

or do i just make dumb script to rotate entire character

rich gust
#

uhm, i would use scripting but like, Use CFrame to point the upper arm or arm joint toward the enemy’s position.
Use an AlignOrientation, Motor6D, or update the arm's Transform manually, just makes it easier

fair copper
#

alignorientation

#

alright bro lemme research those topics

#

thanks

#

🤔

rich gust
#

messes a lot up

sweet wharf
#

for randomly generating structures or objects/models around the map, what's the best practice? and also, how should i be optimizing animations?

fair copper
sweet wharf
#

no its a pretty big map

#

and im adding fog

fair copper
#

or u have presets of maps?

sweet wharf
#

im not generating terrain

#

just objects and structures

#

and for those its just location

#

that's random

sweet wharf
fair copper
#

max n min

#

map height offset too maybe

#

then u gonna have ur script check what position is valid in the range u defined.

sweet wharf
#

so just loading as players move

#

yea

fair copper
#

u can also make exclusion zones to explicitly avoid generating stuff on them

#

Finally, it iterates through all placed objects(objects already successfully placed on the map). it checks if the proposed object's bounding box, expanded by its minimum spacing intersects with any previously placed object's bounding box. This ensures objects are spaced out somewhere

#

and u can add randomness traits to this

#

or something

sweet wharf
#

yea thats what im doing rn

fair copper
#

for loading, u can do occlusion

#

it will suffice

#

like define objects for what player can see

#

and load a lower LOD or make them disappear for far objects

#

yeah

#

stuff like that

sweet wharf
#

is that built in or do i have to script

fair copper
#

occlusion idk

worldly sonnet
#

LOLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL

fair copper
#

i never tried built in occlusion

sweet wharf
#

i saw a video on that a while ago but i didnt look int oit

fair copper
#

🥀

fair copper
#

just make ur own occlusion modules

sweet wharf
#

yea

worldly sonnet
# fair copper what bro

idk, i just wanted to see how you would react. when you saw the message, did you think i liked the system or hated it and was trying to make fun of it? im recording data for smth

fair copper
#

define collection service for objects u want to/dont want to occlude

#

nothing

fair copper
#

i prefer control so i use tags

worldly sonnet
# fair copper nothing

is this a response to me or the other guy? if so please make it more clear next time as its underneath another message

sweet wharf
worldly sonnet
#

@fair copper

safe hound
#

Guys can anyone help with a hitbox system???

The only way I would know to do it is if a tool is touched by a humanoid within a time after clicked it deals damage, but I want a box to spawn that ignores the player that holds the tool

fair copper
sweet wharf
#

im just batching them rn

fair copper
#

i'd suggest switching to 1 remote event thats created while ur using it and then destroyed

sweet wharf
#

what should i use instead

fair copper
#

or use a module

#

for networking

#

frameworks based on networking and optimization

sweet wharf
#

do u have suggestions

fair copper
#

suphi kaner's packet module uses binary decentralization and its quite useful if u get used to it

#

like it reduces bandwidth to almost negligible

#

but its hard if u get frequent errors in ur scripts

#

this packet module is based on an existing Net framework ig

#

he just made it better to be used on roblox

#

💯

sweet wharf
#

is it just called packet

fair copper
#

u can search it up on yt, it basically lets u just put new remotes in a module and call his module instead of remotes

fair copper
sweet wharf
#

oh this is good

fair copper
#

it basically uses binary packets to call ur data

#

because standard calls on roblox are set to consider maximum data possible

#

so like if u send 8 bit data but use 1kb data to send it across

#

it takes up bandwidth

#

that module just changes it up to efficiently use those spaces ig

sweet wharf
#

i see

#

appreciate it

fair copper
#

if u manage to bring this all together

sweet wharf
#

do u have any other optimization resources

#

yea

fair copper
#

hmmm use frameworks ig

#

whatever applies for ur games

#

not all frameworks work good based on the game's intent

sweet wharf
#

can i dm u instead of here

fair copper
verbal coral
#

anyone else experiencing a weird bug in roblox studio where humanoid jumping doesnt work if the humanoid is sitting or swimming? The userinputservice.jumping signal is also suppressed

#

and the strangest part is that it's exclusive to roblox studio play testing

sweet wharf
fair copper
pastel pivot
#

I really cant tell if I'm paranoid or not, but does this look like ai?

rich gust
#

but also what are u doing, cause it might not.

obtuse narwhal
#

Other then that, not really

pastel pivot
#

no

fair copper
#

🥀

obtuse narwhal
pastel pivot
#

its my backup scripter

fair copper
#

i mean

#

if ur scripts work

#

why do u care

#

🤔

#

or they dont

obtuse narwhal
#

Why pay someone to prompt your code when you could do it yourself lmao

fair copper
#

hmm yeah true

pastel pivot
vivid spear
#

Anyone got tips on cleaning up this script??

pastel pivot
#

thats what im saying

fair copper
#

lolol

pastel pivot
#

😭

obtuse narwhal
maiden cloak
pastel pivot
obtuse narwhal
#

@pastel pivot the second red flag is the print emojis when debugging your code

maiden cloak
pastel pivot
obtuse narwhal
fair copper
#

maybe he likes

#

organizing

#

and waiting for children

pastel pivot
#

but the emojis I feel like are a dead giveaway

obtuse narwhal
maiden cloak
fair copper
#

ngl i just use a boot loader to really get everything loaded

maiden cloak
#

whats that

fair copper
#

cache what needs to be cached

fair copper
#

so it always loads itself first

maiden cloak
#

ok

#

you dont really need it if you know your code

#

unless ur using chatgpt.

fair copper
#

chatgpt cant code

#

💀

#

yet

maiden cloak
#

chatgpt can 100% code

#

what are you on about

fair copper
#

boot loader is a principle from knit framework

#

lol

#

like they legit have boot scripts

#

idk why u gotta make this about ai

#

😂

maiden cloak
fair copper
#

its just a practice to prevent race conditions or errors while loading

maiden cloak
#

you little ginger

fair copper
#

hmm

#

so when u run outta arguments

#

u start calling out someone's hair?

#

u make it look like u use ai for coding

maiden cloak
#

convo been over

#

bye ginger

fair copper
#

cuz theres no way ur peanut brain process coding and that analogy on the same level

#

hahahah

#

fk loser

quasi pulsar
jolly sky
#

men how are roblox selfbots like those pls donate bots working even though all executors are detected right now? does anyone have a real answer to this

ember quiver
#

Hello everyone, i have experienced a so called mental disease by the name of "TUTORIAL HELL"
I legit can't stand youtube anymore, 90% of tutorials are DOWNLOAD THIS MODEL AND UNGROUP
Like brother im here to hecking learn.
And the 10% just teach you the basics like, remote events etc etc

Does anybody know a way to learn scripting, the dev hub isn't, its more of a dictionary than a guide

quasi pulsar
unreal axle
#

the code it gives you already exists

#

it just got altered in the process

ember quiver
unreal axle
#

if you watch a tutorial and just put the code line by line inside of studio, run it and call it a day you're not gonna learn

ember quiver
#

Thats proof i actually write the script

unreal axle
ember quiver
#

Oh wait

#

I completely red that wrong

unreal axle
#

tutorials are hardly ever gonna touch on anything too advanced cause the format is to boil it down to keep it as simple as it can be, which means a dumbass little YouTubers spoonfeeding you information like you're 5

main crypt
#

Yo sup anyone wants an subscriptions for hella cheaply

ember quiver
ember quiver
unreal axle
#

the solution of getting out of tutorial hell is to stop using tutorials

main crypt
unreal axle
#

no point in watching them if you already feel like you're getting nothing out of them

ember quiver
#

I started learning ciding 10 days ago

main crypt
#

Annualy/Monthly

unreal axle
main crypt
ember quiver
#

A stolen accounts seller -suppliet

main crypt
#

Why stolen?

ember quiver
#

Well

main crypt
#

Its legitimate payed. Just from another country, but works worldwide

ember quiver
#

Hmmm

main crypt
#

You know when you buy it from specific country, the price is 70% lower than ussual.

#

Lets say Nigeria..

ember quiver
#

Well its your business

main crypt
#

Steam accs?

ember quiver
#

Yeah

main crypt
#

Uh, i got steam games

ember quiver
#

When i was 9

main crypt
#

CD Keys.

ember quiver
#

This channel is for code im sure

main crypt
#

Print("hello")

#

Whats the output?

bold hound
main crypt
bold hound
ember quiver
# main crypt Whats the output?

section .data
msg db "your mom", 0xA ; 0xA is newline
len equ $ - msg ; Length of the string

section .text
global _start

_start:
; syscall: write(int fd, const void *buf, size_t count)
mov eax, 4 ; syscall number for sys_write
mov ebx, 1 ; file descriptor 1 = stdout
mov ecx, msg ; pointer to message
mov edx, len ; message length
int 0x80 ; call kernel

; syscall: exit(int status)
mov eax, 1      ; syscall number for sys_exit
xor ebx, ebx    ; status 0
int 0x80        ; call kernel
bold hound
#

It should and can only be hello in that case

main crypt
main crypt
#

You won an Disney plus acc

bold hound
bold hound
main crypt
#

Okay.

#

Slovakia is good country?

#

Yes

#

Ur not sigma.

#

In that case

versed aspen
#

why

#

he gets the code right and it works

#

and if it doesnt work i do a slight tweak to it and fix it]

bold hound
versed aspen
civic valley
#

any one need to link discord with his discord map send me a dm

fair copper
#

if /yes then
yes
end

#

whats the output

main juniper
#

i need help with a script its just 1 simple script giving someone 35 robux for it

fleet tundra
#

hey guys, does anyone know a webhook redirect as the discord webhook don't work

bright coral
#

Don't think it's blocked anymore

versed aspen
#

someone gimme smth intermiedate to script

wet ice
#

One message removed from a suspended account.

pearl tulip
#

anyone here currently own a studio or team?
thats semi-professional

jaunty nymph
#

I still have no idea what went wrong here

#

Since this is in a module script I am assuming there will be no Server/Client side issues right?

pearl tulip
severe cobalt
#

that. is. a. lot. of. dots.

is the cd being change on the client or server?

tired remnant
severe cobalt
tired remnant
jaunty nymph
jaunty nymph
#

Here is a live demo

cinder pike
#

i need someone to try break my game, anyone free? its legit like 3 systems in total - will take 5 mins top

coarse bridge
summer olive
#

guys i need help

tired remnant
cinder pike
#

probably change that down the line

summer olive
#

guys i need help

coarse bridge
coarse bridge
summer olive
#

i need help with scripting

coarse bridge
#

what do you need help with specifically

marsh condor
#

yo how do you change the friction/slipperyness of a part with script

wide sparrow
#

cusotmpjysicalproperties

summer olive
#

i need help with thids

versed roost
#

yo

#

can anyone help me?

wet gale
#
local Dodge = {}
--LOCAL VERSION
function Dodge.Dodge(player,Type)
    if Type == "Success" then
        local character = player.Character
        character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.SuccessDodge):Play()
    end
end
return Dodge

why wont this animation play?

#

the id is correct

#

priority is action

placid matrix
ashen cobalt
versed aspen
#

at your service

shut glen
#

anybody know how to script an animated handle in a tool?

potent igloo
#

is there any good architechtural pattern to follow for game development on roblox? like clean code is used for developing backend for web

severe cobalt
# potent igloo is there any good architechtural pattern to follow for game development on roblo...

people recommend rojo to utilize git repos
the way you organize scripts is up to you but ppl generally will separate features in folders, I just write a lot of my features as modulescript and use local scripts for basic logic thatd be specific to the game.. that way I can reuse a lot of code for something else later

as for writing scripts, while i dont follow it 100% I use these guidelines https://roblox.github.io/lua-style-guide/

the only rules I dont agree with are the ones regarding casing and comments.. they argue to not make section comments but I prefer keeping them.. then I limit camelCase for local function names or function-scope variables, using PascalCase for everything else to follow the casing used in the roblox api

potent igloo
severe cobalt
#

the way you organize scripts is up to you but ppl generally will separate features in folders, I just write a lot of my features as modulescript and use local scripts for basic logic thatd be specific to the game.. that way I can reuse a lot of code for something else later

potent igloo
#

i got modules sepparated into shared, client and server, and each of these folders have tools, services, constants and structures

#

which seems fine but i feel like it could be better yk

#

thats why im trying to find an architecture that was already thought of

severe cobalt
# potent igloo thats why im trying to find an architecture that was already thought of

I would try to centralize modules as much as possible, so probably should combine client and shared and put them both in replicated storage

an example of what you see a decent amount of from decent codebases would be like

ServerScriptService 
└ Shop
    └ ShopInventory (module script with generic functions)
    └ East City Shop
    └ Back Alley Shop
└ Weapon
    └ Weapon (module script with generic functions to prevent rewriting them)
    └ Katana
    └ Dagger
    └ Sword

etc etc

these are just features that came out of my head randomly.. like if the katana has a special move, you do the server checks for it in the katana script. Same case with other weapons.

The quote I always follow when deciding stuff like organization is "Optimize for reading not writing"

thin mist
foggy burrow
#

anyone want help bro

#

im bored af

jaunty nymph
#

When I put this script into the tower it prints nothing

jaunty nymph
foggy burrow
#

dms

red arch
#

everything wrapped inside a single script with module loader, including the local stuff as well

tired remnant
red arch
jaunty nymph
tired remnant
#

Ye

jaunty nymph
tired remnant
#

And make sure it’s in both a local and server script

jaunty nymph
foggy burrow
#

our just doing the default Value

#

your just changing the variables name

#

to the connect

#

its easy

jaunty nymph
queen tulip
#

Why are animations so difficult to work with

tired remnant
tired remnant
foggy burrow
#

NOOOOOO

#

bro

#

send a full image of the code

jaunty nymph
foggy burrow
#

@jaunty nymph

#

Send full photo of code

jaunty nymph
foggy burrow
#

Okay

#

so

#

Give me ONE second

#

Done

#

Here

#

So the .Changed doesnt do shi

#
--//Variables
local boolValue = script.Value


boolValue:GetPropertyChangedSignal("Value"):Connect(function()
    print("Changed!")
end)

#

Thats so ass

#

but you gottat use :GetPropertyChnagedSignal()

#

:GetPropertyChangedSignal()

#

try that lmk

#

also if this is on the server

jaunty nymph
#

What is the "Value" supposed to be?

foggy burrow
#

The property

#

Value

jaunty nymph
#

oh

foggy burrow
#

soo boolValue.Value.Changed:Connect()

#

is what your doing

#

you should be doing

#

boolValue:GetPropertyChangedSignal("Value")

#

what ever is inside of the parenthesis

#

is the event that will fire when the property changes

sudden estuary
foggy burrow
#

what

sudden estuary
#

whats wrong with Changed

foggy burrow
#

Workspace.Script:5: attempt to index boolean with 'Changed' -

#

its litterally an error

jaunty nymph
#

So something like this?

tired remnant
foggy burrow
#

Did it work?

sudden estuary
#

do Val.Changed

sudden estuary
#

Changed fires when any property is changed

foggy burrow
#

ah yeah shi mb

sudden estuary
#

in case of valuebase almost on all cases the only property you change is the value

foggy burrow
#

yeah

sudden estuary
#

so .Changed is perfectly fine for valuebases

foggy burrow
#

Did :GetPropertyChangedSignal work

sudden estuary
foggy burrow
#

yes .Changed works

sudden estuary
#

or he changed it in client

foggy burrow
#

ik but im offering another use case

jaunty nymph
#

It prints nothing

#

Meaning Value hasn't been changed?????

junior pier
foggy burrow
#

well you gottta actually change the value

tired remnant
junior pier
#

wait wtf

#

whose problem is it

tired remnant
#

Anyways, I’m too tired to try and figure ts out rn, cya

foggy burrow
#

No you gotta actually change

tired remnant
foggy burrow
#

bro Angry

sudden estuary
junior pier
#

@jaunty nymph try manually changing the value when testing to see if it prints

sudden estuary
#

oh well that snippet is in client too, so it doesn't matter

jaunty nymph
#

It works but I still don't know why the Value remains unchanged

foggy burrow
#

because

#

if you change

#

on the client

#

it only stays on the client

#

it wont replicate to the server

#

however

#

if changed on the server it will replicate to the client

jaunty nymph
foggy burrow
#

Are you firing it from the client or the server

tired remnant
foggy burrow
#

hmmmm

junior pier
#

ohh thats why

#

its changing on the client right

foggy burrow
#

bi

#

no

#

he just said changing on the server

tired remnant
#

Wrong reference maybe?

junior pier
#

nvm

tired remnant
#

Referencing the starter player value instead of the in use client player value?

junior pier
#

idk man

#

use attributes instead

#

fuck values

foggy burrow
#

no

tired remnant
#

Agreed

foggy burrow
#

its ez to figure out

sudden estuary
#

replication won't fail that bad

tired remnant
junior pier
#

@tired remnant let me see the actual value

#

in explorer or how ur instancing it

#

@jaunty nymph

tired remnant
#

@jaunty nymph

jaunty nymph
#

It is just a NumberValue inside a Configuration named 'Config' which is inside the model for the tower

tired remnant
jaunty nymph
tired remnant
jaunty nymph
#

Boost ModuleScript

#

The serverscript for checking

#

LocalScript for checking

jaunty nymph
#

In a local script for the range circle

#

@tired remnant that's about it

tired remnant
#

I got no clue tbh. Only other idea I have is try printing off the ancestry of everything, particularly when it does actually print the value it’s supposed to

jaunty nymph
#

This is a very weird problem Crai

main juniper
#

paying 35 robux for a simple script DM me

jaunty nymph
jaunty nymph
#

Ok I will do it now

stable verge
#

does anyone know how i can make my charcter scale quickly when i have
a smaller amount of size then slower when i have more? Like this game

junior pier
stable verge
junior pier
#

if you dk it then its hard to explain so just ask chatgpt for the equation

stable verge
#

ok thanks

tired stag
# junior pier logarithms or exponential decay

what is the point of logarithms... watched a youtube tutorial about it and i thought its useless its just exponets but more complicated either i dont get something or its just advanced exponential functions or something

jaunty nymph
#

@tired remnant srry for the wait

fluid gulch
frail yarrow
jaunty nymph
jaunty nymph
prisma igloo
#

What are some tips for learning code for the first time

jolly sky
#

guys question how do those roblox selfbots like the pls donate bots work when all executors are detected? every single executor gets detected and bans the account

cold walrus
#

guys im trying to learn code what should i do to start?

thin mist
#

Like brawldev playlist

thin mist
wide magnet
fair copper
cold walrus
#

wanna go in call guys?

thin mist
# cold walrus can you send some?

Btw if you don’t understand one of the concepts he talks abouts, check the comments, if there was anything I couldn’t understand I would always find at least one comment that would explain it the best

rotund pawn
#

Is it possible to rotate tool with player? Glider tool with dive function

cold walrus
thin mist
jaunty nymph
thin mist
#

Bruh

jaunty nymph
#

All I know is that the stat got the boost but somehow reverted back even tho I did not type any line that sets the value of the stats

cold walrus
#

dont worry imma still be replying i have 2 monitors

thin mist
# cold walrus ty imma try now

Brawldev also has an old channel called “brawlbattle” he has a vid called “7 beginner scripter challenges”. After you finish whatever playlist u start I would recommend trying those out

#

Then moving on the to advanced tutorials

cold walrus
#

kk

placid coral
#

Any hot scripters here

rotund pawn
#

My GF says that, so yes, here

wary bronze
#

Any scripters know how to fix camera not loading onto character, can’t move or nothing

rotund pawn
#

Show the script

rotund pawn
wary bronze
placid matrix
placid coral
#

Any femboy scripters hmu

rotund pawn
#

No need to dm me, please can help here 😄

steel sigil
#

there is bug for do fake donate , but there are some players who donate real robux. Can I remove some of the fake donations from this leaderboard?

And does anyone know how to fix fake donations?

rotund pawn
#

Only way to check that is "Sales of Goods" list, gonna take a while

tribal prawn
#

guys im bored can you guys tell me something to script

fringe whale
#

what makes a good combat system, a good scripter or a great animator?

tribal prawn
#

mostly animator and vfx artist

fringe whale
tribal prawn
#

honestly

fringe whale
#

most optimized code = most fluidity in the combat

#

anyone can set up anims, make some vfx and put some anim events for the code to trigger

tribal prawn
#

a solid combat system would have some easy to learn code

#

the optimization is hard but the rest is pretty straight forward

thin light
#

datastores are gonna be the death of me WHYYYYY

thorn arch
thin light
#

context

thorn arch
#

For the code to be good

rotund pawn
thin light
rotund pawn
#

Data = {
111 = {
OwnedPowers = {}
}
}

thin light
#

ahhh ok ill look into that

rotund pawn
#

it is wayy easier than creating instance and getting instance for each value

jaunty nymph
#

Can someone help? I have absolutely no idea what went wrong

wise cloud
#

Explain it in simpler terms

#

Oh

#

Update the gui then

#

Value changed connect function etc

jaunty nymph
#

I explained it further this morning

wise cloud
#

u said ur gui isn’t updating

#

ok bro like I’m gonna scroll to that

#

Explorer isn’t updating

#

Is it a local script

jaunty nymph
#

This should clear things up a bit

wise cloud
#

Could be a client /server issue

jaunty nymph
wise cloud
#

Are you firing it

#

From client

#

Or server

#

cuz if ur firing it from client then it’s gonna be client

#

Ok so ur firing from server

#

That makes no sense lol

#

something’s wrong

#

it can’t print 1.62 if it’s 1.8

#

Double check target config

#

try to play with adding and subtracting and just add prints to debug

rotund pawn
wise cloud
#

Yes

#

and it subtracts the cost

#

but the value isn’t changing in his configuration

rotund pawn
#

Is there any chance you could be firing the set value/get in gui BEFORE you place and register the buff?

wise cloud
#

But targetconfig is

wise cloud
rotund pawn
#

I couldn't find the full script, but I think the buff config doesn't register 2nd build is in range of buff in time before it sets the value

wise cloud
#

wat

jaunty nymph
rotund pawn
#

The character, or however I can call it

jaunty nymph
wise cloud
#

set value has nothing to do with this

#

Ur changing the value and the value isn’t changing

#

Double check target config

rotund pawn
#

I might be a little confused 😄
But the 1st character buffs the 2nd in some ways & value of 2nd character is not changing. I would check when the buff module gets triggered, there might be some timing issue

jaunty nymph
wise cloud
#

Let me check that

jaunty nymph
wise cloud
#

Idk try

#

No cuz it’s

#

That’s so weird

#

Honestly my best advice is u just gotta start playing around with a ton of prints and checks and

#

reformatting

rotund pawn
#

What is the targetConfig btw? the folder of chracter?

wise cloud
#

my only guess is ur trying to change is on client and it’s not replicating to server

wise cloud
#

The tower

wise cloud
#

2pur to the rescue

#

I’m actually so curious lol

rotund pawn
#

And the variable is asigned after build?

jaunty nymph
junior pier
wise cloud
#

it’s 2 am

junior pier
#

after 3 hrs or sum

wise cloud
#

My brain is fried from my own stuff

#

oh bro this is not me

#

LOL

#

I finished mine like 2 hours ago

junior pier
#

what

wise cloud
#

I’m trying to figure out this kids issue

junior pier
#

ohh

wise cloud
#

he’s changing the value and it’s printing the value changed but the actual int value isn’t changing

jaunty nymph
junior pier
#

@jaunty nymph ur changing it in server yes

jaunty nymph
wise cloud
#

are u firing the module from a client script

#

no

#

that’s not how they work

#

U either fire it client or server

jaunty nymph
#

How do I check if it is server sided?

junior pier
#

did u require the module from a server script?

wise cloud
#

I think he literally just wrote it

#

in a module script LOL

jaunty nymph
#

This is where I activated the function to apply boosts

wise cloud
#

is that script local or server

rotund pawn
#

Acutally if you are owner you can select log category in F9

wise cloud
#

Is this local script or server

rotund pawn
#

If it would be fired from local, the GUI would see the local change

wise cloud
#

idgaf abt his gui im more interested in explorer

#

gui can be wrong explorer can’t

jaunty nymph
#

My code is all over the place

wise cloud
#

it’s doing it locally

#

which you won’t see on the server

wise cloud
junior pier
#

bro wtf

#

wait wait wait

rotund pawn
#

Never trust what client sends, dont allow client to do anything

jaunty nymph
#

Then it should be fixed

wise cloud
#

Try that

#

yes

junior pier
#

bro is that even possible

#

i didnt know u can do that on a module script

rotund pawn
#

But in that case the he could see the change in explorer, even if local

junior pier
#

😭

rotund pawn
#

When in PlayMode, explorer switches to client side

wise cloud
rotund pawn
#

You can check it out

wise cloud
#

lmao k

junior pier
#

only in local server test is it seperate

rotund pawn
#

Put instance in ServerScriptServ and open play mode, you can't see anything there

wise cloud
#

oh well

wise cloud
#

Lmao

junior pier
wise cloud
#

Sorry

junior pier
#

im talking bout the output

rotund pawn
#

ohh

#

In that case ye

jaunty nymph
#

still doesn't change it

wise cloud
#

Is that a TTRS logo in ur pfp

rotund pawn
#

VRS light under my car doors

jaunty nymph
rotund pawn
junior pier
wise cloud
#

I thought the issue was cooldown

#

So if it’s printing 1.8 it’s not subtracting at all

#

Try

#

Cooldown = cooldown - (cooldown whatever math u have)

#

instead of -=

jaunty nymph
jaunty nymph
#

I am testing range first

jaunty nymph
junior pier
wise cloud
#

yes

#

but sometimes when I do += it doesn’t work

#

so then I switch to X=x+x

#

Idk it’s weird

rotund pawn
# jaunty nymph

Can you try to print targetConfig.Cooldown and the boosts value? Might be a math issue

rotund pawn
jaunty nymph
#

Are there too many decimal places?

#

Or do decimal places not matter

wise cloud
#

Use //

#

It’ll round up

#

I’m pretty sure

rotund pawn
#

What value is what?

wise cloud
#

Cooldown.value I’m guessing

jaunty nymph
#

Range.Value

#

It's the same thing

wise cloud
#

Yea

rotund pawn
#

Can you show us where do you assign targetConfig variable?

jaunty nymph
#

It would be very stupid if it was indeed the decimal places

rotund pawn
#

Curious

#

TargetTower vs NewTower?

#

Is there any chance TargetTower is ReplStorage one and newTower is the built one?

inner sentinel
#

paying 20k to someone to fix my game

wise cloud
rotund pawn
#

Yeah 😄

inner sentinel
wise cloud
#

what’s the issue

jaunty nymph
inner sentinel
rotund pawn
#

In playMode, top bar click to switch to server, check repl storage Config Value

wise cloud
#

send more info in dms

rotund pawn
#

I am here sitting and praying that was the issue

jaunty nymph
rotund pawn
#

So what is New and Target Tower?

wise cloud
#

😭

rotund pawn
#

print NewTower.FullName and TargetTower.FullName

rotund pawn
jaunty nymph
#

newTower is just the tower that called the function (aka the tower that gives the boosts)

rotund pawn
#

Sh this is real challenge

jaunty nymph
#

This went from a supposed GUI issue to a weird one real fast

rotund pawn
#

Atleast we know its not a client/serv issue

#

Hey One last idea from me,
Print fullname of range when you set it in the for loop.
If(NumberVal)
setlogic
print full name of val

There is no way you do .Value = XX and it doesnt change anything

bitter raven
#

Can someone help me how to put the font face into the code because it's not found in the roblox font selection

#

I'm still new to coding so I might not understand your explaination but i'll try

jaunty nymph
warm aurora
#

Who has a tutorial on a 3d loading screen for my game?

rotund pawn
somber vault
sudden estuary
#

u still stuck on this?

jaunty nymph
#

Not a server/client issue, probably not a math issue too

sudden estuary
#

is it too late for me to intervene

jaunty nymph
#

No

sudden estuary
#

ok tell me whats the problem

jaunty nymph
#

Any help is appreciated

jaunty nymph
#

I printed the buffed values to check if it buffed and the printed values were correct

#

However when I look into the explorer tab while testing, the stat value remains unchanged

jaunty nymph
#

and then the demo is here

#

The GUI could be wrong but I assume the explorer tab can't be wrong right?

sudden estuary
sudden estuary
#

it say 1.8 in output and shows 1.8 in config too

jaunty nymph
#

I changed the default to range as if the range got buffed I could see it via the range circle

rotund pawn
#

Well, then I am out of ideas. Maybe make a forum post. Might be a roblox bux

#

bug

sudden estuary
jaunty nymph
junior pier
jaunty nymph
#

Now it is range

wise cloud
#

I have a solution

#

delete everything and give up

#

restart from scratch

rotund pawn
#

Let me sumarize in my shitty grammar:

When character 2 [Brute] is placed within range of character 1, character 2 should get buffs based on character 1 stats.
The script reports correct change of value, but math is not mathing and value, that is really set, is not changing by server script

#

So I would say roblox fked something up

sudden estuary
#

r u changing it somewhere else @jaunty nymph

sudden estuary
sudden estuary
#

add a .Changed event to the config value and print the value so you can see if it changes and is being overwritten somehow

rotund pawn
#

@jaunty nymph I recommend just creating Console.Print for EVERYTHING, so console looks like this:

Placed character2 in range of character1
Character1 buffed ch2 by [StatsArray]
Character1.ValueName is being changed to value ??

#

Just post whole console after this here and maybe someone spots the issue

wise cloud
#

I didn’t think of that

rotund pawn
#

Agree

sudden estuary
#

show the output

rotund pawn
#

The best rule for debbuging is to write a book of actions in log

jaunty nymph
sudden estuary
rotund pawn
#

We need full picture 😄

jaunty nymph
sudden estuary
junior pier
#

or whats the end goal

rotund pawn
#

He is changing value, but the value is not changed

jaunty nymph
rotund pawn
#

But yeah, just show entire script

junior pier
bold cliff
rotund pawn
sudden estuary
#

i would say u r overwriting it somewhere

jaunty nymph
#

how do I paste the script here

rotund pawn
#

pastebin or format it to script

wary steeple
#

Hi

jaunty nymph
hasty mesa
hasty mesa
wary steeple
#

I made a combo system, idk if its any good or it can be improved can i have some feedback pls

jaunty nymph
#

local Val = script.Parent.Config.Range

Val:GetPropertyChangedSignal('Value'):Connect(function()
print('Range:'..Val.Value..'(Server)')
end)

jaunty nymph
# hasty mesa wheres the changed event

local tower = require(script.Parent.Main.Tower)
local towersFold = workspace:FindFirstChild('Towers')
if towersFold then
towersFold.ChildAdded:Connect(function(newT)
for _, t in towersFold:GetChildren() do
if t:IsA('Model') then
if t:FindFirstChild("mai") then
print('BugfixTest')
tower.DJ(t)
end
end
end
end)

end

rotund pawn
#

What is this?
for i, targetTower in workspace.Towers:GetChildren() do --for i, targetTower in ipairs(workspace.Towers:GetChildren()) do
if targetTower:FindFirstChild('mai') then
continue
end

wary steeple
jaunty nymph
rotund pawn
#

So there is not range check, just if "mai" is built?

hasty mesa
jaunty nymph
jaunty nymph
#

Meaning the value did change

#

But reverted back for some reason

bold cliff
#

if range and range.Magnitude < 20 then
@jaunty nymph

hasty mesa
hasty mesa
rotund pawn
#

local targetConfig = targetTower:FindFirstChild("Config")
So its target config of MAI?

#

Yeah I think thats the thing

#

or I am blind

jaunty nymph
hasty mesa
bold cliff
#

@hasty mesawoa ko ti po?

rotund pawn
#

TargetTowerName is mai, why is there FindFirstChild mai?

hasty mesa
#

like all of the prints

jaunty nymph
jaunty nymph
hasty mesa
#

or is that

#

happning before

#

all of these

jaunty nymph
junior pier
#

omds

#

can you please make like a rangeValue varaible = targetConfig.Range.Value or sum

hasty mesa
hasty mesa
jaunty nymph
jaunty nymph
hasty mesa
jaunty nymph
hasty mesa
hasty mesa
#

or this logic

#

is it ran right when you place the tower down

jaunty nymph
hasty mesa
#

the dj or a new tower?

jaunty nymph
#

Any tower

#

local tower = require(script.Parent.Main.Tower)
local towersFold = workspace:FindFirstChild('Towers')
if towersFold then
towersFold.ChildAdded:Connect(function(newT)
for _, t in towersFold:GetChildren() do
if t:IsA('Model') then
if t:FindFirstChild("mai") then
print('BugfixTest')
tower.DJ(t)
end
end
end
end)

end

#

I have this regular script in server script service

hasty mesa
#

what does mai mean here

#

does it mean it already has the buff

#

or its the dj

jaunty nymph
#

Since I will give the dj upgrades, I planned to give every DJ model a part called mai

hasty mesa
jaunty nymph
#

Since the param in the tower.Dj has to be a DJ tower

jaunty nymph
hasty mesa
#

but theres a mai check

jaunty nymph
#

So basically when any tower is placed, all towers with the mai part will run the DJ() function

hasty mesa
#

I see

jaunty nymph
hasty mesa
#

nvm I see that you create an instance

jaunty nymph
hasty mesa
#

ok so somewhere you are setting the value to 4.5 again

#

cause of defered execution

#

arn't you just

#

reseting it here

torn edge
#

@slate lotus

slate lotus
#

yes

#

what you need

sudden estuary
#

r u in an ide or discord

hasty mesa
#

its vsc

#

changing it to lua also works

jaunty nymph
sudden estuary
slate lotus
#

N O W

jaunty nymph
#

I'll show you what I mean by that

hasty mesa
slate lotus
#

so i don't knwo

hasty mesa
slate lotus
#

thanks!!!

jaunty nymph
#

@hasty mesa for some reason now when the towers are placed after dj is placed, they don't get the boost

#

Also I forgot to end the recording mb

slate lotus
jaunty nymph
slate lotus
#

yeaa

#

it seemed familiar

#

just rewatch the video dawg

jaunty nymph
#

This isn't part of the video tho 💀

hasty mesa
#

instead of continue

jaunty nymph
#

And this is another instance to add to my tally of stupid bugs caused by me putting lines of code in the wrong spots

lost burrow
#

@torn edge Hello

torn edge
#

hi

torn edge
lost burrow
# torn edge wsp?

are you going to use this account in HD from now on and not @royal linden

torn edge
#

i got banned

#

but

#

i appel

#

can u please

#

dont do anything with that account

#

until i am back on it

#

like discord ban

olive summit
#

i need a help with my script , my npc must not chase me when im in green team. it wont chase me if i initially get spawned in green team but if i get changed to green team from another while playing it still chases me .how do i fix this?

merry veldt
#

Any devs here ever made a custom vehicle systme

sudden estuary
grave zenith
#

Hello, I've made a script that clone an part to the workspace. First time happening to me but the client can't see the modification. It has been made in a server script in the server script service. The server can see the part cloned in the workspace but the client can't, why?

rotund pawn
#

share code

grave zenith
#

there's nothing wrong, it's just a clone

rotund pawn
#

Then you won't get much help

grave zenith
#
RunService.Heartbeat:Connect(function()
        if not player:IsDescendantOf(game) then return end

        SpeedHandler:Apply(player)

        local character = player.Character
        if character then
            local hrp = character:FindFirstChild("HumanoidRootPart")
            if hrp and hrp:IsA("BasePart") then
                if not ColaHandler.PlayerOwnACola(player) then
                    local CurrentCola = PlayerDataHandler:Get(player, "CurrentCola")
                    local instanceCola = ColaHandler.CreateCola(player, CurrentCola)
                    instanceCola.Parent = OwnedColas
                end
            end
        end
    end)
#
local OwnedColas = workspace:WaitForChild("OwnedColas")

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ClientRessources = ReplicatedStorage:WaitForChild("ClientRessources")
local Colas = ClientRessources:WaitForChild("Colas")

local ColaHandler = {}

function ColaHandler.PlayerOwnACola(player: Player): boolean
    for _, cola in OwnedColas:GetChildren() do
        if cola:GetAttribute("OwnerID") == player.UserId then
            return true
        end
    end
    return false
end

function ColaHandler.CreateCola(player: Player, colaName: string): BasePart?
    local cola = Colas:FindFirstChild(colaName)
    if not cola then
        return
    end

    if not cola:IsA("BasePart") then
        return
    end

    local colaClone = cola:Clone()
    colaClone:SetAttribute("OwnerID", player.UserId)
    return colaClone
end

return ColaHandler
civic roost
#

yo guys i have small proplem i do aura shop but the beams didnt work why ?

hoary flicker
#

Hi, i need to one loop (small loop with some mathematics operations) for each instances of a class, wich service should i use for that? It's server-sided. It's for calculating money for the player.

kindred pulsar
#

yo would this work or is there a better way of doing this?

#

function Combat:M1()
if self.Cooldown then return end

local now = os.clock()
if now - self.lastSwingTime > self.comboResetTime then
    self.comboStep = 0
end

self.comboStep = self.comboStep + 1
self.Cooldown = true
if self.comboStep > 4 then
    self.comboStep = 1
end

self.lastSwingTime = now

self:PlayPunchAnim(self.comboStep)

task.delay(.2, function()
    local target = self:CreateHitbox()
    if target then
        DamageEvent:FireServer(target, self.Damage)
    end
end)

task.delay(.5, function()
    self.Cooldown = false
end)

end

worldly sonnet
#
function Combat:M1()
    if self.Cooldown then return end

    local now = os.clock()
    if now - self.lastSwingTime > self.comboResetTime then
        self.comboStep = 0
    end

    self.comboStep = self.comboStep + 1
    self.Cooldown = true
    if self.comboStep > 4 then
        self.comboStep = 1
    end

    self.lastSwingTime = now

    self:PlayPunchAnim(self.comboStep)

    task.delay(.2, function()
        local target = self:CreateHitbox()
        if target then
            DamageEvent:FireServer(target, self.Damage)
        end
    end)

    task.delay(.5, function()
        self.Cooldown = false
    end)

end
fiery blade
#

`local TweenService = game:GetService("TweenService")
local camera = game.Workspace.CurrentCamera
local TouchPart = game.Workspace.TocuhPart

local cutscenetime = 1

local tweeninfo = TweenInfo.new(
cutscenetime,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false,
0
)

function tween(part1)
camera.CameraType = Enum.CameraType.Scriptable

local goal = {}
goal.CFrame = part1.CFrame

local tween = TweenService:Create(camera, tweeninfo, goal)
tween:Play()

tween.Completed:Wait()
wait(2)

camera.CameraType = Enum.CameraType.Custom

end

TouchPart.Touched:Connect(function(hit)
tween(game.Workspace.Test1)
end)
`

#

yo can someone tell me why it dont work+

#

it dont even say any error on the output

#

so idk how to fix it

kindred pulsar
merry veldt
sudden estuary
civic roost
#

look at bot and me if you the beam didt work
if you want help me i will send the secript

somber vault
junior pier
sudden estuary
#

car is small

coral oracle
#

I use 3 backtick

sudden estuary
#

bus many passengers

#

car less passengers

#

bus big

#

car small

coral oracle
#

Bro

sudden estuary
coral oracle
#

I want colors

#

lua colors

#

Ik how to write

sudden estuary
#

lua colors come when u use the right syntax

coral oracle
#

?

sudden estuary
#
print('hello world')
coral oracle
#

yo It doesnt works on me lemme try again

#

WAIT ITS WORKING RN

olive summit
#
print("noob scripters")
coral oracle
#

FINALLY

#

I ALWAYS USEd THAT

#

AND ITS WORKING JUST RN

#

I always used same tag

#

Nvm thx

junior pier
#

step 1: make car system
step 2: scale X * 2
step 3: bus

sudden estuary
sudden estuary
rotund pawn
#

Hello!
I am in need of help in design of function:
I have parachute minigame in progress, I need player to equip the parachute on key press (e.g. "F")
But I do NOT know how:
~ I can:
Create tool, hide backpack. Equip on keypress to char
Or create separate vehicle player gets welded onto when parachute equiped.

But the issue is I do now know which one to choose, when parachute is customisable.

Which aproach is better to use? Tool is easier but idk

fading bramble
#

do I need to do this if I want to check what is humanoid's state or is there a better way?

junior pier
junior pier
fading bramble
fading bramble
sudden estuary
junior pier
rotund pawn
#

Well just make parachute module > Attach to player > drop the logic there.

fading bramble
junior pier
#

instead of using tool

junior pier
kindred pulsar
#

yo when yall make m1 systems do yall use oop?

sudden estuary
sudden estuary
sudden estuary
rotund pawn
#

Yeah I see the tool way as easiest to implement without any needs, other than animation and forces

#

Just looking for opinions 😄

fading bramble
#

then why doesnt it automatically show up when I type it?

kindred pulsar
#

but should i use oop for a ability system?

sudden estuary
#

well i don't see the different tbh, which tools u set up the grip in tool, with a custom one you set the C0 you predefined

junior pier
sudden estuary
#

both are feasible, but I would just use custom for thi

sudden estuary
fading bramble
kindred pulsar
junior pier
rotund pawn
sudden estuary
kindred pulsar
#

bro chat gpt saying that i should use oop for those systems for commissions

sudden estuary
#

stop relying on chatgpt

#

thats ur no.1 mistake

kindred pulsar
rotund pawn
# sudden estuary yes

Thank you, can I just use handle with BodyOrientation to move parachute + player while player is freefalling?

kindred pulsar
#

should i just not use chat gpt at all?

sudden estuary
kindred pulsar
#

alr

sudden estuary
#

i use chatgpt to balance my game stats

sudden estuary
#

since the latter is deprecated

rotund pawn
#

Great thank you, will try

kindred pulsar
#

alr, im just learing combat system so i like idk how to do it but ill watch tuts then

rotund pawn
sudden estuary
kindred pulsar
#

my goal is to be able to do commissions

brazen moon
sudden estuary
kindred pulsar
rotund pawn
junior pier
#

@kindred pulsar always double check ur info that you get from chatgpt, it just pulls them from the internet without filtering so sometimes it’s unreliable