Advertisement
Nangin20

Fantastic Frontier Newbie Player script (Roblox)

Mar 2nd, 2019
3,574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.48 KB | None | 0 0
  1. -- Created by Cow
  2. -- Created: 2/25/19
  3. -- Updated: 3/1/19 v1.3 Fixed auto farm. Added WalkSpeed,JumpPower and Gravity.
  4. -- Test with Synapse X v1.2.7
  5.  
  6. -- Game: https://www.roblox.com/games/510411669
  7.  
  8. local game_name = "Fantastic_Frontier"
  9.  
  10. local storage = game:GetService("ReplicatedStorage")
  11. local players = game:GetService("Players")
  12. local lighting = game:GetService("Lighting")
  13.  
  14. local player = players.LocalPlayer
  15. local character = player.character
  16. player.CharacterAdded:Connect(function()
  17. character = player.character
  18. end)
  19.  
  20. local playerGui = player:FindFirstChild("PlayerGui")
  21.  
  22. local mouse = player:GetMouse()
  23.  
  24. local start_Position = UDim2.new(0.2, 0, 0.45, 0)
  25.  
  26. _G.esp = false
  27. _G.espSettings = {
  28. plants = true;
  29. minPlantValue = 0;
  30. birds = false;
  31. monsters = false;
  32. npc = false;
  33. click_teleport = false;
  34. }
  35.  
  36. _G.auto_farm = false
  37. _G.autoFarmSettings = {
  38. fireflies = false;
  39. numOfFireflies = math.huge;
  40. plants = true;
  41. minPlantValue = 0;
  42. }
  43.  
  44. _G.miscSettings = {
  45. walkSpeed = 0;
  46. jumpPower = character:FindFirstChild("Humanoid").JumpPower;
  47. gravity = math.floor(workspace.Gravity);
  48. }
  49.  
  50. local max_teleport_distance = 50
  51. local teleport_delay = 0.25
  52.  
  53. local subFrame1 = nil
  54. local subFrame2 = nil
  55. local subFrame3 = nil
  56.  
  57. for i, v in pairs(game.CoreGui:GetChildren()) do
  58. if v.Name == "Cow's_"..game_name.."_Gui" then
  59. v:Destroy()
  60. end
  61. end
  62.  
  63. local screenGui = Instance.new("ScreenGui", game.CoreGui)
  64. screenGui.Name = "Cow's_"..game_name.."_Gui"
  65.  
  66. function createGui()
  67. local frame = Instance.new("ImageLabel", screenGui)
  68. frame.Size = UDim2.new(0, 236, 0, 36)
  69. frame.Position = start_Position
  70. frame.BackgroundTransparency = 0
  71. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  72. frame.Active = true
  73. frame.Draggable = true
  74. frame.Name = "main_frame"
  75.  
  76. local version = Instance.new("TextLabel", frame)
  77. version.Size = UDim2.new(0, 90, 0, 20)
  78. version.Position = UDim2.new(0.5, -45, 0, 8)
  79. version.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. version.Font = Enum.Font.SourceSansBold
  81. version.TextScaled = true
  82. version.Text = "FF Fister v1.3"
  83. version.BackgroundTransparency = 1
  84.  
  85. local bc = Instance.new("Frame", frame)
  86. bc.Size = UDim2.new(1, 0, 0, 0)
  87. bc.Position = UDim2.new(0, 0, 0, 36)
  88. bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  89.  
  90. local button = Instance.new("TextButton", bc)
  91. button.Size = UDim2.new(1, -51, 0, 36)
  92. button.Position = UDim2.new(0, 5, 0, 5)
  93. button.Text = "Auto Farm"
  94. button.Font = Enum.Font.SourceSansBold
  95. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  97. button.TextScaled = true
  98.  
  99. button.MouseButton1Click:Connect(function()
  100. for i, v in pairs(bc:GetChildren()) do
  101. if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
  102. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  103. end
  104. end
  105. if subFrame1 then
  106. if subFrame1.Name == "auto_farm" then
  107. subFrame1:Destroy()
  108. updateSubFrame()
  109. else
  110. subFrame1:Destroy()
  111. updateSubFrame()
  112. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  113. createAutoFarmGui(frame)
  114. end
  115. else
  116. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  117. createAutoFarmGui(frame)
  118. end
  119. end)
  120.  
  121. local button = Instance.new("TextButton", bc)
  122. button.Size = UDim2.new(0, 36, 0, 36)
  123. button.Position = UDim2.new(1, -41, 0, 5)
  124. button.Text = "Off"
  125. button.Font = Enum.Font.SourceSansBold
  126. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  127. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  128. button.TextScaled = true
  129.  
  130. button.MouseButton1Click:Connect(function()
  131. if _G.auto_farm then
  132. button.Text = "Off"
  133. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  134. _G.auto_farm = false
  135. else
  136. button.Text = "On"
  137. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  138. _G.auto_farm = true
  139. autoFarmFunc()
  140. end
  141. end)
  142.  
  143. local button = Instance.new("TextButton", bc)
  144. button.Size = UDim2.new(1, -51, 0, 36)
  145. button.Position = UDim2.new(0, 5, 0, 46)
  146. button.Text = "Auto Tower"
  147. button.Font = Enum.Font.SourceSansBold
  148. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  149. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  150. button.TextScaled = true
  151.  
  152. button.MouseButton1Click:Connect(function()
  153. for i, v in pairs(bc:GetChildren()) do
  154. if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
  155. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  156. end
  157. end
  158. if subFrame1 then
  159. if subFrame1.Name == "auto_tower" then
  160. subFrame1:Destroy()
  161. updateSubFrame()
  162. else
  163. subFrame1:Destroy()
  164. updateSubFrame()
  165. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  166. createAutoTowerGui(frame)
  167. end
  168. else
  169. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  170. createAutoTowerGui(frame)
  171. end
  172. end)
  173.  
  174. local button = Instance.new("TextButton", bc)
  175. button.Size = UDim2.new(0, 36, 0, 36)
  176. button.Position = UDim2.new(1, -41, 0, 46)
  177. button.Text = "Off"
  178. button.Font = Enum.Font.SourceSansBold
  179. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  180. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  181. button.TextScaled = true
  182.  
  183. local antiClick = Instance.new("ImageButton", button)
  184. antiClick.Size = UDim2.new(1, 0, 1, 0)
  185. antiClick.BackgroundTransparency = 0.2
  186. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  187.  
  188. local button = Instance.new("TextButton", bc)
  189. button.Size = UDim2.new(1, -51, 0, 36)
  190. button.Position = UDim2.new(0, 5, 0, 87)
  191. button.Text = "'Esp'"
  192. button.Font = Enum.Font.SourceSansBold
  193. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  194. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  195. button.TextScaled = true
  196.  
  197. button.MouseButton1Click:Connect(function()
  198. for i, v in pairs(bc:GetChildren()) do
  199. if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
  200. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  201. end
  202. end
  203. if subFrame1 then
  204. if subFrame1.Name == "esp" then
  205. subFrame1:Destroy()
  206. updateSubFrame()
  207. else
  208. subFrame1:Destroy()
  209. updateSubFrame()
  210. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  211. createEspGui(frame)
  212. end
  213. else
  214. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  215. createEspGui(frame)
  216. end
  217. end)
  218.  
  219. local button = Instance.new("TextButton", bc)
  220. button.Size = UDim2.new(0, 36, 0, 36)
  221. button.Position = UDim2.new(1, -41, 0, 87)
  222. button.Text = "Off"
  223. button.Font = Enum.Font.SourceSansBold
  224. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  225. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  226. button.TextScaled = true
  227.  
  228. local antiClick = Instance.new("ImageButton", button)
  229. antiClick.Size = UDim2.new(1, 0, 1, 0)
  230. antiClick.BackgroundTransparency = 0.2
  231. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  232.  
  233. local button = Instance.new("TextButton", bc)
  234. button.Size = UDim2.new(1, -10, 0, 36)
  235. button.Position = UDim2.new(0, 5, 0, 128)
  236. button.Text = "Misc."
  237. button.Font = Enum.Font.SourceSansBold
  238. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  239. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  240. button.TextScaled = true
  241.  
  242. button.MouseButton1Click:Connect(function()
  243. for i, v in pairs(bc:GetChildren()) do
  244. if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
  245. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  246. end
  247. end
  248. if subFrame1 then
  249. if subFrame1.Name == "misc" then
  250. subFrame1:Destroy()
  251. updateSubFrame()
  252. else
  253. subFrame1:Destroy()
  254. updateSubFrame()
  255. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  256. createMiscGui(frame)
  257. end
  258. else
  259. button.TextColor3 = Color3.fromRGB(125, 125, 125)
  260. createMiscGui(frame)
  261. end
  262. end)
  263.  
  264. local point = 0
  265. for i, v in pairs(bc:GetChildren()) do
  266. if point < v.Position.Y.Offset + v.Size.Y.Offset then
  267. point = v.Position.Y.Offset + v.Size.Y.Offset
  268. end
  269. end
  270. bc.Size = UDim2.new(1, 0, 0, point + 5)
  271.  
  272. local text = Instance.new("TextLabel", bc)
  273. text.Size = UDim2.new(1, 0, 0, 36)
  274. text.Position = UDim2.new(0, 0, 1, 0)
  275. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  276. text.BackgroundTransparency = 1
  277. text.Text = "This Script is Discontinued"
  278. end
  279. createGui()
  280.  
  281. function createAutoFarmGui(frame)
  282. local frame = Instance.new("ImageLabel", frame)
  283. frame.Size = UDim2.new(0, 236, 0, 36)
  284. frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
  285. frame.BackgroundTransparency = 0
  286. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  287. frame.Name = "auto_farm"
  288.  
  289. local header = Instance.new("TextLabel", frame)
  290. header.Size = UDim2.new(1, 0, 0.75, 0)
  291. header.Position = UDim2.new(0, 0, 0.125, 0)
  292. header.Text = "Auto Farm"
  293. header.Font = Enum.Font.SourceSansBold
  294. header.TextScaled = true
  295. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  296. header.BackgroundTransparency = 1
  297.  
  298. local bc = Instance.new("Frame", frame)
  299. bc.Size = UDim2.new(1, 0, 0, 0)
  300. bc.Position = UDim2.new(0, 0, 0, 36)
  301. bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  302.  
  303. local label = Instance.new("TextLabel", bc)
  304. label.Size = UDim2.new(1, -51, 0, 36)
  305. label.Position = UDim2.new(0, 5, 0, 5)
  306. label.Text = "Fireflies"
  307. label.Font = Enum.Font.SourceSansBold
  308. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  309. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  310. label.TextScaled = true
  311.  
  312. local button = Instance.new("TextButton", bc)
  313. button.Size = UDim2.new(0, 36, 0, 36)
  314. button.Position = UDim2.new(1, -41, 0, 5)
  315. if _G.autoFarmSettings.fireflies then
  316. button.Text = "On"
  317. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  318. else
  319. button.Text = "Off"
  320. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  321. end
  322. button.Font = Enum.Font.SourceSansBold
  323. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  324. button.TextScaled = true
  325.  
  326. button.MouseButton1Click:Connect(function()
  327. if _G.autoFarmSettings.fireflies then
  328. button.Text = "Off"
  329. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  330. _G.autoFarmSettings.fireflies = false
  331. else
  332. button.Text = "On"
  333. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  334. _G.autoFarmSettings.fireflies = true
  335. end
  336. end)
  337.  
  338. local label = Instance.new("TextLabel", bc)
  339. label.Size = UDim2.new(1, -85, 0, 25)
  340. label.Position = UDim2.new(0, 5, 0, 46)
  341. label.Text = "Num. of Fireflies"
  342. label.Font = Enum.Font.SourceSansItalic
  343. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  344. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  345. label.TextScaled = true
  346.  
  347. local textBox = Instance.new("TextBox", bc)
  348. textBox.Size = UDim2.new(0, 70, 0, 25)
  349. textBox.Position = UDim2.new(1, -75, 0, 46)
  350. textBox.Text = _G.autoFarmSettings.numOfFireflies
  351. textBox.Font = Enum.Font.SourceSansItalic
  352. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  353. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  354. textBox.TextScaled = true
  355.  
  356. textBox.FocusLost:Connect(function()
  357. if typeof(tonumber(textBox.Text)) == "number" then
  358. _G.autoFarmSettings.numOfFireflies = tonumber(textBox.Text)
  359. else
  360. textBox.Text = _G.autoFarmSettings.numOfFireflies
  361. end
  362. end)
  363.  
  364. local value = Instance.new("NumberValue", frame)
  365. value.Name = "numOfFirefliesValue"
  366. value.Value = _G.autoFarmSettings.numOfFireflies
  367.  
  368. value.Changed:Connect(function()
  369. textBox.Text = _G.autoFarmSettings.numOfFireflies
  370. end)
  371.  
  372. local label = Instance.new("TextLabel", bc)
  373. label.Size = UDim2.new(1, -51, 0, 36)
  374. label.Position = UDim2.new(0, 5, 0, 76)
  375. label.Text = "Plants"
  376. label.Font = Enum.Font.SourceSansBold
  377. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  378. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  379. label.TextScaled = true
  380.  
  381. local button = Instance.new("TextButton", bc)
  382. button.Size = UDim2.new(0, 36, 0, 36)
  383. button.Position = UDim2.new(1, -41, 0, 76)
  384. if _G.autoFarmSettings.plants then
  385. button.Text = "On"
  386. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  387. else
  388. button.Text = "Off"
  389. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  390. end
  391. button.Font = Enum.Font.SourceSansBold
  392. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  393. button.TextScaled = true
  394.  
  395. button.MouseButton1Click:Connect(function()
  396. if _G.autoFarmSettings.plants then
  397. button.Text = "Off"
  398. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  399. _G.autoFarmSettings.plants = false
  400. else
  401. button.Text = "On"
  402. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  403. _G.autoFarmSettings.plants = true
  404. end
  405. end)
  406.  
  407. local label = Instance.new("TextLabel", bc)
  408. label.Size = UDim2.new(1, -85, 0, 25)
  409. label.Position = UDim2.new(0, 5, 0, 117)
  410. label.Text = "Min. Plant Value"
  411. label.Font = Enum.Font.SourceSansItalic
  412. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  413. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  414. label.TextScaled = true
  415.  
  416. local textBox = Instance.new("TextBox", bc)
  417. textBox.Size = UDim2.new(0, 70, 0, 25)
  418. textBox.Position = UDim2.new(1, -75, 0, 117)
  419. textBox.Text = _G.autoFarmSettings.minPlantValue
  420. textBox.Font = Enum.Font.SourceSansItalic
  421. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  422. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  423. textBox.TextScaled = true
  424.  
  425. textBox.FocusLost:Connect(function()
  426. if typeof(tonumber(textBox.Text)) == "number" then
  427. _G.autoFarmSettings.minPlantValue = tonumber(textBox.Text)
  428. else
  429. textBox.Text = _G.autoFarmSettings.minPlantValue
  430. end
  431. end)
  432.  
  433. subFrame1 = frame
  434.  
  435. local point = 0
  436. for i, v in pairs(bc:GetChildren()) do
  437. if point < v.Position.Y.Offset + v.Size.Y.Offset then
  438. point = v.Position.Y.Offset + v.Size.Y.Offset
  439. end
  440. end
  441. bc.Size = UDim2.new(1, 0, 0, point + 5)
  442. end
  443.  
  444. local can = true
  445. function autoFarmFunc()
  446. if can then
  447. can = false
  448. if _G.auto_farm and _G.autoFarmSettings.fireflies and workspace:FindFirstChild("Fireflies") then
  449. for i, v in pairs(workspace:FindFirstChild("Fireflies"):GetChildren()) do
  450. if _G.autoFarmSettings.numOfFireflies ~= nil and _G.autoFarmSettings.numOfFireflies > 0 then
  451. _G.autoFarmSettings.numOfFireflies = _G.autoFarmSettings.numOfFireflies - 1
  452. if screenGui:FindFirstChild("main_frame"):FindFirstChild("auto_farm") and screenGui.main_frame.auto_farm:FindFirstChild("numOfFirefliesValue") then
  453. screenGui:FindFirstChild("main_frame"):FindFirstChild("auto_farm"):FindFirstChild("numOfFirefliesValue").Value = _G.autoFarmSettings.numOfFireflies
  454. end
  455. else
  456. break
  457. end
  458. teleport(v)
  459. wait(0.25)
  460. v.CollectEvent:FireServer()
  461. wait()
  462. if not _G.auto_farm or not _G.autoFarmSettings.fireflies then
  463. break
  464. end
  465. end
  466. end
  467. if _G.auto_farm and _G.autoFarmSettings.plants then
  468. local spawners = workspace:FindFirstChild("Spawners")
  469. for i, v in pairs(spawners:GetChildren()) do
  470. if string.match(v.Name, "Mushrooms") then
  471. for i2, v2 in pairs(v:GetChildren()) do
  472. if v2:FindFirstChild("Collectible") and v2.Collectible:FindFirstChild("HitBox") and v2:FindFirstChild("Category") and v2.Category.Value == "Plants" then
  473. repeat
  474. local c = v2:FindFirstChild("Collectible")
  475. local check = checkValue(c)
  476. if check < _G.autoFarmSettings.minPlantValue then
  477. break
  478. end
  479. teleport(c.HitBox)
  480. wait()
  481. c.InteractEvent:FireServer()
  482. inv_full = true
  483. local inv = player:FindFirstChild("Inventory")
  484.  
  485. if c:FindFirstChild("remove") then
  486. c:FindFirstChild("remove").Value = c:FindFirstChild("remove").Value + 1
  487. if c:FindFirstChild("remove").Value >= 5 then
  488. c:Destroy()
  489. end
  490. else
  491. local value = Instance.new("NumberValue", c)
  492. value.Name = "remove"
  493. value.Value = 1
  494. end
  495.  
  496. for i, v in pairs(inv:GetChildren()) do
  497. if v.Value == 0 then
  498. inv_full = false
  499. break
  500. end
  501. end
  502. if inv_full then
  503. autoSell()
  504. end
  505. until not v2:FindFirstChild("Collectible") or not _G.auto_farm or not _G.autoFarmSettings.plants
  506. end
  507. end
  508. end
  509. end
  510. autoSell()
  511. end
  512. delay(0.25, function()
  513. can = true
  514. if _G.auto_farm then
  515. autoFarmFunc()
  516. end
  517. end)
  518. end
  519. end
  520.  
  521. function createAutoTowerGui(frame)
  522. local frame = Instance.new("ImageLabel", frame)
  523. frame.Size = UDim2.new(0, 236, 0, 36)
  524. frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
  525. frame.BackgroundTransparency = 0
  526. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  527. frame.Name = "auto_tower"
  528.  
  529. local header = Instance.new("TextLabel", frame)
  530. header.Size = UDim2.new(1, 0, 0.75, 0)
  531. header.Position = UDim2.new(0, 0, 0.125, 0)
  532. header.Text = "Auto Tower"
  533. header.Font = Enum.Font.SourceSansBold
  534. header.TextScaled = true
  535. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  536. header.BackgroundTransparency = 1
  537.  
  538. local bc = Instance.new("Frame", frame)
  539. bc.Size = UDim2.new(1, 0, 0, 0)
  540. bc.Position = UDim2.new(0, 0, 0, 36)
  541. bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  542.  
  543.  
  544.  
  545. subFrame1 = frame
  546.  
  547. local point = 0
  548. for i, v in pairs(bc:GetChildren()) do
  549. if point < v.Position.Y.Offset + v.Size.Y.Offset then
  550. point = v.Position.Y.Offset + v.Size.Y.Offset
  551. end
  552. end
  553. bc.Size = UDim2.new(1, 0, 0, point + 5)
  554. end
  555.  
  556. function createEspGui(frame)
  557. local frame = Instance.new("ImageLabel", frame)
  558. frame.Size = UDim2.new(0, 236, 0, 36)
  559. frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
  560. frame.BackgroundTransparency = 0
  561. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  562. frame.Name = "esp"
  563.  
  564. local header = Instance.new("TextLabel", frame)
  565. header.Size = UDim2.new(1, 0, 0.75, 0)
  566. header.Position = UDim2.new(0, 0, 0.125, 0)
  567. header.Text = "'Esp'"
  568. header.Font = Enum.Font.SourceSansBold
  569. header.TextScaled = true
  570. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  571. header.BackgroundTransparency = 1
  572.  
  573. local bc = Instance.new("Frame", frame)
  574. bc.Size = UDim2.new(1, 0, 0, 0)
  575. bc.Position = UDim2.new(0, 0, 0, 36)
  576. bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  577.  
  578. local label = Instance.new("TextLabel", bc)
  579. label.Size = UDim2.new(1, -51, 0, 36)
  580. label.Position = UDim2.new(0, 5, 0, 5)
  581. label.Text = "Plants"
  582. label.Font = Enum.Font.SourceSansBold
  583. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  584. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  585. label.TextScaled = true
  586.  
  587. local button = Instance.new("TextButton", bc)
  588. button.Size = UDim2.new(0, 36, 0, 36)
  589. button.Position = UDim2.new(1, -41, 0, 5)
  590. button.Text = "On"
  591. button.Font = Enum.Font.SourceSansBold
  592. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  593. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  594. button.TextScaled = true
  595.  
  596. local antiClick = Instance.new("ImageButton", button)
  597. antiClick.Size = UDim2.new(1, 0, 1, 0)
  598. antiClick.BackgroundTransparency = 0.2
  599. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  600.  
  601. local label = Instance.new("TextLabel", bc)
  602. label.Size = UDim2.new(1, -85, 0, 25)
  603. label.Position = UDim2.new(0, 5, 0, 46)
  604. label.Text = "Min. Plant Value"
  605. label.Font = Enum.Font.SourceSansItalic
  606. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  607. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  608. label.TextScaled = true
  609.  
  610. local textBox = Instance.new("TextBox", bc)
  611. textBox.Size = UDim2.new(0, 70, 0, 25)
  612. textBox.Position = UDim2.new(1, -75, 0, 46)
  613. textBox.Text = _G.espSettings.minPlantValue
  614. textBox.Font = Enum.Font.SourceSansItalic
  615. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  616. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  617. textBox.TextScaled = true
  618.  
  619. local label = Instance.new("TextLabel", bc)
  620. label.Size = UDim2.new(1, -51, 0, 36)
  621. label.Position = UDim2.new(0, 5, 0, 76)
  622. label.Text = "Birds"
  623. label.Font = Enum.Font.SourceSansBold
  624. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  625. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  626. label.TextScaled = true
  627.  
  628. local button = Instance.new("TextButton", bc)
  629. button.Size = UDim2.new(0, 36, 0, 36)
  630. button.Position = UDim2.new(1, -41, 0, 76)
  631. button.Text = "Off"
  632. button.Font = Enum.Font.SourceSansBold
  633. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  634. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  635. button.TextScaled = true
  636.  
  637. local antiClick = Instance.new("ImageButton", button)
  638. antiClick.Size = UDim2.new(1, 0, 1, 0)
  639. antiClick.BackgroundTransparency = 0.2
  640. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  641.  
  642. local label = Instance.new("TextLabel", bc)
  643. label.Size = UDim2.new(1, -51, 0, 36)
  644. label.Position = UDim2.new(0, 5, 0, 117)
  645. label.Text = "Monsters"
  646. label.Font = Enum.Font.SourceSansBold
  647. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  648. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  649. label.TextScaled = true
  650.  
  651. local button = Instance.new("TextButton", bc)
  652. button.Size = UDim2.new(0, 36, 0, 36)
  653. button.Position = UDim2.new(1, -41, 0, 117)
  654. button.Text = "Off"
  655. button.Font = Enum.Font.SourceSansBold
  656. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  657. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  658. button.TextScaled = true
  659.  
  660. local antiClick = Instance.new("ImageButton", button)
  661. antiClick.Size = UDim2.new(1, 0, 1, 0)
  662. antiClick.BackgroundTransparency = 0.2
  663. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  664.  
  665. local label = Instance.new("TextLabel", bc)
  666. label.Size = UDim2.new(1, -51, 0, 36)
  667. label.Position = UDim2.new(0, 5, 0, 158)
  668. label.Text = "NPCs"
  669. label.Font = Enum.Font.SourceSansBold
  670. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  671. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  672. label.TextScaled = true
  673.  
  674. local button = Instance.new("TextButton", bc)
  675. button.Size = UDim2.new(0, 36, 0, 36)
  676. button.Position = UDim2.new(1, -41, 0, 158)
  677. button.Text = "Off"
  678. button.Font = Enum.Font.SourceSansBold
  679. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  680. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  681. button.TextScaled = true
  682.  
  683. local antiClick = Instance.new("ImageButton", button)
  684. antiClick.Size = UDim2.new(1, 0, 1, 0)
  685. antiClick.BackgroundTransparency = 0.2
  686. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  687.  
  688. local label = Instance.new("TextLabel", bc)
  689. label.Size = UDim2.new(1, -51, 0, 36)
  690. label.Position = UDim2.new(0, 5, 0, 199)
  691. label.Text = "Gifts"
  692. label.Font = Enum.Font.SourceSansBold
  693. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  694. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  695. label.TextScaled = true
  696.  
  697. local button = Instance.new("TextButton", bc)
  698. button.Size = UDim2.new(0, 36, 0, 36)
  699. button.Position = UDim2.new(1, -41, 0, 199)
  700. button.Text = "Off"
  701. button.Font = Enum.Font.SourceSansBold
  702. button.TextColor3 = Color3.fromRGB(255, 0, 0)
  703. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  704. button.TextScaled = true
  705.  
  706. local antiClick = Instance.new("ImageButton", button)
  707. antiClick.Size = UDim2.new(1, 0, 1, 0)
  708. antiClick.BackgroundTransparency = 0.2
  709. antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  710.  
  711. subFrame1 = frame
  712.  
  713. local point = 0
  714. for i, v in pairs(bc:GetChildren()) do
  715. if point < v.Position.Y.Offset + v.Size.Y.Offset then
  716. point = v.Position.Y.Offset + v.Size.Y.Offset
  717. end
  718. end
  719. bc.Size = UDim2.new(1, 0, 0, point + 5)
  720. end
  721.  
  722. function createMiscGui(frame)
  723. local frame = Instance.new("ImageLabel", frame)
  724. frame.Size = UDim2.new(0, 236, 0, 36)
  725. frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
  726. frame.BackgroundTransparency = 0
  727. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  728. frame.Name = "misc"
  729.  
  730. local header = Instance.new("TextLabel", frame)
  731. header.Size = UDim2.new(1, 0, 0.75, 0)
  732. header.Position = UDim2.new(0, 0, 0.125, 0)
  733. header.Text = "Misc."
  734. header.Font = Enum.Font.SourceSansBold
  735. header.TextScaled = true
  736. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  737. header.BackgroundTransparency = 1
  738.  
  739. local bc = Instance.new("Frame", frame)
  740. bc.Size = UDim2.new(1, 0, 0, 0)
  741. bc.Position = UDim2.new(0, 0, 0, 36)
  742. bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  743.  
  744. local button = Instance.new("TextButton", bc)
  745. button.Size = UDim2.new(1, -10, 0, 36)
  746. button.Position = UDim2.new(0, 5, 0, 5)
  747. button.Text = "Remove Fog"
  748. button.Font = Enum.Font.SourceSansBold
  749. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  750. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  751. button.TextScaled = true
  752.  
  753. button.MouseButton1Click:Connect(function()
  754. removeFog()
  755. end)
  756.  
  757. local button = Instance.new("TextButton", bc)
  758. button.Size = UDim2.new(1, -10, 0, 36)
  759. button.Position = UDim2.new(0, 5, 0, 46)
  760. button.Text = "Day"
  761. button.Font = Enum.Font.SourceSansBold
  762. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  763. button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  764. button.TextScaled = true
  765.  
  766. button.MouseButton1Click:Connect(function()
  767. day()
  768. end)
  769.  
  770. local label = Instance.new("TextLabel", bc)
  771. label.Size = UDim2.new(1, -85, 0, 25)
  772. label.Position = UDim2.new(0, 5, 0, 87)
  773. label.Text = "WalkSpeed"
  774. label.Font = Enum.Font.SourceSansItalic
  775. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  776. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  777. label.TextScaled = true
  778.  
  779. local textBox = Instance.new("TextBox", bc)
  780. textBox.Size = UDim2.new(0, 70, 0, 25)
  781. textBox.Position = UDim2.new(1, -75, 0, 87)
  782. textBox.Text = _G.miscSettings.walkSpeed
  783. textBox.Font = Enum.Font.SourceSansItalic
  784. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  785. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  786. textBox.TextScaled = true
  787.  
  788. textBox.FocusLost:Connect(function()
  789. if typeof(tonumber(textBox.Text)) == "number" then
  790. _G.miscSettings.walkSpeed = tonumber(textBox.Text)
  791. character.Humanoid.WalkSpeed = _G.miscSettings.walkSpeed
  792. else
  793. textBox.Text = _G.miscSettings.walkSpeed
  794. end
  795. end)
  796.  
  797. local label = Instance.new("TextLabel", bc)
  798. label.Size = UDim2.new(1, -85, 0, 25)
  799. label.Position = UDim2.new(0, 5, 0, 117)
  800. label.Text = "JumpPower"
  801. label.Font = Enum.Font.SourceSansItalic
  802. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  803. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  804. label.TextScaled = true
  805.  
  806. local textBox = Instance.new("TextBox", bc)
  807. textBox.Size = UDim2.new(0, 70, 0, 25)
  808. textBox.Position = UDim2.new(1, -75, 0, 117)
  809. textBox.Text = _G.miscSettings.jumpPower
  810. textBox.Font = Enum.Font.SourceSansItalic
  811. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  812. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  813. textBox.TextScaled = true
  814.  
  815. textBox.FocusLost:Connect(function()
  816. if typeof(tonumber(textBox.Text)) == "number" then
  817. _G.miscSettings.jumpPower = tonumber(textBox.Text)
  818. character.Humanoid.JumpPower = _G.miscSettings.jumpPower
  819. else
  820. textBox.Text = _G.miscSettings.jumpPower
  821. end
  822. end)
  823.  
  824. local label = Instance.new("TextLabel", bc)
  825. label.Size = UDim2.new(1, -85, 0, 25)
  826. label.Position = UDim2.new(0, 5, 0, 147)
  827. label.Text = "Gravity"
  828. label.Font = Enum.Font.SourceSansItalic
  829. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  830. label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  831. label.TextScaled = true
  832.  
  833. local textBox = Instance.new("TextBox", bc)
  834. textBox.Size = UDim2.new(0, 70, 0, 25)
  835. textBox.Position = UDim2.new(1, -75, 0, 147)
  836. textBox.Text = _G.miscSettings.gravity
  837. textBox.Font = Enum.Font.SourceSansItalic
  838. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  839. textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  840. textBox.TextScaled = true
  841.  
  842. textBox.FocusLost:Connect(function()
  843. if typeof(tonumber(textBox.Text)) == "number" then
  844. _G.miscSettings.gravity = tonumber(textBox.Text)
  845. workspace.Gravity = _G.miscSettings.gravity
  846. else
  847. textBox.Text = _G.miscSettings.gravity
  848. end
  849. end)
  850.  
  851. subFrame1 = frame
  852.  
  853. local point = 0
  854. for i, v in pairs(bc:GetChildren()) do
  855. if point < v.Position.Y.Offset + v.Size.Y.Offset then
  856. point = v.Position.Y.Offset + v.Size.Y.Offset
  857. end
  858. end
  859. bc.Size = UDim2.new(1, 0, 0, point + 5)
  860. end
  861.  
  862. function removeFog()
  863. local pScripts = player:FindFirstChild("PlayerScripts")
  864.  
  865. pScripts:FindFirstChild("Fog"):Destroy()
  866. character:FindFirstChild("Fogbox"):Destroy()
  867.  
  868. for i, v in pairs(lighting:GetChildren()) do
  869. if v.Name == "Sky" or v.Name == "OutSideLighting" then
  870. v:Destroy()
  871. end
  872. end
  873. end
  874.  
  875. function day()
  876. lighting.ClockTime = 10.75
  877. lighting.OutdoorAmbient = Color3.fromRGB(90, 111, 116)
  878. lighting.OutsideLighting.TintColor = Color3.fromRGB(230, 231, 244)
  879. end
  880.  
  881. character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  882. if _G.miscSettings.walkSpeed ~= 0 then
  883. character.Humanoid.WalkSpeed = _G.miscSettings.walkSpeed
  884. end
  885. end)
  886.  
  887. character.Humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function()
  888. character.Humanoid.JumpPower = _G.miscSettings.jumpPower
  889. end)
  890.  
  891. function updateSubFrame()
  892. if not subFrame1.Parent then
  893. subFrame1 = nil
  894. subFrame2 = nil
  895. subFrame3 = nil
  896. elseif not subFrame2.Parent then
  897. subFrame2 = nil
  898. subFrame3 = nil
  899. elseif not subFrame3.Parent then
  900. subFrame3 = nil
  901. end
  902. end
  903.  
  904. function autoSell()
  905. local inv = player:FindFirstChild("Inventory")
  906. --
  907. if workspace.PassiveNPCs.NPC_LittleRed:FindFirstChild("Head") then
  908. teleport(workspace.PassiveNPCs.NPC_LittleRed.Head)
  909. else
  910. local part = Instance.new("Part")
  911. part.Position = Vector3.new(1096, 101, -3140)
  912. teleport(part)
  913. end
  914. --[[
  915. if workspace.PassiveNPCs:FindFirstChild("Raiken Profits"):FindFirstChild("PotPart") then
  916. teleport(workspace.PassiveNPCs:FindFirstChild("Raiken Profits"):FindFirstChild("HedPart"))
  917. else
  918. local part = Instance.new("Part")
  919. part.Position = Vector3.new(713, 230, -482)
  920. teleport(part)
  921. end--]]
  922. wait(0.25)
  923. for i, v in pairs(inv:GetChildren()) do
  924. if v.Value ~= 0 and v.Value ~= 1313 and v.Value ~= 250 and v.Value ~= 251 and v.Value ~= 252 and v.Value ~= 351 and v.Value ~= 350 then
  925. game:GetService("ReplicatedStorage").Events.SellShop:FireServer(v.Value, workspace.Shops.SellersTwo, 1)
  926. --game:GetService("ReplicatedStorage").Events.SellShop:FireServer(v.Value, workspace.Shops.Sellers, 1)
  927. end
  928. end
  929. end
  930.  
  931. function checkValue(object)
  932. if object then
  933. if object:FindFirstChild("Info") and object.Info:FindFirstChild("Item") then
  934. if storage.ItemInfo:FindFirstChild(object.Info.Item.Value) then
  935. return storage.ItemInfo:FindFirstChild(object.Info.Item.Value).SellValue.Value
  936. end
  937. else
  938. return 0
  939. end
  940. else
  941. return 0
  942. end
  943. end
  944.  
  945. function teleport(part)
  946. local distance = getDistance(character.Head, part)
  947. if not distance then
  948. warn("teleport() : missing distance of part1 and part2")
  949. return
  950. end
  951. if distance < max_teleport_distance then
  952. character:MoveTo(part.Position)
  953. wait(0.1)
  954. else
  955. local x = (part.Position.X - character.Head.Position.X) / (distance / max_teleport_distance)
  956. local z = (part.Position.Z - character.Head.Position.Z) / (distance / max_teleport_distance)
  957. for i = 1, distance / max_teleport_distance do
  958. if _G.auto_farm or _G.espSettings.click_teleport then
  959. character:MoveTo(Vector3.new(character.Head.Position.X + x, part.Position.Y, character.Head.Position.Z + z))
  960. wait()
  961. local part = Instance.new("Part")
  962. part.Size = Vector3.new(6, 1, 6)
  963. part.Position = character.Head.Position + Vector3.new(0, -6, 0)
  964. part.Parent = workspace
  965. part.Anchored = true
  966. wait(teleport_delay)
  967. part:Destroy()
  968. else
  969. return
  970. end
  971. end
  972. local distance = getDistance(character.Head, part)
  973. if not distance then
  974. warn("teleport() : missing distance of part1 and part2")
  975. return
  976. end
  977. if distance < max_teleport_distance * 1.5 then
  978. character:MoveTo(part.Position)
  979. wait(0.1)
  980. end
  981. end
  982. end
  983.  
  984. function getDistance(part1, part2)
  985. --Only gets distance on x and z plane
  986. if part1 and part2 then
  987. local distance = (part1.Position - part2.Position).Magnitude
  988. --local distance = math.sqrt(math.pow(part1.Position.X - part2.Position.X, 2) + math.pow(part1.Position.Z - part2.Position.Z, 2))
  989. return distance
  990. else
  991. warn("getDistance() : missing part1 or part2")
  992. return
  993. end
  994. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement