I made a script make a tree fall over with tweening, but it is not so working. Is there a way to tween a tree so it falls to the ground the oposite side the tool that you are holding? Here is the script i made:
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
Here is a video of it not wokring btw:
Here is a video of how i want it to fall: