#On Ivoke error message Workspace.Iyashi535.InputManager.M1:45: attempt to concatenate nil with strin

1 messages · Page 1 of 1 (latest)

plucky lark
#

So im trying to connect 2 script with invoke but evry time its invoking the errormessage "Workspace.Iyashi535.InputManager.M1:45: attempt to concatenate nil with string " pops up

verbal crater
#

and

#

show files bruh

#

lines

plucky lark
#

m1BF bindablefunction

verbal crater
#

am bit confused on why u got server scripts inside locals but ok

verbal crater
#

and show lines of the code pls

plucky lark
#

what code from inputmanager, M! or Damage

#

M1*

verbal crater
#

the one that errors

verbal crater
#

i dont see LINES

plucky lark
verbal crater
#

bud

#

take a

#

full

#

SS

#

of both error and code

plucky lark
#

are loading

verbal crater
#

oh wait

#

show m1

#

p sure its saying error cuz invoke erroring

#

cuz other script erroring

plucky lark
#

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

verbal crater