Mobile Tower Defense

When I move the tower close to the player, the character will keep moving towards the camera.


this scrip

Hello :waving_hand:
You should try making the instance you are placing have no collision because the camera will not go past “solid” objects (correct me if i am wrong) and after you place it make it have collision

Are all collision/touching values off for the part?

Yes, I did set up the collision group, but later I just adjusted the transparency and it worked fine.

Yes, I did set up the collision group,..

If I understand correctly, you want your camera to ignore the model whilst you’re holding it.
If that is the case take a look at this thread or this newer one.

But long story short, you’ll need to change the Popper module of the StarterPlayerScript (or you can adjust the transparency by a slight amount like you did)

but I do recommend reading through those threads if you want a lasting solution.

Make sure .CanQuery is also off on all the baseparts of the model.

for i, basePart in narutoModel:GetDescendants() do
    if basePart:Is("BasePart") then
        basePart.CanCollide = false
        basePart.CanQuery = false
    end
end

I’ve tried, but still can’t solve this problem.

Thank you for your sharing. The problem has been solved.

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