Position offset

It seems to keep happening even with the loop you suggested.

1 Like

I think I had the same issue while trying to create bombs that explode when they hit the ground. The position of the explosions was always mid-air and was set by taking the position of the bomb at the time the .Touched event fired. The issue I think is that the position of the part gets updated a short while AFTER the .Touched event fired. A simple solution for me was making a raycast to see where the bomb or in this case your fireball would hit another object.

hitbox.Position=workspace:Raycast(part.Position,part.Velocity).Position
3 Likes

Use a while loop to print a parts position move that to the centre of the sphere and get the position then when you use the attack subtract the position of the explosion from the centre position which should give a Vector that describes the offset

1 Like

That has fixed my problem, thank you so much!

2 Likes

Remember to mark it as a solution :wink:

2 Likes

Wow thanks dude i thought we were gonna be here all night haha

2 Likes

Same, I’d also like to thank you and Giggio450BR for helping me out with different suggestions.

2 Likes

Facts. That was a nice try though.

1 Like

Yeah I really liked @sonihi suggestion it was quite creative :smirk_cat:

2 Likes

No problem. I’m going to bed now since it’s 21:07 in brazilian time. See you!

Cya have a nice sleep! Random Words To Let Me Say This Message Because I Have To Have 30

1 Like