Categories > Coding > Lua >

(Can someone help me im new from scripting) Expected identifer when parsing method name, got "Tab"

New Reply

Posts: 2

Threads: 1

Joined: Mar, 2023

Reputation: 0

Posted

-- Values
_G.autoTap = true


-- Fuctions

function autoTap()
    while _G.autoTap == true do
        game:GetService("ReplicatedStorage").Remote.Tap:FireServer()
        wait(.0001)
     end
    end

-- Tabs
local FarmTab = Window:MakeTab({
    Name: "Tab",
    Icon = "rbxassetid://4483345998",
    PremiumOnly = false
})

-- Toggles
FarmTab:AddToggle({
    Name = "Auto Tap",
    Default - false
    Callback = function(Value)
        _G.autoTap = Value
        autoTap()
    end
})





end
OrionLib:Init()
  • 0

  • Comment

bennytrt

Atonix V3 Soon?

Posts: 633

Threads: 56

Joined: Apr, 2022

Reputation: 32

Replied

Maybe boot the lib and make a tab first if u got anymore questions feel free to contact me on discord : L1QU1D069#4242

-- boot the lib
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
-- create the tab
local Window = OrionLib:MakeWindow({Name = "Title of the library", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  • 0

  • Comment

Atonix Discord

https://discord.gg/hpQVuAyccJ

Posts: 1658

Threads: 80

Joined: Feb, 2020

Reputation: 87

Replied

Lua doesn't set table fields like JavaScript. You want to use the assign ("=") operator to set a field.

https://i.imgur.com/Pskxf9s.png

{
    Name = "Tab",
    Icon = "rbxassetid://4483345998",
    PremiumOnly = false
}
  • 0

  • Comment

Posts: 524

Threads: 19

Joined: Nov, 2022

Reputation: 60

Replied

@bennytrt

https://media.discordapp.net/attachments/1087065142195388458/1091370097161023579/image.png

  • 0

  • Comment

Posts: 1658

Threads: 80

Joined: Feb, 2020

Reputation: 87

Replied

@atariXD I don't follow that convention at all

  • 0

  • Comment

bennytrt

Atonix V3 Soon?

Posts: 633

Threads: 56

Joined: Apr, 2022

Reputation: 32

Replied

@atariXD, i used the docs on github

  • 0

  • Comment

Atonix Discord

https://discord.gg/hpQVuAyccJ

Posts: 4

Threads: 0

Joined: Apr, 2023

Reputation: 0

Replied

I think making a website like you is an advantage for you, I am very happy to share my feelings with everyone, I am very passionate about the game because it is very interesting. Please take the time to experience with me here: trap the cat

 

  • 0

  • Comment

Whoman

#3561

Posts: 1047

Threads: 54

Joined: May, 2022

Reputation: 13

Replied

you should consider switching to rayfield, orion is discontinued 

  • 0

  • Comment

https://i.imgur.com/21V9TOF.png

Login to unlock the reply editor

Add your reply

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )