Advertisement
SigmaSkibidiBradku

game stealer V3

Oct 13th, 2024 (edited)
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.83 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local czekanie = 0
  3. local textLenght = 500000
  4. local MainString = ""
  5. local brakuje
  6. local HttpService = game:GetService("HttpService")
  7.  
  8. local screenGui = Instance.new("ScreenGui",plr.PlayerGui)
  9. screenGui.IgnoreGuiInset = true
  10. screenGui.DisplayOrder = math.huge
  11.  
  12. local scrolingFrame = Instance.new("ScrollingFrame",screenGui)
  13. scrolingFrame.Size = UDim2.new(0.184, 0,0.411, 0)
  14. scrolingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  15. scrolingFrame.Position = UDim2.new(0, 0,0.129, 0)
  16. local list = Instance.new("UIListLayout",scrolingFrame)
  17. local cloneButton = Instance.new("TextButton",screenGui)
  18. cloneButton.Size = UDim2.new(0.184, 0,0.08, 0)
  19. cloneButton.Position = UDim2.new(0, 0,0.539, 0)
  20. cloneButton.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  21. cloneButton.TextScaled = true
  22. cloneButton.Text = "Clone Game"
  23. if game.ReplicatedStorage:FindFirstChild("MainFolder") then
  24. game.ReplicatedStorage.MainFolder:Destroy()
  25. end
  26. local MainFolder
  27.  
  28.  
  29.  
  30.  
  31. local activated = false
  32. local objects
  33. cloneButton.MouseButton1Up:Connect(function()
  34. if activated then return else activated = true end
  35. brakuje = {}
  36. MainFolder = Instance.new("Folder",game.ReplicatedStorage)
  37. MainFolder.Name = "MainFolder"
  38. CreateFoldersFUNCTION()
  39. objects = MainFolder:GetDescendants()
  40. wait(1)
  41. ChangeNamesFUNCTION()
  42. wait(1)
  43. CreatingLocFUNCTION()
  44. wait(1)
  45. CloneFUNCTION()
  46. MainFolder:Destroy()
  47. wait(1)
  48. createButtonsFUNCTION()
  49. wait(1)
  50. activated = false
  51. cloneButton.Text = "Clone Game"
  52. end)
  53.  
  54. local function createFolder(obj,name)
  55. local newFolder = Instance.new("Folder",MainFolder)
  56. newFolder.Name = name or obj.Name
  57. for i,child in pairs(obj:GetChildren()) do
  58. if child.Archivable == false then
  59. child.Archivable = true
  60. local ChangeArchivable = Instance.new("RayValue",child)
  61. ChangeArchivable.Name = "ChangeArchivable"
  62. end
  63. local success, result = pcall(function()
  64. local klon = child:Clone()
  65. klon.Parent = newFolder
  66. end)
  67.  
  68. if not success then
  69. warn("twożenie folderu: "..result)
  70. end
  71. end
  72. end
  73. function CreateFoldersFUNCTION()
  74. cloneButton.Text = "Creating folders"-------------------------------------------
  75.  
  76. createFolder(game.Lighting)
  77. createFolder(plr.PlayerGui,"CurrentGui")
  78. createFolder(game.StarterGui)
  79. createFolder(game.ReplicatedStorage)
  80. createFolder(workspace)
  81. wait(0.5)
  82. cloneButton.Text = "Succes1"--------------------------------------------------
  83. end
  84.  
  85. local function filterText(text)
  86. text = string.gsub(text,"?","?1")
  87. text = string.gsub(text,"ChangeArchivable","?2")
  88. text = string.gsub(text,"#","?3")
  89. text = string.gsub(text,"*","?4")
  90. text = string.gsub(text,"MainFolder","?5")
  91. text = string.gsub(text,"_","?6")
  92. text = string.gsub(text,":","?7")
  93. text = string.gsub(text," ","?8")
  94. return text
  95. end
  96. function ChangeNamesFUNCTION()
  97. cloneButton.Text = "Changing names"-------------------------------------------
  98. local saveAmount = #objects
  99. for i,child in pairs(objects) do
  100. child.Name = filterText(child.Name).."#"..i
  101. cloneButton.Text = "Changing names "..i.."/"..saveAmount
  102. if czekanie >= 100 then task.wait() czekanie = 0 else czekanie+= 1 end
  103. end
  104.  
  105. cloneButton.Text = "Succes2"--------------------------------------------------
  106. end
  107. function CreatingLocFUNCTION()
  108. local iloscOBJ = #objects
  109. local function returnLoc(obj)
  110. local toReturn = ""
  111.  
  112. local current = obj.Parent
  113. while current.Name ~= "MainFolder" do
  114. toReturn = current.Name.."*"..toReturn
  115. current = current.Parent
  116. end
  117. return toReturn
  118. end
  119. local lokalizacje = {}
  120. for i,child in pairs(objects) do
  121. local success, result = pcall(function()
  122. local loc = Instance.new("StringValue")
  123. loc.Name = "Loc"
  124. loc.Parent = child
  125. loc.Value = returnLoc(child)
  126. table.insert(lokalizacje,loc)
  127. end)
  128. if not success then
  129. warn(child,result)
  130. end
  131. if czekanie >= 50 then
  132. czekanie = 0
  133. task.wait()
  134. cloneButton.Text = "Addod Localizations ("..i.."/"..iloscOBJ..")"
  135. else czekanie += 1 end
  136. end
  137. cloneButton.Text = "Succes3"--------------------------------------------------
  138. end
  139. local function zaokrongl(num)
  140. return num
  141. end
  142. local function CodeObject(object)
  143. if object:IsA("Pose") then
  144. return ""
  145. end
  146. local codeddStr = ""
  147. local success, result = pcall(function()
  148. codeddStr = "c:"..object.ClassName
  149. codeddStr = codeddStr .. "_n:"..tostring(object.Name)
  150. codeddStr = codeddStr .. "_l:"..tostring(object.Loc.Value)
  151. if object:IsA("BasePart") then--------------------------------------------------------------------------
  152. codeddStr = codeddStr .. "_Bp:"..tostring(zaokrongl(object.Position.X).."="..zaokrongl(object.Position.Y).."="..zaokrongl(object.Position.Z))
  153. codeddStr = codeddStr .. "_Bs:"..tostring(zaokrongl(object.Size.X).."="..zaokrongl(object.Size.Y).."="..zaokrongl(object.Size.Z))
  154. codeddStr = codeddStr .. "_Bc:"..tostring(object.Color.R.."="..object.Color.G.."="..object.Color.B)
  155. codeddStr = codeddStr .. "_Br:"..tostring(zaokrongl(object.Orientation.X).."="..zaokrongl(object.Orientation.Y).."="..zaokrongl(object.Orientation.Z))
  156. if object.Transparency ~= 0 then
  157. codeddStr = codeddStr .. "_Bt:"..tostring(object.Transparency)
  158. end
  159. if object.CastShadow ~= true then
  160. codeddStr = codeddStr .. "_Bcs:"
  161. end
  162. if object.CanCollide ~= true then
  163. codeddStr = codeddStr .. "_Bcc:"
  164. end
  165. if object.CanTouch ~= true then
  166. codeddStr = codeddStr .. "_Bct:"
  167. end
  168. if object.CanQuery ~= true then
  169. codeddStr = codeddStr .. "_Bcq:"
  170. end
  171. if object.Material ~= Enum.Material.Plastic then
  172. codeddStr = codeddStr .. "_Bm:" ..tostring(object.Material.Value)
  173. end
  174. if object.Anchored == false then
  175. codeddStr = codeddStr .. "_Ba:"
  176. end
  177. if not object:IsA("WedgePart") and not object:IsA("MeshPart") and not object:IsA("CornerWedgePart") and object.Shape.Value ~= 1 then
  178. codeddStr = codeddStr .. "_Bs:" ..tostring(object.Shape.Value)
  179. end
  180.  
  181. if object.BackSurface.Value ~= 0 then------------------surfaces
  182. codeddStr = codeddStr .. "_Bbs:" ..tostring(object.BackSurface.Value)
  183. end
  184. if object.BottomSurface.Value ~= 0 then
  185. codeddStr = codeddStr .. "_Bbts:" ..tostring(object.BottomSurface.Value)
  186. end
  187. if object.FrontSurface.Value ~= 0 then
  188. codeddStr = codeddStr .. "_Bfs:" ..tostring(object.FrontSurface.Value)
  189. end
  190. if object.LeftSurface.Value ~= 0 then
  191. codeddStr = codeddStr .. "_Bls:" ..tostring(object.LeftSurface.Value)
  192. end
  193. if object.RightSurface.Value ~= 0 then
  194. codeddStr = codeddStr .. "_Brs:" ..tostring(object.RightSurface.Value)
  195. end
  196. if object.TopSurface.Value ~= 0 then
  197. codeddStr = codeddStr .. "_Bts:" ..tostring(object.TopSurface.Value)
  198. end
  199. elseif object:IsA("Decal") then-------------------------------------------------------------------
  200. if object.Texture ~= nil or object.Texture ~= "" then
  201. codeddStr = codeddStr .. "_Dt:" ..tostring(string.gsub(object.Texture,":","?1"))
  202. end
  203. if object.Face ~= 5 then
  204. codeddStr = codeddStr .. "_Df:" ..tostring(object.Face.Value)
  205. end
  206. if object.Transparency ~= 0 then
  207. codeddStr = codeddStr .. "_Dtr:" ..tostring(object.Face.Value)
  208. end
  209. if object.ZIndex ~= 1 then
  210. codeddStr = codeddStr .. "_Dz:" ..tostring(object.Face.Value)
  211. end
  212. elseif object:IsA("Attachment") then-------------------------------------------------------------------
  213. codeddStr = codeddStr .. "_Ap:"..tostring(zaokrongl(object.Position.X).."="..zaokrongl(object.Position.Y).."="..zaokrongl(object.Position.Z))
  214. codeddStr = codeddStr .. "_Ar:"..tostring(zaokrongl(object.Orientation.X).."="..zaokrongl(object.Orientation.Y).."="..zaokrongl(object.Orientation.Z))
  215. codeddStr = codeddStr .. "_Ax:"..tostring(zaokrongl(object.Axis.X).."="..zaokrongl(object.Axis.Y).."="..zaokrongl(object.Axis.Z))
  216. codeddStr = codeddStr .. "_Asx:"..tostring(zaokrongl(object.SecondaryAxis.X).."="..zaokrongl(object.SecondaryAxis.Y).."="..zaokrongl(object.SecondaryAxis.Z))
  217.  
  218. codeddStr = codeddStr .. "_Awp:"..tostring(zaokrongl(object.WorldPosition.X).."="..zaokrongl(object.WorldPosition.Y).."="..zaokrongl(object.WorldPosition.Z))
  219. codeddStr = codeddStr .. "_Awr:"..tostring(zaokrongl(object.WorldOrientation.X).."="..zaokrongl(object.WorldOrientation.Y).."="..zaokrongl(object.WorldOrientation.Z))
  220. codeddStr = codeddStr .. "_Awx:"..tostring(zaokrongl(object.WorldAxis.X).."="..zaokrongl(object.WorldAxis.Y).."="..zaokrongl(object.WorldAxis.Z))
  221. codeddStr = codeddStr .. "_Awsx:"..tostring(zaokrongl(object.WorldSecondaryAxis.X).."="..zaokrongl(object.WorldSecondaryAxis.Y).."="..zaokrongl(object.WorldSecondaryAxis.Z))
  222.  
  223. if object.Visible ~= false then
  224. codeddStr = codeddStr .. "_Av:" ..tostring(object.Visible)
  225. end
  226. elseif object:IsA("ValueBase") then-------------------------------------------------------------------
  227. if object:IsA("BoolValue") and object.Value ~= false then
  228. codeddStr = codeddStr .. "_Vb:"
  229. elseif object:IsA("BrickColorValue") then
  230. codeddStr = codeddStr .. "_Vbc:"..object.Value.Number
  231. elseif object:IsA("CFrameValue") then
  232. codeddStr = codeddStr .. "_Vcf:"..tostring(zaokrongl(object.Value.Position.X).."="..zaokrongl(object.Value.Position.Y).."="..zaokrongl(object.Value.Position.Z).."="..zaokrongl(object.Value.Rotation.X).."="..zaokrongl(object.Value.Rotation.Y).."="..zaokrongl(object.Value.Rotation.Z))
  233. elseif object:IsA("Color3Value") then
  234. codeddStr = codeddStr .. "_Vc:"..tostring(object.Value.R.."="..object.Value.G.."="..object.Value.B)
  235. elseif object:IsA("IntValue") or object:IsA("NumberValue") then
  236. codeddStr = codeddStr .. "_V:"..object.Value
  237. elseif object:IsA("Vector3Value") then
  238. codeddStr = codeddStr .. "_V3:"..tostring(zaokrongl(object.Value.X).."="..zaokrongl(object.Value.Y).."="..zaokrongl(object.Value.Z))
  239. elseif object:IsA("StringValue") then
  240. codeddStr = codeddStr .. "_V:"..filterText(object.Value)
  241.  
  242. end
  243.  
  244. else
  245. if brakuje[object.ClassName] then
  246. brakuje[object.ClassName] += 1
  247.  
  248. else
  249. brakuje[object.ClassName] = 1
  250. end
  251.  
  252. end
  253. codeddStr = codeddStr.." "
  254. end)
  255. if not success then
  256. warn(result)
  257. end
  258.  
  259. return codeddStr
  260. end
  261. local SplitedTexts
  262. function CloneFUNCTION()
  263. SplitedTexts = {}
  264. local MainString = ""
  265.  
  266. local iloscOBJ = #objects
  267. for i,child in pairs(objects) do
  268. MainString = MainString..CodeObject(child)
  269.  
  270.  
  271. if #MainString >= textLenght then
  272. table.insert(SplitedTexts,MainString)
  273. MainString = ""
  274. end
  275.  
  276. if czekanie >= 50 then
  277. czekanie = 0
  278. task.wait()
  279. cloneButton.Text = "Copying game ("..i.."/"..iloscOBJ..")"
  280. else czekanie += 1 end
  281. end
  282. table.insert(SplitedTexts,MainString)
  283. cloneButton.Text = "Succes4"--------------------------------------------------
  284. end
  285.  
  286. local function sortTableByValueDesc(inputTable)
  287. -- Tworzymy listę z par (klucz, wartość)
  288. local sortedList = {}
  289. for key, value in pairs(inputTable) do
  290. table.insert(sortedList, {key = key, value = value})
  291. end
  292.  
  293. -- Sortujemy listę według wartości w malejącym porządku
  294. table.sort(sortedList, function(a, b)
  295. return a.value > b.value
  296. end)
  297.  
  298. -- Zwracamy posortowaną listę
  299. return sortedList
  300. end
  301.  
  302. function createButtonsFUNCTION()
  303. for i,child in pairs(scrolingFrame:GetChildren()) do
  304. if not child:IsA("UIListLayout") then
  305. child:Destroy()
  306. end
  307. end
  308. for i,child in pairs(SplitedTexts) do
  309. local button = Instance.new("TextButton",scrolingFrame)
  310. button.Text = #SplitedTexts[i]
  311. button.Size = UDim2.new(0.8, 0,0.25, 0)
  312. button.TextScaled = true
  313. button.MouseButton1Up:Connect(function()
  314. if game["Run Service"]:IsStudio() then
  315. print(SplitedTexts[i])
  316. else
  317. setclipboard(SplitedTexts[i])
  318. button.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  319. wait(1)
  320. button.BackgroundColor3 = Color3.new(1, 1, 1)
  321. end
  322. end)
  323. wait(.5)
  324. end
  325. warn(sortTableByValueDesc(brakuje))
  326. cloneButton.Text = "Succes5"
  327. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement