Advertisement
ERROR_CODE

ERROR_CODE's Tower

Aug 27th, 2023 (edited)
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.20 KB | None | 0 0
  1. local DonatePart = Instance.new("Part")
  2. local SurfaceGui = Instance.new("SurfaceGui")
  3. local ScrollingFrame = Instance.new("ScrollingFrame")
  4.  
  5. SurfaceGui.Parent = DonatePart
  6. SurfaceGui.Adornee = DonatePart
  7.  
  8. DonatePart.Parent = workspace
  9. DonatePart.Anchored = true
  10. DonatePart.Size = Vector3.new(9, 15, 1)
  11. DonatePart.CanCollide = true
  12. DonatePart.Position = Vector3.new(110.99, 1007.5, 219.43)
  13. DonatePart.BrickColor = BrickColor.new("Institutional white")
  14. DonatePart.Material = "Metal"
  15.  
  16. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 4, 0)
  17. ScrollingFrame.ScrollBarImageColor3 = Color3.new(1, 1, 1)
  18. ScrollingFrame.ScrollBarThickness = 8
  19. ScrollingFrame.Active = true
  20. ScrollingFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  21. ScrollingFrame.BackgroundTransparency = 1
  22. ScrollingFrame.BorderSizePixel = 0
  23. ScrollingFrame.Position = UDim2.new(0.03, 0, 0, 0)
  24. ScrollingFrame.Size = UDim2.new(0.96, 0, 1, 0)
  25. ScrollingFrame.Name = "ScrollingFrame"
  26. ScrollingFrame.Parent = SurfaceGui
  27.  
  28. local L = game:GetService("Lighting")
  29. L.ClockTime = 12
  30. local Sky = Instance.new("Sky")
  31. Sky.Name = "Sky"
  32. Sky.SkyboxUp = "http://www.roblox.com/asset/?id=600835177"
  33. Sky.SkyboxLf = "http://www.roblox.com/asset/?id=600886090"
  34. Sky.SkyboxBk = "http://www.roblox.com/asset/?id=600830446"
  35. Sky.SkyboxFt = "http://www.roblox.com/asset/?id=600832720"
  36. Sky.StarCount = 100
  37. Sky.SkyboxDn = "http://www.roblox.com/asset/?id=600831635"
  38. Sky.SkyboxRt = "http://www.roblox.com/asset/?id=600833862"
  39. Sky.Parent = L
  40.  
  41. local ShiftlockStarterGui = Instance.new("ScreenGui")
  42. local ImageButton = Instance.new("ImageButton")
  43.  
  44. ShiftlockStarterGui.Name = "Shiftlock (StarterGui)"
  45. ShiftlockStarterGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  46. ShiftlockStarterGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  47.  
  48. ImageButton.Parent = ShiftlockStarterGui
  49. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50. ImageButton.BackgroundTransparency = 1.000
  51. ImageButton.Position = UDim2.new(0.921914339, 0, 0.552375436, 0)
  52. ImageButton.Size = UDim2.new(0.0636147112, 0, 0.0661305636, 0)
  53. ImageButton.SizeConstraint = Enum.SizeConstraint.RelativeXX
  54. ImageButton.Image = "http://www.roblox.com/asset/?id=182223762"
  55.  
  56.  
  57.  
  58. local function TLQOYN_fake_script() -- ImageButton.ShiftGUI
  59.     local script = Instance.new('LocalScript', ImageButton)
  60.  
  61.     local MobileCameraFramework = {}
  62.     local players = game:GetService("Players")
  63.     local runservice = game:GetService("RunService")
  64.     local CAS = game:GetService("ContextActionService")
  65.     local player = players.LocalPlayer
  66.     local character = player.Character or player.CharacterAdded:Wait()
  67.     local root = character:WaitForChild("HumanoidRootPart")
  68.     local humanoid = character.Humanoid
  69.     local camera = workspace.CurrentCamera
  70.     local button = script.Parent
  71.    
  72.    
  73.     uis = game:GetService("UserInputService")
  74.     ismobile = uis.TouchEnabled
  75.     button.Visible = ismobile
  76.    
  77.     local states = {
  78.         OFF = "rbxasset://textures/ui/mouseLock_off@2x.png",
  79.         ON = "rbxasset://textures/ui/mouseLock_on@2x.png"
  80.     }
  81.     local MAX_LENGTH = 900000
  82.     local active = false
  83.     local ENABLED_OFFSET = CFrame.new(1.7, 0, 0)
  84.     local DISABLED_OFFSET = CFrame.new(-1.7, 0, 0)
  85.     local function UpdateImage(STATE)
  86.         button.Image = states[STATE]
  87.     end
  88.     local function UpdateAutoRotate(BOOL)
  89.         humanoid.AutoRotate = BOOL
  90.     end
  91.     local function GetUpdatedCameraCFrame(ROOT, CAMERA)
  92.         return CFrame.new(root.Position, Vector3.new(CAMERA.CFrame.LookVector.X * MAX_LENGTH, root.Position.Y, CAMERA.CFrame.LookVector.Z * MAX_LENGTH))
  93.     end
  94.     local function EnableShiftlock()
  95.         UpdateAutoRotate(false)
  96.         UpdateImage("ON")
  97.         root.CFrame = GetUpdatedCameraCFrame(root, camera)
  98.         camera.CFrame = camera.CFrame * ENABLED_OFFSET
  99.     end
  100.     local function DisableShiftlock()
  101.         UpdateAutoRotate(true)
  102.         UpdateImage("OFF")
  103.         camera.CFrame = camera.CFrame * DISABLED_OFFSET
  104.         pcall(function()
  105.             active:Disconnect()
  106.             active = nil
  107.         end)
  108.     end
  109.     UpdateImage("OFF")
  110.     active = false
  111.     function ShiftLock()
  112.         if not active then
  113.             active = runservice.RenderStepped:Connect(function()
  114.                 EnableShiftlock()
  115.             end)
  116.         else
  117.             DisableShiftlock()
  118.         end
  119.     end
  120.     local ShiftLockButton = CAS:BindAction("ShiftLOCK", ShiftLock, false, "On")
  121.     CAS:SetPosition("ShiftLOCK", UDim2.new(0.8, 0, 0.8, 0))
  122.     button.MouseButton1Click:Connect(function()
  123.         if not active then
  124.             active = runservice.RenderStepped:Connect(function()
  125.                 EnableShiftlock()
  126.             end)
  127.         else
  128.             DisableShiftlock()
  129.         end
  130.     end)
  131.     return MobileCameraFramework
  132.    
  133. end
  134. coroutine.wrap(TLQOYN_fake_script)()
  135. local function OMQRQRC_fake_script() -- ShiftlockStarterGui.LocalScript
  136.     local script = Instance.new('LocalScript', ShiftlockStarterGui)
  137.  
  138.     local Players = game:GetService("Players")
  139.     local UserInputService = game:GetService("UserInputService")
  140.     local Settings = UserSettings()
  141.     local GameSettings = Settings.GameSettings
  142.     local ShiftLockController = {}
  143.     while not Players.LocalPlayer do
  144.         wait()
  145.     end
  146.     local LocalPlayer = Players.LocalPlayer
  147.     local Mouse = LocalPlayer:GetMouse()
  148.     local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  149.     local ScreenGui, ShiftLockIcon, InputCn
  150.     local IsShiftLockMode = true
  151.     local IsShiftLocked = true
  152.     local IsActionBound = false
  153.     local IsInFirstPerson = false
  154.     ShiftLockController.OnShiftLockToggled = Instance.new("BindableEvent")
  155.     local function isShiftLockMode()
  156.         return LocalPlayer.DevEnableMouseLock and GameSettings.ControlMode == Enum.ControlMode.MouseLockSwitch and LocalPlayer.DevComputerMovementMode ~= Enum.DevComputerMovementMode.ClickToMove and GameSettings.ComputerMovementMode ~= Enum.ComputerMovementMode.ClickToMove and LocalPlayer.DevComputerMovementMode ~= Enum.DevComputerMovementMode.Scriptable
  157.     end
  158.     if not UserInputService.TouchEnabled then
  159.         IsShiftLockMode = isShiftLockMode()
  160.     end
  161.     local function onShiftLockToggled()
  162.         IsShiftLocked = not IsShiftLocked
  163.         ShiftLockController.OnShiftLockToggled:Fire()
  164.     end
  165.     local initialize = function()
  166.         print("enabled")
  167.     end
  168.     function ShiftLockController:IsShiftLocked()
  169.         return IsShiftLockMode and IsShiftLocked
  170.     end
  171.     function ShiftLockController:SetIsInFirstPerson(isInFirstPerson)
  172.         IsInFirstPerson = isInFirstPerson
  173.     end
  174.     local function mouseLockSwitchFunc(actionName, inputState, inputObject)
  175.         if IsShiftLockMode then
  176.             onShiftLockToggled()
  177.         end
  178.     end
  179.     local function disableShiftLock()
  180.         if ScreenGui then
  181.             ScreenGui.Parent = nil
  182.         end
  183.         IsShiftLockMode = false
  184.         Mouse.Icon = ""
  185.         if InputCn then
  186.             InputCn:disconnect()
  187.             InputCn = nil
  188.         end
  189.         IsActionBound = false
  190.         ShiftLockController.OnShiftLockToggled:Fire()
  191.     end
  192.     local onShiftInputBegan = function(inputObject, isProcessed)
  193.         if isProcessed then
  194.             return
  195.         end
  196.         if inputObject.UserInputType ~= Enum.UserInputType.Keyboard or inputObject.KeyCode == Enum.KeyCode.LeftShift or inputObject.KeyCode == Enum.KeyCode.RightShift then
  197.         end
  198.     end
  199.     local function enableShiftLock()
  200.         IsShiftLockMode = isShiftLockMode()
  201.         if IsShiftLockMode then
  202.             if ScreenGui then
  203.                 ScreenGui.Parent = PlayerGui
  204.             end
  205.             if IsShiftLocked then
  206.                 ShiftLockController.OnShiftLockToggled:Fire()
  207.             end
  208.             if not IsActionBound then
  209.                 InputCn = UserInputService.InputBegan:connect(onShiftInputBegan)
  210.                 IsActionBound = true
  211.             end
  212.         end
  213.     end
  214.     GameSettings.Changed:connect(function(property)
  215.         if property == "ControlMode" then
  216.             if GameSettings.ControlMode == Enum.ControlMode.MouseLockSwitch then
  217.                 enableShiftLock()
  218.             else
  219.                 disableShiftLock()
  220.             end
  221.         elseif property == "ComputerMovementMode" then
  222.             if GameSettings.ComputerMovementMode == Enum.ComputerMovementMode.ClickToMove then
  223.                 disableShiftLock()
  224.             else
  225.                 enableShiftLock()
  226.             end
  227.         end
  228.     end)
  229.     LocalPlayer.Changed:connect(function(property)
  230.         if property == "DevEnableMouseLock" then
  231.             if LocalPlayer.DevEnableMouseLock then
  232.                 enableShiftLock()
  233.             else
  234.                 disableShiftLock()
  235.             end
  236.         elseif property == "DevComputerMovementMode" then
  237.             if LocalPlayer.DevComputerMovementMode == Enum.DevComputerMovementMode.ClickToMove or LocalPlayer.DevComputerMovementMode == Enum.DevComputerMovementMode.Scriptable then
  238.                 disableShiftLock()
  239.             else
  240.                 enableShiftLock()
  241.             end
  242.         end
  243.     end)
  244.     LocalPlayer.CharacterAdded:connect(function(character)
  245.         if not UserInputService.TouchEnabled then
  246.             initialize()
  247.         end
  248.     end)
  249.     if not UserInputService.TouchEnabled then
  250.         initialize()
  251.         if isShiftLockMode() then
  252.             InputCn = UserInputService.InputBegan:connect(onShiftInputBegan)
  253.             IsActionBound = true
  254.         end
  255.     end
  256.     enableShiftLock()
  257.     return ShiftLockController
  258.    
  259. end
  260. coroutine.wrap(OMQRQRC_fake_script)()
  261.  
  262. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(98.629, 1004, 218.486)
  263.  
  264. local Player = game.Players.LocalPlayer
  265. local Character = Player.Character
  266. local Humanoid = Character.Humanoid
  267.  Humanoid.MaxHealth = 100
  268. Humanoid.HealthChanged:connect(function()
  269. if Humanoid.Health < 5 then
  270. Humanoid.Health = Humanoid.MaxHealth
  271. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(98.629, 1004, 218.486)
  272. end
  273. end)
  274.  
  275. local Floor = Instance.new("Part")
  276. Floor.Parent = workspace
  277. Floor.Anchored = true
  278. Floor.Size = Vector3.new(100, 1, 100)
  279. Floor.CanCollide = true
  280. Floor.Position = Vector3.new(143.055, 1000, 172.955)
  281. Floor.BrickColor = BrickColor.new("Institutional white")
  282.  
  283. local TowerWall1 = Instance.new("Part")
  284. TowerWall1.Parent = workspace
  285. TowerWall1.Anchored = true
  286. TowerWall1.Size = Vector3.new(100, 1, 666)
  287. TowerWall1.CanCollide = true
  288. TowerWall1.Position = Vector3.new(143.272, 1333.5, 222.578)
  289. TowerWall1.BrickColor = BrickColor.new("Institutional white")
  290. TowerWall1.Rotation = Vector3.new(-90, 0, 0)
  291. TowerWall1.Transparency = 0.5
  292.  
  293. local TowerWall2 = Instance.new("Part")
  294. TowerWall2.Parent = workspace
  295. TowerWall2.Anchored = true
  296. TowerWall2.Size = Vector3.new(100, 1, 666)
  297. TowerWall2.CanCollide = true
  298. TowerWall2.Position = Vector3.new(143.272, 1333.5, 123.578)
  299. TowerWall2.BrickColor = BrickColor.new("Institutional white")
  300. TowerWall2.Rotation = Vector3.new(-90, 0, 0)
  301.  
  302. local TowerWall3 = Instance.new("Part")
  303. TowerWall3.Parent = workspace
  304. TowerWall3.Anchored = true
  305. TowerWall3.Size = Vector3.new(100, 1, 666)
  306. TowerWall3.CanCollide = true
  307. TowerWall3.Position = Vector3.new(93.272, 1333.5, 172.578)
  308. TowerWall3.BrickColor = BrickColor.new("Institutional white")
  309. TowerWall3.Rotation = Vector3.new(-90, 0, -90)
  310.  
  311. local TowerWall4 = Instance.new("Part")
  312. TowerWall4.Parent = workspace
  313. TowerWall4.Anchored = true
  314. TowerWall4.Size = Vector3.new(100, 1, 666)
  315. TowerWall4.CanCollide = true
  316. TowerWall4.Position = Vector3.new(193.272, 1333.5, 172.578)
  317. TowerWall4.BrickColor = BrickColor.new("Institutional white")
  318. TowerWall4.Rotation = Vector3.new(-90, 0, -90)
  319.  
  320.  
  321. local TowerPart1 = Instance.new("Part")
  322. TowerPart1.Parent = workspace
  323. TowerPart1.Anchored = true
  324. TowerPart1.Size = Vector3.new(8, 4, 8)
  325. TowerPart1.CanCollide = true
  326. TowerPart1.Position = Vector3.new(98.275, 1002, 218.618)
  327. TowerPart1.BrickColor = BrickColor.new("Really black")
  328.  
  329. local GlassBoxPart1 = Instance.new("Part")
  330. GlassBoxPart1.Parent = workspace
  331. GlassBoxPart1.Anchored = true
  332. GlassBoxPart1.Size = Vector3.new(7, 1, 7)
  333. GlassBoxPart1.CanCollide = true
  334. GlassBoxPart1.Position = Vector3.new(135.324, 1001, 219.324)
  335. local Mesh = Instance.new("CylinderMesh", GlassBoxPart1)
  336. GlassBoxPart1.BrickColor = BrickColor.new("Medium stone grey")
  337. GlassBoxPart1.Material = "DiamondPlate"
  338.  
  339. local GlassBoxPart2 = Instance.new("Part")
  340. GlassBoxPart2.Parent = workspace
  341. GlassBoxPart2.Anchored = true
  342. GlassBoxPart2.Size = Vector3.new(7, 1, 7)
  343. GlassBoxPart2.CanCollide = true
  344. GlassBoxPart2.Position = Vector3.new(135.324, 1010, 219.324)
  345. local Mesh = Instance.new("CylinderMesh", GlassBoxPart2)
  346. GlassBoxPart2.BrickColor = BrickColor.new("Medium stone grey")
  347. GlassBoxPart2.Material = "DiamondPlate"
  348.  
  349. local GlassBoxPart3 = Instance.new("Part")
  350. GlassBoxPart3.Parent = workspace
  351. GlassBoxPart3.Anchored = true
  352. GlassBoxPart3.Size = Vector3.new(5, 9, 5)
  353. GlassBoxPart3.CanCollide = true
  354. GlassBoxPart3.Position = Vector3.new(135.324, 1005, 219.324)
  355. local Mesh = Instance.new("CylinderMesh", GlassBoxPart3)
  356. GlassBoxPart3.Material = "ForceField"
  357.  
  358. GlassBoxPart3.Touched:connect(function()
  359. if GetTool1 then
  360. return
  361. end
  362. pcall(function()
  363. getgenv().GetTool1 = true
  364. --speed coil
  365. _G.speedcoil = game:GetObjects('rbxassetid://99119158')[1]
  366. _G.speedcoil.Parent = game.Players.LocalPlayer.Backpack
  367. _G.speedcoil.Equipped:Connect(function()
  368. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 32
  369. local Sound = Instance.new("Sound")
  370. local Id = "99173388"
  371. Sound.Parent = game.Workspace
  372. Sound.SoundId = "rbxassetid://"..Id
  373. Sound.Playing = true
  374. Sound.Looped = false
  375. Sound.Volume = 1
  376. end)
  377. _G.speedcoil.Unequipped:Connect(function()
  378. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  379. end)
  380. end)
  381. end)
  382.  
  383. local GlassBoxPart4 = Instance.new("Part")
  384. GlassBoxPart4.Parent = workspace
  385. GlassBoxPart4.Anchored = true
  386. GlassBoxPart4.Size = Vector3.new(7, 1, 7)
  387. GlassBoxPart4.CanCollide = true
  388. GlassBoxPart4.Position = Vector3.new(123.324, 1001, 219.324)
  389. local Mesh = Instance.new("CylinderMesh", GlassBoxPart4)
  390. GlassBoxPart4.BrickColor = BrickColor.new("Medium stone grey")
  391. GlassBoxPart4.Material = "DiamondPlate"
  392.  
  393. local GlassBoxPart5 = Instance.new("Part")
  394. GlassBoxPart5.Parent = workspace
  395. GlassBoxPart5.Anchored = true
  396. GlassBoxPart5.Size = Vector3.new(7, 1, 7)
  397. GlassBoxPart5.CanCollide = true
  398. GlassBoxPart5.Position = Vector3.new(123.324, 1010, 219.324)
  399. local Mesh = Instance.new("CylinderMesh", GlassBoxPart5)
  400. GlassBoxPart5.BrickColor = BrickColor.new("Medium stone grey")
  401. GlassBoxPart5.Material = "DiamondPlate"
  402.  
  403. local GlassBoxPart6 = Instance.new("Part")
  404. GlassBoxPart6.Parent = workspace
  405. GlassBoxPart6.Anchored = true
  406. GlassBoxPart6.Size = Vector3.new(5, 9, 5)
  407. GlassBoxPart6.CanCollide = true
  408. GlassBoxPart6.Position = Vector3.new(123.324, 1005, 219.324)
  409. local Mesh = Instance.new("CylinderMesh", GlassBoxPart6)
  410. GlassBoxPart6.Material = "ForceField"
  411.  
  412. GlassBoxPart6.Touched:connect(function()
  413. if GetTool2 then
  414. return
  415. end
  416. pcall(function()
  417. getgenv().GetTool2 = true
  418. --gravity coil
  419. _G.gravitycoil = game:GetObjects('rbxassetid://16688968')[1]
  420. _G.gravitycoil.Parent = game.Players.LocalPlayer.Backpack
  421. _G.gravitycoil.Equipped:Connect(function()
  422. game.workspace.Gravity = 80
  423. local Sound = Instance.new("Sound")
  424. local Id = "16619553"
  425. Sound.Parent = game.Workspace
  426. Sound.SoundId = "rbxassetid://"..Id
  427. Sound.Playing = true
  428. Sound.Looped = false
  429. Sound.Volume = 1
  430. end)
  431. _G.gravitycoil.Unequipped:Connect(function()
  432. game.workspace.Gravity = 196.2
  433. end)
  434. end)
  435. end)
  436.  
  437.  
  438.  
  439. local Coil2 = Instance.new("Part")
  440. Coil2.Parent = workspace
  441. Coil2.Anchored = true
  442. Coil2.Size = Vector3.new(1, 1, 1)
  443. Coil2.CanCollide = true
  444. Coil2.Position = Vector3.new(123.324, 1005, 219.324)
  445. local Coil2mesh = Instance.new("SpecialMesh", Coil2)
  446. Coil2mesh.Scale = Vector3.new(1, 1, 1)
  447. Coil2mesh.MeshId = "rbxassetid://16606212"
  448. Coil2mesh.TextureId = "rbxassetid://16606141"
  449.  
  450.  
  451. local Coil1 = Instance.new("Part")
  452. Coil1.Parent = workspace
  453. Coil1.Anchored = true
  454. Coil1.Size = Vector3.new(1, 1, 1)
  455. Coil1.CanCollide = true
  456. Coil1.Position = Vector3.new(135.324, 1005, 219.324)
  457. local Coil1mesh = Instance.new("SpecialMesh", Coil1)
  458. Coil1mesh.Scale = Vector3.new(1, 1, 1)
  459. Coil1mesh.MeshId = "rbxassetid://16606212"
  460. Coil1mesh.TextureId = "rbxassetid://99170547"
  461.  
  462.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement