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

how do I move objects (by 4 studs) using a mouse?

Asked by 7 years ago
Edited 7 years ago
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Move:connect(function()
    if Mouse.Target ~= nil then
        if Mouse.Target.Name == "Center" then
            for i,v in pairs (Mouse.Target.Parent:GetChildren()) do
                if v.Name == "Placed" then
                    if v.Value == true then
                        --Code deleted due to confusion
    end
end
end
end
end
end)

I want to make a model (with a center part) be moved at an increment of 4 studs via mouse movement.I tried using Mouse.Move:connect(function() but then didn't know how to make it only move by 4 studs at a time. Please help?

1
There is a tut on youtube by: Protoduction FiredDusk 1466 — 7y
0
Also, check out "Previized" on youtube :D FiredDusk 1466 — 7y

Answer this question