-- join my discord ! https://discord.gg/SW7km6m3pF local tool = Instance.new("Tool") tool.Parent = game.Players.LocalPlayer.Character tool.RequiresHandle = false tool.Activated:Connect(function() local f = workspace.Tiles local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart for i, v in pairs(f:GetDescendants()) do if v:IsA("RayValue") and v.Name == "Mine" then if v:FindFirstChild("Flagged") then return end local args = { v.Parent } game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Remotes"):WaitForChild("AddFlag") :FireServer(unpack(args)) end end for i, v in pairs(f:GetChildren()) do if v.Name == "Unactivated" and not v:FindFirstChild("Flagged") then if v.FindFirstChild("Mine") then return end firetouchinterest(hrp, v.Activator, 0) end end end)