Hi, I've started to make a simple mining game focused to help my lua skills and scripting knowledge, first of all it is erroring. It says this: "11:50:15.286 - ServerScriptService.Script:2: bad argument #2 to '?' (string expected, got Object)"
If you can help me out, I'd really appreciate it.
Pickaxe Script
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
script.Parent.Activated:Connect(function(plr)
local A1 = mouse.Target
game.ReplicatedStorage.Dig:InvokeServer(A1)
end)
ServerScriptService
game.ReplicatedStorage.Dig.OnServerInvoke = function(A1)
workspace[A1]:Destroy()
end
