
Key Required VerifiedUniversal

local game = game
local players = game:GetService("Players")
local localPlayer = players.LocalPlayer
local character = localPlayer.Character
local runService = game:GetService("RunService")
local replicatedStorage = game:GetService("ReplicatedStorage")
runService.RenderStepped:Connect(function()
character = localPlayer.Character
if character:FindFirstChildWhichIsA("Tool") and string.find(string.lower(character:FindFirstChildWhichIsA("Tool").Name), "shovel") then
for _,v in workspace.TreasurePiles:GetChildren() do
if v:GetAttribute("Owner") == localPlayer.UserId then
replicatedStorage.Source.Network.RemoteEvents.Digging:FireServer({["Command"] = "IsInArea",["TargetPileIndex"] = v:GetAttribute("PileIndex"),["State"] = true})
replicatedStorage.Source.Network.RemoteFunctions.Digging:InvokeServer({["Command"] = "DigPile",["TargetPileIndex"] = v:GetAttribute("PileIndex")})
end
end
replicatedStorage.Source.Network.RemoteFunctions.Digging:InvokeServer({["Command"] = "CreatePile"})
end
end)
babe wake up, neutral just drop another BANGER
«local game = game»
local game = game
doesnt execute on awp sadly
@Bac0nH1ckOff @kalas irs called optimisation, i can send direct images from synapse x do*ents that show how it improves script performance. add me on discord at "neutralone"