mirror of
				https://github.com/imezx/Warp.git
				synced 2025-11-03 19:49:16 +00:00 
			
		
		
		
	Update Index.luau
This commit is contained in:
		
							parent
							
								
									187510f73d
								
							
						
					
					
						commit
						87e2a8d0ec
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -55,7 +55,7 @@ function Server:Invoke(timeout: number, player: Player, ...: any): any
 | 
			
		|||
end
 | 
			
		||||
 | 
			
		||||
function Server:Connect(callback: (plyer: Player, args: any) -> ()): string
 | 
			
		||||
	local key = tostring(Key())
 | 
			
		||||
	local key = Key()
 | 
			
		||||
	table.insert(self.fn, key)
 | 
			
		||||
	ServerProcess.addCallback(self.id, key, callback)
 | 
			
		||||
	self.IsConnected = #self.fn > 0
 | 
			
		||||
| 
						 | 
				
			
			@ -63,7 +63,7 @@ function Server:Connect(callback: (plyer: Player, args: any) -> ()): string
 | 
			
		|||
end
 | 
			
		||||
 | 
			
		||||
function Server:Once(callback: (plyer: Player, args: any) -> ()): string
 | 
			
		||||
	local key = tostring(Key())
 | 
			
		||||
	local key = Key()
 | 
			
		||||
	table.insert(self.fn, key)
 | 
			
		||||
	self.IsConnected = #self.fn > 0
 | 
			
		||||
	ServerProcess.addCallback(self.id, key, function(...)
 | 
			
		||||
| 
						 | 
				
			
			@ -100,4 +100,4 @@ function Server:Destroy()
 | 
			
		|||
	setmetatable(self, nil)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
return Server.new
 | 
			
		||||
return Server.new
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue