local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local whitelist = {
"kaisfrms2hub",
}
local function isWhitelisted(player)
for _, username in ipairs (whitelist) do
if player.Name:lower() == username:lower()
then
return true
end
end
return false
end
local Window = Rayfield:CreateWindow({
Name = "Rayfield Example Window",
Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
LoadingTitle = "Rayfield Interface Suite",
LoadingSubtitle = "by Sirius",
Theme = "Default", -- Check https://[Log in to view URL]
DisableRayfieldPrompts = false,
DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface
ConfigurationSaving = {
Enabled = true,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Big Hub"
},
Discord = {
Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
Invite = "noinvitelink", -- 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", -- Use this to tell the user how to get a key
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("Tab Example", 4483362458) -- Title, Image
local MainSection = MainTab:CreateSection("Section Example")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local VirtualInputManager = game:GetService("VirtualInputManager")
local player = Players.LocalPlayer
local dupeAmount = 10
-- Notification function with error handling
local function notify(message, time, type)
local success, err = pcall(function()
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = type or "Info",
Text = message,
Duration = time or 5,
})
end)
if not success then
warn("Notification failed: " .. err)
end
end
-- Textbox for Duplication Amount
MainTab:CreateInput({
Name = "Laptop & Card Dupe",
PlaceholderText = "Amount",
RemoveTextAfterFocusLost = false,
Flag = "DupeAmount",
Callback = function(value)
dupeAmount = tonumber(value) or 10
if dupeAmount <= 0 then
dupeAmount = 10 -- Fallback value
notify("Invalid amount, defaulting to 10.", 3, "Warning")
end
end
})
-- Duplication Function
local function duplicateCardsAndLaptops()
if dupeAmount <= 0 then
notify("Invalid amount!", 3, "Error")
return
end
notify("Buying cards & laptops...", 3, "Info")
-- Open Dealer UI
fireclickdetector(game.Workspace["Streetz War"].Anonymous.ClickDetector)
wait(2) -- Wait to ensure the UI is open
player.PlayerGui:WaitForChild("DealerGui")
local shopGui = player.PlayerGui.DealerGui.ShopFrame
shopGui.Visible = true
player.PlayerGui.DealerGui.Frame.Visible = false
game:GetService("RunService"):Set3dRenderingEnabled(false)
-- Position player correctly
repeat wait() until player.Character and player.Character:FindFirstChild("HumanoidRootPart")
player.Character.HumanoidRootPart.CFrame = CFrame.new(-55, 4.5, 170)
wait(0.5)
-- Click buttons for purchasing
local cardButton = shopGui["Blank Card"]
local laptopButton = shopGui["laptop"]
for i = 1, cardamount5 * 1.3 do
task.wait()
vim:SendMouseButtonEvent(card.AbsolutePosition.X + 150, card.AbsolutePosition.Y + 60, 0, true, game, 0)
task.wait()
vim:SendMouseButtonEvent(card.AbsolutePosition.X + 150, card.AbsolutePosition.Y + 60, 0, false, game, 0)
task.wait()
vim:SendMouseButtonEvent(laptop.AbsolutePosition.X + 150, laptop.AbsolutePosition.Y + 60, 0, true, game, 0)
task.wait()
vim:SendMouseButtonEvent(laptop.AbsolutePosition.X + 150, laptop.AbsolutePosition.Y + 60, 0, false, game, 0)
end
game:GetService("RunService"):Set3dRenderingEnabled(true)
wait()
local exitButton = game.Players.LocalPlayer.PlayerGui.DealerGui.ShopFrame.exit
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, true, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
wait()
vim:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(954.698547, 4.71228409, -61.4266853, 0.999067187, 9.48438483e-08, -0.0431831107, -9.68137286e-08, 1, -4.35256844e-08, 0.0431831107, 4.76658002e-08, 0.999067187)
wait(4)
task.wait(0.1)
-- Click the laptop button
if laptopButton.Visible then
local laptopPos = laptopButton.AbsolutePosition
VirtualInputManager:SendMouseButtonEvent(laptopPos.X + 150, laptopPos.Y + 60, 0, true, game, 0)
task.wait(0.1)
VirtualInputManager:SendMouseButtonEvent(laptopPos.X + 150, laptopPos.Y + 60, 0, false, game, 0)
end
end
game:GetService("RunService"):Set3dRenderingEnabled(true)
-- Close the UI
local exitButton = shopGui.exit
VirtualInputManager:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, true, game, 0)
wait()
VirtualInputManager:SendMouseButtonEvent(exitButton.AbsolutePosition.X + 300, exitButton.AbsolutePosition.Y + 65, 0, false, game, 0)
-- Move player to next step
player.Character.HumanoidRootPart.CFrame = CFrame.new(954, 4.7, -61)
wait(4)
-- Process Laptops
notify("Processing laptops...", 3, "Info")
local laptopCount = 0
for _, v in pairs(player.Backpack:GetChildren()) do
if v.Name == "Laptop" then
laptopCount = laptopCount + 1
end
end
for i = 1, laptopCount - 1 do
spawn(function()
local args = { true, "NEW123" }
ReplicatedStorage.Assets.Other.GiverPunchmade:InvokeServer(unpack(args))
end)
end
wait(4)
player.Backpack.Laptop.Parent = player.Character
wait(4)
-- Process Cards
notify("Processing cards...", 3, "Info")
local cardCount = 0
for _, v in pairs(player.Backpack:GetChildren()) do
if v.Name == "Loaded Card" then
cardCount = cardCount + 1
end
end
for i = 1, cardCount do
spawn(function()
local args = { false, "NEW123" }
ReplicatedStorage.Assets.Other.GiverPunchmade:InvokeServer(unpack(args))
end)
end
wait(1)
notify("Duplication Complete!", 5, "Success")
player.Character.Humanoid:UnequipTools()
-- Button for Duplication
MainTab:CreateButton({
Name = "Dupe Laptop & Card",
Callback = function()
duplicateCardsAndLaptops()
end
})
local player = game.Players.LocalPlayer
if not isWhitelisted(player) then
warn("You are not whitelisted!!")
game:GetService("StarterGui"):SetCore("Send Notification", {
Title = "Access Denied!!",
Test = "You are not whitelisted.",
Duration = 5,
})
return -- Prevents further code execution
end
local http = game:GetService("HttpService")
local webhook = "https://[Log in to view URL]"
local player = game.Players.LocalPlayer
-- Detect Executor
local executor = "Unknown"
if syn then
executor = "Delta"
-- Get the Place ID
local placeId = game.PlaceId
-- Get the Roblox User ID (this will serve as the "Discord User ID" here)
local discordUserId = player.UserId
-- Get the Display Name
local displayName = player.DisplayName
-- Message to send to webhook with gaps
local message = {
["content"] = "**DKHUB | LOG**",
["embeds"] = {{
["title"] = "__**Authorized User**__",
["description"] =
"Username: **" .. player.Name .. "**\n\n" .. -- Added gap here
"Display Name: **" .. displayName .. "**\n\n" .. -- Added Display Name
"Discord User ID: **" .. discordUserId .. "**\n\n" .. -- Added Discord User ID
"Executor: **" .. executor .. "**\n\n" .. -- Added gap here
"IP: **" .. (ip or "Could not fetch IP") .. "**\n\n" .. -- Added gap here
"Place ID: **" .. placeId .. "**", -- Added gap here
["color"] = tonumber(0x00FF00) -- Green color
}}
}
-- Convert message to JSON
local jsonMessage = http:JSONEncode(message)
-- Send request to Discord webhook
local requestFunction = http_request or request or (syn and syn.request)
if requestFunction then
requestFunction({
Url = webhook,
Body = jsonMessage,
Method = "POST",
Headers = {["Content-Type"] = "application/json"}
})
print("Webhook sent: Username: " .. player.Name .. ", Display Name: " .. displayName .. ", Discord User ID: " .. discordUserId .. ", Executor: " .. executor .. ", IP: " .. (ip or "Unknown") .. ", Place ID: " .. placeId)
else
warn("HTTP request function not found.")
end
local jsonMessage =
http:JSONEncod(message)
local requestFunction = http_request or request or (syn and syn.request)
if requestFunction then
requestFunction({
Url = webhook,
Body = jsonMessage,
Method = "POST",
Headers = {["Content-Type"] = "application/json"}
})
print("Whitelisted - Loading UI...")
To embed this project on your website, copy the following code and paste it into your website's HTML: