-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6aaf6c5531d1adeaab2ab3d0"))() end) end) --[[rscripts:analytics:end]] --// Rayfield Spawn Unit UI local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))() local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer --================================================== -- UNIT LISTS --================================================== local HumanUnits = { "Army General", "Human Drone", "Builder", "Cadet", "Explosive Expert", "Commanding Officer", "Explosive Robot", "Government Agent", "Politician", "Insane Fighter", "Marksman", "Nervous Civilian", "Nurse", "Protestor", "Stupid Civilian", "Raider", "Raider Leader", "Recruit", "Human Resupplier", "Gangster", "Husky", "Samurai Wannabe", "Sharpshooter", "Human Tonk", "Trooper", "Vengeful" } local RaigUnits = { "Ravaged Vanquisher", "Hivehead", "Raiging Creep", "Beastly Bomber", "Angry Assister", "Brain Rotter", "Deformable Sufferer", "Diabolical Hivemind", "Horrifying Brute", "Infectionous Being", "Savage Chaser" } local Specials = { "sickmechie", "Raig Gunner", "Raig Colossal", "Infectionist Nuker", "Nuker", "Chemical Nuker", "Teleporting Dummy", "Mutant Monstrosity", "Mesh Man", "Myself" } --================================================== -- TEAMS --================================================== local Teams = { "Humans", "Raig", "Poisoned", "Noobs", "Zombies" } --================================================== -- ARMOR --================================================== local Armors = { "None", "Heavy", "Colossal", "Standard", "Fat", "Party", "Drip" } --================================================== -- WINDOW --================================================== local Window = Rayfield:CreateWindow({ Name = "Mutant Testing - Spawn Menu", LoadingTitle = "Spawn Menu", LoadingSubtitle = "Rayfield UI", ConfigurationSaving = { Enabled = false }, Discord = { Enabled = false }, KeySystem = false }) --================================================== -- SHARED SPAWN FUNCTION --================================================== local function SpawnUnit(UnitName, TeamName, ArmorName) if not UnitName then Rayfield:Notify({ Title = "Spawn Failed", Content = "No unit selected.", Duration = 3 }) return end local Character = LocalPlayer.Character if not Character then Rayfield:Notify({ Title = "Spawn Failed", Content = "Character not found.", Duration = 3 }) return end local Torso = Character:FindFirstChild("Torso") if not Torso then Rayfield:Notify({ Title = "Spawn Failed", Content = "Torso not found.", Duration = 3 }) return end local PlayerGui = LocalPlayer:FindFirstChild("PlayerGui") if not PlayerGui then return end local SpawnMenu = PlayerGui:FindFirstChild("SpawnMenu") if not SpawnMenu then Rayfield:Notify({ Title = "Spawn Failed", Content = "SpawnMenu not found.", Duration = 3 }) return end local GuiFunction = SpawnMenu:FindFirstChild("GuiFunction") if not GuiFunction then Rayfield:Notify({ Title = "Spawn Failed", Content = "GuiFunction not found.", Duration = 3 }) return end local args = { "SpawnUnit", { Team = TeamName, Torso = Torso, Armor = ArmorName, Unit = UnitName } } local Success, Result = pcall(function() return GuiFunction:InvokeServer(unpack(args)) end) if Success then Rayfield:Notify({ Title = "Unit Spawned", Content = UnitName .. " | Team: " .. TeamName .. " | Armor: " .. ArmorName, Duration = 2 }) else Rayfield:Notify({ Title = "Spawn Error", Content = tostring(Result), Duration = 4 }) end end --================================================== -- SPAWN UNITS TAB --================================================== local SpawnTab = Window:CreateTab( "Spawn Units", 4483362458 ) --================================================== -- HUMAN UNITS --================================================== SpawnTab:CreateSection("Human Units") local HumanTeam = "Humans" local HumanArmor = "None" local HumanUnit = HumanUnits[1] SpawnTab:CreateDropdown({ Name = "Team", Options = Teams, CurrentOption = {"Humans"}, MultipleOptions = false, Callback = function(Option) HumanTeam = Option[1] end }) SpawnTab:CreateDropdown({ Name = "Armor", Options = Armors, CurrentOption = {"None"}, MultipleOptions = false, Callback = function(Option) HumanArmor = Option[1] end }) SpawnTab:CreateDropdown({ Name = "Unit", Options = HumanUnits, CurrentOption = {HumanUnits[1]}, MultipleOptions = false, Callback = function(Option) HumanUnit = Option[1] end }) SpawnTab:CreateButton({ Name = "Spawn Human Unit", Callback = function() SpawnUnit( HumanUnit, HumanTeam, HumanArmor ) end }) --================================================== -- RAIG UNITS --================================================== SpawnTab:CreateSection("Raig Units") local RaigTeam = "Raig" local RaigArmor = "None" local RaigUnit = RaigUnits[1] SpawnTab:CreateDropdown({ Name = "Team", Options = Teams, CurrentOption = {"Raig"}, MultipleOptions = false, Callback = function(Option) RaigTeam = Option[1] end }) SpawnTab:CreateDropdown({ Name = "Armor", Options = Armors, CurrentOption = {"None"}, MultipleOptions = false, Callback = function(Option) RaigArmor = Option[1] end }) SpawnTab:CreateDropdown({ Name = "Unit", Options = RaigUnits, CurrentOption = {RaigUnits[1]}, MultipleOptions = false, Callback = function(Option) RaigUnit = Option[1] end }) SpawnTab:CreateButton({ Name = "Spawn Raig Unit", Callback = function() SpawnUnit( RaigUnit, RaigTeam, RaigArmor ) end }) --================================================== -- EXTRAS TAB --================================================== local ExtrasTab = Window:CreateTab( "Extras", 4483362458 ) --================================================== -- SPECIAL UNITS --================================================== ExtrasTab:CreateSection("Special Units") local SpecialTeam = "Humans" local SpecialArmor = "None" local SpecialUnit = Specials[1] ExtrasTab:CreateDropdown({ Name = "Team", Options = Teams, CurrentOption = {"Humans"}, MultipleOptions = false, Callback = function(Option) SpecialTeam = Option[1] end }) ExtrasTab:CreateDropdown({ Name = "Armor", Options = Armors, CurrentOption = {"None"}, MultipleOptions = false, Callback = function(Option) SpecialArmor = Option[1] end }) ExtrasTab:CreateDropdown({ Name = "Special", Options = Specials, CurrentOption = {Specials[1]}, MultipleOptions = false, Callback = function(Option) SpecialUnit = Option[1] end }) ExtrasTab:CreateButton({ Name = "Spawn Special", Callback = function() SpawnUnit( SpecialUnit, SpecialTeam, SpecialArmor ) end }) --================================================== -- EXTRA RAIG UNITS --================================================== ExtrasTab:CreateSection("Raig Units") local ExtraRaigTeam = "Raig" local ExtraRaigArmor = "None" local ExtraRaigUnit = RaigUnits[1] ExtrasTab:CreateDropdown({ Name = "Team", Options = Teams, CurrentOption = {"Raig"}, MultipleOptions = false, Callback = function(Option) ExtraRaigTeam = Option[1] end }) ExtrasTab:CreateDropdown({ Name = "Armor", Options = Armors, CurrentOption = {"None"}, MultipleOptions = false, Callback = function(Option) ExtraRaigArmor = Option[1] end }) ExtrasTab:CreateDropdown({ Name = "Raig Unit", Options = RaigUnits, CurrentOption = {RaigUnits[1]}, MultipleOptions = false, Callback = function(Option) ExtraRaigUnit = Option[1] end }) ExtrasTab:CreateButton({ Name = "Spawn Raig Unit", Callback = function() SpawnUnit( ExtraRaigUnit, ExtraRaigTeam, ExtraRaigArmor ) end }) --================================================== -- INFO TAB --================================================== local InfoTab = Window:CreateTab( "Info", 4483362458 ) InfoTab:CreateParagraph({ Title = "Teams", Content = "Humans, Raig, Poisoned, Noobs and Zombies are available as teams." }) InfoTab:CreateParagraph({ Title = "Special Units", Content = "Special units can be assigned to any team." }) InfoTab:CreateParagraph({ Title = "Armor", Content = "None, Heavy, Colossal, Standard, Fat, Party and Drip." }) --================================================== -- LOADED NOTIFICATION --================================================== Rayfield:Notify({ Title = "Spawn Menu Loaded", Content = "Spawn Units and Extras are ready.", Duration = 4 })