Why won't the following code print or change the force? I can not figure it out. This script is a child of a part. For now, when I press E, it should print "E on," but it doesn't. Any Ideas? Thanks, PaliKai
game:GetService("UserInputService").InputBegan:Connect(function(Input, gameprocessed)
if Input.KeyCode == Enum.KeyCode.E then
script.Parent.BodyForce.Force = Vector3.new(1000, 0, 0)
print("E on")
end
end)

3 comments
its gameproceed not gameprocessed
Still didn't work
GameProcessed is a variable. It can be whatever you want, you can even use _ and p, if you wished.