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

How could I make a part snap to grid? [closed]

Asked by 7 years ago

I already have the moving part of the script but now I need to make the part snap to grid which the part in this case target:

01local plr = game.Players.LocalPlayer
02local mouse = plr:GetMouse()
03local target = nil
04local down = nil
05local plr = game.Players.LocalPlayer
06 
07function gettarget()
08    if mouse.Target ~= nil then
09        if mouse.Target.Parent == game.Workspace[plr.Name .. "w"] then
10            target = mouse.Target
11            mouse.TargetFilter = target
12            down = true
13        end
14    end
15end
View all 33 lines...

Also could you please explain to me how the snapping works?

0
welp.. nvm already found it. XD joshmatt2244 28 — 7y
0
gonna remove since you already found Goulstem 8144 — 7y

Closed as Not Constructive by Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?