Hey,i have recently followed a tutorial to make a autotap script for a game (Yes,i am very new to coding) all was working fine until i put getgenv() in the script rather then (_G),i would really appreciate help with why my script is not working. It also doesn't return any errors in the dev console.
Code: getgenv().autotap = true
function Tap() spawn (function () while autotap == true do local args = { [1] = 1 } game:GetService("ReplicatedStorage").Aero.AeroRemoteServices.ClickService.Click:FireServer (unpack(args)) wait() end end) end
Change this line
while autotap == true do
To
while getgenv().autotap == true do