I've changed my code but it still doesn't work?
script.Parent.OnServerEvent:connect(function(Player, Action, V1)
local c = Player.Character or Player.CharacterAdded:Wait()
if Action == "Release" then
ButtonDown = false
end
if Enabled == false then return end
if Action == "Combat" then
Enabled = false
local Humanoid = c:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")
if Combo == 1 then
Combo = 2
local Track = Instance.new("Animation")
Track.AnimationId = "rbxassetid://11285688290"
local Anim = Animator:LoadAnimation(Track)
Anim:Play()
wait(0.5)
Enabled = true
ButtonDown = false
Combo = 1
script.Parent.OnServerEvent:connect(function(Player, Action, V1)
local c = Player.Character or Player.CharacterAdded:Wait()
if Action == "Release" then
ButtonDown = false
end
if Enabled == false then return end
if Action == "Combat" then
Enabled = false
if Combo == 1 then
Combo = 2
local Track = Instance.new("Animation")
Track.AnimationId = "rbxassetid://11285688290"
local Anim = c.Humanoid:LoadAnimation(Track)
Anim:Play()
wait(0.5)
elseif Combo == 2 then
Combo = 3
local Track = Instance.new("Animation")
Track.AnimationId = "rbxassetid://11285688290"
local Anim = c.Humanoid:LoadAnimation(Track)
Anim:Play()
wait(0.5)
elseif Combo == 3 then
Combo = 1
local Track = Instance.new("Animation")
Track.AnimationId = "rbxassetid://11285688290"
local Anim = c.Humanoid:LoadAnimation(Track)
Anim:Play()
wait(0.5)
end
end
wait(0.09)
local Region = Region3.new(V1-Vector3.new(3,3,3),V1+Vector3.new(3,3,3))
local RTable = workspace:FindPartsInRegion3(Region, nil, 20)
for i,v in pairs(RTable) do
if v.Parent:findFirstChild("Humanoid") and v.Parent:findFirstChild("Deb") == nil and v.Parent ~= c then
local Deb = Instance.new("BoolValue", v.Parent)
Deb.Name = "Deb"
game.Debris:AddItem(Deb,0,2)
v.Parent.Humanoid:TakeDamage(5)
local S = Instance.new("Sound", v)
S.SoundId = "rbxassetid://11285764868"
S.PlaybackSpeed = math.random(80,120)/100
S:Play()
end
Enabled = true
end
end)

3 comments
How would I put that in?
nvm figured it out
I edited post to show my new code, still doesn't work?