Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = loadstring(Game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wizard"))()
- local Window = Library:NewWindow("cat hub")
- local Section = Window:NewSection("Made by tomoneko")
- local player = game.Players.LocalPlayer
- local originalSpeed = player.Character.Humanoid.WalkSpeed
- local originalJumpPower = player.Character.Humanoid.JumpPower
- local speedupEnabled = false
- local jumpEnabled = false
- local cflyEnabled = false
- local infiniteJumpEnabled = false
- local noclipEnabled = false
- local speed = 100
- local jumpPower = 50
- local flySpeed = 10
- local CFloop
- local jumpLoop
- local noclipLoop
- Section:CreateToggle("speedup", function(value)
- speedupEnabled = value
- if value then
- player.Character.Humanoid.WalkSpeed = speed
- else
- player.Character.Humanoid.WalkSpeed = originalSpeed
- end
- end)
- Section:CreateToggle("jump", function(value)
- jumpEnabled = value
- if value then
- player.Character.Humanoid.JumpPower = jumpPower
- else
- player.Character.Humanoid.JumpPower = originalJumpPower
- end
- end)
- Section:CreateToggle("cfly", function(value)
- cflyEnabled = value
- if value then
- player.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
- local Head = player.Character:WaitForChild("Head")
- Head.Anchored = true
- CFloop = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
- local moveDirection = player.Character:FindFirstChildOfClass('Humanoid').MoveDirection * (flySpeed * deltaTime)
- local headCFrame = Head.CFrame
- local cameraCFrame = workspace.CurrentCamera.CFrame
- local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position
- cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1)
- local cameraPosition = cameraCFrame.Position
- local headPosition = headCFrame.Position
- local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection)
- Head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity)
- end)
- else
- if player.Character:FindFirstChildOfClass('Humanoid').PlatformStand then
- player.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
- end
- if CFloop then
- CFloop:Disconnect()
- CFloop = nil
- end
- player.Character.Head.Anchored = false
- end
- end)
- Section:CreateToggle("infinitejump", function(value)
- infiniteJumpEnabled = value
- if value then
- jumpLoop = game:GetService("UserInputService").JumpRequest:Connect(function()
- player.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
- end)
- else
- if jumpLoop then
- jumpLoop:Disconnect()
- jumpLoop = nil
- end
- end
- end)
- Section:CreateToggle("noclip", function(value)
- noclipEnabled = value
- if value then
- noclipLoop = game:GetService('RunService').Stepped:Connect(function()
- if player.Character ~= nil then
- for _, child in pairs(player.Character:GetDescendants()) do
- if child:IsA("BasePart") and child.CanCollide == true then
- child.CanCollide = false
- end
- end
- end
- end)
- else
- if noclipLoop then
- noclipLoop:Disconnect()
- noclipLoop = nil
- end
- if player.Character ~= nil then
- for _, child in pairs(player.Character:GetDescendants()) do
- if child:IsA("BasePart") then
- child.CanCollide = true
- end
- end
- end
- end
- end)
- Section:CreateTextbox("speed", function(value)
- speed = tonumber(value) or 100
- if speedupEnabled then
- player.Character.Humanoid.WalkSpeed = speed
- end
- end)
- Section:CreateTextbox("jumppower", function(value)
- jumpPower = tonumber(value) or 50
- if jumpEnabled then
- player.Character.Humanoid.JumpPower = jumpPower
- end
- end)
- Section:CreateTextbox("flyspeed", function(value)
- flySpeed = tonumber(value) or 10
- end)
- game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
- if speedupEnabled then
- character:WaitForChild("Humanoid").WalkSpeed = speed
- end
- if jumpEnabled then
- character:WaitForChild("Humanoid").JumpPower = jumpPower
- end
- if cflyEnabled then
- character:FindFirstChildOfClass('Humanoid').PlatformStand = true
- local Head = character:WaitForChild("Head")
- Head.Anchored = true
- CFloop = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
- local moveDirection = character:FindFirstChildOfClass('Humanoid').MoveDirection * (flySpeed * deltaTime)
- local headCFrame = Head.CFrame
- local cameraCFrame = workspace.CurrentCamera.CFrame
- local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position
- cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1)
- local cameraPosition = cameraCFrame.Position
- local headPosition = headCFrame.Position
- local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection)
- Head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity)
- end)
- end
- if infiniteJumpEnabled then
- jumpLoop = game:GetService("UserInputService").JumpRequest:Connect(function()
- character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
- end)
- end
- if noclipEnabled then
- noclipLoop = game:GetService('RunService').Stepped:Connect(function()
- if character ~= nil then
- for _, child in pairs(character:GetDescendants()) do
- if child:IsA("BasePart") and child.CanCollide == true then
- child.CanCollide = false
- end
- end
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment