#💬 omrezkeypieʹs Feedback
1 messages · Page 1 of 1 (latest)
this is good
could be used for something like leveling up
or finishing a challenge
true. has alot of uses. but i made this mainly cause i was bored and wanted to practice my ui skills lol
oh ok
do u know scripting by any chance
or animating
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
oh sorry im not very knowledged about combat scripting
never really done anything like that
it would be best if you just went to #1020374354867007528 and asked someone else
just no animations are showing
i alr asked
they dont know either
hmm well im not very good at animation and combat scripting so im not the guy for you