Textfield number only

i want to make a textfield but only number works.

stop editing my subject. i mean “how can use a float on a textfield” but you don’t get it ha?

for letting the Player input an amount of gold to drop, you can try using

var EnteredAmountOfGold : String;
EnteredAmountOfGold = GUI.TextField(Rect(TargetX + 310, TargetY + 300, 142, 25), EnteredAmountOfGold,35);

DropGold = float.Parse(EnteredAmountOfGold);

try this.