I have been working on this for a little while, I hope someone can help
Here are my scripts
wait(3)
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local Target = player.Character:FindFirstChild("Humanoid")
local Animation = Target:LoadAnimation(script.Choke)
local Debounce = false
Mouse.KeyDown:Connect(function(Key)
if Debounce == false then
Key = Key:lower()
if Key == "f" then
game.ReplicatedStorage.WaterBeam:FireServer(Mouse.Target)
Animation:Play()
Debounce = true
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
wait(2)
Debounce = false
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Enable()
end
end
end)
-- local rp = game.ReplicatedStorage
local Debound = false
rp.WaterBeam.OnServerEvent:Connect(function(player, Mouse)
if Mouse.Parent:FindFirstChild("Humanoid") then
local Target = Mouse.Parent:FindFirstChild("Humanoid")
local TargetN = Target.Parent.Name
local Animation = Target:LoadAnimation(script.Choke)
if Debound == false then
local Hum = Mouse.Parent
Target.JumpPower = 0
Target.WalkSpeed = 0
Animation:Play()
wait(2)
Animation:Stop()
Target.JumpPower = 50
Target.WalkSpeed = 16
print("Humanoid")
Target.Health = 0
else
print("No Humanoid")
end
end
end)