There is an error at line 9. I am trying to make a tool that give cash and that is the fill of the tool. I hope you understand me.
local prog = 0
local Give = workspace.Events.Give
local Player = game.Players.LocalPlayer
local fillv = game.ReplicatedStorage.Fillit
local x = script.Parent.Parent.Parent
Player.Backpack.Cash1.Activated:Connect(function()
while wait(.1) do
prog = prog + 10
script.Parent.Size = UDim2.new(prog/100, 0, 0, 65)
script.Parent.Text = ("Filling...")
if prog == 100 then
wait(0.34)
fillv.Value = false
x:Destroy()
end
end
end)
