Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local manafly = false
- local MANAFLY = nil
- local leftorright,upordown,backorforward = 0,0,0
- local plr = game:GetService("Players").LocalPlayer
- local mouse = plr:GetMouse()
- local Character = plr.Character
- local Ui
- local speed = 2.5
- game:GetService("RunService"):BindToRenderStep("MANA FLY IN GAIA",1,function()
- if manafly then
- Character:SetPrimaryPartCFrame(Character:GetPrimaryPartCFrame():Lerp(Character:GetPrimaryPartCFrame()*CFrame.new(leftorright,upordown,backorforward),0.5))
- --[[Character.HumanoidRootPart.Anchored = true]]
- --print(CFrame.new(leftorright,upordown,backorforward))
- if not MANAFLY then
- MANAFLY = Instance.new("Part")
- end
- MANAFLY.Parent = workspace
- MANAFLY.Size = Vector3.new(2,1,2)
- MANAFLY.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3.5,0)
- MANAFLY.Name = "MANAFLYPART"
- MANAFLY.Anchored = true
- end
- if plr.Character ~= Character then
- Character = plr.Character
- end
- end)
- XD=Instance.new("ScreenGui")
- syn.protect_gui(XD)
- XD.Parent = game:GetService("CoreGui")
- Ui = Instance.new("Frame",XD)
- local ButtonSubmit = Instance.new("TextButton",Ui)
- local Up = Instance.new("TextBox",Ui)
- local Key1 = Instance.new("TextLabel",Ui)
- Ui.Position= UDim2.new(0.89, 0, 0.5, 0)
- Ui.Size = UDim2.new(0.11, 0, 0.25, 0)
- Ui.BorderSizePixel = 0
- ButtonSubmit.Size = UDim2.new(1, 0, 0.2, 0)
- ButtonSubmit.Text = "SUBMIT"
- Key1.Position = UDim2.new(0, 0, 0.199, 0)
- Key1.Size = UDim2.new(1, 0, 0.2, 0)
- Key1.Text = "SPEED UP"
- Up.Position = UDim2.new(0, 0, 0.397, 0)
- Up.Size = UDim2.new(1, 0, 0.2, 0)
- ButtonSubmit.MouseButton1Click:Connect(function()
- speed=tonumber(Up.Text)
- end)
- mouse.KeyDown:Connect(function(k)
- if k == "w" then
- backorforward = backorforward - speed
- elseif k == "s" then
- backorforward = backorforward + speed
- elseif k == "a" then
- leftorright = leftorright - speed
- elseif k == "d" then
- leftorright = leftorright + speed
- elseif k == "z" then
- upordown = upordown - speed
- elseif k == "x" then
- upordown = upordown + speed
- elseif k == "b" then
- manafly = not manafly
- leftorright,upordown,backorforward = 0,0,0
- Character = plr.Character
- Character.HumanoidRootPart.Anchored = false
- end
- end)
- mouse.KeyUp:Connect(function(k)
- if k == "w" then
- backorforward = backorforward + speed
- elseif k == "s" then
- backorforward = backorforward - speed
- elseif k == "a" then
- leftorright = leftorright + speed
- elseif k == "d" then
- leftorright = leftorright - speed
- elseif k == "z" then
- upordown = upordown + speed
- elseif k == "x" then
- upordown = upordown - speed
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement