How to add multiplication into Function?
I'm trying to get it to where the YMINUS is multiplied by the Queue so if it's 5 it multiplies 55 by 5
14 | local Notification = script.Parent.Notification:clone() |
15 | Notification.Name = "Notification1" |
16 | Notification.Parent = script.Parent |
17 | Notification:TweenPosition(UDim 2. new( 1 , X, 0 , Y), "Out" , "Bounce" , . 5 , true ) |
20 | Notification:TweenPosition(UDim 2. new( 1 , XCLOSE, 0 , Y), "Out" , "Bounce" , . 5 , true ) |
22 | elseif Queue = = 1 then |
23 | script.Parent.Notification 1 :TweenPosition(UDim 2. new( 1 , X, 0 , Y-YMINUS), "Out" , "Back" , . 5 , true ) |
24 | YCLOSE = YCLOSE-YMINUS |
25 | local Notification = script.Parent.Notification:clone() |
26 | Notification.Name = "Notification2" |
27 | Notification.Parent = script.Parent |
28 | Notification:TweenPosition(UDim 2. new( 1 , X, 0 , Y), "Out" , "Bounce" , . 5 , true ) |
31 | Notification:TweenPosition(UDim 2. new( 1 , XCLOSE, 0 , Y), "Out" , "Bounce" , . 5 , true ) |
36 | game.workspace.PlayerJoined.OnClientEvent:connect( function () |
37 | script.Parent.Notification.Text = game.workspace.PlayerJoined.PlayerName.Value .. " has joined." |
41 | game.workspace.PlayerLeft.OnClientEvent:connect( function () |
42 | script.Parent.Notification.Text = game.workspace.PlayerLeft.PlayerName.Value .. " has left." |