I have created a way to move an object using mouse.Target. this is the script
local mouse = game.Players.LocalPlayer:GetMouse()
function moveable()
mouse.Button1Down:connect(function()
if mouse.Target.Name == 'moveable' and mouse.Target.Selected.Value == false then
mouse.Target.Parent = game.Workspace.Selected-- selected is a value in the block called 'moveable'
mouse.Target.Selected.Value = true--change value to true to notify that its selected
while wait (.001) do
game.Workspace.Selected.moveable.CFrame = CFrame.new(Vector3.new(mouse.Hit.X,mouse.Hit.Y - .2,mouse.Hit.Z))--change block's cframe to mouse's position.
end
end
end)
end
while true do
moveable()
wait()
end
it works, but when i add another "moveable" block, it does not work. it only works for one moveable block. please help?

4 comments
Could it possibly be from not reverting the selected value when you deselect a block?
no, i have another script to deselect a block. :( any other suggestions?
Mabye make another value (selected2?) that functions like selected, but just for the second block.
i could do that, and it would work, but i want an efficient thing to use because i want to make many moveable blocks. and i dont want to keep making separate values for all the blocks any other suggestions?.