Change line in a file.write

I have a little problem changing line, I dont know why but it seems it’s not working.

there are 2 arguments in playerbuttondown, you are excluding the first one by doing ‘’, remove the '’ and it will work.

Still not working. I tried what you said:

What exactly do you want? “It’s not working” doesn’t give us much to go on considering we don’t even know what you’re trying to do.

I want to add a line with text everytime I press F7.

I don’t see any issues with the code above, make sure its serverside and the file is being ran.

I delete the file, Press F7, the file is recreated and the text is in it, but it seems everytime I press F7 it simply replace the complete file.

Check if the file exists using

file.Exists. If it doesn’t then create it, otherwise use

file.Append.

It actually worked ! Thank you for helping me out . :cat: