Help to pop up effects

Hi scripters and developers, could you please help me with the script as from this video

I’m creating a game similar to this one and I would like to ask how to make the same pop-up, but I looked at all the forums and YouTube didn’t find it anywhere, could you help me?

3 Likes

That’s just a randomly placed GUI with a spin effect added. Spin is from Frame Rotation.
The text is in a different frame.

I would like with animation like in the video that I threw off

It is not difficult for you to throw off a nursery, you can throw off an example

Use tweenservice.

What does your current script look like? Maybe I can help with it

my animation script you say? Nursery, yes, I’ll throw it off tomorrow, I’ll sleep right now

grrrrrr i noticed you keep creating posts but you wont provide sauce code to your scripts :rage:

1 Like

I cannot provide you the full script but you can learn about rotating tweens https://www.youtube.com/watch?v=9y36-8BUBQY

#1 you need to show us where you are and not just ask for a script …
#2 this is way harder than I was thinking … lol

This is what I got …

local imageLabel = script.Parent
local tweenService = game:GetService("TweenService")
local workspace = game:GetService("Workspace")

local imageSize = imageLabel.Size
local screenDimensions = workspace.CurrentCamera.ViewportSize

local fadeDuration = 0.5
local spinDuration = 1.5

local borderPadding = 100

local totalCount = 5 -- Total number of times the effect should happen
local currentCount = 0 -- Current count of the effect

local function showGUI()
	local startPos = UDim2.new(math.random(), 0, math.random(), 0)
	local endPos = UDim2.new(math.random(), 0, math.random(), 0)
	local startRotation = math.random(0, 360)
	local endRotation = startRotation + 360

	local safeBoundsX = screenDimensions.X - imageSize.X.Offset - borderPadding * 2
	local safeBoundsY = screenDimensions.Y - imageSize.Y.Offset - borderPadding * 2

	startPos = UDim2.new(
		math.random(),
		safeBoundsX > 0 and math.random(borderPadding, safeBoundsX + borderPadding) or borderPadding,
		math.random(),
		safeBoundsY > 0 and math.random(borderPadding, safeBoundsY + borderPadding) or borderPadding
	)

	imageLabel.Position = startPos
	imageLabel.Rotation = startRotation
	imageLabel.ImageTransparency = 1
	imageLabel.Visible = true

	local fadeInInfo = TweenInfo.new(fadeDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
	local fadeOutInfo = TweenInfo.new(fadeDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
	local spinInfo = TweenInfo.new(spinDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)

	local fadeInProperties = { ImageTransparency = 0 }
	local fadeOutProperties = { ImageTransparency = 1 }
	local spinProperties = { Rotation = endRotation }

	local fadeIn = tweenService:Create(imageLabel, fadeInInfo, fadeInProperties)
	local fadeOut = tweenService:Create(imageLabel, fadeOutInfo, fadeOutProperties)
	local spin = tweenService:Create(imageLabel, spinInfo, spinProperties)

	fadeIn:Play()
	fadeIn.Completed:Connect(function()
		spin:Play()
		spin.Completed:Connect(function()
			fadeOut:Play()
			fadeOut.Completed:Connect(function()
				currentCount = currentCount + 1
				if currentCount < totalCount then
					showGUI()
				else
					imageLabel.Visible = false
				end
			end)
		end)
	end)
end

showGUI()

And here is the whole set up.
spin.rbxm (4.8 KB)
I seem to have a problem with it staying within the defined boarder of the screen.
Maybe someone else can take it from here …

1 Like

Good afternoon my script from the video:

I wrote the entire script from this video

my pop up text animation script

''wait(0.1)
script.Parent:TweenPosition(UDim2.new(script.Parent.Position.X,0,-0.1,0))
wait()

for i = 1,20 do
script.Parent.Rotation += 1
script.Parent.TextStrokeTransparency += 0.05
script.Parent.TextTransparency += 0.05
wait(0.05)
end’’

pls help me to make pop up effects

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