Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

can somone help with a part moving into my screen?

Asked by 3 years ago
Edited 3 years ago

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.

0
Well, we can't help you if you don't post your code. DocGooseYT 110 — 3y
0
i said my code though HolySloth17 0 — 3y

1 answer

Log in to vote
1
Answered by
pwx 1581 Moderation Voter
3 years ago

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.

0
It now only moves into my screen when i move my mouse HolySloth17 0 — 3y
Ad

Answer this question