how do I move objects (by 4 studs) using a mouse?
Asked by
8 years ago Edited 8 years ago
01 | local Player = game.Players.LocalPlayer |
02 | local Mouse = Player:GetMouse() |
04 | Mouse.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 |
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?