#hello can someone explain to me why this function is not getting triggered?

1 messages · Page 1 of 1 (latest)

steel sable
#

local function equipRank(player: Player, rank: string)
local humanoid: Humanoid = player.Character:FindFirstChild("Humanoid")
if humanoid then
local _, configLine = getItem(rank, "Ranks")
local multiplier = configLine.Stat
humanoid.MaxHealth = multiplier * DEFAULT_HEALTH
humanoid.Health = humanoid.MaxHealth
humanoid.WalkSpeed = multiplier * DEFAULT_WALK_SPEED
end
end

#

I dont know if its getting trigger but nothing is happening when im trying to buy the ranks

dull oak
#

Hey there! I will be assisting you!

steel sable
#

Okayy can i dm you?

dull oak
lyric jewel
#

Put a print statement

#

To debug

steel sable
dusky tundraBOT
#

studio** You are now Level 1! **studio

dry jetty
#

show calling side

steel sable
#

whats calling side?

#

im new sorry

#

now i have this error

Inventory is not a valid member of Player "Players.Itsme_Trks" - Client - Manager:89

inside that line is this

local result = remotes.Shop.ShopBuy:InvokeServer(clickedItem.Name, currentShop)

#

Yesss i didd it i debugg it my self HAHAHAHA

lyric jewel
#

lol

honest anchor