refrop

Property duplicator v3

Jun 21st, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.75 KB | None | 0 0
  1. local runner = game.Workspace:WaitForChild("refrop")
  2. local master = game:GetService("Players"):GetPlayerFromCharacter(runner)
  3. runner.Head.Mesh:Destroy()
  4. local leftleg = runner:FindFirstChild("Left Leg")
  5. local rightleg = runner:FindFirstChild("Right Leg")
  6. local leftarm = runner:FindFirstChild("Left Arm")
  7. local rightarm = runner:FindFirstChild("Right Arm")
  8.  
  9. local detect = Instance.new("Part")
  10. local weld = Instance.new("WeldConstraint")
  11.  
  12. local material = Instance.new("BillboardGui")
  13. local materialname = Instance.new("TextLabel")
  14.  
  15. local defense = Instance.new("BillboardGui")
  16. local defenseamount = Instance.new("TextLabel")
  17.  
  18. local ffo = Instance.new("Part")
  19.  
  20. local sound = Instance.new("Sound")
  21.  
  22. local screen = Instance.new("ScreenGui")
  23. local button = Instance.new("TextButton")
  24.  
  25. local button2 = Instance.new("TextButton")
  26.  
  27. sound.Parent = runner.Head
  28. sound.Volume = 10
  29. sound.SoundId = "rbxassetid://5960724957"
  30.  
  31. ffo.Parent = workspace
  32. ffo.Position = rightleg.Position - Vector3.new(5, 0, 0)
  33. ffo.Material = Enum.Material.ForceField
  34. ffo.Transparency = 0
  35. ffo.Anchored = true
  36. ffo.Color = Color3.new(0.666667, 1, 1)
  37.  
  38. local children = runner:GetChildren()
  39. for i = 1, #children do
  40.  
  41. if children[i].Name == "Shirt" then
  42. runner.Shirt:Destroy()
  43. end
  44. if children[i].Name == "Pants" then
  45. runner.Pants:Destroy()
  46. end
  47.  
  48. end
  49.  
  50.  
  51. detect.Parent = game.Workspace
  52. detect.Position = runner.Torso.Position - Vector3.new(0, 3, 0)
  53. detect.Size = Vector3.new(0.5, 0.5, 0.5)
  54. detect.Anchored = false
  55. detect.CanCollide = false
  56. detect.Transparency = 1
  57.  
  58. material.Parent = runner.Head
  59. material.AlwaysOnTop = true
  60. material.MaxDistance = 50
  61. material.Size = UDim2.new(0, 200, 0, 500)
  62. material.Size = UDim2.new(0, 200, 0, 50)
  63. material.StudsOffset = Vector3.new(0, 2, 0)
  64.  
  65. defense.Parent = runner.Head
  66. defense.AlwaysOnTop = true
  67. defense.MaxDistance = 50
  68. defense.Size = UDim2.new(0, 200, 0, 500)
  69. defense.Size = UDim2.new(0, 200, 0, 50)
  70. defense.StudsOffset = Vector3.new(0, 5, 0)
  71.  
  72. defenseamount.Parent = defense
  73. defenseamount.Text = "Defense"
  74. defenseamount.BackgroundColor3 = Color3.new(1, 1, 1)
  75. defenseamount.Size = UDim2.new(0, 200, 0, 50)
  76. defenseamount.TextScaled = true
  77. defenseamount.BackgroundTransparency = 1
  78.  
  79.  
  80. materialname.Parent = material
  81. materialname.Text = "Material"
  82. materialname.BackgroundColor3 = Color3.new(1, 1, 1)
  83. materialname.Size = UDim2.new(0, 200, 0, 50)
  84. materialname.TextScaled = true
  85. materialname.BackgroundTransparency = 1
  86.  
  87. weld.Parent = detect
  88. weld.Part0 = runner.Torso
  89. weld.Part1 = detect
  90.  
  91. screen.Parent = master.PlayerGui
  92.  
  93. button.Parent = screen
  94. button.Position = UDim2.new(0.438, 0, 0.778, 0)
  95. button.Size = UDim2.new(0, 200, 0, 50)
  96. button.Text = "Remove Properties Collected"
  97. button.TextScaled = true
  98. button.BackgroundColor3 = Color3.new(0, 0, 0)
  99. button.TextColor3 = Color3.new(1, 0.666667, 0)
  100. button.Font = Enum.Font.Bodoni
  101.  
  102. button2.Parent = screen
  103. button2.Position = UDim2.new(0.238, 0, 0.778, 0)
  104. button2.Size = UDim2.new(0, 200, 0, 50)
  105. button2.Text = "Paste Properties Collected"
  106. button2.TextScaled = true
  107. button2.BackgroundColor3 = Color3.new(0, 0, 0)
  108. button2.TextColor3 = Color3.new(1, 0.666667, 0)
  109. button2.Font = Enum.Font.Bodoni
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118. function onTouch(part)
  119. local part = part
  120. if (part ~= nil) then
  121.  
  122. runner.Head.Color = part.Color
  123. runner.Head.Material = part.Material
  124. runner.Head.Reflectance = part.Reflectance
  125. runner.Head.Transparency = part.Transparency
  126.  
  127.  
  128. local children = part:GetChildren()
  129. for i = 1, #children do
  130. if children then
  131. local child = children[1]
  132. local clone = child:Clone()
  133. clone.Parent = runner.Torso
  134. end
  135. end
  136.  
  137.  
  138. if part.Material == Enum.Material.Grass then
  139. sound.Playing = true
  140. materialname.Text = "Grass"
  141. defenseamount.Text = "+50 Defense"
  142. runner.Humanoid.Health = 50 + 100
  143. runner.Humanoid.MaxHealth = 50 + 100
  144. materialname.TextColor3 = part.Color
  145. defenseamount.TextColor3 = part.Color
  146. end
  147.  
  148. if part.Material == Enum.Material.Plastic then
  149. sound.Playing = true
  150. materialname.Text = "Plastic"
  151. defenseamount.Text = "+100 Defense"
  152. runner.Humanoid.Health = 100 + 100
  153. runner.Humanoid.MaxHealth = 100 + 100
  154. materialname.TextColor3 = part.Color
  155. defenseamount.TextColor3 = part.Color
  156. end
  157.  
  158. if part.Material == Enum.Material.SmoothPlastic then
  159. sound.Playing = true
  160. materialname.Text = "SmoothPlastic"
  161. defenseamount.Text = "+125 Defense"
  162. runner.Humanoid.Health = 125 + 100
  163. runner.Humanoid.MaxHealth = 125 + 100
  164. materialname.TextColor3 = part.Color
  165. defenseamount.TextColor3 = part.Color
  166. end
  167.  
  168. if part.Material == Enum.Material.Neon then
  169. sound.Playing = true
  170. materialname.Text = "Neon"
  171. defenseamount.Text = "+250 Defense"
  172. runner.Humanoid.Health = 250 + 100
  173. runner.Humanoid.MaxHealth = 250 + 100
  174. materialname.TextColor3 = part.Color
  175. defenseamount.TextColor3 = part.Color
  176. end
  177.  
  178. if part.Material == Enum.Material.Slate then
  179. sound.Playing = true
  180. materialname.Text = "Slate"
  181. defenseamount.Text = "+400 Defense"
  182. runner.Humanoid.Health = 400 + 100
  183. runner.Humanoid.MaxHealth = 400 + 100
  184. materialname.TextColor3 = part.Color
  185. defenseamount.TextColor3 = part.Color
  186. end
  187.  
  188. if part.Material == Enum.Material.Fabric then
  189. sound.Playing = true
  190. materialname.Text = "Fabric"
  191. defenseamount.Text = "+10 Defense"
  192. runner.Humanoid.Health = 10 + 100
  193. runner.Humanoid.MaxHealth = 10 + 100
  194. materialname.TextColor3 = part.Color
  195. defenseamount.TextColor3 = part.Color
  196. end
  197.  
  198. if part.Material == Enum.Material.Glass then
  199. sound.Playing = true
  200. materialname.Text = "Glass"
  201. defenseamount.Text = "+25 Defense"
  202. runner.Humanoid.Health = 25 + 100
  203. runner.Humanoid.MaxHealth = 25 + 100
  204. materialname.TextColor3 = part.Color
  205. defenseamount.TextColor3 = part.Color
  206. end
  207.  
  208. if part.Material == Enum.Material.Granite then
  209. sound.Playing = true
  210. materialname.Text = "Granite"
  211. defenseamount.Text = "+300 Defense"
  212. runner.Humanoid.Health = 300 + 100
  213. runner.Humanoid.MaxHealth = 300 + 100
  214. materialname.TextColor3 = part.Color
  215. defenseamount.TextColor3 = part.Color
  216. end
  217.  
  218. if part.Material == Enum.Material.Marble then
  219. sound.Playing = true
  220. materialname.Text = "Marble"
  221. defenseamount.Text = "+280 Defense"
  222. runner.Humanoid.Health = 280 + 100
  223. runner.Humanoid.MaxHealth = 280 + 100
  224. materialname.TextColor3 = part.Color
  225. defenseamount.TextColor3 = part.Color
  226. end
  227.  
  228. if part.Material == Enum.Material.Metal then
  229. sound.Playing = true
  230. materialname.Text = "Metal"
  231. defenseamount.Text = "+410 Defense"
  232. runner.Humanoid.Health = 410 + 100
  233. runner.Humanoid.MaxHealth = 410 + 100
  234. materialname.TextColor3 = part.Color
  235. defenseamount.TextColor3 = part.Color
  236. end
  237.  
  238. if part.Material == Enum.Material.Sand then
  239. sound.Playing = true
  240. materialname.Text = "Sand"
  241. defenseamount.Text = "0 Defense"
  242. runner.Humanoid.Health = 410 + 100
  243. runner.Humanoid.MaxHealth = 410 + 100
  244. materialname.TextColor3 = part.Color
  245. defenseamount.TextColor3 = part.Color
  246. end
  247.  
  248. if part.Material == Enum.Material.Brick then
  249. sound.Playing = true
  250. materialname.Text = "Brick"
  251. defenseamount.Text = "+150 Defense"
  252. runner.Humanoid.Health = 150 + 100
  253. runner.Humanoid.MaxHealth = 150 + 100
  254. materialname.TextColor3 = part.Color
  255. defenseamount.TextColor3 = part.Color
  256. end
  257.  
  258. if part.Material == Enum.Material.Cobblestone then
  259. sound.Playing = true
  260. materialname.Text = "Cobblestone"
  261. defenseamount.Text = "+399 Defense"
  262. runner.Humanoid.Health = 399 + 100
  263. runner.Humanoid.MaxHealth = 399 + 100
  264. materialname.TextColor3 = part.Color
  265. defenseamount.TextColor3 = part.Color
  266. end
  267.  
  268. if part.Material == Enum.Material.Concrete then
  269. materialname.Text = "Concrete"
  270. defenseamount.Text = "+370 Defense"
  271. runner.Humanoid.Health = 370 + 100
  272. runner.Humanoid.MaxHealth = 370 + 100
  273. materialname.TextColor3 = part.Color
  274. defenseamount.TextColor3 = part.Color
  275. end
  276.  
  277. if part.Material == Enum.Material.CorrodedMetal then
  278. sound.Playing = true
  279. materialname.Text = "CorrodedMetal"
  280. defenseamount.Text = "+200 Defense"
  281. runner.Humanoid.Health = 200 + 100
  282. runner.Humanoid.MaxHealth = 200 + 100
  283. materialname.TextColor3 = part.Color
  284. defenseamount.TextColor3 = part.Color
  285. end
  286.  
  287. if part.Material == Enum.Material.Foil then
  288. sound.Playing = true
  289. materialname.Text = "Foil"
  290. defenseamount.Text = "+100 Defense"
  291. runner.Humanoid.Health = 100 + 100
  292. runner.Humanoid.MaxHealth = 100 + 100
  293. materialname.TextColor3 = part.Color
  294. defenseamount.TextColor3 = part.Color
  295. end
  296.  
  297. if part.Material == Enum.Material.ForceField then
  298. sound.Playing = true
  299. local ff = Instance.new("ForceField")
  300. ff.Parent = runner
  301. ff.Visible = false
  302. materialname.Text = "ForceField"
  303. defenseamount.Text = "INF Defense"
  304. runner.Humanoid.Health = math.huge
  305. runner.Humanoid.MaxHealth = math.huge
  306. materialname.TextColor3 = part.Color
  307. defenseamount.TextColor3 = part.Color
  308. end
  309.  
  310. if part.Material == Enum.Material.Wood then
  311. sound.Playing = true
  312. materialname.Text = "Foil"
  313. defenseamount.Text = "+120 Defense"
  314. runner.Humanoid.Health = 120 + 100
  315. runner.Humanoid.MaxHealth = 120 + 100
  316. materialname.TextColor3 = part.Color
  317. defenseamount.TextColor3 = part.Color
  318. end
  319.  
  320. if part.Material == Enum.Material.WoodPlanks then
  321. sound.Playing = true
  322. materialname.Text = "WoodPlanks"
  323. defenseamount.Text = "+120 Defense"
  324. runner.Humanoid.Health = 120 + 100
  325. runner.Humanoid.MaxHealth = 120 + 100
  326. materialname.TextColor3 = part.Color
  327. defenseamount.TextColor3 = part.Color
  328. end
  329.  
  330. if part.Material == Enum.Material.Pebble then
  331. sound.Playing = true
  332. materialname.Text = "Pebble"
  333. defenseamount.Text = "+80 Defense"
  334. runner.Humanoid.Health = 80 + 100
  335. runner.Humanoid.MaxHealth = 80 + 100
  336. materialname.TextColor3 = part.Color
  337. defenseamount.TextColor3 = part.Color
  338. end
  339.  
  340.  
  341.  
  342.  
  343. runner.Torso.Color = part.Color
  344. runner.Torso.Material = part.Material
  345. runner.Torso.Reflectance = part.Reflectance
  346. runner.Torso.Transparency = part.Transparency
  347.  
  348. rightarm.Color = part.Color
  349. rightarm.Material = part.Material
  350. rightarm.Reflectance = part.Reflectance
  351. rightarm.Transparency = part.Transparency
  352.  
  353.  
  354. leftarm.Color = part.Color
  355. leftarm.Material = part.Material
  356. leftarm.Reflectance = part.Reflectance
  357. leftarm.Transparency = part.Transparency
  358.  
  359. leftleg.Color = part.Color
  360. leftleg.Material = part.Material
  361. leftleg.Reflectance = part.Reflectance
  362. leftleg.Transparency = part.Transparency
  363.  
  364. rightleg.Color = part.Color
  365. rightleg.Material = part.Material
  366. rightleg.Reflectance = part.Reflectance
  367. rightleg.Transparency = part.Transparency
  368.  
  369. button2.MouseButton1Down:Connect(function()
  370. local children = runner.Torso:GetChildren()
  371. for i = 1, #children do
  372.  
  373. if children[i].Name == "BodyBackAttachment" then
  374.  
  375.  
  376. else
  377.  
  378.  
  379. if children[i].Name == "BodyFrontAttachment" then
  380.  
  381. else
  382.  
  383.  
  384. if children[i].Name == "LeftCollarAttachment" then
  385.  
  386. else
  387.  
  388. if children[i].Name == "NeckAttachment" then
  389.  
  390. else
  391.  
  392. if children[i].Name == "RightCollarAttachment" then
  393.  
  394. else
  395.  
  396. if children[i].Name == "WaistBackAttachment" then
  397.  
  398. else
  399.  
  400.  
  401. if children[i].Name == "WaistCenterAttachment" then
  402.  
  403. else
  404.  
  405.  
  406. if children[i].Name == "WaistFrontAttachment" then
  407.  
  408. else
  409.  
  410. if children[i].Name == "Left Hip" then
  411.  
  412. else
  413.  
  414. if children[i].Name == "Left Shoulder" then
  415.  
  416. else
  417.  
  418. if children[i].Name == "Neck" then
  419.  
  420. else
  421. if children[i].Name == "Right Hip" then
  422.  
  423. else
  424. if children[i].Name == "Right Shoulder" then
  425.  
  426. else
  427.  
  428. local copy = children[i]
  429.  
  430. copy.Parent = part
  431.  
  432. end
  433.  
  434. end
  435.  
  436. end
  437.  
  438. end
  439.  
  440. end
  441.  
  442. end
  443.  
  444.  
  445.  
  446. end
  447.  
  448.  
  449. end
  450. end
  451.  
  452. end
  453.  
  454.  
  455.  
  456. end
  457. end
  458. end
  459.  
  460. end
  461.  
  462. end)
  463.  
  464.  
  465. end
  466. end
  467. detect.Touched:connect(onTouch)
  468.  
  469. button.MouseButton1Down:Connect(function()
  470. local children = runner.Torso:GetChildren()
  471. for i = 1, #children do
  472.  
  473. if children[i].Name == "BodyBackAttachment" then
  474.  
  475.  
  476. else
  477.  
  478.  
  479. if children[i].Name == "BodyFrontAttachment" then
  480.  
  481. else
  482.  
  483.  
  484. if children[i].Name == "LeftCollarAttachment" then
  485.  
  486. else
  487.  
  488. if children[i].Name == "NeckAttachment" then
  489.  
  490. else
  491.  
  492. if children[i].Name == "RightCollarAttachment" then
  493.  
  494. else
  495.  
  496. if children[i].Name == "WaistBackAttachment" then
  497.  
  498. else
  499.  
  500.  
  501. if children[i].Name == "WaistCenterAttachment" then
  502.  
  503. else
  504.  
  505.  
  506. if children[i].Name == "WaistFrontAttachment" then
  507.  
  508. else
  509.  
  510. if children[i].Name == "Left Hip" then
  511.  
  512. else
  513.  
  514. if children[i].Name == "Left Shoulder" then
  515.  
  516. else
  517.  
  518. if children[i].Name == "Neck" then
  519.  
  520. else
  521. if children[i].Name == "Right Hip" then
  522.  
  523. else
  524. if children[i].Name == "Right Shoulder" then
  525.  
  526. else
  527.  
  528. children[i]:Destroy()
  529.  
  530. end
  531.  
  532. end
  533.  
  534. end
  535.  
  536. end
  537.  
  538. end
  539.  
  540. end
  541.  
  542.  
  543.  
  544. end
  545.  
  546.  
  547. end
  548. end
  549.  
  550. end
  551.  
  552.  
  553.  
  554. end
  555. end
  556. end
  557.  
  558. end
  559.  
  560. end)
  561.  
  562.  
  563.  
Add Comment
Please, Sign In to add comment