Limit choices on functions

image

How do you make “Val: a” be able to choose only 2 things?

Add(Val: coins or diamonds, Number: b): ()
This is what im trying to code but idk how

module script or function:
image

1 Like

IIRC, you can make it an OR statement by using |

e.g.

local fruit: APPLE | ORANGE
5 Likes

I think you just can’t,
val:any

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.