#I and AI made a brick throwing script(HELP PLEASE)

1 messages · Page 1 of 1 (latest)

zealous pagoda
#

but players bug out and fly away and don´t even fall over
SCRIPT:

vale osprey
#

OKAY CALM DOWN

#

but i bet AI did most of the job

zealous pagoda
#

ye i am still learning

vale osprey
#

ur just some random beginner dev who just woke up n decided to produce ur own games

#

bet

zealous pagoda
vale osprey
#

Oh?

#

what was ur first coding lang?

zealous pagoda
#

Unity so c#

#

did it for 4 years

vale osprey
#

Dayum

#

Why u wanna learn rbx then?

#

u must be a good unity developer

zealous pagoda
vale osprey
#

Hmm. Fair enough

#

lets hop back to the actual subject

#

tho

#

scripting something as simple as throwing a block

#

is no brainer for a 4yr experienced dev

#

where ur stuck at?

#

or struggling at?

#

Like confused about how to move a block? or maybe how to make the dmg system?

#

Cmon r u writing an article

zealous pagoda
#

it´s a different language now coding languages are almost the same with variables and stuff and functions but there´s still difference which my brain doesn´t know how to do i mean damage system is ez moving too but i can only do easy stuff

tired harnessBOT
#

studio** You are now Level 1! **studio

zealous pagoda
vale osprey
#

just a yes ;-;

#

I asked u smth

zealous pagoda
#

it´s weird that it works on npc´s but not on players

charred merlin
# zealous pagoda

oh wow that's a mess? why are you requiring a nil module & is It really necessary to ragdoll like that rather then ballsocketconstraints

zealous pagoda
#

AI did most of it, i can just do simple stuff i have been learning for like only 2 days

charred merlin
zealous pagoda
#

yes, ofc

#

There´s actually no error that is from the script i think AI just did something stupid that makes the player go flying

charred merlin
#

granted they were warnings and not game breaking bugs

#

but it's still good to fix those, anyways I'll go through your code one more time

zealous pagoda
#

Thanks a lot

charred merlin
#

found the error

#

I think

#

you are applying a velocity of FOUR HUNDRED STUDS

zealous pagoda
#

that´s the speed of the brick

charred merlin
zealous pagoda
#

there´s no way that this causes the bug

zealous pagoda
tired harnessBOT
#

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

charred merlin
#

a 100 stud knockback force?

#

try lowering it to 25ish

zealous pagoda
#

Sure, i will try

zealous pagoda
charred merlin
# zealous pagoda sadly still doesn´t work...

has the flinging not gotten better in the slightest? right below the knockback variable you're using it as the players velocity, it's bound to have some effect, perhaps lower the value further?

zealous pagoda
#

nope only thing that changed is that the knockback isn´t that much

#

maybe it could be because the characters are r15 and the npc is r6 and it only works on the npc

#

Players*

#

with your help and help from ai it´s fixed

zealous pagoda
charred merlin