How do I make a badge award pop-up?

I was wondering how can I make a pop-up for like a few seconds and goes away after, that shows the awarded badge when you achieve it in-game? (See picture for reference).

Screenshot_2

Note: Doesn’t necessarily need to have the difficulty of the badge, which is “complex” in the picture, just the photo of the item found and the name.

You can use RemoteEvents to fire when the player touches the part and show the UI on the client.

Something like this: (pseudocode)

ServerScript:

--//Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--//Variables
local DisplayEvent = ReplicatedStorage.DisplayEvent
local Part = script.Parent

--//Functions
Part.Touched:Connect(function(hit)
	local Player = Players:GetPlayerFromCharacter(hit.Parent)
	
	if Player then
		DisplayEvent:FireClient(Player, "MarkerName")
	end
end)

LocalScript:

--//Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--//Variables
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local DisplayEvent = ReplicatedStorage.DisplayEvent

--//Functions
DisplayEvent.OnClientEvent:Connect(function(markerName)
	print(markerName)
	
	PlayerGui.MarkerUI:WaitForChild(markerName).Visible = true
end)
1 Like