#On Ivoke error message Workspace.Iyashi535.InputManager.M1:45: attempt to concatenate nil with strin
1 messages · Page 1 of 1 (latest)
what is the m1BF?
and
show files bruh
lines
am bit confused on why u got server scripts inside locals but ok
bindable or remote?
and show lines of the code pls
the one that errors
.
i dont see LINES
thats not the script that errors
oh wait
show m1
p sure its saying error cuz invoke erroring
cuz other script erroring
local bindableFunction = script:WaitForChild("Function")
local rs = game:GetService("ReplicatedStorage")
local rsAnimationsFoldder = rs:WaitForChild("Animations")
local plrs = game:GetService("Players")
local lp = plrs.LocalPlayer
local char = lp.Character or lp.CharacterAppearanceLoaded:Wait()
local hum = char:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
local m1sPerformed = 0
local currentM1 = 0
local m1Debounce = false
local comboEndCooldown = 2
local waitBeforeReset = 0.5
local damageScript = script:WaitForChild("Damage")
local damageRF = damageScript:WaitForChild("RemoteFunction")
bindableFunction.OnInvoke = function()
local WeaponSatus = char:GetAttribute("WeaponEquipt")
if WeaponSatus == true then
WeaponEquipt = "Yes"
elseif WeaponSatus == false then
WeaponEquipt = "No"
end
if lp:FindFirstChild("Kento") then
print("Kentohkikjhmi")
Charekter = "Kento"
end
if not m1Debounce then
m1Debounce = true
m1sPerformed += 1
currentM1 += 1
local AnimationName = "M1("..currentM1..")("..WeaponEquipt..")("..Charekter..")"
print(AnimationName)
local correspondingM1anim = rsAnimationsFoldder:FindFirstChild("M1("..currentM1..")")
local m1Track = animator:LoadAnimation(correspondingM1anim)
m1Track:GetMarkerReachedSignsl("Hit"):Connect(function()
local hitboxCFrame =char:FindFirstChild("HumanoidRootpart").CFrame CFrame.new(0, 0, -4)
local hitboxSize = Vector3.new(6, 6, 6)
local createHitbox = workspace:GetPartBoundsInBox(hitboxCFrame, hitboxSize)
local humsHit = {}
for i, v in pairs(createHitbox) do
if v.Parent:FindFirstChild("Humanoid") and not humsHit[v.Parent.Name] and v.Parent ~= char then
humsHit[v.Parent.Name] = true
damageRF:InvokeServer(v.Parent, 10)
end
end
end)
m1Track:Play()
print("hit")
task.wait(m1Track.Length - 0.1)
task.spawn(function()
local oldM1sPerformed = m1sPerformed
task.wait(waitBeforeReset)
if oldM1sPerformed == m1sPerformed then
currentM1 = 0
end
end)
if currentM1 == 4 then
task.wait(comboEndCooldown)
currentM1 = 0
end
m1Debounce = false
end
end
sry my internet is to bad for SS right now
one (or more) is nil