#Mining system, Fire event
5 messages · Page 1 of 1 (latest)
Local pickaxe script ```lua
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local MineEvent = game.ReplicatedStorage.MineEvent
script.Parent.Activated:Connect(function()
local Target = Mouse.Target
local tool = script.Parent
MineEvent:FireServer(Target)
end)```
when putting this code to action the outcome is
** You are now Level 2! **
the tool is "Nil:"