Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

can somone help with a part moving into my screen?

So im trying to make this quick little building system, so i have a part go to my mouse position with a while wait() do and it just does this

screenrec.com/share/2zSupok7j6

i wanna know why this is happening and how to fix it please.

2 comments

0

Well, we can't help you if you don't post your code.

0

i said my code though

1 answer

That's because you're using while true/wait do. Do bare in mind it's constantly updating where your mouse is, and since your mouse is over the block it will keep CFraming/Positioning over the block.

To prevent this type of thing from happening I'd personally use Mouse.Move (instead of while loop) or get some Raycasting in place to prevent it CFraming when not necessary.

1 comment

0

It now only moves into my screen when i move my mouse

This discussion is preserved as it was. New answers, comments, and votes are closed.