From c60205ee49e3d0c05f8c4ea4c55f3d2c359507b8 Mon Sep 17 00:00:00 2001 From: jackdotink Date: Sat, 2 Dec 2023 11:08:31 -0600 Subject: [PATCH] fix creating events --- lib/init.luau | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/init.luau b/lib/init.luau index dc0e46f..453dae4 100644 --- a/lib/init.luau +++ b/lib/init.luau @@ -2,11 +2,13 @@ local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") if RunService:IsServer() then - if not ReplicatedStorage:FindFirstChild("RedEvent") then + if not ReplicatedStorage:FindFirstChild("ReliableRedEvent") then local ReliableRemote = Instance.new("RemoteEvent") ReliableRemote.Name = "ReliableRedEvent" ReliableRemote.Parent = ReplicatedStorage + end + if not ReplicatedStorage:FindFirstChild("UnreliableRedEvent") then local UnreliableRemote = Instance.new("UnreliableRemoteEvent") UnreliableRemote.Name = "UnreliableRedEvent" UnreliableRemote.Parent = ReplicatedStorage