#No damage when I change models

1 messages · Page 1 of 1 (latest)

bleak ocean
chilly jewel
#

explorer

#

is there a humanoid on it?

bleak ocean
#

yeah I even readded a humanoid using my model to be sure

chilly jewel
#

like when you test?

#

is there a humanoid when you change your character to noob

bleak ocean
#

seems to be i started the game became noob and the scripts and humanoid properly loaded in him

chilly jewel
#

uh

#

a few things you can do

#

like

#

check all of the limbs to see if "CanTouch" is enabled or not

#

or print the damage table on the damage script

bleak ocean
#

wait like can touch on the parts or the humanoid?

#

im assuming parts right

chilly jewel
#

yes

#

parts

#

like head

#

or trso

bleak ocean
#

okay I was looking in the humanoid for a second but yeah they do have can touch the only thing they dont have is can collide

chilly jewel
#

holy my internet is so bad i had to resend messages just so they get sent 😭

bleak ocean
#

dang

chilly jewel
#

oh

#

try the second one

#

print the damage table

bleak ocean
#

like this?

chilly jewel
#

no like

#

print(damage)

bleak ocean
#

ohh

chilly jewel
#

at the start of touched

bleak ocean
#

before the if statements

chilly jewel
#

i mean you could choose

bleak ocean
#

nothing still it seems

chilly jewel
bleak ocean
#

the output said nothing

chilly jewel
#

huh

#

weird

#

did you put it after or before the if statement?

bleak ocean
#

after "If hit.Parent:FindFirstChild("Humanoid") then"

chilly jewel
#

try print(hit:GetFullName()) before it then

bleak ocean
#

it said "Workspace.Baseplate 😭

chilly jewel
#

oh

#

no like when you touched it?

bleak ocean
#

I joined and it instantly said it

#

its in the function and everything

chilly jewel
#

yeah thats fine

#

bcuz the baseplate touched that part probably

#

try touching it with noob now

#

what does it print

bleak ocean
#

it read on my base player but not noob at all

chilly jewel
#

ohh

#

wait like

#

your player?

#

it prints your player?

bleak ocean
#

heres the output

#

when I change to noob it stops working

chilly jewel
#

still that?

#

or

bleak ocean
#

nothing

#

it doesnt want to detect noob touching it at all for some reason

chilly jewel
#

pretty weird

#

have you tried with a new rig?

bleak ocean
#

i can try with a new rig

chilly jewel
#

js for a prototype

#

if it works then change your noob

bleak ocean
#

yeah nothing

chilly jewel
#

so

#

with your script probably

bleak ocean
#

the module script?

chilly jewel
#

im rereading it

#

its so hard coded

bleak ocean
#

wdym

chilly jewel
#

like

#

ModelSwap.LoadNoobModel instead of ModelSwap.LoadModel

#

yk

bleak ocean
#

oh because the script loads multiple models one second

#

its for multiple players

#

Noobs is the most complete

chilly jewel
#

huh

#

i dont get it

#

what does it loading multiple models have to do with it

#

it doesnt matter

bleak ocean
#

thats just why it says modelswap.LoadNoobModel and not ModelSwap.Loadmodel

chilly jewel
#

this is definitely unrelated to the bug were talking about but i think it would be more beneficial if you switch to a modular system, just saying

bleak ocean
#

wdym modular system? i havent really heard of that Im still semi new to coding

chilly jewel
#

its the reason modulescript exists

#

you can have multiple modulescripts like "Noob", "Guest", etc

bleak ocean
#

ohh I've thought of that but never knew how to do it without it loading either one or the wrong model

chilly jewel
#

uh but yeah

#

like i said

#

its completely unrelated

#

its not gonna fix this bug, its just gonna fix a lot of headache

bleak ocean
#

yeah ill remember to look into that but anyways back to my main problem

chilly jewel
#

i dont get it

#

why doesnt it detect

#

the only reason that would be the case is

#

if "CanTouch" is disabled

torn axle
bleak ocean
#

first message sent

fading fractalBOT
#

studio** You are now Level 7! **studio

chilly jewel
bleak ocean
#

a part in workspace

chilly jewel
#

@bleak ocean did you put the print() after the humanoid check or before it?

#

oh wait no

#

it printed baseplate

#

nvm

astral trout
#

does the problem still persist with them

bleak ocean
#

Yes

astral trout
#

holy spaghetti code

bleak ocean
fleet barn
#

have you tried switching player.Character = NewCharacterModel

#

did you set rootpart network owner to player

#

seems odd

chilly jewel
#

pretty weird

#

ive never seen this one before

#

he used a new rig so cantouch must be enabled

fleet barn
#

why wouldn't he used the command bar to have humanoid take damage instead

#

rather than having a touch part to do all that

chilly jewel
#

he needs to test the touch

#

for hitboxes

fleet barn
#

right

chilly jewel
#

well\

#

he could use GetPartsOnPart or something tho, idk

#

alternative

#

ly

fleet barn
#

either those or GetPartBoundsInBox would work

#

that's really odd

bleak ocean
#

I found A wierd outcome that could be the reason for it but I don't know how to change it

#

when I change models only the client works afterward

#

heres a video of it

bleak ocean
#

nvm after almost 8 hours of tweaking I actually fixed it 😭