Chest opening/Gacha/banner help

I want to achieve those anime banner Gacha opening systems you see in anime tower defense games or fruit battlegrounds

What I have
(First Apporach , clone a chest and set the camera cframe to the chest and play animation)

what i also tried doing was playing around with viewport but you cant put vfx in there only play animations)
– this is what i have created

the results i want

ik thse are ui but then how do get the vfx in them and etc

hey, your reference photos/videos are broken!

try again

[ignoreeeeeeeeeeeeeeeeeeeeee]

if your not using viewport, just create textlabels and display them over the animation ending.

function OnAnimationEnd()
    local Text = Instance.new("TextLabel")
    local Text.Parent = Players.PlayerGui:WaitForChild("GameUi") -- assuming this is where you store your game ui, it may be different. you could also make your own screengui through the script itself
    Text.Size = UDim2.fromScale(0.5, 0.2)
    Text.Position = UDim2.fromScale(0.5, 0.85)
    Text.AnchorPoint = Vector2.new(0.5, 0.5)
    Text.Text = "Gold Fruit"
    Text.TextColor3 = Color3.fromRGB(255, 255, 255)
    Text.BackgroundTransparency = 1
end

your version would likely look very different and have animations (probably using TweenService) but thats the idea.

I just went with the fruit batttlegrounds aproach

(theres)

(mines)

set the camera cframe

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.