--!strict

local LocalPlayer: Player = game:GetService("Players").LocalPlayer
local Replicated = game:GetService("ReplicatedStorage")

local Character: Model = LocalPlayer.Character::Model
local Humanoid: Humanoid = Character:WaitForChild("Humanoid")::Humanoid

Humanoid.Jumping:Connect(function(active: boolean)
	if not active then
		return
	end
	
	Replicated.LocalEvents.ToggleFlipFlops:Fire()
end)
