refrop

Dummy script (IN PROGRESS)

Jun 14th, 2021 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return script
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15.  
  16.  
  17. cors = {}
  18. Wo = Instance.new("Model",game:GetService("Lighting"))
  19. Wo.Name = "CompiledModel"
  20.  
  21. -----variables
  22.  
  23.  
  24.  
  25. local base = Instance.new("Model")
  26. base.Name = "Dummy"
  27.  
  28. -------body
  29. local Head = Instance.new("Part")
  30. Head.Name = "Head"
  31.  
  32. local Torso = Instance.new("Part")
  33. Torso.Name = "Torso"
  34.  
  35. local LeftArm = Instance.new("Part")
  36. LeftArm.Name = "LeftArm"
  37.  
  38. local RightArm = Instance.new("Part")
  39. RightArm.Name = "RightArm"
  40.  
  41. local LeftLeg = Instance.new("Part")
  42. LeftLeg.Name = "LeftLeg"
  43.  
  44. local RightLeg = Instance.new("Part")
  45. RightLeg.Name = "RightLeg"
  46. -------body
  47.  
  48. local runner = game.Workspace:WaitForChild("refrop")
  49.  
  50. -----variables
  51.  
  52. -----game
  53.  
  54. wait(0.2)
  55. local W = Wo
  56.  
  57. base.Parent = W
  58. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  59.  
  60.  
  61. Head.Parent = base
  62. Head.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  63. Head.Orientation = Vector3.new(0, 0, 0)
  64. Head.Size = Vector3.new(0, 0, 0)
  65. Head.Anchored = false
  66. Head.BrickColor = BrickColor.new("Dark stone grey")
  67. Head.Material = Enum.Material.SmoothPlastic
  68.  
  69. Torso.Parent = base
  70. Torso.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  71. Torso.Orientation = Vector3.new(0, 0, 0)
  72. Torso.Size = Vector3.new(0, 0, 0)
  73. Torso.Anchored = false
  74. Torso.BrickColor = BrickColor.new("Dark stone grey")
  75. Torso.Material = Enum.Material.SmoothPlastic
  76.  
  77.  
  78. LeftArm.Parent = base
  79. LeftArm.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  80. LeftArm.Orientation = Vector3.new(0, 0, 0)
  81. LeftArm.Size = Vector3.new(0, 0, 0)
  82. LeftArm.Anchored = false
  83. LeftArm.BrickColor = BrickColor.new("Dark stone grey")
  84. LeftArm.Material = Enum.Material.SmoothPlastic
  85.  
  86.  
  87. RightArm.Parent = base
  88. RightArm.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  89. RightArm.Orientation = Vector3.new(0, 0, 0)
  90. RightArm.Size = Vector3.new(0, 0, 0)
  91. RightArm.Anchored = false
  92. RightArm.BrickColor = BrickColor.new("Dark stone grey")
  93. RightArm.Material = Enum.Material.SmoothPlastic
  94.  
  95.  
  96.  
  97. LeftLeg.Parent = base
  98. LeftLeg.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  99. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  100. LeftLeg.Size = Vector3.new(0, 0, 0)
  101. LeftLeg.Anchored = false
  102. LeftLeg.BrickColor = BrickColor.new("Dark stone grey")
  103. LeftLeg.Material = Enum.Material.SmoothPlastic
  104.  
  105.  
  106.  
  107. RightLeg.Parent = base
  108. RightLeg.Position = runner.Torso.Position - Vector3.new(0, 0, 0)
  109. RightLeg.Orientation = Vector3.new(0, 0, 0)
  110. RightLeg.Size = Vector3.new(0, 0, 0)
  111. RightLeg.Anchored = false
  112. RightLeg.BrickColor = BrickColor.new("Dark stone grey")
  113. RightLeg.Material = Enum.Material.SmoothPlastic
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124. -----game
  125.  
  126. -----final
  127.  
  128. Wo.Parent = workspace
  129. Wo:MakeJoints()
  130. local mas1 = Wo:GetChildren()
  131. for i=1,#mas1 do
  132. mas1[i].Parent = workspace
  133. ypcall(function() mas1[i]:MakeJoints() end)
  134. end
  135. Wo:Destroy()
  136. for i=1,#cors do
  137. coroutine.resume(cors[i])
  138. end
  139.  
  140. -----final
Add Comment
Please, Sign In to add comment