this is in a local script
inputservice = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Block = Instance.new("Part")
Block.Material = "Brick"
Block.Color = Color3.new(0.666667, 0.333333, 0)
Block.Parent = workspace
Block.Size = Vector3.new(3,3,3)
Block.Name = "Pending"
Block.Transparency = .5
Block.CanCollide = false
Block.Anchored = true
Block.CanTouch = false
while wait() do
if mouse.Target == nil then
else
if mouse.Target.Name == "Pending" then
else
print(mouse.TargetSurface.Name)
if mouse.TargetSurface.Name == "Top" then
Block.Position = mouse.Target.Position +Vector3.new(0,3,0)
end
if mouse.TargetSurface.Name == "Right" then
Block.Position = mouse.Target.Position +Vector3.new(3,0,0)
end
if mouse.TargetSurface.Name == "Front" then
Block.Position = mouse.Target.Position +Vector3.new(0,0,-3)
end
if mouse.TargetSurface.Name == "Back" then
Block.Position = mouse.Target.Position +Vector3.new(0,0,3)
end
if mouse.TargetSurface.Name == "Left" then
Block.Position = mouse.Target.Position +Vector3.new(-3,0,0)
end
if mouse.TargetSurface.Name == "Bottom" then
Block.Position = mouse.Target.Position +Vector3.new(0,-3,0)
end
end
end
end
inputservice.InputBegan:Connect(function(input, gameprossessd)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local newBlock = Instance.new("Part")
newBlock.Material = "Brick"
newBlock.Color = Color3.new(0.666667, 0.333333, 0)
newBlock.Parent = workspace
newBlock.Size = Vector3.new(3,3,3)
newBlock.Name = (player.Name.."'s Block")
newBlock.Transparency = 0
newBlock.CanCollide = true
newBlock.Anchored = true
newBlock.CanTouch = false
newBlock.Position = Block.Position
local ID = Instance.new("IntValue", newBlock)
ID.Name = "CanbePlaced"
end
end)
as in the video I just want the mouse.Target to ignore the identifer block