I want to make a chopable tree, and when the tree breaks, you get it’s resources. However, when I cut down my tree, the resources fall from a tall height. How can I use Vector3 to make the resources “fall” from 1 stud off the ground?
robloxapp-20210605-0123538.wmv (1.8 MB)
portion of script where the game decides to drop the resources:
local wood = game.ReplicatedStorage.Logs:Clone()
wood.Parent = workspace
wood:MoveTo(script.Parent.Position) -- script.parent.positon refers to the tree itself(the wood, not the leaves). how can I add a vector 3 here? im confused.
ongoing = false
health = 100
wait(respawn)
for i, x in pairs(script.Parent.Parent:GetChildren()) do
x.Transparency = 0
x.CanCollide = true
end
bool = true
ongoing = true
edit: excuse the poor roblox studio quality, im not recording via the app again, that quality is so bad.