Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 comment

0

Please use the codeblock for your code, dont make it normal texf

1 answer

✓ Accepted answer

Change this line

while autotap == true do

To

while getgenv().autotap == true do

1 comment

0

thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.