Star Hub

an anonymous user · July 24, 2024
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

local Window = Rayfield:CreateWindow({
   Name = "🌟Da hood star script",
   LoadingTitle = "Star hub",
   LoadingSubtitle = "by Derwin",
   ConfigurationSaving = {
      Enabled = false,
      FolderName = nil, -- Create a custom folder for your hub/game
      FileName = "Star Hub"
   },
   Discord = {
      Enabled = true,
      Invite = "JvSsqDywrG", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
      RememberJoins = true -- Set this to false to make them join the discord every time they load it up
   },
   KeySystem = false, -- Set this to true to use our key system
   KeySettings = {
      Title = "Untitled",
      Subtitle = "Key System",
      Note = "No method of obtaining the key is provided",
      FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
      SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
      GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
      Key = {"Hello"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
   }
})

local MainTab = Window:CreateTab("🏡", nil) -- Title, Image
local MainSection = MainTab:CreateSection("Main")

Rayfield:Notify({
   Title = "You have executed Star Hub",
   Content = "W gui",
   Duration = 5,
   Image = nil,
   Actions = { -- Notification Buttons
      Ignore = {
         Name = "Okay!",
         Callback = function()
         print("The user tapped Okay!")
      end
   },
},
})

local Button = MainTab:CreateButton({
   Name = "esp",
   Callback = function()
     loadstring(game:HttpGet("https://[Log in to view URL]"))()
   end,
})

local Slider = MainTab:CreateSlider({
   Name = "Speed slider",
   Range = {0, 300},
   Increment = 1,
   Suffix = "speed",
   CurrentValue = 16,
   Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)    
   end,
})

local MainTab = Window:CreateTab("🔫Aimlock", nil) -- Title, Image
local Section = Tab:CreateSection("Aimlock and silent aim")

local Button = AimlockTab:CreateButton({
   Name = "Aimlock",
   Callback = function()
   local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local camera = game.Workspace.CurrentCamera

-- Create a RemoteEvent in ReplicatedStorage for communication between server and client
local hitEvent = Instance.new("RemoteEvent")
hitEvent.Name = "HitEvent"
hitEvent.Parent = ReplicatedStorage

-- Function to lock the camera onto the target player
local function lockOnToPlayer(targetPlayer)
    local connection
    connection = RunService.RenderStepped:Connect(function()
        if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
            camera.CFrame = CFrame.new(camera.CFrame.Position, targetPlayer.Character.HumanoidRootPart.Position)
        else
            connection:Disconnect()
        end
    end)
end

-- Listen for the HitEvent to be fired
hitEvent.OnClientEvent:Connect(function(targetPlayer)
    if targetPlayer and targetPlayer ~= player then
        lockOnToPlayer(targetPlayer)
    end
end)

   end,
})

local Toggle = Tab:CreateToggle({
   Name = "Aimlock",
   CurrentValue = false,
   Flag = "toggleexploit", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
        print("hello")
   end,
})
Output

Comments

Please sign up or log in to contribute to the discussion.