77-- This file is not meant to be edited
88
99_G ._BLINK = _G ._BLINK or {}
10- if _G ._BLINK ["WELCOME_TO_HELL_KIT " ] then
11- error ("[Blink]: An instance of blink is already running with the remote scope \" WELCOME_TO_HELL_KIT \" . Change the remote scope of either instance to avoid conflicts." )
10+ if _G ._BLINK ["WELCOME_TO_HELL_CORE " ] then
11+ error ("[Blink]: An instance of blink is already running with the remote scope \" WELCOME_TO_HELL_CORE \" . Change the remote scope of either instance to avoid conflicts." )
1212end
13- _G ._BLINK ["WELCOME_TO_HELL_KIT " ] = true
13+ _G ._BLINK ["WELCOME_TO_HELL_CORE " ] = true
1414local ReplicatedStorage = game :GetService ("ReplicatedStorage" )
1515local RunService = game :GetService ("RunService" )
1616
1717local Promise = require (ReplicatedStorage .Packages .Promise )
18- local BASE_EVENT_NAME = "WELCOME_TO_HELL_KIT_BLINK "
18+ local BASE_EVENT_NAME = "WELCOME_TO_HELL_CORE_BLINK "
1919local Invocations = 0
2020
2121local SendSize = 64
@@ -158,100 +158,16 @@ local Queue: any = {
158158
159159local SerdesEvent = "?"
160160local SerdesThread : thread ?
161- Queue .Reliable [1 ] = table.create (256 )
162- Queue .Reliable [2 ] = table.create (256 )
163- Queue .Reliable [3 ] = table.create (256 )
164- local function WriteEVENT_rejoin (Value : nil ): ()
165- -- Allocate BLOCK: 1 bytes
166- local BLOCK_START = Allocate (1 )
167- buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 0 )
168- end
169-
170- local function WriteFUNCTION_DATA_getTower (Value : nil , InvocationIdentifier : number ): ()
171- -- Allocate BLOCK: 2 bytes
172- local BLOCK_START = Allocate (2 )
173- buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 1 )
174- buffer.writeu8 (SendBuffer , BLOCK_START + 1 , InvocationIdentifier )
175- end
176-
177- local function ReadFUNCTION_RETURN_getTower (): (Instance )
178- -- Read BLOCK: 1 bytes
179- local BLOCK_START = Read (1 )
180- local Success = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
181- if Success ~= 1 then
182- error ("Server encountered an error." )
183- end
184- RecieveInstanceCursor += 1
185- local Value = RecieveInstances [RecieveInstanceCursor ]
186- if typeof (Value ) ~= "Instance" then error (`Expected an Instance, got {typeof (Value )} instead.` ) end
187- if not Value :IsA ("Instance" ) then error (`Expected an Instance of type "Instance", got "{Value .ClassName }" instead.` ) end
188- return Value
189- end
190-
191- local function WriteFUNCTION_DATA_loadMechanics (Value : nil , InvocationIdentifier : number ): ()
192- -- Allocate BLOCK: 2 bytes
193- local BLOCK_START = Allocate (2 )
194- buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 2 )
195- buffer.writeu8 (SendBuffer , BLOCK_START + 1 , InvocationIdentifier )
196- end
197-
198- local function ReadFUNCTION_RETURN_loadMechanics (): (Instance )
199- -- Read BLOCK: 1 bytes
200- local BLOCK_START = Read (1 )
201- local Success = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
202- if Success ~= 1 then
203- error ("Server encountered an error." )
204- end
205- RecieveInstanceCursor += 1
206- local Value = RecieveInstances [RecieveInstanceCursor ]
207- if typeof (Value ) ~= "Instance" then error (`Expected an Instance, got {typeof (Value )} instead.` ) end
208- if not Value :IsA ("Instance" ) then error (`Expected an Instance of type "Instance", got "{Value .ClassName }" instead.` ) end
209- return Value
210- end
211-
212- local function WriteFUNCTION_DATA_loadDecorations (Value : nil , InvocationIdentifier : number ): ()
213- -- Allocate BLOCK: 2 bytes
214- local BLOCK_START = Allocate (2 )
215- buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 3 )
216- buffer.writeu8 (SendBuffer , BLOCK_START + 1 , InvocationIdentifier )
217- end
218-
219- local function ReadFUNCTION_RETURN_loadDecorations (): (Instance )
220- -- Read BLOCK: 1 bytes
221- local BLOCK_START = Read (1 )
222- local Success = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
223- if Success ~= 1 then
224- error ("Server encountered an error." )
225- end
226- RecieveInstanceCursor += 1
227- local Value = RecieveInstances [RecieveInstanceCursor ]
228- if typeof (Value ) ~= "Instance" then error (`Expected an Instance, got {typeof (Value )} instead.` ) end
229- if not Value :IsA ("Instance" ) then error (`Expected an Instance of type "Instance", got "{Value .ClassName }" instead.` ) end
230- return Value
231- end
232-
233161local function WriteEVENT_damage (Value : number ): ()
234162 -- Allocate BLOCK: 2 bytes
235163 local BLOCK_START = Allocate (2 )
236- buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 4 )
164+ buffer.writeu8 (SendBuffer , BLOCK_START + 0 , 0 )
237165 buffer.writeu8 (SendBuffer , BLOCK_START + 1 , Value )
238166end
239167
240168if not RunService :IsRunning () then
241169 local NOOP = function () end
242170 local Returns = table.freeze ({
243- rejoin = {
244- fire = NOOP
245- },
246- getTower = {
247- invoke = NOOP
248- },
249- loadMechanics = {
250- invoke = NOOP
251- },
252- loadDecorations = {
253- invoke = NOOP
254- },
255171 damage = {
256172 fire = NOOP
257173 },
@@ -297,40 +213,6 @@ Reliable.OnClientEvent:Connect(function(Buffer: buffer, Instances: {Instance})
297213 -- Read BLOCK: 1 bytes
298214 local BLOCK_START = Read (1 )
299215 local Index = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
300- if Index == 1 then
301- -- Read BLOCK: 1 bytes
302- local BLOCK_START = Read (1 )
303- local InvocationIdentifier = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
304- local Success , ReturnValue = pcall (function ()
305- return ReadFUNCTION_RETURN_getTower ()
306- end )
307- if Calls [InvocationIdentifier ] ~= nil then
308- task.spawn (Calls [InvocationIdentifier ], Success , ReturnValue )
309- Calls [InvocationIdentifier ] = nil
310- end
311- elseif Index == 2 then
312- -- Read BLOCK: 1 bytes
313- local BLOCK_START = Read (1 )
314- local InvocationIdentifier = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
315- local Success , ReturnValue = pcall (function ()
316- return ReadFUNCTION_RETURN_loadMechanics ()
317- end )
318- if Calls [InvocationIdentifier ] ~= nil then
319- task.spawn (Calls [InvocationIdentifier ], Success , ReturnValue )
320- Calls [InvocationIdentifier ] = nil
321- end
322- elseif Index == 3 then
323- -- Read BLOCK: 1 bytes
324- local BLOCK_START = Read (1 )
325- local InvocationIdentifier = buffer.readu8 (RecieveBuffer , BLOCK_START + 0 )
326- local Success , ReturnValue = pcall (function ()
327- return ReadFUNCTION_RETURN_loadDecorations ()
328- end )
329- if Calls [InvocationIdentifier ] ~= nil then
330- task.spawn (Calls [InvocationIdentifier ], Success , ReturnValue )
331- Calls [InvocationIdentifier ] = nil
332- end
333- end
334216 end
335217end )
336218Unreliable .OnClientEvent :Connect (function (Buffer : buffer , Instances : {Instance })
@@ -355,77 +237,6 @@ end)
355237local Returns = table.freeze ({
356238 stepReplication = StepReplication ,
357239
358- rejoin = {
359- fire = function (Value : nil ): ()
360- WriteEVENT_rejoin (Value )
361- end
362- },
363- getTower = {
364- invoke = function (Value : nil )
365- return Promise .new (function (Resolve , Reject , OnCancel )
366- local InvocationIdentifier = Invoke ()
367- if Calls [InvocationIdentifier ] ~= nil then
368- Invocations -= 1
369- error ("More than 256 calls are awaiting a response, this packet has been dropped." )
370- end
371- WriteFUNCTION_DATA_getTower (Value , InvocationIdentifier )
372- Calls [InvocationIdentifier ] = coroutine.running ()
373- OnCancel (function ()
374- Calls [InvocationIdentifier ] = nil
375- end )
376- local Success , ReturnValue : Instance = coroutine.yield ()
377- if Success ~= true then
378- Reject ("There was an exception while processing \" getTower\" ." )
379- return
380- end
381- Resolve (ReturnValue )
382- end )
383- end
384- },
385- loadMechanics = {
386- invoke = function (Value : nil )
387- return Promise .new (function (Resolve , Reject , OnCancel )
388- local InvocationIdentifier = Invoke ()
389- if Calls [InvocationIdentifier ] ~= nil then
390- Invocations -= 1
391- error ("More than 256 calls are awaiting a response, this packet has been dropped." )
392- end
393- WriteFUNCTION_DATA_loadMechanics (Value , InvocationIdentifier )
394- Calls [InvocationIdentifier ] = coroutine.running ()
395- OnCancel (function ()
396- Calls [InvocationIdentifier ] = nil
397- end )
398- local Success , ReturnValue : Instance = coroutine.yield ()
399- if Success ~= true then
400- Reject ("There was an exception while processing \" loadMechanics\" ." )
401- return
402- end
403- Resolve (ReturnValue )
404- end )
405- end
406- },
407- loadDecorations = {
408- invoke = function (Value : nil )
409- return Promise .new (function (Resolve , Reject , OnCancel )
410- local InvocationIdentifier = Invoke ()
411- if Calls [InvocationIdentifier ] ~= nil then
412- Invocations -= 1
413- error ("More than 256 calls are awaiting a response, this packet has been dropped." )
414- end
415- WriteFUNCTION_DATA_loadDecorations (Value , InvocationIdentifier )
416- Calls [InvocationIdentifier ] = coroutine.running ()
417- OnCancel (function ()
418- Calls [InvocationIdentifier ] = nil
419- end )
420- local Success , ReturnValue : Instance = coroutine.yield ()
421- if Success ~= true then
422- Reject ("There was an exception while processing \" loadDecorations\" ." )
423- return
424- end
425- Resolve (ReturnValue )
426- end )
427- end
428- },
429240 damage = {
430241 fire = function (Value : number ): ()
431242 WriteEVENT_damage (Value )
0 commit comments