Any ideas on how to make my boomerang come back to me once it hits an object?

Hello there!

So, i’ve been in studio recently, working on creating a boomerang, and here are the results!

Pretty smooth and decent, but…

Its just one problem though, I need to make it come back once an object is hit, how would I do that? With raycast’s im pretty sure, right?

Its an example in the video shown, when the boomerang hits the object, its obviously gonna glitch and not come back. What I want the boomerang to do is once it hits an object, most likely using raycasts or something, it comes back.

But just how would I do it? Im not really a raycast expert sooo i dont really know. Any guidance on how to do this is appreciated.

Part.Touched:Once(function()

end)

I already have tried this super simple “solution” before. When you are throwing the boomerang, it is already touching your arm, so it would glitch and freak out. I forgot to mention that I already tried using the Instance.Touched function, so my apologies.

1 Like
local Connection: RBXScriptConnection
Connection = Part.Touched:Connect(function(Part)
	if Part:IsDescendantOf(Character) then
		return
	end
	--do stuff
	Connection:Disconnect()
end)
1 Like

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