Advertisement
Caigepayne

Untitled

Oct 17th, 2019
9,519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. local Wah = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. --Properties:
  5. Wah.Name = "Wah"
  6. Wah.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7. Wah.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  8.  
  9. Main.Name = "Main"
  10. Main.Parent = Wah
  11. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  12. Main.Position = UDim2.new(0.453361124, 0, 0.498249203, 0)
  13. Main.Size = UDim2.new(0, 265, 0, 102)
  14.  
  15. TextButton.Parent = Main
  16. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  17. TextButton.Position = UDim2.new(0.120754719, 0, 0.246910825, 0)
  18. TextButton.Size = UDim2.new(0, 200, 0, 50)
  19. TextButton.Font = Enum.Font.SourceSans
  20. TextButton.TextColor3 = Color3.new(1, 0, 0)
  21. TextButton.TextSize = 14
  22. -- Scripts:
  23. function SCRIPT_LUUV81_FAKESCRIPT() -- TextButton.LocalScript
  24. local script = Instance.new('LocalScript')
  25. script.Parent = TextButton
  26.  
  27. script.Parent.MouseButton1Click:Connect(function()
  28. if game.Players.LocalPlayer:FindFirstChild("On") then
  29. game.Players.LocalPlayer.On.Name="Off"
  30. else
  31. game.Players.LocalPlayer.Off.Name="On"
  32. end
  33. end)
  34.  
  35. end
  36. coroutine.resume(coroutine.create(SCRIPT_LUUV81_FAKESCRIPT))
  37. function SCRIPT_WDKR84_FAKESCRIPT() -- Main.LocalScript
  38. local script = Instance.new('LocalScript')
  39. script.Parent = Main
  40. wait(1)
  41. _G.Enabled=true
  42. _G.Settings = { --Settings
  43. Mob = "X Fighter"; --Target
  44. Quest = "X Fighter Trainer"; --Quest
  45. Distance = -2; --TP Distance
  46. }
  47.  
  48. --Variable
  49. local player = game:GetService("Players").LocalPlayer
  50. local events = game:GetService("ReplicatedStorage").Events
  51.  
  52. --Get Settings
  53. local function settings()
  54. for i, v in pairs(_G.Settings) do
  55. if i == "Mob" then
  56. Mob = v
  57. elseif i == "Quest" then
  58. Quest = v
  59. elseif i == "Distance" then
  60. Distance = v
  61. end
  62. end
  63. end
  64.  
  65. --NoClip
  66. Stepped = game:GetService('RunService').Stepped:Connect(function()
  67. if player.Character and player.Character:FindFirstChild("Humanoid") then
  68. player.Character.Humanoid:ChangeState(11)
  69. end
  70. if _G.Enabled == false then
  71. Stepped:Disconnect()
  72. end
  73. end)
  74.  
  75. --Function
  76. local function quest()
  77. if game:GetService("ReplicatedStorage").Datas[player.UserId].Quest.Value ~= Quest then
  78. player.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Others.NPCs[Quest].HumanoidRootPart.CFrame
  79. repeat
  80. wait()
  81. events.Qaction:InvokeServer(game:GetService("Workspace").Others.NPCs[Quest])
  82. until game:GetService("ReplicatedStorage").Datas[player.UserId].Quest.Value == Quest
  83. end
  84. end
  85.  
  86. --Start
  87. settings()
  88. quest()
  89.  
  90. --Loop
  91. while true do
  92. if game.Players.LocalPlayer:FindFirstChild("On") then
  93. for i, v in ipairs(game:GetService("Workspace").Living:GetChildren()) do
  94. if v.Name:lower() == Mob:lower() and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") and v.Humanoid.Health > 0 then
  95. repeat
  96. settings()
  97. player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + v.HumanoidRootPart.CFrame.lookVector * Distance
  98. wait()
  99. events.p:InvokeServer(1)
  100. until not game.Players.LocalPlayer:FindFirstChild("On") or v == nil or v.Humanoid.Health <= 0
  101. quest()
  102. end
  103. end
  104. wait()
  105. end
  106. wait()
  107. end
  108.  
  109.  
  110. end
  111. coroutine.resume(coroutine.create(SCRIPT_WDKR84_FAKESCRIPT))
  112. function SCRIPT_MNEZ66_FAKESCRIPT() -- Main.LocalScript
  113. local script = Instance.new('LocalScript')
  114. script.Parent = Main
  115. wah = Instance.new("Part",game.Players.LocalPlayer)
  116. wah.Name="Off"
  117.  
  118. end
  119. coroutine.resume(coroutine.create(SCRIPT_MNEZ66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement