RC Part

Where to put it

Workspace

Script

local up = game.Workspace.Up.ClickDetector

local down = game.Workspace.Down.ClickDetector

local left = game.Workspace.Left.ClickDetector

local right = game.Workspace.Right.ClickDetector

local part = game.Workspace.MovingPart


local function moveUp()

part.Position = part.Position + Vector3.new(0,0,-10)

end


local function moveDown()

part.Position = part.Position + Vector3.new(0,0,10)

end


local function moveLeft()

part.Position = part.Position + Vector3.new(-10,0,0)

end


local function moveRight()

part.Position = part.Position + Vector3.new(10,0,0)

end


up.MouseClick:Connect(moveUp)

down.MouseClick:Connect(moveDown)

left.MouseClick:Connect(moveLeft)

right.MouseClick:Connect(moveRight)

Moving Multiple Parts

local up = game.Workspace.Up.ClickDetector

local down = game.Workspace.Down.ClickDetector

local left = game.Workspace.Left.ClickDetector

local right = game.Workspace.Right.ClickDetector

local part = game.Workspace.MovingPart

local part2 = game.Workspace.MovingPart2


local function moveUp()

part.Position = part.Position + Vector3.new(0,0,-10)

part2.Position = part2.Position + Vector3.new(0,0,-10)

end


local function moveDown()

part.Position = part.Position + Vector3.new(0,0,10)

part2.Position = part2.Position + Vector3.new(0,0,10)

end


local function moveLeft()

part.Position = part.Position + Vector3.new(-10,0,0)

part2.Position = part2.Position + Vector3.new(-10,0,0)

end


local function moveRight()

part.Position = part.Position + Vector3.new(10,0,0)

part2.Position = part2.Position + Vector3.new(10,0,0)

end


up.MouseClick:Connect(moveUp)

down.MouseClick:Connect(moveDown)

left.MouseClick:Connect(moveLeft)

right.MouseClick:Connect(moveRight)