Help! Part Detection Script

Hello, I have a Plate System but it doesn’t detect the plates


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

part.Touched:Connect(function(otherPart)
	print(otherPart.Name)
	if otherPart.Name == "FrontPlate" then
		print("Plate Detected")
		print(otherPart.SGUI.Identifier.Text)
		script.Parent.Parent.Info.Reg = otherPart.SGUI.Identifier.Text
	else
		print("No Plate")
	end
end)

Any Ideas why?

It can find other parts just not the Plate

Does the print statement that prints otherPart.Name actually print “FrontPlate?” If so, could you screenshot the output if it does?

No It Prints every other part but it doesn’t find the plate some how.

Is the plate being moved by tweenservice?

Its On a Vehicle In Body, A-Chassis , Not much clue elsewhat

Is the part being moved though?

Ye , It is on the vehicle when it goes through so I am saying yes

Specifically, what are you using to move the vehicle?

A-Chassis moves / controls the vehicle and the part is inside Body no other model

What I mean is are you using tweenservice or some other method of moving a part.

I don’t think I’m using any Method, Its just in the body of the vehicle.

It is meant to detect the plate and get the values from it

D you have Dizzy / Discord by chance if its easier

You’re saying the vehicle is moving and the part is a part of the vehicle.

Yes. Thats Exacrly what I mean

I’ve tested your code, and it seems to work fine. Can you describe some info on the part connected to this script?

image

Could you perhaps show a video of dropping the frontplate (Seperately) on the part that has the touched event.

If you have discord / dizzy I can Screen Shair

I do not have discord unfortunately.

I can publish the Game and u join and Il Admin you

Instead, drop the frontplate (Seperately with the parent as workspace) on the part that has the touched event. Let me know if it prints.