Advertisement
teotv202

Old Roblox Transform

Oct 28th, 2018
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local remote = NS ([==[
  2.  
  3. local w = workspace:GetChildren()
  4. local a = Instance.new("Sky",game.Lighting)
  5. local b = {"Bk","Dn","Ft","Lf","Rt","Up"}
  6. for _,v in pairs(b) do
  7. a["Skybox"..v]="rbxassetid://2581347288"
  8. end
  9.  
  10. script.Parent = Workspace
  11.  
  12. local light = Instance.new("Humanoid", workspace)
  13. light.Name = "Old Light"
  14.  
  15. function Get(armlet)
  16. local c = armlet:GetChildren()
  17.     for  i=1,#c do
  18.     Get(c[i])
  19.         if (c[i].className == "Part") or (c[i].className == "WedgePart") or (c[i].className == "TrussPart") or (c[i].className == "Seat") or (c[i].className == "VehicleSeat") or (c[i].className == "SkateboardPlatform") or (c[i].className == "Baseplate") or (c[i].className == "Base") or (c[i].className == "Workspace") then
  20.         local t = Instance.new("Texture")
  21.         t.StudsPerTileU = 1
  22.         t.StudsPerTileV = 1
  23.         t.Texture = "http://www.roblox.com/asset/?id=2524938801"
  24.         t.Face = "Top"
  25.         t.Name = "Top"
  26.         t.Parent = c[i]
  27.         local b = Instance.new("Texture")
  28.         b.StudsPerTileU = 1
  29.         b.StudsPerTileV = 1
  30.         b.Texture = "http://www.roblox.com/asset/?id=2526666609"
  31.         b.Face = "Bottom"
  32.         b.Name = "Bottom"
  33.         b.Parent = c[i]
  34.         c[i].Material = "SmoothPlastic"
  35.         end
  36.     end
  37. end
  38.  
  39. Get(Workspace)
  40.  
  41. function fake(part,boom)
  42. if part.Anchored == true then return end
  43. if (part.Position - boom[3]).magnitude < boom[2]*5 then
  44. --part:BreakJoints()
  45. part.Velocity = (part.Position - boom[3]).unit * boom[1]/10000
  46. end
  47. end
  48.  
  49. function GetAll(armlet,expl)
  50. local c = armlet:GetChildren()
  51.     for  i=1,#c do
  52.     GetAll(c[i],expl)
  53.         if (c[i].className == "Part") or (c[i].className == "WedgePart") or (c[i].className == "TrussPart") or (c[i].className == "Seat") or (c[i].className == "VehicleSeat") or (c[i].className == "SkateboardPlatform") or (c[i].className == "Baseplate") or (c[i].className == "Base") or (c[i].className == "Workspace") then
  54.         fake(c[i],expl)
  55.         end
  56.     end
  57. end
  58.  
  59. function pop(exp)
  60. if exp.className == "Explosion" then
  61. local boomclone = exp:Clone()
  62. local bp = boomclone.BlastPressure
  63. local br = boomclone.BlastRadius
  64. local bpos = boomclone.Position
  65. boomt = {bp,br,bpos} exp:Remove()
  66.  
  67. GetAll(Workspace,boomt)
  68. funct = coroutine.create(function(data)
  69. local p = Instance.new("Part")
  70. p.Color = Color3.new(1,0,0)
  71. p.Shape = "Ball"
  72. p.TopSurface = "Smooth"
  73. p.BottomSurface = "Smooth"
  74. p.Size = Vector3.new(boomt[2]*2.5,boomt[2]*2.5,boomt[2]*2.5)
  75. p.CanCollide = false
  76. p.Anchored = true
  77. p.Locked = true
  78. p.CFrame = CFrame.new(boomt[3])
  79. p.Parent = Workspace
  80.  
  81. wait(2)
  82. p:Remove()
  83. end)
  84. assert (coroutine.resume (funct, p))
  85. end
  86. end
  87.  
  88.  
  89. function GetConnect(armlet)
  90. armlet.ChildAdded:connect(pop)
  91. armlet.ChildAdded:connect(function(obj) if obj.className~="Explosion" then GetConnect(obj) end end )
  92. local c = armlet:GetChildren()
  93.     for  i=1,#c do
  94.     Get(c[i])
  95.     c[i].ChildAdded:connect(pop)
  96.     c[i].ChildAdded:connect(function(obj) GetConnect(obj) end )
  97.     end
  98. end
  99. GetConnect(Workspace)
  100. ]==], owner.Character):WaitForChild 'ServerRemote';
  101. mouse = owner:GetMouse ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement