- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
- local w = library:CreateWindow("Universal Gui by ZeroFire#0340") -- Creates the window
- local b = w:CreateFolder("Functions") -- Creates the folder(U will put here your buttons,etc)
- b:Button("Return everything back to normal",function()
- game.Workspace.Gravity = 196.2
- wait(0.1)
- game.Players.LocalPlayer.Character.Head:Destroy()
- end)
- b:Button("Marble fly",function()
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Camera = workspace.CurrentCamera
- local SPEED_MULTIPLIER = 16
- local JUMP_POWER = 0
- local JUMP_GAP = 0
- local character = game.Players.LocalPlayer.Character
- for i,v in ipairs(character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- local ball = character.HumanoidRootPart
- ball.Shape = Enum.PartType.Ball
- ball.Size = Vector3.new(5,5,5)
- local humanoid = character:WaitForChild("Humanoid")
- local params = RaycastParams.new()
- params.FilterType = Enum.RaycastFilterType.Blacklist
- params.FilterDescendantsInstances = {character}
- local tc = RunService.RenderStepped:Connect(function(delta)
- ball.CanCollide = true
- humanoid.PlatformStand = true
- if UserInputService:GetFocusedTextBox() then return end
- if UserInputService:IsKeyDown("W") then
- ball.RotVelocity -= Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER
- end
- if UserInputService:IsKeyDown("A") then
- ball.RotVelocity -= Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER
- end
- if UserInputService:IsKeyDown("S") then
- ball.RotVelocity += Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER
- end
- if UserInputService:IsKeyDown("D") then
- ball.RotVelocity += Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER
- end
- --ball.RotVelocity = ball.RotVelocity - Vector3.new(0,ball.RotVelocity.Y/50,0)
- end)
- UserInputService.JumpRequest:Connect(function()
- local result = workspace:Raycast(
- ball.Position,
- Vector3.new(
- 0,
- -((ball.Size.Y/2)+JUMP_GAP),
- 0
- ),
- params
- )
- if result then
- ball.Velocity = ball.Velocity + Vector3.new(0,JUMP_POWER,0)
- end
- end)
- Camera.CameraSubject = ball
- humanoid.Died:Connect(function() tc:Disconnect() end)
- wait(1)
- game.Workspace.Gravity = 0.3
- end)
- b:Slider("Walkspeed",{
- min = 8; -- min value of the slider
- max = 100; -- max value of the slider
- precise = true; -- max 2 decimals
- },function(value)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (value)
- end)
- b:Slider("Gravity",{
- min = 0; -- min value of the slider
- max = 196.2; -- max value of the slider
- precise = true; -- max 2 decimals
- },function(value)
- game.Workspace.Gravity = (value)
- end)
- b:Slider("Jumppower",{
- min = 50; -- min value of the slider
- max = 500; -- max value of the slider
- precise = true; -- max 2 decimals
- },function(value)
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = (value)
- end)
- b:DestroyGui()