Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with making notification system queue?

Asked by 9 years ago

Ok so im trying to make a notification system that alerts people when ever someone either joins,leaves, or dies. but im having a problem to where when a new notification is received it overwrites the last one.

01-- Server script fires event whenever player joins or leaves
02game.Players.PlayerAdded:connect(function(player)
03    game.workspace.PlayerJoined.PlayerName.Value = player.Name
04    game.workspace.PlayerJoined:FireAllClients()
05end)
06 
07game.Players.PlayerRemoving:connect(function(player)
08    game.workspace.PlayerLeft.PlayerName.Value = player.Name
09    game.workspace.PlayerLeft:FireAllClients()
10end)
01--local script then works the magic
02---------[Constants]-------------------------------------------------------------------------------
03 
04local OPENPOSITION = UDim2.new(1, -200, .75, 0)
05local CLOSEPOSITION = UDim2.new(1, 0, .75, 0)
06local Queue = 0
07 
08---------[End]-------------------------------------------------------------------------------------
09 
10function Notify()
11    if Queue == 0 then
12        local Notification = script.Parent.Notification:clone()
13        Notification.Name = "Notification1"
14        Notification.Parent = script.Parent
15        Notification:TweenPosition(OPENPOSITION, "Out", "Bounce", .5, true)
View all 41 lines...

i want it to where everytime the queue goes up by 1 the previous notifications go up by 55. please help me.

Answer this question