Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My code just doesn't seem to work anymore?, I would really appreciate some help

Asked by 3 years ago
Edited 3 years ago

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

0
Please use the codeblock for your code, dont make it normal texf AlexanderYar 788 — 3y

1 answer

Log in to vote
0
Answered by
h8run 30
3 years ago

Change this line

while autotap == true do

To

while getgenv().autotap == true do
0
thank you Burnsomerubber 2 — 3y
Ad

Answer this question