refrop

Property duplicator v4

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