^ how would I make something like that
Animations
Ilovethelimitilovethelimit
have you tried to create one yourself, Creating one yourself can make is easier to read
here are the steps
- Tween the coin to a random position from the center and size it to make it bigger
- Tween the coin position to the 2nd GUI and resize it
Explorer:
LocalScript:
local TweenService = game:GetService("TweenService")
local Coin = script.Parent:WaitForChild("Coin")
local EndPos = script.Parent:WaitForChild("EndPos")
local function CreateAnimation(Amount)
for i=1, Amount do
task.spawn(function()
local ClonedCoin = Coin:Clone()
ClonedCoin.Visible = true
ClonedCoin.Size = UDim2.fromOffset(40, 40)
ClonedCoin.Parent = script.Parent
local FirstTween = TweenService:Create(
ClonedCoin,
TweenInfo.new(0.7),
{
["Position"] = UDim2.fromScale(math.random(300, 700) / 1000, math.random(300, 700) / 1000),
["Size"] = UDim2.fromOffset(60, 60)
}
)
FirstTween:Play()
FirstTween.Completed:Wait()
local LastTween = TweenService:Create(
ClonedCoin,
TweenInfo.new(1),
{
["Position"] = EndPos.Position,
["Size"] = UDim2.fromOffset(50, 50)
}
)
LastTween:Play()
LastTween.Completed:Wait()
ClonedCoin:Destroy()
end)
end
end
while task.wait(5) do
CreateAnimation(math.random(5, 15))
end
12 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.