I don’t know if I might be doing something wrong or if Roblox has a bug right now. But this is what’s happening:
local function onBuy(player: Player, args: {any}): (boolean, string?)
local name = args.ItemName
--[[
for some reason, under the
args.ItemName, it has the orange
squiggly line and when you hover
over it, it gives the error(in the
title of this post. Replace the
___ with ItemName)
This doesn’t make sense at all
because it says it should be any
type in the {any} thing in the
parameters.
]]
end
I tried using both nonstrict and strict already. It also wouldn’t make sense for the bug to appear either way anyways. I’ve also done stuff like this before and it’s never done this once. I even tried doing an if statement like this
if args.ItemName then
And it still does the orange squiggly line error
Can you try putting this script into studio and see if it happens for you too?