Advertisement
refrop

baseplate script

Jun 4th, 2021
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 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("Part")
  26.  
  27. local texture = Instance.new("Texture")
  28.  
  29. local refrop = game.Workspace:WaitForChild("refrop")
  30.  
  31. -----variables
  32.  
  33. -----game
  34.  
  35. wait(0.2)
  36. local W = Wo
  37.  
  38. base.Parent = W
  39. base.Position = refrop.Torso.Position - Vector3.new(0, 1, 0)
  40. base.Orientation = Vector3.new(0, 0, 0)
  41. base.Size = Vector3.new(2048, 16, 2048)
  42. base.Anchored = true
  43. base.BrickColor = BrickColor.new("Dark stone grey")
  44. base.Material = Enum.Material.SmoothPlastic
  45.  
  46.  
  47. texture.Parent = base
  48. texture.Texture = "http://www.roblox.com/asset/?id=6372755229"
  49. texture.Face = 1
  50. texture.Transparency = 0.8
  51. texture.StudsPerTileU = 8
  52. texture.StudsPerTileV = 8
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. -----game
  62.  
  63. -----final
  64.  
  65. Wo.Parent = workspace
  66. Wo:MakeJoints()
  67. local mas1 = Wo:GetChildren()
  68. for i=1,#mas1 do
  69. mas1[i].Parent = workspace
  70. ypcall(function() mas1[i]:MakeJoints() end)
  71. end
  72. Wo:Destroy()
  73. for i=1,#cors do
  74. coroutine.resume(cors[i])
  75. end
  76.  
  77. -----final
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement