Advertisement
Nosssa

UNIVERSAL Raycodex False Ban | CRACKED

Dec 25th, 2022 (edited)
1,248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.53 KB | None | 0 0
  1. --// RayCodex Player Framer / False Report & Ban Script | CRACKED!
  2.  
  3. --// Created By Nosssa & supports, all games!
  4.  
  5. --// Roblox Group ( TeamNosss! ): https://www.roblox.com/groups/16003304/TeamNosss#!/about
  6.  
  7.  
  8. Target_Name = "NOOB12345" -- [ Player you are framing | NAME / DISPLAY NEEDED ]
  9.  
  10. Spoof_Into = "Nex5us" -- [ Who you want to turn them into | NAME / DISPLAY NEEDED ]
  11.  
  12. ContinueToSpoofEvenAfterTheyDie = false -- [ On "true"; Continue to spoof their character after they die ]
  13.  
  14. FatSpoof = false -- [ On "true"; Make Them fat like as if they never ate lettuce ]
  15.  
  16. ShowEmoji = true  -- [ On "true"; Shows emoji below this ]
  17.  
  18. Emoji = "⭐" -- [ Any emoji ]
  19.  
  20.  
  21.  
  22. --[[
  23.  
  24.     DO NOT EDIT ANYTHING BELOW THIS IF YOU DO NOT UNDERSTAND
  25.  
  26. --]]
  27.  
  28.  
  29.  
  30. local Stalled1 = false
  31. local Stalled2 = false
  32. local Stalled3 = false
  33. local Stalled4 = false
  34.  
  35. if typeof(Target_Name) ~= "string" then
  36.     Stalled1 = true
  37.     game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Error.", Text = "Fix that name or add back the quotation marks.", Duration = 5,});
  38. end
  39.  
  40. if typeof(Spoof_Into) ~= "string" then
  41.     Stalled2 = true
  42.     game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Error.", Text = "Fix that name or add back the quotation marks.", Duration = 5,});
  43. end
  44.  
  45. if (Target_Name) == "" then
  46.     Stalled3 = true
  47.     game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Idiot.", Text = "How can you spoof someone that has no name?", Duration = 5,});
  48. end
  49.  
  50. if (Spoof_Into) == "" then
  51.     Stalled4 = true
  52.     game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Idiot.", Text = "How can you spoof someone that has no name?", Duration = 5,});
  53. end
  54.  
  55. if Stalled1 then
  56.     warn('"Target_Name" MUST be a NAME / DISPLAY')
  57.     return
  58. elseif Stalled2 then
  59.     warn('"Spoof_Into" MUST be a NAME / DISPLAY')
  60.     return
  61. elseif Stalled3 then
  62.     warn('You left: "Target_Name" EMPTY')
  63.     return
  64. elseif Stalled4 then
  65.     warn('You left: "Spoof_Into" EMPTY')
  66.     return
  67. end
  68.  
  69. local HttpService = game:GetService("HttpService")
  70. local InsertService = game:GetService("InsertService")
  71. local UserService = game:GetService("UserService")
  72. local PlayersService = game:GetService("Players")
  73. local LocalPlayer = PlayersService.LocalPlayer
  74.  
  75. function FetchUserIdFromNameAsync(Ecoli)
  76.     local Target = nil
  77.     Target = PlayersService:GetUserIdFromNameAsync(Ecoli)
  78.     return Target
  79. end
  80.  
  81. local Args = ({...})
  82. Args[1], Args[2], Args[3], Args[4] = nil, nil, nil, nil
  83.  
  84. function SplayInformationYieldUserIdAsync(RawNameInput)
  85.     local UserIdAsync = FetchUserIdFromNameAsync(RawNameInput)
  86.     local ID = UserIdAsync
  87.     local S, RetrievedProperties
  88.     S, RetrievedProperties = pcall(function()
  89.         return UserService:GetUserInfosByUserIdsAsync({ID})
  90.     end)
  91.     local CharAppearanceUserIdReplica = UserIdAsync
  92.     local UserId, Name, DisplayName, CharacterAppearanceId = nil, nil, nil, nil
  93.     UserId, Name, DisplayName, CharacterAppearanceId = UserIdAsync, RawNameInput, RetrievedProperties[1].DisplayName, CharAppearanceUserIdReplica
  94.     Args[1], Args[2], Args[3], Args[4] = UserId, Name, DisplayName, CharacterAppearanceId
  95. end
  96.  
  97. function DestroyCurrentOutfit(Char)
  98.     if Char.Parent ~= nil and Char ~= nil then
  99.         for _, v in pairs(Char:GetDescendants()) do
  100.             if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") or v:IsA("Decal") and v then
  101.                 v:Destroy()
  102.             end
  103.         end
  104.     end
  105. end
  106.  
  107. function WeldTogether(Nail, Hammer)
  108.     local Weld = Instance.new("Weld")
  109.     Weld.Part0 = Nail.Parent
  110.     Weld.Part1 = Hammer.Parent
  111.     Weld.C0 = Nail.CFrame
  112.     Weld.C1 = Hammer.CFrame
  113.     Weld.Parent = Nail.Parent
  114.     return Weld
  115. end
  116.  
  117. function WeldAccessory(Parent, P0, P1, C0, C1)
  118.     local Weld = Instance.new("Weld")
  119.     Weld.Name = "Meld"
  120.     Weld.Part0 = P0
  121.     Weld.Part1 = P0
  122.     Weld.C0 = C0
  123.     Weld.C1 = C1
  124.     Weld.Parent = Parent
  125.     return Weld
  126. end
  127.  
  128. function MatchAttachment(Char, InputRawName)
  129.     for _, v in pairs(Char:GetChildren()) do
  130.         if v:IsA("Attachment") and v.Name == InputRawName and v then
  131.             return v
  132.         elseif not v:IsA("Accoutrement") and not v:IsA("Tool") then
  133.             local Matched = MatchAttachment(v, InputRawName)
  134.             if Matched then
  135.                 return Matched
  136.             end
  137.         end
  138.     end
  139. end
  140.  
  141. function SortAttachmentsFor(Char, Accessory)  
  142.     Accessory.Parent = Char
  143.     local Handle = Accessory:FindFirstChild("Handle")
  144.     if Handle ~= nil then
  145.         local HandleAttachment = Handle:FindFirstChildOfClass("Attachment")
  146.         if HandleAttachment then
  147.             local Attachment = MatchAttachment(Char, HandleAttachment.Name)
  148.             if Attachment then
  149.                 WeldTogether(Attachment, HandleAttachment)
  150.             end
  151.         else
  152.             local Head = Char:FindFirstChild("Head")
  153.             if Head ~= nil then
  154.                 local Offset = CFrame.new(0,.5,0)
  155.                 local Glue = Accessory.AttachmentPoint
  156.                 WeldAccessory(Head, Head, Handle, Offset, Glue)
  157.             end
  158.         end
  159.     end
  160. end
  161.  
  162. function OverrideOutfit(Char, RawUserIdInput)
  163.     if Char ~= nil then
  164.  
  165.         local S, RetrievedProperties = pcall(PlayersService.GetCharacterAppearanceAsync, PlayersService, RawUserIdInput)
  166.  
  167.         if S and RetrievedProperties then
  168.  
  169.             DestroyCurrentOutfit(Char)
  170.  
  171.             if Char:FindFirstChild("Head") and Char:FindFirstChild("Head"):FindFirstChild("face") then
  172.                 Char:FindFirstChild("Head").face:Destroy()
  173.             end
  174.  
  175.             local DefaultRobloxBody1point0 = PlayersService:CreateHumanoidModelFromDescription(PlayersService:GetHumanoidDescriptionFromUserId(RawUserIdInput), Enum.HumanoidRigType.R15) task.wait(.25)
  176.  
  177.             if FatSpoof == true then
  178.                 Char:FindFirstChildOfClass("Humanoid").BodyTypeScale.Value = DefaultRobloxBody1point0:FindFirstChildOfClass("Humanoid").BodyTypeScale.Value
  179.             end
  180.  
  181.             for _, BasePart in pairs(DefaultRobloxBody1point0:GetChildren()) do
  182.                 if BasePart:IsA("BasePart") and  BasePart.Name ~= "HumanoidRootPart" then
  183.                     Char:FindFirstChildOfClass("Humanoid"):ReplaceBodyPartR15(Enum.BodyPartR15[BasePart.Name], BasePart)   
  184.                 end
  185.             end
  186.  
  187.             if not RetrievedProperties:FindFirstChild("face") then
  188.                 local Face = Instance.new("Decal")
  189.                 Face.Texture = "rbxasset://textures/face.png"
  190.                 Face.Face = "Front"
  191.                 Face.Name = "face"
  192.                 Face.Parent = Char:FindFirstChild("Head")
  193.             end
  194.  
  195.             for _, v in pairs(RetrievedProperties:GetChildren()) do
  196.                 if v:IsA("Pants") or v:IsA("Shirt") or v:IsA("ShirtGraphic") then
  197.                     v.Parent = Char
  198.                 end
  199.                 if v.Name == "R15Fixed" then
  200.                     for _, v in pairs(v:GetChildren()) do
  201.                         if Char:FindFirstChild("Humanoid") then
  202.                             Char:FindFirstChildOfClass("Humanoid"):ReplaceBodyPartR15(Enum.BodyPartR15[v.Name], v)
  203.                         end
  204.                     end
  205.                 end
  206.                 if v.Name == "Body Colors" then
  207.                     if Char:FindFirstChild("Body Colors") then
  208.                         Char["Body Colors"]:Destroy()
  209.                     end
  210.                     v:Clone().Parent = Char:FindFirstChild("Head")
  211.                     v.Parent = Char
  212.                 end
  213.                 if v.Name == "face" then
  214.                     v.Parent = Char:FindFirstChild("Head")
  215.                 end
  216.                 if v:IsA("Accessory") then
  217.                     if Char:FindFirstChild("Head") then
  218.                         SortAttachmentsFor(Char, v)
  219.                     end
  220.                 end
  221.             end
  222.         end
  223.     end
  224. end
  225.  
  226. function TransformPlayerToObject(Object1, Object2)
  227.     pcall(function()
  228.         SplayInformationYieldUserIdAsync(Object1) task.wait(.1)
  229.         if Args[1] ~= nil and  Args[2] ~= nil and  Args[3] ~= nil and Args[4] ~= nil then
  230.             local FakePlayer = Instance.new("Player", nil) task.wait(.1)
  231.             FakePlayer.UserId, FakePlayer.Name, FakePlayer.DisplayName, FakePlayer.CharacterAppearanceId = Args[1], Args[2], Args[3], Args[4]
  232.  
  233.             local MarkedPlayer = nil
  234.             for _, v in pairs(PlayersService:GetPlayers()) do
  235.                 if v ~= LocalPlayer and v then
  236.                     if v.Name:lower() == Object2:lower() then
  237.                         if v ~= nil then
  238.                             MarkedPlayer = v
  239.                         end
  240.                     elseif v.DisplayName:lower() == Object2:lower() then
  241.                         if v ~= nil then
  242.                             MarkedPlayer = v
  243.                         end
  244.                     end
  245.                 end
  246.             end
  247.  
  248.             FakePlayer.Parent = PlayersService
  249.  
  250.             if MarkedPlayer ~= nil and MarkedPlayer.Character and MarkedPlayer.Character:FindFirstChildOfClass("Humanoid") then
  251.                 if ShowEmoji == true then
  252.                     local Intial = FakePlayer.DisplayName
  253.                     MarkedPlayer.Character:FindFirstChildOfClass("Humanoid").DisplayName = "[" .. tostring(Emoji) .. "]" .. "" .. Intial -- or .. string.empty .. Intial
  254.                 else
  255.                     local Intial = FakePlayer.DisplayName
  256.                     MarkedPlayer.Character:FindFirstChildOfClass("Humanoid").DisplayName = Intial
  257.                 end
  258.             end
  259.  
  260.             OverrideOutfit(MarkedPlayer.Character, FakePlayer.UserId)
  261.  
  262.         else
  263.             warn("VarArg is missing or nil")
  264.         end
  265.     end)
  266. end
  267.  
  268. if ContinueToSpoofEvenAfterTheyDie == true then
  269.     pcall(function()
  270.         local MarkedPlayer = nil
  271.         for _, v in pairs(PlayersService:GetPlayers()) do
  272.             if v ~= LocalPlayer and v then
  273.                 if v.Name:lower() == Spoof_Into:lower() then
  274.                     if v ~= nil then
  275.                         MarkedPlayer = v
  276.                     end
  277.                 elseif v.DisplayName:lower() == Spoof_Into:lower() then
  278.                     if v ~= nil then
  279.                         MarkedPlayer = v
  280.                     end
  281.                 end
  282.             end
  283.         end
  284.         TransformPlayerToObject(Spoof_Into, Target_Name)
  285.         MarkedPlayer.CharacterAdded:Connect(function() task.wait()
  286.             TransformPlayerToObject(Spoof_Into, Target_Name)
  287.         end)
  288.         MarkedPlayer.CharacterRemoving:Connect(function(Who) task.wait()
  289.             for _, v in pairs(PlayersService:GetPlayers()) do
  290.                 if not v:FindFirstChildOfClass("Backpack") then
  291.                     v:Destroy()
  292.                 end
  293.             end
  294.         end)
  295.         PlayersService.PlayerRemoving:Connect(function(Who) task.wait()
  296.             if Who.Name == Spoof_Into then
  297.                 for _, v in pairs(PlayersService:GetPlayers()) do
  298.                     if not v:FindFirstChildOfClass("Backpack") then
  299.                         v:Destroy()
  300.                     end
  301.                 end
  302.             end
  303.         end)
  304.     end)
  305. elseif ContinueToSpoofEvenAfterTheyDie == false then
  306.     pcall(function()
  307.         TransformPlayerToObject(Spoof_Into, Target_Name)
  308.     end)
  309. end
  310.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement