Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
127 views2 pages

Main Lua

This document is a Lua script for a game that utilizes the Rayfield library to create a user interface for managing game passes. It includes features like a button to execute a universal script, a slider to adjust player walk speed, and a button to retrieve all game passes by firing specific remote events. The script also has configuration options for saving settings and a key system for access control.

Uploaded by

cxm1181
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views2 pages

Main Lua

This document is a Lua script for a game that utilizes the Rayfield library to create a user interface for managing game passes. It includes features like a button to execute a universal script, a slider to adjust player walk speed, and a button to retrieve all game passes by firing specific remote events. The script also has configuration options for saving settings and a key system for access control.

Uploaded by

cxm1181
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

local Rayfield = loadstring(game:HttpGet('https://sirius.

menu/rayfield'))()

local Window = Rayfield:CreateWindow({


Name = "all gamepasses script",
LoadingTitle = "all gamepasses script",
LoadingSubtitle = "by Sture_14",
ConfigurationSaving = {
Enabled = true,
FolderName = true, -- Create a custom folder for your hub/game
FileName = "AGS"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include
discord.gg/. E.g. discord.gg/ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every
time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key", -- It is recommended to use something unique as other
scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key,
they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site
you would like Rayfield to get the key from
Key = {"Hello"} -- List of keys that will be accepted by the system, can be
RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})

local MainTab = Window:CreateTab("Main", 4483362458) -- Title, Image


local Section = MainTab:CreateSection("main")

local Button = MainTab:CreateButton({


Name = "Universal script",
Callback = function()
loadstring(game:HttpGet("https://pastebin.com/raw/UdxxJDqG"))()
end,
})

local Slider = MainTab:CreateSlider({


Name = "WalkSpeed",
Range = {0, 460},
Increment = 1,
Suffix = "Speeeed",
CurrentValue = 16,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
end,
})

local Button = MainTab:CreateButton({


Name = "get all gamepasses",
Callback = function()
for _,v in pairs(game:GetDescendants()) do
if v.ClassName == "RemoteEvent" then
if v.Parent.Name == "WeaponsRemotes" or v.Parent.Name == "VipRemotes" or
v.Parent.Name == "Remotes" then
v:FireServer()
end
end
end
end,
})

You might also like