#💬 omrezkeypieʹs Feedback

1 messages · Page 1 of 1 (latest)

tawny dirgeBOT
compact crow
#

this is good

#

could be used for something like leveling up

#

or finishing a challenge

hearty ridge
compact crow
#

do u know scripting by any chance

#

or animating

hearty ridge
#

i know scripting

#

like 2 years ish of experience

#

2 and a half

compact crow
#

o ok

#

can u help me with an issue rq

#
local Player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local Mouse = Player:GetMouse()

local CurrentCombo = 1
local Attacking = false
local Blocking = false
local Block = script.Parent.Humanoid:LoadAnimation(game.ReplicatedStorage.CombatSystem.CombatAnimations.Block)
local LeftPunch = script.Parent.Humanoid:LoadAnimation(game.ReplicatedStorage.CombatSystem.CombatAnimations.LeftPunch)
local RightPunch = script.Parent.Humanoid:LoadAnimation(game.ReplicatedStorage.CombatSystem.CombatAnimations.RightPunch)

UserInputService.InputBegan:Connect(function(input, processed)
    if input.KeyCode == Enum.KeyCode[game.ReplicatedStorage.CombatSystem.Settings.Keybinds.Punch.Value] then
        if Attacking == true or Blocking == true or processed then return end
        Attacking = true
        if CurrentCombo == 1 then
            LeftPunch:Play()
            CurrentCombo = 2
            game.ReplicatedStorage.CombatSystem.Punching:FireServer()
        else
            RightPunch:Play()
            CurrentCombo = 1
            game.ReplicatedStorage.CombatSystem.Punching:FireServer()
        end
        wait(0.6)
        Attacking = false
    end
    if input.KeyCode == Enum.KeyCode[game.ReplicatedStorage.CombatSystem.Settings.Keybinds.Block.Value] then
        if Attacking == true or processed then return end
        Block:Play()
        Blocking = true
    end
end)

UserInputService.InputEnded:Connect(function(input, processed)
    if Attacking == true or processed then return end
    if input.KeyCode == Enum.KeyCode[game.ReplicatedStorage.CombatSystem.Settings.Keybinds.Block.Value] then
        Block:Stop()
        Blocking = false
    end
end)
#
--[[
Mouse.Button1Down:Connect(function(processed)
    if Attacking == true or Blocking == true or processed then return end
    Attacking = true
    if CurrentCombo == 1 then
        LeftPunch:Play()
        CurrentCombo = 2
        game.ReplicatedStorage.CombatSystem.Punching:FireServer()
    else
        RightPunch:Play()
        CurrentCombo = 1
        game.ReplicatedStorage.CombatSystem.Punching:FireServer()
    end
    wait(0.6)
    Attacking = false
end)

Mouse.Button2Down:Connect(function(processed)
    if Attacking == true or processed then return end
    Block:Play()
    Blocking = true
end)

Mouse.Button2Up:Connect(function(processed)
    if Attacking == true or processed then return end
    Block:Stop()
    Blocking = false
end)
]]
#

this is my combatclient syntax

hearty ridge
#

oh sorry im not very knowledged about combat scripting

#

never really done anything like that

compact crow
#

ohh ok

#

the issue is that the combat is fine

hearty ridge
compact crow
#

just no animations are showing

compact crow
#

they dont know either

hearty ridge
#

hmm well im not very good at animation and combat scripting so im not the guy for you