#help with bridging for my minecraft style block placing/mining system

1 messages · Page 1 of 1 (latest)

strong magnet
#

can someone help me out with this? what im trying to accomplish here is to add a sort of prediction system/bridging system like in bedrock, where you can simply click in the air in front of a block to place another block in front of it

zealous mulch
#

did you write this code yourself? (ai generated code and copying from a tutorial does not count as writing it yourself. yes i have to specify this)

strong magnet
#

does using help from ai count since i was stuck on some aspects of the code

weary crescent
#

that script looks hella messy

#

you should not nest 4 if statements tbf

zealous mulch
#

a minecraft script aint easy or cheap.

strong magnet
#

since what i'm essentially trying to do is add bridging in the style of bedrock but i was stuck on it and not even ai could help me out in it

weary crescent
#

I would only use AI on small parts of scripts and only use it if you understand what it does

#

it fails completly if you ask it something more complex

limber prairie
#

when I learn with ai what I like to do is have it type out stuff for me and then I tell it to tell me what each individual line does so I can anotate it and take notes lmao

#

the method lowkey works for me

strong magnet
#

i do have some good scripting knowledge but i'm not too advanced with some other stuff

weary crescent
strong magnet
#

it took me 2 weeks to figure out how raycasts work

weary crescent
#

they are especially hard to understand cause they are not visual

strong magnet
weary crescent
#

i mean you could take the end Position of the raycast and the start and place a beam from A - B but then you need to add some attachments and some part and all that shit

limber prairie
#

idk

#

I just be learning shit

#

sometimes you learn shit wrong

#

I try to fix it if I find that it's wrong

limber prairie
#

I have an abillity system I'm working on rn

#

I made it so you can customize amount of abillitys a player has, and the effects of the abillity with cooldown settings, vfx and all that bs

#

you can change in the settings lol

#

it's kinda sick

#

all in like 1 moudle script

#

I'm working on adding abillity fusioning to it to

#

so I can scale it even more

strong magnet
#

not even i know what the hell a module script is used for 🙏

last sluiceBOT
#

studio** You are now Level 2! **studio

weary crescent
#

module scripts are great

limber prairie
#

REALLY IMPORTANT

#

it opened up my eyes to alot of stuff

strong magnet
#

like i know scripts and local scripts behave the same but scripts are server sided and local scripts are client sided

limber prairie
#

like it makes coding so much easier

weary crescent
#

they are so useful frfr

limber prairie
#

ok let me explain rq then

#

I'll explain rq then

#

so basically

#

if you wanna get good u gotta learn module script cause very good scripter uses them

#

I'm a bad scripter

#

but learning this has made me so much better and life is chill

#

so anyways

#

you pretty much put whatever function or information you want in a module script

last sluiceBOT
#

studio** You are now Level 5! **studio

limber prairie
#

and then you can call whatever that function is

#

in everyother script

#

or information

#

for example

#

if I wrote like

strong magnet
#

so they're kind of like remotefunctions but they're already scripted in instead of having to insert one?

limber prairie
#

uhhhhhhhhh

#

no

#

you make the scripts

#

like you make the module script

#

they're not already scripted

#

it's like a normal script but everything's in a table ya know

#

so like you put a function in a table

#

and then you have a name for that function

#

you type the name in whatever script or local script you have

weary crescent
#

Basicly a ModuleScript is a reusable script that returns functions or data, allowing other scripts to access and share logic using require().

limber prairie
#

and it does the function from the module script

limber prairie
#

makes it so you don't have to type 1000 lines of code

left arch
#

Make your own scripts first and then we'll help you

limber prairie
#

like with the abillity system I have, it'd be 200 lines of code per abillity if you didn't have a module script

#

but with a moudle script

#

my lines of code is now like 20 per abillity

#

so instead of 1000 lines of code = 5 abilliteis
1000 lines of code for me = like 500 abilities

#

that's how powerful module scripts are

strong magnet