this is my script
local gp = script.Parent local player = game.Players.LocalPlayer local mouse = player:GetMouse() local grass = game.ReplicatedStorage:WaitForChild("Grass"):Clone() if gp.Equipped then mouse.Button1Down:Connect(function() local mouseRay = mouse.UnitRay local castRay = Ray.new(mouseRay.Origin, mouseRay.Direction * 1000) local hit, position = workspace:FindPartOnRay(castRay) if script.Parent.PlaceAmountValue.Value >= 0 then grass.Parent = game.Workspace grass.Position = hit.Position end end) end