So i made this code but i have decied i dont want the tool how would i make it work without?
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local done = false
local disconnected = false
local deb = false
plr.Character.ChildAdded:Connect(function(x)
mouse.Button1Down:Connect(function()
if x.Name == "Dig" then -- change to the tool name
if deb == false then
disconnected = false
if x.Parent == plr.Character then
script.Parent.PutInStarterGui.Full.Visible = true
script.Parent.PutInStarterGui.Full.Miniature:TweenSize(UDim2.new(1,0,1,0),"Out","Quad",1)
wait(1)
if disconnected == false then
workspace.Main_Dig.Dig_event:FireServer(mouse.Hit.p)
end
script.Parent.PutInStarterGui.Full.Miniature.Size = UDim2.new(0,0,1,0)
script.Parent.PutInStarterGui.Full.Visible = false
end
else
wait(1)
deb = false
end
end
end)
end)
mouse.Button1Up:Connect(function()
disconnected = true
script.Parent.PutInStarterGui.Full.Miniature.Size = UDim2.new(0,0,1,0)
script.Parent.PutInStarterGui.Full.Visible = false
deb = true
end)

1 comment
Remove line 8 and line 25 then try it...