I’ll make a nuke script for my game, and I want a background animation like this:
(All credits for Answer Or Die and its studio)
I’ll make a nuke script for my game, and I want a background animation like this:
(All credits for Answer Or Die and its studio)
i think they put rainbow gradiant image inside a button and rotate it
ui gradient and tween its rotation
Looks like they’re tweening the rotation until it hits each corner, then moving to the next (tween/corner).
How I put two frames like this, and the gradiant perfectly rotating without “leaving” the button? I have to set the zindex or something?
make a frame with uigradient with looped rotation tween, then put a imagebutton inside the frame i think
It’s a Frame inside it an ImageLabel which is the nuke image and TextLabel which is the Nuke Text.
For the rotating animation, they’ve added a UIGradient inside the Frame and colored it as a rainbow.
Next up They’ve added this script inside to make the animation play.
local TimeEachSpin = 1.5
while task.wait() do
local animation = game.TweenService:Create(script.Parent, TweenInfo.new(TimeEachSpin), {Rotation = script.Parent.Rotation + 360})
animation:Play()
animation.Completed:Wait()
end
Make sure to mark it as a solution if it helped.
put this in localscript inside the uigradient
local TS = game:GetService("TweenService")
TS:Create(script.Parent, TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, false, 0), {Rotation = script.Parent.Rotation + 360}):Play()
It works! Tsym man! Exactly than showed in the video.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.