I made a parry system and I made it so that if you parried someone it signals that the person is parried, problem is that the signal is only local. how do I fix that (it is a local script but i want to convert it to global script)
eventFolder.Parried.OnClientEvent:Connect(function(Player)
if not debounce then
debounce = true
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
game.StarterGui.Parried:Play()
local stunned = human:LoadAnimation(animFolder.Stunned)
local NewGui = shieldGUI:Clone()
NewGui.Parent = character.HumanoidRootPart
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
human:UnequipTools()
stunned:Play()
wait(2.5)
human.WalkSpeed = 16
human:EquipTool(Tool)
NewGui:Destroy()
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Enable()
human.JumpPower = 50
startergui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
debounce = false
end
end)