Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i fix it? im dum and i have a smooth brain

Asked by 3 years ago
Edited 3 years ago

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"

0
it's hard to read gamingwithjbthepro 76 — 3y
0
there is nothing called select in workspace, can you send us an image of your workspace and its descendants? sne_123456 439 — 3y
0
Whats the error and also please put all your code in a code block AlexanderYar 788 — 3y

Answer this question