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 8 years ago
Edited 8 years ago
01local Player = game.Players.LocalPlayer
02local Mouse = Player:GetMouse()
03 
04Mouse.Move:connect(function()
05    if Mouse.Target ~= nil then
06        if Mouse.Target.Name == "Center" then
07            for i,v in pairs (Mouse.Target.Parent:GetChildren()) do
08                if v.Name == "Placed" then
09                    if v.Value == true then
10                        --Code deleted due to confusion
11    end
12end
13end
14end
15end
16end)

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 — 8y
0
Also, check out "Previized" on youtube :D FiredDusk 1466 — 8y

Answer this question