Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new track game script:
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- local Window = OrionLib:MakeWindow({Name = "Track & Field: Infinite Gui", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
- local Tab = Window:MakeTab({
- Name = "Speed",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- local ThemeTab = Window:MakeTab({
- Name = "Themes",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- local speedSlider = Tab:AddSlider({
- Name = "CFrame Speed",
- Min = 1,
- Max = 30,
- Default = 16,
- Color = Color3.fromRGB(0, 0, 0),
- Increment = 1,
- ValueName = "bananas",
- Callback = function(Value)
- -- Update the cframe speed value
- cframeSpeed = Value
- end
- })
- local cframeSpeed = 16
- local userInputService = game:GetService("UserInputService")
- local function getMovementDirection()
- local direction = Vector3.new(0, 0, 0)
- if userInputService:IsKeyDown(Enum.KeyCode.W) then
- direction = direction + Vector3.new(0, 0, -1)
- end
- if userInputService:IsKeyDown(Enum.KeyCode.S) then
- direction = direction + Vector3.new(0, 0, 1)
- end
- if userInputService:IsKeyDown(Enum.KeyCode.A) then
- direction = direction + Vector3.new(-1, 0, 0)
- end
- if userInputService:IsKeyDown(Enum.KeyCode.D) then
- direction = direction + Vector3.new(1, 0, 0)
- end
- return direction
- end
- -- Use a separate thread to update the cframe movement periodically
- spawn(function()
- while true do
- wait(0.01)
- local character = game.Players.LocalPlayer.Character
- if character then
- local humanoid = character:FindFirstChild("Humanoid")
- if humanoid then
- local cframe = humanoid.RootPart.CFrame
- local direction = getMovementDirection()
- if direction ~= Vector3.new(0, 0, 0) then
- local walkSpeed = 16 -- default walk speed
- if cframeSpeed > 16 then
- walkSpeed = 16 + (cframeSpeed - 16) * 2 -- increase walk speed based on cframe speed
- end
- local newCFrame = cframe * CFrame.new(direction * (walkSpeed / 10))
- character.HumanoidRootPart.CFrame = newCFrame
- end
- end
- end
- end
- end)
- -- Remove teleportation restriction
- local teleportService = game:GetService("TeleportService")
- teleportService.TeleportRestrictionCheck = function()
- return false
- end
- -- Add a sound effect when the GUI pops up
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://131415161"
- sound.Volume = 1
- sound:Play()
- Window:AddObject(sound)
- -- Theme Tab
- local themes = {
- {
- Name = "Dark Theme",
- FrameColor = Color3.fromRGB(0, 0, 0),
- TextColor = Color3.fromRGB(255, 255, 255)
- },
- {
- Name = "Light Theme",
- FrameColor = Color3.fromRGB(255, 255, 255),
- TextColor = Color3.fromRGB(0, 0, 0)
- },
- {
- Name = "Neon Theme",
- FrameColor = Color3.fromRGB(255, 0, 0),
- TextColor = Color3.fromRGB(0, 255, 0)
- }
- }
- for i, theme in pairs(themes) do
- local themeButton = ThemeTab:AddButton({
- Name = theme.Name,
- Callback = function()
- for _, guiObject in pairs(Window:GetDescendants()) do
- if guiObject:IsA("Frame") then
- guiObject.BackgroundColor3 = theme.FrameColor
- elseif guiObject:IsA("TextLabel") then
- guiObject.TextColor3 = theme.TextColor
- end
- end
- end
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment