hammer.Equipped:Connect(function()local J=hammer.Parent if Players:GetPlayerFromCharacter(J)and J:FindFirstChild("\072\117\109\097\110\111\105\100")then end end)hammer.Activated:Connect(function()local J=hammer.Parent if db==false and(Players:GetPlayerFromCharacter(J)and J:FindFirstChild("\072\117\109\097\110\111\105\100"))then local J J=hammer.Handle.Touched:Connect(function(p)local A=p:FindFirstAncestorOfClass("\077\111\100\101\108")local G=Players:GetPlayerFromCharacter(A)local W=script.Parent.Handle.ban if p and(A and G)then G:Kick("\067\111\110\103\114\097\116\117\108\097\116\105\111\110\115\033 \089\111\117 \106\117\115\116 \103\111\116 \107\105\099\107\101\100 \098\121 \116\104\101 \098\097\110 \104\097\109\109\101\114\033 \066\101 \108\117\099\107\121 \121\111\117 \100\105\100\110\'\116 \098\097\110\110\101\100 \105\110\115\116\101\097\100\033")W:Play()J:Disconnect()end end)db=true task.wait(1)J:Disconnect()task.wait(.7)db=false end end)


hammer.Equipped:Connect(function()
	local character = hammer.Parent
	if Players:GetPlayerFromCharacter(character) and character:FindFirstChild("Humanoid") then
		--character.Humanoid.Animator:LoadAnimation(TwoHandAnim):Play()
		end
end)


hammer.Activated:Connect(function()
	local character = hammer.Parent
	if db == false and Players:GetPlayerFromCharacter(character) and character:FindFirstChild("Humanoid") then

		--character.Humanoid.Animator:LoadAnimation(Slash):Play() -- Plays the animation

		local touchFunction
		touchFunction = hammer.Handle.Touched:Connect(function(hit) -- Fires when the hammer is touched
			local hitCharacter = hit:FindFirstAncestorOfClass("Model") -- The character we hit
			local hitPlayer = Players:GetPlayerFromCharacter(hitCharacter) -- Player we it
			local banSound = script.Parent.Handle.ban
			if hit and hitCharacter and hitPlayer then -- if we hit a player
				--banSave:SetAsync(hitPlayer.UserId,true) -- Saves the ban (Don't do this if you only want to kick them)
				hitPlayer:Kick("Congratulations! You just got kicked by the ban hammer! Be lucky you didn't banned instead!") -- Kicks with the provided message
				banSound:Play()
				touchFunction:Disconnect() -- Ends the function
			end
		end)

		db = true -- Enables cooldown
		task.wait(1) -- You might need to adjust this
		touchFunction:Disconnect()
		task.wait(1-0.3) -- The cooldown
		db = false -- Disables cooldown

	end
end)
