So I'm getting this error, 19:48:19.203 - Players.MrMeeper9.Backpack.LocalScript:36: Expected ')' (to close '(' at line 16), got , how to fix?
repeat wait() until game.Players.LocalPlayer.Character
local Plr = game.Players.LocalPlayer
local Char = Plr.Character or Plr.CharacterAdded:Wait()
local Mouse = Plr:GetMouse()
local CouldGetLeaves = true
function ShowProgress(Leaves)
if CouldGetLeaves == "Leaves" then
for i = 0,1,.01 do
WC.BG.Bar.Progress.Size = UDim2.new(i,0,1,0)
wait()
end
end
end
Mouse.Button1Down:connect(function()
if Mouse.Target ~= nil and Mouse.Target.Parent.Name == "Leaves" and CouldGetLeaves == true then
local Wood = Mouse.Target
if (Wood.Position - Char.UpperTorso.Position).magnitude < 10 then
CouldGetLeaves = false
WC = Plr.PlayerGui.WoodChopper
WC.BG.Visible = true
Char.Humanoid.WalkSpeed = 0
ShowProgress ("Leaves")
Char.Humanoid.WalkSpeed = 16
for i,v in pairs(Wood.Parent.Leaves:GetChildren())do
if v:IsA("Leaves") then
v.Anchored = false
end
end
end
Wood:Destroy()
WC.BG.Visible = false
CouldGetLeaves = true
end
end

3 comments
Is it a TextButton or a ClickDetector?
Its in a local script in startpack
I've resolved your program.