Advertisement
maskub1234

BlackGrimoireMas

Nov 28th, 2021
1,069
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.49 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://gist.githubusercontent.com/koio08199za/5121bfa15c12af9e0dc3ab23745213e5/raw/5e509dc9291b4250cec7f4af79d7c3229c9bac13/Test"))()
  2. local mas = library.new("MAS HUB", 5013109572)
  3.  
  4. -- themes
  5. local themes = {
  6.     Glow = Color3.fromRGB(0, 165, 248),
  7.     TextColor = Color3.fromRGB(0, 183, 255)
  8. }
  9. local page = mas:addPage("teleport")
  10. local s1 = page:addSection("tp to world")
  11. s1:addButton("BOSS", function()
  12.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(250.573196, 652.958313, -693.481812, 0.958819151, -7.76903377e-08, -0.284017384, 6.18749354e-08, 1, -6.46561205e-08, 0.284017384, 4.44199699e-08, 0.958819151)
  13. end)
  14.  
  15. local main = mas:addPage("main")
  16. local s23 = main:addSection("Main")
  17. Fly = false
  18. function activatefly()
  19.     local mouse=game.Players.LocalPlayer:GetMouse''
  20.     localplayer=game.Players.LocalPlayer
  21.     game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  22.     local torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  23.     local speedSET=5
  24.     local keys={a=false,d=false,w=false,s=false}
  25.     local e1
  26.     local e2
  27.     local function start()
  28.         local pos = Instance.new("BodyPosition",torso)
  29.         local gyro = Instance.new("BodyGyro",torso)
  30.         pos.Name="EPIXPOS"
  31.         pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  32.         pos.position = torso.Position
  33.         gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  34.         gyro.cframe = torso.CFrame
  35.         repeat
  36.             wait()
  37.             localplayer.Character.Humanoid.PlatformStand=true
  38.             local new=gyro.cframe - gyro.cframe.p + pos.position
  39.             if not keys.w and not keys.s and not keys.a and not keys.d then
  40.                 speed=1
  41.             end
  42.             if keys.w then
  43.                 new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  44.                 speed=speed+speedSET
  45.             end
  46.             if keys.s then
  47.                 new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  48.                 speed=speed+speedSET
  49.             end
  50.             if keys.d then
  51.                 new = new * CFrame.new(speed,0,0)
  52.                 speed=speed+speedSET
  53.             end
  54.             if keys.a then
  55.                 new = new * CFrame.new(-speed,0,0)
  56.                 speed=speed+speedSET
  57.             end
  58.             if speed>speedSET then
  59.                 speed=speedSET
  60.             end
  61.             pos.position=new.p
  62.             if keys.w then
  63.                 gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*1),0,0)
  64.             elseif keys.s then
  65.                 gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*1),0,0)
  66.             else
  67.                 gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  68.             end
  69.         until not Fly
  70.         if gyro then
  71.             gyro:Destroy()
  72.         end
  73.         if pos then
  74.             pos:Destroy()
  75.         end
  76.         flying=false
  77.         localplayer.Character.Humanoid.PlatformStand=false
  78.         speed=0
  79.     end
  80.     e1=mouse.KeyDown:connect(function(key)
  81.         if not torso or not torso.Parent then
  82.             flying=false e1:disconnect() e2:disconnect() return
  83.         end
  84.         if key=="w" then
  85.             keys.w=true
  86.         elseif key=="s" then
  87.             keys.s=true
  88.         elseif key=="a" then
  89.             keys.a=true
  90.         elseif key=="d" then
  91.             keys.d=true
  92.         end
  93.     end)
  94.     e2=mouse.KeyUp:connect(function(key)
  95.         if key=="w" then
  96.             keys.w=false
  97.         elseif key=="s" then
  98.             keys.s=false
  99.         elseif key=="a" then
  100.             keys.a=false
  101.         elseif key=="d" then
  102.             keys.d=false
  103.         end
  104.     end)
  105.     start()
  106. end
  107.  
  108. s23:addToggle("Fly",false,function(Value)
  109.  
  110.     Fly = Value
  111.     activatefly()
  112.  
  113. end)
  114. --keybinds
  115. local setting = mas:addPage("settings")
  116. local se2 = setting:addSection("Settings")
  117. se2:addKeybind("Toggle Keybind", Enum.KeyCode.RightControl, function()
  118.     mas:toggle()
  119. end, function()
  120. end)
  121.  
  122.  
  123. --load
  124. mas:SelectPage(mas.pages[1], true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement