This was working perfectly fine earlier, I have no idea what could of broke it. Anyone have ideas on how to fix this?
Edit: ParrySound is a RemoteFunction
-- Remote event commands
local Parry = tool:WaitForChild("ParrySound")
local ParryValue = tool:WaitForChild("Parry")
Parry.OnServerEvent:Connect(function()
local ParrySoundfile = blade:FindFirstChild("Parry")
if not ParrySoundfile then
return
end
ParryValue.Value = true
ParrySoundfile:Play()
CanSwing.Value = false
wait(1)
CanSwing.Value = true
ParryValue.Value = false
end)