Cant FIre RemoteEvent more then once

  1. What is the issue?
    Cant fire Remote again

Normal Script

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)
2 Likes

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.

Hope this helps!

1 Like

thank you it works now but it doesn’t tween

try the @SuperSpeedy101 one. it’s going to works

2 Likes

the one @SuperSpeedy101 works but it dosent tween. Like it dosent fade the frame

“transparency” doesnt exist in frame’s property. that why it doesn’t works

I was cloning so much because when i tried to clone it once it dosent clone but when i cloned it more then once it cloned

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.