How do I learn luau faster?

I can barely understand the luau syntax, I only gotten this far and the rest of the documentation I don’t understand.

function foo(x: number, y: string): boolean
    local k: string = y:rep(x)
    return k == "a"
end

Any help is appreciated!

1 Like

that is reallly off. first you dont need to identify the type. like x: number.

1 Like

luaU is the same as normal lua but with more functions catered towards roblox.

1 Like
function foo(x,y)
	local k = y:rep(x)
	return k == "a"
end

this is a simplified version without all the identifiers.

1 Like