Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version = "v0.1"
- function MainScript()
- local Fluent = loadstring(game:HttpGet("https://raw.githubusercontent.com/xpa1n/library/main/FluentLibrary.lua"))()
- local Window = Fluent:CreateWindow({
- Title = "《鬼灭之刃 RPG》剧本 - Janina Hub",
- SubTitle = version,
- TabWidth = 160,
- Size = UDim2.fromOffset(580, 460),
- Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
- Theme = "Dark",
- MinimizeKey = Enum.KeyCode.LeftControl -- Used when theres no MinimizeKeybind
- })
- local Tabs = {
- autofarm = Window:AddTab({ Title = "自动农场", Icon = "swords" }),
- other = Window:AddTab({ Title = "其他", Icon = "swords" })
- }
- do
- local attacksettings = Tabs.autofarm:AddSection("攻击设置")
- --[[
- local AutoAttackToggle = attacksettings:AddToggle("AutoAttack", {Title = "Auto Attack", Default = false })
- _G.AutoAttack = false
- AutoAttackToggle:OnChanged(function()
- _G.AutoAttack = AutoAttackToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoAttack then
- local user = game:GetService("VirtualUser")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- user:CaptureController()
- user:ClickButton1(Vector2.new(mouse.x,mouse.y))
- end
- end
- end))
- --]]
- local AutoSkillZToggle = attacksettings:AddToggle("AutoSkillZ", {Title = "自动技能 Z", Default = false })
- _G.AutoSkillZ = false
- AutoSkillZToggle:OnChanged(function()
- _G.AutoSkillZ = AutoSkillZToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if _G.AutoSkillZ then
- local button = game:service'VirtualInputManager'
- button:SendKeyEvent(true, "Z", false, game)
- button:SendKeyEvent(false, "Z", false, game)
- wait(2)
- end
- end
- end))
- local AutoSkillXToggle = attacksettings:AddToggle("AutoSkillX", {Title = "自动技能 X", Default = false })
- _G.AutoSkillX = false
- AutoSkillXToggle:OnChanged(function()
- _G.AutoSkillX = AutoSkillXToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if _G.AutoSkillX then
- local button = game:service'VirtualInputManager'
- button:SendKeyEvent(true, "X", false, game)
- button:SendKeyEvent(false, "X", false, game)
- wait(2)
- end
- end
- end))
- local AutoSkillCToggle = attacksettings:AddToggle("AutoSkillC", {Title = "自动技能 C", Default = false })
- _G.AutoSkillC = false
- AutoSkillCToggle:OnChanged(function()
- _G.AutoSkillC = AutoSkillCToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if _G.AutoSkillC then
- local button = game:service'VirtualInputManager'
- button:SendKeyEvent(true, "C", false, game)
- button:SendKeyEvent(false, "C", false, game)
- wait(2)
- end
- end
- end))
- local autofarmsettings = Tabs.autofarm:AddSection("自动农场设置")
- local MobSelectDropdown = autofarmsettings:AddDropdown("ChooseMob", {
- Title = "选择怪物",
- Values = {},
- Multi = false,
- Default = false,
- })
- _G.MobName = "nil";
- MobSelectDropdown:OnChanged(function(Value)
- _G.MobName = Value;
- end)
- local function refreshMobList()
- local mobs = {}
- local added = {}
- local mobFolder = game:GetService("Workspace")["Folder_Monster"]
- for _, mob in pairs(mobFolder:GetChildren()) do
- if not added[mob.Name] then
- mobs[#mobs + 1] = mob.Name
- added[mob.Name] = true
- end
- end
- MobSelectDropdown:SetValues(mobs)
- end
- autofarmsettings:AddButton({
- Title = "刷新怪物",
- Callback = function()
- refreshMobList()
- end
- })
- refreshMobList()
- local AutoFarmMobToggle = autofarmsettings:AddToggle("AutoFarmMob", {Title = "自动农场怪物", Default = false })
- _G.Autofarm = false
- AutoFarmMobToggle:OnChanged(function()
- _G.Autofarm = AutoFarmMobToggle.Value
- end)
- function KillMobs()
- pcall(function()
- local targetMob = nil
- local plr = game.Players.LocalPlayer.Character
- local plrhr = plr.HumanoidRootPart
- for _, v in pairs(game:GetService("Workspace")["Folder_Monster"]:GetChildren()) do
- if v.Name == _G.MobName and v:FindFirstChild("HumanoidRootPart") and v.Humanoid.Health > 0 then
- targetMob = v
- plrhr.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0, 0, 7)
- break
- end
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if _G.Autofarm then
- KillMobs()
- end
- end
- end))
- local GetQuestToggle = autofarmsettings:AddToggle("GetQuest", {Title = "自动任务", Default = false })
- _G.GetxQuest = false
- GetQuestToggle:OnChanged(function()
- _G.GetxQuest = GetQuestToggle.Value
- pcall(function()
- game:GetService("Players").LocalPlayer.PlayerGui["UI_Game"]["UI_Task"]["Frame_View"].Visible = false
- end)
- end)
- function GetQuest()
- pcall(function()
- if game:GetService("Players").LocalPlayer.PlayerGui["UI_Game"]["UI_Task"]["Frame_View"].Visible == false then
- local args = {[1] = {["Name"] = "GetTask",["TaskId"] = _G.MobName}}
- game:GetService("ReplicatedStorage").Service.TaskService.Event.RemoteFunction_Task:InvokeServer(unpack(args))
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if _G.GetxQuest then
- GetQuest()
- end
- end
- end))
- local teleport = Tabs.other:AddSection("传送")
- local TeleportDropdown = teleport:AddDropdown("ChooseMap", {
- Title = "选择地图",
- Values = {},
- Multi = false,
- Default = false,
- })
- local function refreshMapList()
- local mapFolders = {}
- local folderGameMap = game:GetService("Workspace")["Folder_GameMap"]
- for _, folder in pairs(folderGameMap:GetChildren()) do
- if folder:IsA("Folder") then
- table.insert(mapFolders, folder.Name)
- end
- end
- TeleportDropdown:SetValues(mapFolders)
- end
- refreshMapList()
- TeleportDropdown:OnChanged(function(selectedMapName)
- local folderGameMap = game:GetService("Workspace")["Folder_GameMap"]
- local selectedFolder = folderGameMap:FindFirstChild(selectedMapName)
- if selectedFolder and selectedFolder:FindFirstChild("SpawnLocation") then
- local spawnLocation = selectedFolder.SpawnLocation.SpawnLocation
- local player = game.Players.LocalPlayer
- if player and player.Character and spawnLocation then
- player.Character:SetPrimaryPartCFrame(spawnLocation.CFrame)
- end
- else
- warn("Spawn location not found in the selected map folder.")
- end
- end)
- local autostats = Tabs.other:AddSection("Auto Stats")
- local AutoStatsMeleeToggle = autostats:AddToggle("AutoStatsMeleeToggle", {Title = "Auto Stats Melee", Default = false })
- _G.AutoStatsMelee = false
- AutoStatsMeleeToggle:OnChanged(function()
- _G.AutoStatsMelee = AutoStatsMeleeToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoStatsMelee then
- local args = {[1] = {["UseNumber"] = 1,["Name"] = "UseAdd",["AddName"] = "Melee"}}
- game:GetService("ReplicatedStorage").Event.eve_UpConfig:FireServer(unpack(args))
- end
- end
- end))
- local AutoStatsDefenseToggle = autostats:AddToggle("AutoStatsDefenseToggle", {Title = "Auto Stats Defense", Default = false })
- _G.AutoStatsDefense = false
- AutoStatsDefenseToggle:OnChanged(function()
- _G.AutoStatsDefense = AutoStatsDefenseToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoStatsDefense then
- local args = {[1] = {["UseNumber"] = 1, ["Name"] = "UseAdd", ["AddName"] = "Defense"}}
- game:GetService("ReplicatedStorage").Event.eve_UpConfig:FireServer(unpack(args))
- end
- end
- end))
- local AutoStatsBreathToggle = autostats:AddToggle("AutoStatsBreathToggle", {Title = "Auto Stats Breath", Default = false })
- _G.AutoStatsBreath = false
- AutoStatsBreathToggle:OnChanged(function()
- _G.AutoStatsBreath = AutoStatsBreathToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoStatsBreath then
- local args = {[1] = {["UseNumber"] = 1, ["Name"] = "UseAdd", ["AddName"] = "Breath"}}
- game:GetService("ReplicatedStorage").Event.eve_UpConfig:FireServer(unpack(args))
- end
- end
- end))
- local AutoStatsDemonToggle = autostats:AddToggle("AutoStatsDemonToggle", {Title = "Auto Stats Demon", Default = false })
- _G.AutoStatsDemon = false
- AutoStatsDemonToggle:OnChanged(function()
- _G.AutoStatsDemon = AutoStatsDemonToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoStatsDemon then
- local args = {[1] = {["UseNumber"] = 1, ["Name"] = "UseAdd", ["AddName"] = "Ghost"}}
- game:GetService("ReplicatedStorage").Event.eve_UpConfig:FireServer(unpack(args))
- end
- end
- end))
- local AutoStatsGunToggle = autostats:AddToggle("AutoStatsGunToggle", {Title = "Auto Stats Gun", Default = false })
- _G.AutoStatsGun = false
- AutoStatsGunToggle:OnChanged(function()
- _G.AutoStatsGun = AutoStatsGunToggle.Value
- end)
- coroutine.resume(coroutine.create(function()
- while task.wait(0.5) do
- if _G.AutoStatsGun then
- local args = {[1] = {["UseNumber"] = 1, ["Name"] = "UseAdd", ["AddName"] = "Gun"}}
- game:GetService("ReplicatedStorage").Event.eve_UpConfig:FireServer(unpack(args))
- end
- end
- end))
- local otherxzx = Tabs.other:AddSection("其他")
- local ggwalkspeed = 24
- local WalkSpeed = otherxzx:AddSlider("行走速度", {
- Title = "行走速度",
- Default = ggwalkspeed,
- Min = 10,
- Max = 200,
- Rounding = 0,
- Callback = function(Value)
- ggwalkspeed = Value
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ggwalkspeed
- end
- })
- coroutine.resume(coroutine.create(function()
- while task.wait() do
- if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed ~= ggwalkspeed then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ggwalkspeed
- end
- end
- end))
- end
- Window:SelectTab(1)
- end
- MainScript()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement