Skip to content

Commit

Permalink
fix creating events
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 2, 2023
1 parent a129d8a commit c60205e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c60205e

Please sign in to comment.