Hydrax_Animatez

Hydraxs Hub Scripty thang

Jun 18th, 2024
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. new track game script:
  2.  
  3. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  4.  
  5. local Window = OrionLib:MakeWindow({Name = "Track & Field: Infinite Gui", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  6. local Tab = Window:MakeTab({
  7. Name = "Speed",
  8. Icon = "rbxassetid://4483345998",
  9. PremiumOnly = false
  10. })
  11.  
  12. local ThemeTab = Window:MakeTab({
  13. Name = "Themes",
  14. Icon = "rbxassetid://4483345998",
  15. PremiumOnly = false
  16. })
  17.  
  18. local speedSlider = Tab:AddSlider({
  19. Name = "CFrame Speed",
  20. Min = 1,
  21. Max = 30,
  22. Default = 16,
  23. Color = Color3.fromRGB(0, 0, 0),
  24. Increment = 1,
  25. ValueName = "bananas",
  26. Callback = function(Value)
  27. -- Update the cframe speed value
  28. cframeSpeed = Value
  29. end
  30. })
  31.  
  32. local cframeSpeed = 16
  33.  
  34. local userInputService = game:GetService("UserInputService")
  35.  
  36. local function getMovementDirection()
  37. local direction = Vector3.new(0, 0, 0)
  38. if userInputService:IsKeyDown(Enum.KeyCode.W) then
  39. direction = direction + Vector3.new(0, 0, -1)
  40. end
  41. if userInputService:IsKeyDown(Enum.KeyCode.S) then
  42. direction = direction + Vector3.new(0, 0, 1)
  43. end
  44. if userInputService:IsKeyDown(Enum.KeyCode.A) then
  45. direction = direction + Vector3.new(-1, 0, 0)
  46. end
  47. if userInputService:IsKeyDown(Enum.KeyCode.D) then
  48. direction = direction + Vector3.new(1, 0, 0)
  49. end
  50. return direction
  51. end
  52.  
  53. -- Use a separate thread to update the cframe movement periodically
  54. spawn(function()
  55. while true do
  56. wait(0.01)
  57. local character = game.Players.LocalPlayer.Character
  58. if character then
  59. local humanoid = character:FindFirstChild("Humanoid")
  60. if humanoid then
  61. local cframe = humanoid.RootPart.CFrame
  62. local direction = getMovementDirection()
  63. if direction ~= Vector3.new(0, 0, 0) then
  64. local walkSpeed = 16 -- default walk speed
  65. if cframeSpeed > 16 then
  66. walkSpeed = 16 + (cframeSpeed - 16) * 2 -- increase walk speed based on cframe speed
  67. end
  68. local newCFrame = cframe * CFrame.new(direction * (walkSpeed / 10))
  69. character.HumanoidRootPart.CFrame = newCFrame
  70. end
  71. end
  72. end
  73. end
  74. end)
  75.  
  76. -- Remove teleportation restriction
  77. local teleportService = game:GetService("TeleportService")
  78. teleportService.TeleportRestrictionCheck = function()
  79. return false
  80. end
  81.  
  82. -- Add a sound effect when the GUI pops up
  83. local sound = Instance.new("Sound")
  84. sound.SoundId = "rbxassetid://131415161"
  85. sound.Volume = 1
  86. sound:Play()
  87. Window:AddObject(sound)
  88.  
  89. -- Theme Tab
  90. local themes = {
  91. {
  92. Name = "Dark Theme",
  93. FrameColor = Color3.fromRGB(0, 0, 0),
  94. TextColor = Color3.fromRGB(255, 255, 255)
  95. },
  96. {
  97. Name = "Light Theme",
  98. FrameColor = Color3.fromRGB(255, 255, 255),
  99. TextColor = Color3.fromRGB(0, 0, 0)
  100. },
  101. {
  102. Name = "Neon Theme",
  103. FrameColor = Color3.fromRGB(255, 0, 0),
  104. TextColor = Color3.fromRGB(0, 255, 0)
  105. }
  106. }
  107.  
  108. for i, theme in pairs(themes) do
  109. local themeButton = ThemeTab:AddButton({
  110. Name = theme.Name,
  111. Callback = function()
  112. for _, guiObject in pairs(Window:GetDescendants()) do
  113. if guiObject:IsA("Frame") then
  114. guiObject.BackgroundColor3 = theme.FrameColor
  115. elseif guiObject:IsA("TextLabel") then
  116. guiObject.TextColor3 = theme.TextColor
  117. end
  118. end
  119. end
  120. })
  121. end
Advertisement
Add Comment
Please, Sign In to add comment