idk how to fix this:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local down

function clickObj()
	mouse.TargetFilter = workspace.Select
	if mouse.Target ~= nil then
		local mtarget = mouse.Target
		    if mtarget.Name == "GrassBlock" then
			mtarget:Destroy()
			end
		down = true
		mouse.TargetFilter = mtarget
	end
end
mouse.Button2Down:connect(clickObj)

function mouseMove()
	
			wait(0.001)
			game.Workspace.> Select.Highlight.Position = Vector3.new(mouse.Target.Position.X, mouse.Target.Position.Y, mouse.Target.Position.Z)
			
		
		

end
mouse.Move:connect(mouseMove)

after that i got an error message that says "Select is not a valid member of Workspace"

3 comments

0

it's hard to read

0

there is nothing called select in workspace, can you send us an image of your workspace and its descendants?

0

Whats the error and also please put all your code in a code block