Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet("https://gist.githubusercontent.com/koio08199za/5121bfa15c12af9e0dc3ab23745213e5/raw/5e509dc9291b4250cec7f4af79d7c3229c9bac13/Test"))()
- local mas = library.new("MAS HUB", 5013109572)
- -- themes
- local themes = {
- Glow = Color3.fromRGB(0, 165, 248),
- TextColor = Color3.fromRGB(0, 183, 255)
- }
- local page = mas:addPage("teleport")
- local s1 = page:addSection("tp to world")
- s1:addButton("BOSS", function()
- 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)
- end)
- local main = mas:addPage("main")
- local s23 = main:addSection("Main")
- Fly = false
- function activatefly()
- local mouse=game.Players.LocalPlayer:GetMouse''
- localplayer=game.Players.LocalPlayer
- game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
- local torso = game.Players.LocalPlayer.Character.HumanoidRootPart
- local speedSET=5
- local keys={a=false,d=false,w=false,s=false}
- local e1
- local e2
- local function start()
- local pos = Instance.new("BodyPosition",torso)
- local gyro = Instance.new("BodyGyro",torso)
- pos.Name="EPIXPOS"
- pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- pos.position = torso.Position
- gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- gyro.cframe = torso.CFrame
- repeat
- wait()
- localplayer.Character.Humanoid.PlatformStand=true
- local new=gyro.cframe - gyro.cframe.p + pos.position
- if not keys.w and not keys.s and not keys.a and not keys.d then
- speed=1
- end
- if keys.w then
- new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed=speed+speedSET
- end
- if keys.s then
- new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed=speed+speedSET
- end
- if keys.d then
- new = new * CFrame.new(speed,0,0)
- speed=speed+speedSET
- end
- if keys.a then
- new = new * CFrame.new(-speed,0,0)
- speed=speed+speedSET
- end
- if speed>speedSET then
- speed=speedSET
- end
- pos.position=new.p
- if keys.w then
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*1),0,0)
- elseif keys.s then
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*1),0,0)
- else
- gyro.cframe = workspace.CurrentCamera.CoordinateFrame
- end
- until not Fly
- if gyro then
- gyro:Destroy()
- end
- if pos then
- pos:Destroy()
- end
- flying=false
- localplayer.Character.Humanoid.PlatformStand=false
- speed=0
- end
- e1=mouse.KeyDown:connect(function(key)
- if not torso or not torso.Parent then
- flying=false e1:disconnect() e2:disconnect() return
- end
- if key=="w" then
- keys.w=true
- elseif key=="s" then
- keys.s=true
- elseif key=="a" then
- keys.a=true
- elseif key=="d" then
- keys.d=true
- end
- end)
- e2=mouse.KeyUp:connect(function(key)
- if key=="w" then
- keys.w=false
- elseif key=="s" then
- keys.s=false
- elseif key=="a" then
- keys.a=false
- elseif key=="d" then
- keys.d=false
- end
- end)
- start()
- end
- s23:addToggle("Fly",false,function(Value)
- Fly = Value
- activatefly()
- end)
- --keybinds
- local setting = mas:addPage("settings")
- local se2 = setting:addSection("Settings")
- se2:addKeybind("Toggle Keybind", Enum.KeyCode.RightControl, function()
- mas:toggle()
- end, function()
- end)
- --load
- mas:SelectPage(mas.pages[1], true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement