rayiahmadjuhandi

99 Night in the forest script

Oct 13th, 2025
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. -- Script Lua FE GUI Draggable: "99 Nights in the Forest Loader" - Loadstring Script Anti-Error (Fixed October 2025)
  2. -- Buatan heckes15 - Persistent & Selalu Bekerja (Handle Respawn)
  3. -- Fitur: GUI bisa digeser, tombol X untuk tutup, tombol Load Script untuk load script 99 Nights in the Forest (Universal FE, Anti-Error + Content Check, No Key Confirmed).
  4.  
  5. local Players = game:GetService("Players")
  6. local UserInputService = game:GetService("UserInputService")
  7. local TweenService = game:GetService("TweenService")
  8. local HttpService = game:GetService("HttpService")
  9.  
  10. local player = Players.LocalPlayer
  11. local playerGui = player:WaitForChild("PlayerGui")
  12.  
  13. -- Fungsi load script 99 Nights in the Forest (dengan anti-error via pcall + check konten)
  14. local function load99NightsScript()
  15. local url = "https://raw.githubusercontent.com/adibhub1/99-nighit-in-forest/refs/heads/main/99%20night%20in%20forest"
  16. local success1, content = pcall(function()
  17. return game:HttpGet(url)
  18. end)
  19.  
  20. if not success1 then
  21. warn("Gagal fetch konten dari URL! Error: " .. tostring(content) .. " - Cek koneksi atau URL mati.")
  22. return false
  23. end
  24.  
  25. if content == "" or string.len(content) < 100 then
  26. warn("Konten script kosong atau terlalu pendek! Script mungkin outdated. Coba cari script baru di Roblox-Scripter.")
  27. return false
  28. end
  29.  
  30. local success2, err = pcall(function()
  31. loadstring(content)()
  32. end)
  33. if success2 then
  34. print("Script 99 Nights in the Forest loaded successfully! 🌲 Fitur: Auto Farm Wood, Fill Hunger, ESP, Kill Aura, Bring Items, Teleports. No Key, Anti-error OK.")
  35. return true
  36. else
  37. warn("Gagal execute script! Error: " .. tostring(err) .. " - Script mungkin outdated atau game update anti-cheat.")
  38. return false
  39. end
  40. end
  41.  
  42. -- Fungsi buat GUI Loader utama
  43. local function createGUI()
  44. -- Hapus GUI lama jika ada
  45. local oldGui = playerGui:FindFirstChild("99NightsLoader")
  46. if oldGui then oldGui:Destroy() end
  47.  
  48. -- Buat ScreenGui
  49. local screenGui = Instance.new("ScreenGui")
  50. screenGui.Name = "99NightsLoader"
  51. screenGui.Parent = playerGui
  52. screenGui.ResetOnSpawn = false -- Persistent saat respawn
  53.  
  54. -- Frame utama (bisa digeser)
  55. local mainFrame = Instance.new("Frame")
  56. mainFrame.Name = "MainFrame"
  57. mainFrame.Size = UDim2.new(0, 300, 0, 200)
  58. mainFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
  59. mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  60. mainFrame.BorderSizePixel = 0
  61. mainFrame.Active = true -- Aktifkan untuk drag
  62. mainFrame.Draggable = true -- Fitur drag built-in Roblox (FE compatible)
  63. mainFrame.Parent = screenGui
  64.  
  65. -- Sudut dibulatkan
  66. local corner = Instance.new("UICorner")
  67. corner.CornerRadius = UDim.new(0, 10)
  68. corner.Parent = mainFrame
  69.  
  70. -- Title Bar (untuk drag juga)
  71. local titleBar = Instance.new("Frame")
  72. titleBar.Name = "TitleBar"
  73. titleBar.Size = UDim2.new(1, 0, 0, 30)
  74. titleBar.Position = UDim2.new(0, 0, 0, 0)
  75. titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  76. titleBar.BorderSizePixel = 0
  77. titleBar.Parent = mainFrame
  78.  
  79. local titleCorner = Instance.new("UICorner")
  80. titleCorner.CornerRadius = UDim.new(0, 10)
  81. titleCorner.Parent = titleBar
  82.  
  83. -- Title Text
  84. local title = Instance.new("TextLabel")
  85. title.Name = "Title"
  86. title.Size = UDim2.new(1, -30, 1, 0) -- Kasih ruang untuk tombol X
  87. title.Position = UDim2.new(0, 5, 0, 0)
  88. title.BackgroundTransparency = 1
  89. title.Text = "🌲 99 Nights in the Forest Loader 🌲"
  90. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  91. title.TextScaled = true
  92. title.Font = Enum.Font.SourceSansBold
  93. title.Parent = titleBar
  94.  
  95. -- Tombol Close (X)
  96. local closeButton = Instance.new("TextButton")
  97. closeButton.Name = "CloseButton"
  98. closeButton.Size = UDim2.new(0, 25, 0, 25)
  99. closeButton.Position = UDim2.new(1, -30, 0, 2.5)
  100. closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  101. closeButton.BorderSizePixel = 0
  102. closeButton.Text = "X"
  103. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  104. closeButton.TextScaled = true
  105. closeButton.Font = Enum.Font.SourceSansBold
  106. closeButton.Parent = titleBar
  107.  
  108. local closeCorner = Instance.new("UICorner")
  109. closeCorner.CornerRadius = UDim.new(0, 5)
  110. closeCorner.Parent = closeButton
  111.  
  112. -- Hover efek untuk close button
  113. closeButton.MouseEnter:Connect(function()
  114. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
  115. end)
  116. closeButton.MouseLeave:Connect(function()
  117. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 50, 50)}):Play()
  118. end)
  119.  
  120. -- Tombol Load Script
  121. local loadButton = Instance.new("TextButton")
  122. loadButton.Name = "LoadButton"
  123. loadButton.Size = UDim2.new(1, -20, 0, 50)
  124. loadButton.Position = UDim2.new(0, 10, 0, 50)
  125. loadButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  126. loadButton.BorderSizePixel = 0
  127. loadButton.Text = "🌲 LOAD SCRIPT (Auto Farm, ESP, Kill Aura, No Key)"
  128. loadButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  129. loadButton.TextScaled = true
  130. loadButton.Font = Enum.Font.SourceSansBold
  131. loadButton.Parent = mainFrame
  132.  
  133. local loadCorner = Instance.new("UICorner")
  134. loadCorner.CornerRadius = UDim.new(0, 5)
  135. loadCorner.Parent = loadButton
  136.  
  137. -- Label info
  138. local infoLabel = Instance.new("TextLabel")
  139. infoLabel.Name = "Info"
  140. infoLabel.Size = UDim2.new(1, -20, 0, 50)
  141. infoLabel.Position = UDim2.new(0, 10, 0, 110)
  142. infoLabel.BackgroundTransparency = 1
  143. infoLabel.Text = "Klik tombol untuk load script!\n(Fixed: No Key confirmed, anti-error: Cek console F9 kalau gagal)"
  144. infoLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  145. infoLabel.TextScaled = true
  146. infoLabel.Font = Enum.Font.SourceSans
  147. infoLabel.TextWrapped = true
  148. infoLabel.Parent = mainFrame
  149.  
  150. -- Label kredit pembuat
  151. local creditLabel = Instance.new("TextLabel")
  152. creditLabel.Name = "Credit"
  153. creditLabel.Size = UDim2.new(1, -20, 0, 20)
  154. creditLabel.Position = UDim2.new(0, 10, 1, -25)
  155. creditLabel.BackgroundTransparency = 1
  156. creditLabel.Text = "Made by heckes15 🔥 (Fixed October 2025)"
  157. creditLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
  158. creditLabel.TextScaled = true
  159. creditLabel.Font = Enum.Font.SourceSansBold
  160. creditLabel.Parent = mainFrame
  161.  
  162. -- Event tombol Load Script
  163. loadButton.MouseButton1Click:Connect(function()
  164. local loaded = load99NightsScript()
  165. if loaded then
  166. infoLabel.Text = "Script loaded! Survive the forest with OP features. 🌲"
  167. infoLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  168. loadButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  169. loadButton.Text = "✅ LOADED"
  170. else
  171. infoLabel.Text = "Gagal load! Cek console (F9) untuk detail error. Cari script baru di Roblox-Scripter."
  172. infoLabel.TextColor3 = Color3.fromRGB(255, 100, 0)
  173. end
  174. end)
  175.  
  176. -- Event tutup GUI utama
  177. closeButton.MouseButton1Click:Connect(function()
  178. local tweenOut = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, 0, 0, 0)})
  179. tweenOut:Play()
  180. tweenOut.Completed:Connect(function()
  181. screenGui:Destroy()
  182. end)
  183. end)
  184.  
  185. -- Animasi muncul
  186. mainFrame.Size = UDim2.new(0, 0, 0, 0)
  187. local tweenIn = TweenService:Create(mainFrame, TweenInfo.new(0.5, Enum.EasingStyle.Back), {Size = UDim2.new(0, 300, 0, 200)})
  188. tweenIn:Play()
  189.  
  190. print("99 Nights in the Forest Loader loaded! Made by heckes15. Geser frame, klik LOAD & cek console kalau error.")
  191. end
  192.  
  193. -- Jalankan GUI awal
  194. createGUI()
  195.  
  196. -- Persistent: Muncul ulang saat respawn
  197. player.CharacterAdded:Connect(function()
  198. wait(1) -- Tunggu load penuh
  199. createGUI()
  200. end)
Advertisement
Add Comment
Please, Sign In to add comment