local C=game:GetService("\080\108\097\121\101\114\115")local G=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local U=game:GetService("\082\117\110\083\101\114\118\105\099\101")local H=require(G.shared.testPackets)H.myPacket.event:connect(function(C)print("\067\111\110\102\105\114\109\105\110\103 \099\108\105\101\110\116 -\062 \115\101\114\118\101\114")print(C)local G=Instance.new("\080\097\114\116")G.Anchored=true G.BrickColor=BrickColor.Blue()G.CFrame=C G.Parent=workspace end)local z=require(G.shared.counter)C.PlayerAdded:Connect(function()z.countUp()end)H.events.countUp.connect(function(C)print("\099\111\117\110\116 \105\110 \115\101\114\118\101\114\058",z.counts[C])end)
--!strict
--!native
--!optimize 2

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local packets = require(ReplicatedStorage.shared.testPackets)

packets.myPacket.event:connect(function(data)
	print("Confirming client -> server")
	print(data)

	local part = Instance.new("Part")
	part.Anchored = true
	part.BrickColor = BrickColor.Blue()
	part.CFrame = data
	part.Parent = workspace
end)

-- packets.myPacket.event:connect(function(data)
-- 	print("received enum:", data)
-- end)

-- RunService.Heartbeat:Connect(function()
-- 	packets.myPacket.broadcast("aa")
-- end)

local counter = require(ReplicatedStorage.shared.counter)

Players.PlayerAdded:Connect(function()
	counter.countUp()
end)

packets.events.countUp.connect(function(player)
	print("count in server:", counter.counts[player])
end)
