Ok so I want this function to make it so whenever you fire it, it moves a tree down, it works some of the time, but others it does not. Is there a way to fix it?
local function wodas()
goi.CanvasGroup.Amount.Size = UDim2.new(DamageDelt.Value/100,0,0,75)
local random = math.random(1,90)
local xnew = random/100
local wood2 = game.ReplicatedStorage.Wood:Clone()
wood2.Parent = Players.LocalPlayer.PlayerGui.Items
wood2.Position = UDim2.new(xnew,0,0.76,0)
wood2.TextLabel.Text = "+"..damage.Value
local tween = Tween:Create(wood2, tweenInfo, {Position = woodPosition})
tween:Play()
wait(1.3)
wood2:Destroy()
end
does not work: