local ClickArea = script.Parent.Parent.Parent.Parent.ClickArea
local sound = script.Parent.Parent.Parent.Parent.Sound
local progress = script.Parent
ClickArea.MouseButton1Click:Connect(function()
sound:Play()
if progress.Size == UDim2.new(0,562,0,28) then
progress:Destroy() return end
progress.Size += UDim2.new(0,70.25,0,0)
end)
but it dosent work
i need help on it
(this is a repost since the other post was not helpful)
local Goal = UDim2.new(0,562,0,28)
ClickArea.MouseButton1Click:Connect(function()
sound:Play()
if (progress.Size.X.Offset >= Goal.X.Offset) then
progress:Destroy()
return
end
progress.Size += UDim2.new(0,70.25,0,0)
end)