You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I need one of my parts to recognize when it touches another part. However the main part is always moving on a CFrame, and from a local script if that makes a difference.
-
What is the issue? The part does not register touches when it is moving through the kill parts. I think .touched documentation said something like it would not trigger if the part was anchored or resulting in a CFrame.
-
What solutions have you tried so far? I have tried using the .touched event but it remains to not work. I am mainly looking for a way to get .touched to work or an alternative.
Some potentially helpful notes:
Main part (Ball) moving code.
task.spawn(function()
while wait() do
c+=1
workspace.Ball.CFrame = workspace.Ball.CFrame + Vector3.new(math.log10(c)*2,0,0)
end
end)
--c is just the cumulative value so the ball increases speed on a logarithmic scale.
The main part (the ball) is unanchored and the desired hitting parts, the kill ones, are parented to sections that are anchored but are not anchored themselves. They use weld constraints. Finally, this is an image of the workspace so you can see more clearly what I mean. Please ignore my horrendous handwriting with my mouse.
