local function B(B)local I=game.ReplicatedStorage:FindFirstChild(B)if not I then I=Instance.new("\082\101\109\111\116\101\069\118\101\110\116",game.ReplicatedStorage)I.Name=B end return I end local I=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\085\112\100\097\116\101\069\118\101\110\116")local f=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\069\113\117\105\112\069\118\101\110\116")local Z=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\085\110\101\113\117\105\112\069\118\101\110\116")local c=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\070\105\114\101\069\118\101\110\116")local v=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\083\104\111\116\069\118\101\110\116")local M=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\082\101\108\111\097\100\069\118\101\110\116")local N=B("\082\079\066\076\079\088\095\080\105\115\116\111\108\072\105\116\069\118\101\110\116")

local function createEvent(eventName)
	local event = game.ReplicatedStorage:FindFirstChild(eventName)
	if not event then
		event = Instance.new("RemoteEvent", game.ReplicatedStorage)
		event.Name = eventName
	end
	return event
end

local updateEvent = createEvent("ROBLOX_PistolUpdateEvent")
local equipEvent = createEvent("ROBLOX_PistolEquipEvent")
local unequipEvent = createEvent("ROBLOX_PistolUnequipEvent")
local fireEvent = createEvent("ROBLOX_PistolFireEvent")
local shotEvent = createEvent("ROBLOX_PistolShotEvent")
local reloadEvent = createEvent("ROBLOX_PistolReloadEvent")
local hitEvent = createEvent("ROBLOX_PistolHitEvent")
