Problem with collision

im trying to make a drawing system but the earasing collision isnt working it just doesnt do anything also the earaser is anchored and getting teleported to the mouse cursor somoene help

Iā€™m assuming the eraser is, like, a model.

earaser:PivotTo(Cframe.new(pos.p.X,-0.89,pos.p.Z))

no the earaser is a single part

everything else works the earaser goes to your mouse and the drawing system works just the earaser collision is broken

every thing is working but just the earaser collision isnt working

You could have the eraser elevated, and then from there use a raycast to cast a ray downwards, and check to see if the owner is by you. (have a stringvalue or something to indicate the player owns it, or whatever method).

From there, you would just destroy the part once the ray has hit it. If you are wondering how you would cast the ray, you would cast it every frame that mousebutton1 is being held down.

i fixed it i just used :GetTouchingParts()!

1 Like

every player gets their own folder with their drawing in a folder in it and the earaser

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