local remote = game:GetService("ReplicatedStorage").Alert.Events.Alert
local ui = game:GetService("ReplicatedStorage").Alert.UI.Alert
local player = game:GetService("Players").PlayerAdded:Wait()
local debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local ui2 = ui:Clone()
remote.OnServerEvent:Connect(function(Player,Text,Time)
local time2 = 1
local Alert_Text = Text
local Alert_Time = Time
local ui3 = ui2
ui3:Clone()
ui3.Frame.Main_Text.Text = Text
ui3.Parent = Player.PlayerGui
local frame = TweenService:Create(ui.Frame, TweenInfo.new(time2), {Transparency = 1})
local text = TweenService:Create(ui.Frame.Main_Text, TweenInfo.new(time2), {Transparency = 1})
local alert = TweenService:Create(ui.Frame.AlertText, TweenInfo.new(time2), {Transparency = 1})
local img = TweenService:Create(ui.Frame.ImageLabel, TweenInfo.new(time2), {Transparency = 1})
wait(Time)
frame:Play()
text:Play()
alert:Play()
img:Play()
ui3:Destroy()
end)
LocalScript
local alertr = game:GetService("ReplicatedStorage").Alert.Events.Alert
alertr:FireServer("Test",5)
wait(2)
alertr:FireServer("Jake_Kajj2",3)
local remote = game:GetService("ReplicatedStorage").Alert.Events.Alert
local ui = game:GetService("ReplicatedStorage").Alert.UI.Alert
local player = game:GetService("Players").PlayerAdded:Wait()
local debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local ui2 = ui:Clone()
remote.OnServerEvent:Connect(function(Player,Text,Time)
local time2 = 1
local Alert_Text = Text
local Alert_Time = Time
local ui3 = ui2:Clone()
ui3.Frame.Main_Text.Text = Text
ui3.Parent = Player.PlayerGui
local frame = TweenService:Create(ui.Frame, TweenInfo.new(time2), {Transparency = 1})
local text = TweenService:Create(ui.Frame.Main_Text, TweenInfo.new(time2), {Transparency = 1})
local alert = TweenService:Create(ui.Frame.AlertText, TweenInfo.new(time2), {Transparency = 1})
local img = TweenService:Create(ui.Frame.ImageLabel, TweenInfo.new(time2), {Transparency = 1})
frame:Play()
text:Play()
alert:Play()
img:Play()
wait(Time)
ui3:Destroy()
end)
A couple possible Issues I can spot. Not sure why you are cloning the gui so much, but try this:
local remote = game:GetService("ReplicatedStorage").Alert.Events.Alert
local ui = game:GetService("ReplicatedStorage").Alert.UI.Alert
local player = game:GetService("Players").PlayerAdded:Wait()
local debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local ui2 = ui:Clone()
remote.OnServerEvent:Connect(function(Player,Text,Time)
local time2 = 1
local Alert_Text = Text
local Alert_Time = Time
local ui3 = ui2:Clone()
ui3.Frame.Main_Text.Text = Text
ui3.Parent = Player.PlayerGui
local frame = TweenService:Create(ui3.Frame, TweenInfo.new(time2), {Transparency = 1})
local text = TweenService:Create(ui3.Frame.Main_Text, TweenInfo.new(time2), {Transparency = 1})
local alert = TweenService:Create(ui3.Frame.AlertText, TweenInfo.new(time2), {Transparency = 1})
local img = TweenService:Create(ui3.Frame.ImageLabel, TweenInfo.new(time2), {Transparency = 1})
wait(Time)
frame:Play()
text:Play()
alert:Play()
img:Play()
ui3:Destroy()
end)
I thinking the tweening code was tweening the wrong gui (ui rather than ui3)
Also ui3 was set to be ui2, rather than being set to the cloned ui2
Again, not sure why you cloned ui2, but I kept it in there.