How can i get a part through the mouse’s position? I have this script right here:
local tool = script.Parent
local plant = script.Parent.Plant
local uis = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
script.Parent.Activated:Connect(function(v)
local hit = mouse.Hit.Position
end)
And i want to know if the mouse’s position hit a part and if so, interact with that part. How can i do that?