if game.Workspace.daven2004.Humanoid.Health = 100 then game:GetService('VirtualUser'):SetKetDown('w") end

how can i make this work ?

2 comments

0

Why would you want to simulate a keypress? Just fire the function.

0

Daven, an if statement checks once. In order for it to continuously check, use the health changed event. Then you can either check if the health is lower then it was before or you can just have it press a key.