Skip to content

Commit f68086a

Browse files
committed
Changed to WaitForChild for admin events if the admin system is installed, in case of slow startup.
1 parent 0ed1977 commit f68086a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/client/Gui.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ function Gui.Init()
138138
-- overwrites the default "true" state of HasWritePermission
139139
local adminEvents = game:GetService("ReplicatedStorage"):FindFirstChild("MetaAdmin")
140140
if adminEvents then
141-
local isScribeRF = adminEvents:FindFirstChild("IsScribe")
141+
local isScribeRF = adminEvents:WaitForChild("IsScribe")
142142

143143
if isScribeRF then
144144
Gui.HasSpeakerPermission = isScribeRF:InvokeServer()
145145
end
146146

147147
-- Listen for updates to the permissions
148-
local permissionUpdateRE = adminEvents:FindFirstChild("PermissionsUpdate")
148+
local permissionUpdateRE = adminEvents:WaitForChild("PermissionsUpdate")
149149
permissionUpdateRE.OnClientEvent:Connect(function()
150150
-- Request the new permission
151151
if isScribeRF then

src/client/Halos.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Halos.Init()
3737
local earRing = orb:FindFirstChild("EarRing")
3838
local eyeRing = orb:FindFirstChild("EyeRing")
3939

40-
if earRing then
40+
if earRing ~= nil then
4141
local whiteHalo = earRing:Clone()
4242
whiteHalo.Name = Config.WhiteHaloName
4343
whiteHalo.Transparency = 1
@@ -49,7 +49,7 @@ function Halos.Init()
4949
end
5050
end
5151

52-
if eyeRing then
52+
if eyeRing ~= nil then
5353
local blackHalo = eyeRing:Clone()
5454
blackHalo.Name = Config.BlackHaloName
5555
blackHalo.Transparency = 1

src/common/Config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local Config = {
44
WaypointTag = "metaorb_waypoint",
55
PointOfInterestTag = "metaorb_poi",
66
DataStoreTag = "orb.",
7-
Version = "0.5.0",
7+
Version = "0.5.2",
88
TweenTime = 5,
99
RopeLength = 10,
1010
TransportWaitTime = 10,

0 commit comments

Comments
 (0)