This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cebff8f
commit 2e723c6
Showing
14 changed files
with
172 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
local Players = game:GetService "Players" | ||
local ReplicatedStorage = game:GetService "ReplicatedStorage" | ||
|
||
local Remotes = require(ReplicatedStorage.Common.Remotes) | ||
|
||
local player = Players.LocalPlayer | ||
local popupTemplate = ReplicatedStorage.PopupTemplate | ||
local Popups = player.PlayerGui:WaitForChild("ScreenEffects").Popups | ||
|
||
local activePopups = {} | ||
|
||
local popupGenerator = function(message) | ||
if activePopups[message] then | ||
return | ||
end | ||
activePopups[message] = true | ||
|
||
local popup = popupTemplate:Clone() | ||
popup.PopupText.Text = message | ||
popup.Parent = Popups | ||
|
||
popup.PopupText:TweenPosition( | ||
UDim2.fromScale(0, 0.074), | ||
Enum.EasingDirection.Out, | ||
Enum.EasingStyle.Quad, | ||
0.2, | ||
true, | ||
function() | ||
task.wait(5) | ||
popup:Destroy() | ||
activePopups[message] = nil | ||
end | ||
) | ||
end | ||
|
||
Remotes.Client:Get("SendPopupMessage"):Connect(popupGenerator) | ||
|
||
return popupGenerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.