-
What do you want to achieve? I literally just want to make this parts touch event fire
-
What is the issue? my touch event for my part isn’t firing
-
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
and properties of the bobber part
local part = script.Parent
print("hi")
local function OnTouch(hit)
print(hit)
end
part.Touched:Connect(OnTouch)