tomoneko

uitest

Apr 16th, 2024 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. local Library = loadstring(Game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wizard"))()
  2.  
  3. local Window = Library:NewWindow("cat hub")
  4. local Section = Window:NewSection("Made by tomoneko")
  5.  
  6. local player = game.Players.LocalPlayer
  7. local originalSpeed = player.Character.Humanoid.WalkSpeed
  8. local originalJumpPower = player.Character.Humanoid.JumpPower
  9. local speedupEnabled = false
  10. local jumpEnabled = false
  11. local cflyEnabled = false
  12. local infiniteJumpEnabled = false
  13. local noclipEnabled = false
  14. local speed = 100
  15. local jumpPower = 50
  16. local flySpeed = 10
  17. local CFloop
  18. local jumpLoop
  19. local noclipLoop
  20.  
  21. Section:CreateToggle("speedup", function(value)
  22. speedupEnabled = value
  23. if value then
  24. player.Character.Humanoid.WalkSpeed = speed
  25. else
  26. player.Character.Humanoid.WalkSpeed = originalSpeed
  27. end
  28. end)
  29.  
  30. Section:CreateToggle("jump", function(value)
  31. jumpEnabled = value
  32. if value then
  33. player.Character.Humanoid.JumpPower = jumpPower
  34. else
  35. player.Character.Humanoid.JumpPower = originalJumpPower
  36. end
  37. end)
  38.  
  39. Section:CreateToggle("cfly", function(value)
  40. cflyEnabled = value
  41. if value then
  42. player.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  43. local Head = player.Character:WaitForChild("Head")
  44. Head.Anchored = true
  45. CFloop = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
  46. local moveDirection = player.Character:FindFirstChildOfClass('Humanoid').MoveDirection * (flySpeed * deltaTime)
  47. local headCFrame = Head.CFrame
  48. local cameraCFrame = workspace.CurrentCamera.CFrame
  49. local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position
  50. cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1)
  51. local cameraPosition = cameraCFrame.Position
  52. local headPosition = headCFrame.Position
  53.  
  54. local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection)
  55. Head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity)
  56. end)
  57. else
  58. if player.Character:FindFirstChildOfClass('Humanoid').PlatformStand then
  59. player.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
  60. end
  61. if CFloop then
  62. CFloop:Disconnect()
  63. CFloop = nil
  64. end
  65. player.Character.Head.Anchored = false
  66. end
  67. end)
  68.  
  69. Section:CreateToggle("infinitejump", function(value)
  70. infiniteJumpEnabled = value
  71. if value then
  72. jumpLoop = game:GetService("UserInputService").JumpRequest:Connect(function()
  73. player.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
  74. end)
  75. else
  76. if jumpLoop then
  77. jumpLoop:Disconnect()
  78. jumpLoop = nil
  79. end
  80. end
  81. end)
  82.  
  83. Section:CreateToggle("noclip", function(value)
  84. noclipEnabled = value
  85. if value then
  86. noclipLoop = game:GetService('RunService').Stepped:Connect(function()
  87. if player.Character ~= nil then
  88. for _, child in pairs(player.Character:GetDescendants()) do
  89. if child:IsA("BasePart") and child.CanCollide == true then
  90. child.CanCollide = false
  91. end
  92. end
  93. end
  94. end)
  95. else
  96. if noclipLoop then
  97. noclipLoop:Disconnect()
  98. noclipLoop = nil
  99. end
  100. if player.Character ~= nil then
  101. for _, child in pairs(player.Character:GetDescendants()) do
  102. if child:IsA("BasePart") then
  103. child.CanCollide = true
  104. end
  105. end
  106. end
  107. end
  108. end)
  109.  
  110. Section:CreateTextbox("speed", function(value)
  111. speed = tonumber(value) or 100
  112. if speedupEnabled then
  113. player.Character.Humanoid.WalkSpeed = speed
  114. end
  115. end)
  116.  
  117. Section:CreateTextbox("jumppower", function(value)
  118. jumpPower = tonumber(value) or 50
  119. if jumpEnabled then
  120. player.Character.Humanoid.JumpPower = jumpPower
  121. end
  122. end)
  123.  
  124. Section:CreateTextbox("flyspeed", function(value)
  125. flySpeed = tonumber(value) or 10
  126. end)
  127.  
  128. game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
  129. if speedupEnabled then
  130. character:WaitForChild("Humanoid").WalkSpeed = speed
  131. end
  132. if jumpEnabled then
  133. character:WaitForChild("Humanoid").JumpPower = jumpPower
  134. end
  135. if cflyEnabled then
  136. character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  137. local Head = character:WaitForChild("Head")
  138. Head.Anchored = true
  139. CFloop = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
  140. local moveDirection = character:FindFirstChildOfClass('Humanoid').MoveDirection * (flySpeed * deltaTime)
  141. local headCFrame = Head.CFrame
  142. local cameraCFrame = workspace.CurrentCamera.CFrame
  143. local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position
  144. cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1)
  145. local cameraPosition = cameraCFrame.Position
  146. local headPosition = headCFrame.Position
  147.  
  148. local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection)
  149. Head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity)
  150. end)
  151. end
  152. if infiniteJumpEnabled then
  153. jumpLoop = game:GetService("UserInputService").JumpRequest:Connect(function()
  154. character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
  155. end)
  156. end
  157. if noclipEnabled then
  158. noclipLoop = game:GetService('RunService').Stepped:Connect(function()
  159. if character ~= nil then
  160. for _, child in pairs(character:GetDescendants()) do
  161. if child:IsA("BasePart") and child.CanCollide == true then
  162. child.CanCollide = false
  163. end
  164. end
  165. end
  166. end)
  167. end
  168. end)
  169.  
Advertisement
Add Comment
Please, Sign In to add comment