part.Touched event not firing when duplicating part + script from replicated storage?

  1. What do you want to achieve? I literally just want to make this parts touch event fire

  2. What is the issue? my touch event for my part isn’t firing

  3. What solutions have you tried so far? checked dev hub a bit

so basically im making a fishing rod for my game and i have it when you click with it a bobber is replicated from replicatedstorage and a clone of it is placed into the tool as a child. Also maybe worth noting is a rope constraint connecting it to the rod. I want to be able to have the touch event fire so i can know when it touched water. but the touch event isn’t firing at all for anything and i dont know why.
the first script that prints “hi” when the script starts doesnt even happen too.

when i use the code in a seperate part the script works fine

the bobber is unanchored and cancollide and cantouch is true

heres the rod
image

and properties of the bobber part

local part = script.Parent

print("hi")

local function OnTouch(hit)
	
	print(hit)
	
end

part.Touched:Connect(OnTouch)

Is the CanTouch property enabled?

yes my cantouch property is enabled

Are you enabling the script after you clone it?

yes the script is also enabled

oh… im dumb

the script that clones the bobber is in a local script so thats why it isn’t firing

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.