hey, i want to send "W" to a function through the use of heartbeat() and it says this:
17:23:19.661 - Attempt to connect failed: Passed value is not a function
and this:
17:23:20.411 - attempt to call a nil value (x46)
this is my code:
local function rotatePart(direction) if direction then print("W") end end if shifting == true then heartBeat1 = runService.Heartbeat:Connect(rotatePart("W")) end
i have a bunch of conditions surrounding this code but the problem only appears when trying to pass the argument "W" to the above function.