For some reason, when I click during the long cooldown after my 3 m1 combo, it queues it and plays it after the cooldown is over. How can i make it not do that? To be a little clearer, the cooldown should nullify all presses of the mouse button when it is active. (Please don't mind the other things happening in this clip like the giant sword attached to my arm, my friend is trying to do something with motor6Ds but he didn't finish working on it.)
#Combo System Bug
1 messages · Page 1 of 1 (latest)
Cooldown input detected.
Action blocked until Debounce == false.
ok so where do i put the debounce
replace
if Combo > MaxCombo then
ComboDebounce = true
wait(1)
ComboDebounce = false
Combo = 1
end
with
if Combo > MaxCombo then
ComboDebounce = true
task.delay(1, function()
ComboDebounce = false
end)
return
end
and it'll probably work
this didn't seem to work
** You are now Level 3! **
sad
Wait nevermind you did replace it, you just moved the original above it lol
uh
should i just reset the Combo* variable in the functon?
Oh shoot
this one's my bad
I forgot to have it reset the combo in the one I gave you
Yeah just make sure to put the Combo = 1 in that function
this did work tho, thank you sm
the sword disappears and i cant use click attacks anymore 😭
Is the script in starterplayerscripts
yea
That'll be the issue
Those don't reset when the character does, so therefore when your character dies, the character variable is now set to something that doesn't exist as well as every variable connected to it
Now, while you could make a player.CharacterAdded thing that resets the variables, you could also just put it in startercharacter scripts
oh ok that works
now the sword is gone but the punches work but i think thats smth my friend is supposed to do
thanks for the help
The sword loading is a pretty easy fix as well
oh whats the fix for that cause hes losing it in vc lol
cause hes trying to use like motor6ds and stuff but neither of us know how it works so we're trying to figure it out
Instead of CharacterAppearanceLoaded, try CharacterAdded
hold on is this supposed to be serverside or local
Well, I'm assuming your friend is the guy having problems with this
heres the script btw local Players = game:GetService("Players")
local RepStorage = game:GetService("ReplicatedStorage")
local Weapon = RepStorage.Assets:WaitForChild("Weapon")
Players.PlayerAdded:Connect(function(Players)
Players.CharacterAdded:Connect(function(Character)
local RightArm = Character:FindFirstChild("Right Arm")
local ClonedWeapon = Weapon:Clone()
ClonedWeapon.Parent = Character
local Handle = ClonedWeapon:FindFirstChild("Handle")
local CFrameValue = ClonedWeapon:FindFirstChild("Value")
local motor6d = game.ReplicatedStorage.Assets.Weapon.Handle:WaitForChild("Motor6D")--Instance.new("Motor6D")
motor6d.Part0 = RightArm
motor6d.Part1 = Handle
motor6d.C1 = CFrameValue.Value
motor6d.Parent = Handle
end)
end)
So just edit this
yup
thats him
the thing is i changed that and when i reset it still disappears
Try WaitForChild for the right arm
yea
the sword in question is stored in replicated storage under a folder called "assets"
are any errors showing up in the output?
Oh, well i think i found the problem
infinite yield?
cause im getting an infinite yield on the motor part and its not there
You're grabbing the motor6d from the model in the replicated storage instead of the clone 😭
My previous changes I told you to make can be reversed if you want btw, they aren't really doing anything
oh ok
They were just kinda hail marys because I didn't see the motor6d problem lol
😭
iirc there was also some issue with getting the position of the handle to be in the right spot
** You are now Level 4! **
Try removing the C1
so then what does the handle get welded to
If you're using the motor6d directly from the animation, then the C1 is already set where it needed to be by default
Uh, that last sentence might change things
I thought the animation was already done and you were using a motor6d with preconfigured settings
He's using moon animator do animate the weapon, right
he's using blender
Imma be honest, I've never used blender for animations
hes using moon to weld it
So I don't know how that works
Oh, if he's using moon to weld it then maybe I do know
oh ok so how do i do it with moon
Well, tell him to make the animation and see if it works, because the thing I was assuming was that he was animating a motor6d welded with moon animator lol
** You are now Level 10! **
he is a blender animator but he was welding the handle part to the model with moon then exporting it to blender and reimporting it so would that work
I have no idea, but hopefully
so would that fall under the moon weld fix
ok so im gonna force him to animate it
and we'll test ig
Gl
thanks
I mean, I think it should work fine as long as he used moon animators welder right
combo system super easy, barely an inconvenience. i dont understand why you having such trouble with it. all you have to do is put code and m1 go brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Real im just a special coder😎