Guest User

flex your weather script

a guest
May 17th, 2025
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.49 KB | None | 0 0
  1. --Hub, open source. Editing and other is not prohibited.
  2. --discord=qelvix
  3. -- Instances: 24 | Scripts: 8 | Modules: 0 | Tags: 0
  4. local G2L = {};
  5.  
  6. -- StarterGui.HubOil
  7. G2L["1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
  8. G2L["1"]["Name"] = [[HubOil]];
  9. G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
  10. G2L["1"]["ResetOnSpawn"] = false;
  11.  
  12.  
  13. -- StarterGui.HubOil.Drag
  14. G2L["2"] = Instance.new("Frame", G2L["1"]);
  15. G2L["2"]["BorderSizePixel"] = 0;
  16. G2L["2"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  17. G2L["2"]["Size"] = UDim2.new(0, 399, 0, 37);
  18. G2L["2"]["Position"] = UDim2.new(0.35137, 0, 0.29305, 0);
  19. G2L["2"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  20. G2L["2"]["Name"] = [[Drag]];
  21.  
  22.  
  23. -- StarterGui.HubOil.Drag.Frame
  24. G2L["3"] = Instance.new("Frame", G2L["2"]);
  25. G2L["3"]["BorderSizePixel"] = 0;
  26. G2L["3"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  27. G2L["3"]["Size"] = UDim2.new(0, 400, 0, 250);
  28. G2L["3"]["Position"] = UDim2.new(-0.00113, 0, -0.00425, 0);
  29. G2L["3"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  30. G2L["3"]["BackgroundTransparency"] = 0.85;
  31.  
  32.  
  33. -- StarterGui.HubOil.Drag.Frame.Close
  34. G2L["4"] = Instance.new("TextButton", G2L["3"]);
  35. G2L["4"]["TextWrapped"] = true;
  36. G2L["4"]["BorderSizePixel"] = 0;
  37. G2L["4"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  38. G2L["4"]["TextSize"] = 14;
  39. G2L["4"]["TextScaled"] = true;
  40. G2L["4"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  41. G2L["4"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  42. G2L["4"]["Size"] = UDim2.new(0, 35, 0, 36);
  43. G2L["4"]["BackgroundTransparency"] = 1;
  44. G2L["4"]["Name"] = [[Close]];
  45. G2L["4"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  46. G2L["4"]["Text"] = [[X]];
  47. G2L["4"]["Position"] = UDim2.new(0.91113, 0, 0.00063, 0);
  48.  
  49.  
  50. -- StarterGui.HubOil.Drag.Frame.Close.LocalScript
  51. G2L["5"] = Instance.new("LocalScript", G2L["4"]);
  52.  
  53.  
  54.  
  55. -- StarterGui.HubOil.Drag.Frame.RandomTime
  56. G2L["6"] = Instance.new("TextButton", G2L["3"]);
  57. G2L["6"]["TextWrapped"] = true;
  58. G2L["6"]["BorderSizePixel"] = 0;
  59. G2L["6"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  60. G2L["6"]["TextSize"] = 14;
  61. G2L["6"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  62. G2L["6"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  63. G2L["6"]["Size"] = UDim2.new(0, 80, 0, 40);
  64. G2L["6"]["Name"] = [[RandomTime]];
  65. G2L["6"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  66. G2L["6"]["Text"] = [[RandomTime]];
  67. G2L["6"]["Position"] = UDim2.new(0.045, 0, 0.41935, 0);
  68.  
  69.  
  70. -- StarterGui.HubOil.Drag.Frame.RandomTime.LocalScript
  71. G2L["7"] = Instance.new("LocalScript", G2L["6"]);
  72.  
  73.  
  74.  
  75. -- StarterGui.HubOil.Drag.Frame.AntiBang
  76. G2L["8"] = Instance.new("TextButton", G2L["3"]);
  77. G2L["8"]["TextWrapped"] = true;
  78. G2L["8"]["BorderSizePixel"] = 0;
  79. G2L["8"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  80. G2L["8"]["TextSize"] = 14;
  81. G2L["8"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  82. G2L["8"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  83. G2L["8"]["Size"] = UDim2.new(0, 80, 0, 40);
  84. G2L["8"]["Name"] = [[AntiBang]];
  85. G2L["8"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  86. G2L["8"]["Text"] = [[AntiBang]];
  87. G2L["8"]["Position"] = UDim2.new(0.045, 0, 0.63935, 0);
  88.  
  89.  
  90. -- StarterGui.HubOil.Drag.Frame.AntiBang.LocalScript
  91. G2L["9"] = Instance.new("LocalScript", G2L["8"]);
  92.  
  93.  
  94.  
  95. -- StarterGui.HubOil.Drag.Frame.MysteriousBusinessCard
  96. G2L["a"] = Instance.new("TextButton", G2L["3"]);
  97. G2L["a"]["TextWrapped"] = true;
  98. G2L["a"]["BorderSizePixel"] = 0;
  99. G2L["a"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  100. G2L["a"]["TextSize"] = 14;
  101. G2L["a"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  102. G2L["a"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  103. G2L["a"]["Size"] = UDim2.new(0, 80, 0, 40);
  104. G2L["a"]["Name"] = [[MysteriousBusinessCard]];
  105. G2L["a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  106. G2L["a"]["Text"] = [[MysteriousBusinessCard]];
  107. G2L["a"]["Position"] = UDim2.new(0.2925, 0, 0.19135, 0);
  108.  
  109.  
  110. -- StarterGui.HubOil.Drag.Frame.MysteriousBusinessCard.LocalScript
  111. G2L["b"] = Instance.new("LocalScript", G2L["a"]);
  112.  
  113.  
  114.  
  115. -- StarterGui.HubOil.Drag.Frame.AntiKnockback
  116. G2L["c"] = Instance.new("TextButton", G2L["3"]);
  117. G2L["c"]["TextWrapped"] = true;
  118. G2L["c"]["BorderSizePixel"] = 0;
  119. G2L["c"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  120. G2L["c"]["TextSize"] = 14;
  121. G2L["c"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  122. G2L["c"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  123. G2L["c"]["Size"] = UDim2.new(0, 80, 0, 40);
  124. G2L["c"]["Name"] = [[AntiKnockback]];
  125. G2L["c"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  126. G2L["c"]["Text"] = [[AntiKnockback]];
  127. G2L["c"]["Position"] = UDim2.new(0.045, 0, 0.19135, 0);
  128.  
  129.  
  130. -- StarterGui.HubOil.Drag.Frame.AntiKnockback.LocalScript
  131. G2L["d"] = Instance.new("LocalScript", G2L["c"]);
  132.  
  133.  
  134.  
  135. -- StarterGui.HubOil.Drag.Frame.SnowRoom
  136. G2L["e"] = Instance.new("TextButton", G2L["3"]);
  137. G2L["e"]["TextWrapped"] = true;
  138. G2L["e"]["BorderSizePixel"] = 0;
  139. G2L["e"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  140. G2L["e"]["TextSize"] = 14;
  141. G2L["e"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  142. G2L["e"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  143. G2L["e"]["Size"] = UDim2.new(0, 80, 0, 40);
  144. G2L["e"]["Name"] = [[SnowRoom]];
  145. G2L["e"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  146. G2L["e"]["Text"] = [[SnowRoom]];
  147. G2L["e"]["Position"] = UDim2.new(0.2925, 0, 0.41935, 0);
  148.  
  149.  
  150. -- StarterGui.HubOil.Drag.Frame.SnowRoom.LocalScript
  151. G2L["f"] = Instance.new("LocalScript", G2L["e"]);
  152.  
  153.  
  154.  
  155. -- StarterGui.HubOil.Drag.Frame.UnlockAll
  156. G2L["10"] = Instance.new("TextButton", G2L["3"]);
  157. G2L["10"]["TextWrapped"] = true;
  158. G2L["10"]["BorderSizePixel"] = 0;
  159. G2L["10"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  160. G2L["10"]["TextSize"] = 14;
  161. G2L["10"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  162. G2L["10"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  163. G2L["10"]["Size"] = UDim2.new(0, 80, 0, 40);
  164. G2L["10"]["Name"] = [[UnlockAll]];
  165. G2L["10"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  166. G2L["10"]["Text"] = [[UnlockAllDoors]];
  167. G2L["10"]["Position"] = UDim2.new(0.2925, 0, 0.63935, 0);
  168.  
  169.  
  170. -- StarterGui.HubOil.Drag.Frame.UnlockAll.LocalScript
  171. G2L["11"] = Instance.new("LocalScript", G2L["10"]);
  172.  
  173.  
  174.  
  175. -- StarterGui.HubOil.Drag.TextBox
  176. G2L["12"] = Instance.new("TextBox", G2L["2"]);
  177. G2L["12"]["Active"] = false;
  178. G2L["12"]["Interactable"] = false;
  179. G2L["12"]["BorderSizePixel"] = 0;
  180. G2L["12"]["TextWrapped"] = true;
  181. G2L["12"]["TextSize"] = 14;
  182. G2L["12"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  183. G2L["12"]["TextScaled"] = true;
  184. G2L["12"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  185. G2L["12"]["RichText"] = true;
  186. G2L["12"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  187. G2L["12"]["Selectable"] = false;
  188. G2L["12"]["ClearTextOnFocus"] = false;
  189. G2L["12"]["Size"] = UDim2.new(0, 75, 0, 37);
  190. G2L["12"]["Position"] = UDim2.new(0.72, 0, 0, 0);
  191. G2L["12"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  192. G2L["12"]["Text"] = [[flex your weather]];
  193. G2L["12"]["BackgroundTransparency"] = 1;
  194.  
  195.  
  196. -- StarterGui.HubOil.Drag.Smooth GUI Dragging
  197. G2L["13"] = Instance.new("LocalScript", G2L["2"]);
  198. G2L["13"]["Name"] = [[Smooth GUI Dragging]];
  199.  
  200.  
  201. -- StarterGui.HubOil.Drag.BackgroundMain
  202. G2L["14"] = Instance.new("ImageLabel", G2L["2"]);
  203. G2L["14"]["ZIndex"] = 0;
  204. G2L["14"]["BorderSizePixel"] = 0;
  205. G2L["14"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  206. G2L["14"]["ScaleType"] = Enum.ScaleType.Crop;
  207. G2L["14"]["ImageTransparency"] = 0.5;
  208. G2L["14"]["Image"] = [[http://www.roblox.com/asset/?id=9305457875]];
  209. G2L["14"]["Size"] = UDim2.new(0, 399, 0, 212);
  210. G2L["14"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  211. G2L["14"]["BackgroundTransparency"] = 1;
  212. G2L["14"]["Name"] = [[BackgroundMain]];
  213. G2L["14"]["Position"] = UDim2.new(0, 0, 1, 0);
  214.  
  215.  
  216. -- StarterGui.HubOil.Drag.Frame
  217. G2L["15"] = Instance.new("ImageLabel", G2L["2"]);
  218. G2L["15"]["ZIndex"] = 0;
  219. G2L["15"]["BorderSizePixel"] = 0;
  220. G2L["15"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  221. G2L["15"]["ScaleType"] = Enum.ScaleType.Slice;
  222. G2L["15"]["Image"] = [[http://www.roblox.com/asset/?id=10173985980]];
  223. G2L["15"]["Size"] = UDim2.new(0, 399, 0, 37);
  224. G2L["15"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  225. G2L["15"]["BackgroundTransparency"] = 1;
  226. G2L["15"]["Name"] = [[Frame]];
  227.  
  228.  
  229. -- StarterGui.HubOil.Drag.TextBox
  230. G2L["16"] = Instance.new("TextBox", G2L["2"]);
  231. G2L["16"]["Active"] = false;
  232. G2L["16"]["Interactable"] = false;
  233. G2L["16"]["BorderSizePixel"] = 0;
  234. G2L["16"]["TextWrapped"] = true;
  235. G2L["16"]["TextSize"] = 14;
  236. G2L["16"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  237. G2L["16"]["TextScaled"] = true;
  238. G2L["16"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  239. G2L["16"]["RichText"] = true;
  240. G2L["16"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  241. G2L["16"]["Selectable"] = false;
  242. G2L["16"]["ClearTextOnFocus"] = false;
  243. G2L["16"]["Size"] = UDim2.new(0, 34, 0, 37);
  244. G2L["16"]["Position"] = UDim2.new(0.65802, 0, 0, 0);
  245. G2L["16"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  246. G2L["16"]["Text"] = [[V0.1]];
  247. G2L["16"]["BackgroundTransparency"] = 1;
  248.  
  249.  
  250. -- StarterGui.HubOil.Drag.TextBox
  251. G2L["17"] = Instance.new("TextBox", G2L["2"]);
  252. G2L["17"]["Active"] = false;
  253. G2L["17"]["Interactable"] = false;
  254. G2L["17"]["BorderSizePixel"] = 0;
  255. G2L["17"]["TextWrapped"] = true;
  256. G2L["17"]["TextSize"] = 14;
  257. G2L["17"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  258. G2L["17"]["TextScaled"] = true;
  259. G2L["17"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  260. G2L["17"]["RichText"] = true;
  261. G2L["17"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  262. G2L["17"]["Selectable"] = false;
  263. G2L["17"]["ClearTextOnFocus"] = false;
  264. G2L["17"]["Size"] = UDim2.new(0, -59, 0, 37);
  265. G2L["17"]["Position"] = UDim2.new(0.33584, 0, 0, 0);
  266. G2L["17"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  267. G2L["17"]["Text"] = [[Discord:Qelvix]];
  268. G2L["17"]["BackgroundTransparency"] = 1;
  269.  
  270.  
  271. -- StarterGui.HubOil.Drag.TextBox
  272. G2L["18"] = Instance.new("TextBox", G2L["2"]);
  273. G2L["18"]["Active"] = false;
  274. G2L["18"]["Interactable"] = false;
  275. G2L["18"]["BorderSizePixel"] = 0;
  276. G2L["18"]["TextWrapped"] = true;
  277. G2L["18"]["TextSize"] = 14;
  278. G2L["18"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  279. G2L["18"]["TextScaled"] = true;
  280. G2L["18"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  281. G2L["18"]["RichText"] = true;
  282. G2L["18"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  283. G2L["18"]["Selectable"] = false;
  284. G2L["18"]["ClearTextOnFocus"] = false;
  285. G2L["18"]["Size"] = UDim2.new(0, -73, 0, 37);
  286. G2L["18"]["Position"] = UDim2.new(0.18296, 0, 0, 0);
  287. G2L["18"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  288. G2L["18"]["Text"] = [[Hub by oliver]];
  289. G2L["18"]["BackgroundTransparency"] = 1;
  290.  
  291.  
  292. -- StarterGui.HubOil.Drag.Frame.Close.LocalScript
  293. local function C_5()
  294. local script = G2L["5"];
  295.  
  296. script.Parent.MouseButton1Click:Connect(function()
  297. script.Parent.Parent.Parent.Parent.Parent.HubOil:destroy()
  298. end)
  299.  
  300.  
  301. end;
  302. task.spawn(C_5);
  303. -- StarterGui.HubOil.Drag.Frame.RandomTime.LocalScript
  304. local function C_7()
  305. local script = G2L["7"];
  306. local button = script.Parent
  307. local enabled = false
  308. local timeLoop = nil
  309. local isSafeCall = false
  310. local blockExternalCalls = false -- новый флаг для блокировки
  311.  
  312. local function updateButtonState()
  313. if enabled then
  314. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  315. button.Text = "Time Random: ON"
  316. else
  317. button.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  318. button.Text = "Time Random: OFF"
  319. end
  320. end
  321.  
  322. -- Устанавливаем метаметод один раз
  323. local mt = getrawmetatable(game)
  324. setreadonly(mt, false)
  325.  
  326. if not mt.__timeProtectInstalled then
  327. local oldNamecall = mt.__namecall
  328. mt.__namecall = newcclosure(function(self, ...)
  329. local method = getnamecallmethod()
  330. -- если защита включена и это не наш безопасный вызов — блокируем
  331. if blockExternalCalls
  332. and self.Name == "updateLocalTime"
  333. and method == "FireServer"
  334. and not isSafeCall then
  335. warn("🚫 Заблокирован внешний вызов updateLocalTime")
  336. return nil
  337. end
  338. return oldNamecall(self, ...)
  339. end)
  340. mt.__timeProtectInstalled = true
  341. end
  342.  
  343. setreadonly(mt, true)
  344.  
  345. button.MouseButton1Click:Connect(function()
  346. enabled = not enabled
  347. blockExternalCalls = enabled -- включаем/выключаем защиту
  348. updateButtonState()
  349.  
  350. if enabled then
  351. -- запускаем цикл, когда включено
  352. timeLoop = task.spawn(function()
  353. while enabled do
  354. task.wait(0.1)
  355. isSafeCall = true
  356.  
  357. local minutes = string.format("%02d", math.random(0, 24))
  358. local seconds = string.format("%02d", math.random(0, 59))
  359. local timeString = minutes .. ":" .. seconds
  360.  
  361. game:GetService("ReplicatedStorage")
  362. :WaitForChild("updateLocalTime")
  363. :FireServer(timeString)
  364.  
  365. isSafeCall = false
  366. end
  367. end)
  368. else
  369. -- при выключении protected вызовы снимаются,
  370. -- и другие скрипты могут без проблем юзать updateLocalTime
  371. end
  372. end)
  373.  
  374. -- Инициализация
  375. updateButtonState()
  376.  
  377. end;
  378. task.spawn(C_7);
  379. -- StarterGui.HubOil.Drag.Frame.AntiBang.LocalScript
  380. local function C_9()
  381. local script = G2L["9"];
  382. debounce = false
  383. local originalDestroyHeight = game.Workspace.FallenPartsDestroyHeight
  384. local newDestroyHeight = originalDestroyHeight - 200
  385. game.Workspace.FallenPartsDestroyHeight = newDestroyHeight
  386.  
  387. -- Рассчитываем позицию платформы посередине
  388. local platformY = (originalDestroyHeight + newDestroyHeight) / 2
  389.  
  390. local player = game.Players.LocalPlayer
  391.  
  392. -- Инициализация персонажа
  393. local function initCharacter()
  394. character = player.Character or player.CharacterAdded:Wait()
  395. hrp = character:WaitForChild("HumanoidRootPart")
  396. originalCFrame = hrp.CFrame
  397. end
  398.  
  399. initCharacter()
  400. player.CharacterAdded:Connect(initCharacter)
  401.  
  402. -- Настройки телепортации
  403. local isTeleported = false
  404. local platform = nil
  405.  
  406. -- Функция создания платформы (динамическая позиция)
  407. local function createPlatform()
  408. if platform and platform.Parent then return end
  409.  
  410. -- Берем текущую позицию игрока для X/Z
  411. local playerPos = hrp.Position
  412. platform = Instance.new("Part")
  413. platform.Name = "DynamicPlatform"
  414. platform.Size = Vector3.new(20, 2, 20)
  415. platform.Anchored = true
  416. platform.CanCollide = true
  417. platform.Material = Enum.Material.Neon
  418. platform.Color = Color3.fromRGB(0, 255, 255)
  419.  
  420. -- Устанавливаем позицию:
  421. -- X/Z - текущая позиция игрока
  422. -- Y - расчетная середина
  423. platform.Position = Vector3.new(
  424. playerPos.X,
  425. platformY,
  426. playerPos.Z
  427. )
  428.  
  429. platform.Parent = workspace
  430. end
  431.  
  432. -- Функции телепортации
  433. local function teleportToTarget()
  434. if isTeleported then return end
  435. isTeleported = true
  436. originalCFrame = hrp.CFrame
  437.  
  438. -- Телепорт на платформу прямо под игроком
  439. hrp.CFrame = CFrame.new(
  440. originalCFrame.X,
  441. platformY + 5, -- 5 единиц выше платформы
  442. originalCFrame.Z
  443. )
  444.  
  445. createPlatform()
  446. end
  447.  
  448. local function teleportBack()
  449. if not isTeleported then return end
  450. isTeleported = false
  451. hrp.CFrame = originalCFrame
  452. if platform then
  453. platform:Destroy()
  454. platform = nil
  455. end
  456. end
  457.  
  458. -- Обработка клика мыши
  459. script.Parent.MouseButton1Click:Connect(function()
  460. if debounce == false then
  461. debounce = true
  462. teleportToTarget()
  463. wait(0.01)
  464. teleportBack()
  465. wait(0.4)
  466. debounce = false
  467.  
  468. end
  469. end)
  470. end;
  471. task.spawn(C_9);
  472. -- StarterGui.HubOil.Drag.Frame.MysteriousBusinessCard.LocalScript
  473. local function C_b()
  474. local script = G2L["b"];
  475. local button = script.Parent
  476. local cooldown = false
  477.  
  478. -- Объект ClickDetector
  479. local MysteriousBusinessCard = workspace.ShopFunctional.MysteriousBusinessCard.ClickDetector
  480.  
  481. -- Устанавливаем начальное состояние кнопки (зелёный)
  482. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  483. button.Text = "MysteriousBusinessCard"
  484.  
  485. button.MouseButton1Click:Connect(function()
  486. if cooldown then
  487. return -- на паузе, выходим
  488. end
  489. cooldown = true
  490.  
  491. -- Сразу же переключаем цвет на красный
  492. button.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  493. button.Text = "Cooldown..."
  494.  
  495. -- Вызываем ClickDetector
  496. fireclickdetector(MysteriousBusinessCard)
  497.  
  498. -- Ждём 1 секунду, затем возвращаем зелёный
  499. task.delay(1, function()
  500. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  501. button.Text = "Use Card"
  502. cooldown = false
  503. end)
  504. end)
  505.  
  506. end;
  507. task.spawn(C_b);
  508. -- StarterGui.HubOil.Drag.Frame.AntiKnockback.LocalScript
  509. local function C_d()
  510. local script = G2L["d"];
  511. local button = script.Parent
  512. local AntiSitBypass = false
  513. local isSafeSit = false
  514. local cooldown = false
  515.  
  516. -- Обновление состояния кнопки
  517. local function updateButton()
  518. if AntiSitBypass then
  519. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  520. button.Text = "AntiKnockBack: ON"
  521. else
  522. button.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  523. button.Text = "AntiKnockBack: OFF"
  524. end
  525. end
  526.  
  527. -- === Защита принудительного Sit через __newindex ===
  528. do
  529. local mt = getrawmetatable(game)
  530. setreadonly(mt, false)
  531.  
  532. local oldNewIndex = mt.__newindex
  533. mt.__newindex = newcclosure(function(self, key, value)
  534. -- блокируем только внешние Sit=true, когда нет SeatPart
  535. if AntiSitBypass
  536. and self:IsA("Humanoid")
  537. and key == "Sit"
  538. and value == true
  539. and not isSafeSit
  540. and self.SeatPart == nil then
  541. warn("🚫 blocked try sit")
  542. return
  543. end
  544. return oldNewIndex(self, key, value)
  545. end)
  546.  
  547. setreadonly(mt, true)
  548. end
  549.  
  550. -- === Отмена авто-сидения без SeatPart ===
  551. local Players = game:GetService("Players")
  552. local plr = Players.LocalPlayer
  553.  
  554. local function onCharacterAdded(char)
  555. local hum = char:WaitForChild("Humanoid")
  556. hum:GetPropertyChangedSignal("Sit"):Connect(function()
  557. -- если включена защита, и сидим без реального SeatPart — сразу отменяем
  558. if AntiSitBypass and hum.Sit and hum.SeatPart == nil then
  559. isSafeSit = true
  560. hum.Sit = false
  561. isSafeSit = false
  562. end
  563. end)
  564. end
  565.  
  566. if plr.Character then
  567. onCharacterAdded(plr.Character)
  568. end
  569. plr.CharacterAdded:Connect(onCharacterAdded)
  570.  
  571. -- === GUI-кнопка с кд 1 сек ===
  572. updateButton()
  573.  
  574. button.MouseButton1Click:Connect(function()
  575. if cooldown then return end
  576. cooldown = true
  577.  
  578. AntiSitBypass = not AntiSitBypass
  579. updateButton()
  580.  
  581. task.delay(1, function()
  582. cooldown = false
  583. end)
  584. end)
  585.  
  586. end;
  587. task.spawn(C_d);
  588. -- StarterGui.HubOil.Drag.Frame.SnowRoom.LocalScript
  589. local function C_f()
  590. local script = G2L["f"];
  591. local Players = game:GetService("Players")
  592. local plr = Players.LocalPlayer
  593.  
  594. local button = script.Parent
  595. local cooldown = false
  596. local teleported = false
  597. local lastCFrame
  598.  
  599. -- Целевой CFrame для «SecretRoom»
  600. local secretCFrame = CFrame.new(
  601. -81.9071579, 4.54490328, 12.2773209,
  602. 0.205820113, 0, -0.978589833,
  603. 0, 1, 0,
  604. 0.978589833, 0, 0.205820113
  605. )
  606.  
  607. -- Обновление состояния кнопки
  608. local function setButton(state)
  609. if state == "ready" then
  610. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
  611. button.Text = "Teleport SnowRoom"
  612. else -- "return"
  613. button.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  614. button.Text = "Return"
  615. end
  616. end
  617.  
  618. -- Инициализация вида кнопки
  619. setButton("ready")
  620.  
  621. button.MouseButton1Click:Connect(function()
  622. if cooldown then return end
  623. cooldown = true
  624.  
  625. local char = plr.Character
  626. local hrp = char and char:FindFirstChild("HumanoidRootPart")
  627. if hrp then
  628. if not teleported then
  629. -- сохраняем текущую позицию
  630. lastCFrame = hrp.CFrame
  631. -- телепортируем в секретную комнату
  632. hrp.CFrame = secretCFrame
  633. teleported = true
  634. setButton("return")
  635. else
  636. -- возвращаемся на сохранённую позицию
  637. hrp.CFrame = lastCFrame
  638. teleported = false
  639. setButton("ready")
  640. end
  641. end
  642.  
  643. -- сброс кд через 1 секунду
  644. task.delay(1, function()
  645. cooldown = false
  646. end)
  647. end)
  648. end;
  649. task.spawn(C_f);
  650. -- StarterGui.HubOil.Drag.Frame.UnlockAll.LocalScript
  651. local function C_11()
  652. local script = G2L["11"];
  653. local button = script.Parent
  654. local toggled = false
  655.  
  656. -- Таблица с объектами, которые нужно скрывать/открывать
  657. local blocksToToggle = {
  658. workspace.american.american,
  659. workspace.rainy,
  660. workspace.sunny,
  661. workspace.weatherPlus
  662. }
  663.  
  664. -- Обновление состояния объектов
  665. local function setObjectsState(state)
  666. for _, part in ipairs(blocksToToggle) do
  667. if part and part:IsA("BasePart") then
  668. part.CanCollide = not state
  669. part.CanTouch = not state
  670. part.Transparency = state and 1 or 0
  671. end
  672. end
  673. end
  674.  
  675. -- Обновление состояния кнопки
  676. local function updateButton()
  677. if toggled then
  678. button.BackgroundColor3 = Color3.fromRGB(0, 200, 0) -- зелёный
  679. button.Text = "Unlock all : on"
  680. else
  681. button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- красный
  682. button.Text = "Unlock all : off"
  683. end
  684. setObjectsState(toggled)
  685. end
  686.  
  687. -- Инициализация
  688. updateButton()
  689.  
  690. -- Обработка нажатия
  691. button.MouseButton1Click:Connect(function()
  692. toggled = not toggled
  693. updateButton()
  694. end)
  695.  
  696. end;
  697. task.spawn(C_11);
  698. -- StarterGui.HubOil.Drag.Smooth GUI Dragging
  699. local function C_13()
  700. local script = G2L["13"];
  701. local UserInputService = game:GetService("UserInputService")
  702. local runService = (game:GetService("RunService"));
  703.  
  704. local gui = script.Parent
  705.  
  706. local dragging
  707. local dragInput
  708. local dragStart
  709. local startPos
  710.  
  711. function Lerp(a, b, m)
  712. return a + (b - a) * m
  713. end;
  714.  
  715. local lastMousePos
  716. local lastGoalPos
  717. local DRAG_SPEED = (8); -- // The speed of the UI darg.
  718. function Update(dt)
  719. if not (startPos) then return end;
  720. if not (dragging) and (lastGoalPos) then
  721. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  722. return
  723. end;
  724.  
  725. local delta = (lastMousePos - UserInputService:GetMouseLocation())
  726. local xGoal = (startPos.X.Offset - delta.X);
  727. local yGoal = (startPos.Y.Offset - delta.Y);
  728. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  729. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  730. end;
  731.  
  732. gui.InputBegan:Connect(function(input)
  733. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  734. dragging = true
  735. dragStart = input.Position
  736. startPos = gui.Position
  737. lastMousePos = UserInputService:GetMouseLocation()
  738.  
  739. input.Changed:Connect(function()
  740. if input.UserInputState == Enum.UserInputState.End then
  741. dragging = false
  742. end
  743. end)
  744. end
  745. end)
  746.  
  747. gui.InputChanged:Connect(function(input)
  748. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  749. dragInput = input
  750. end
  751. end)
  752.  
  753. runService.Heartbeat:Connect(Update)
  754. end;
  755. task.spawn(C_13);
  756.  
  757. return G2L["1"], require;
Advertisement
Add Comment
Please, Sign In to add comment