Advertisement
OofNoob

part beam

Mar 16th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Part0 = Instance.new("Part")
  20. Attachment1 = Instance.new("Attachment")
  21. Part2 = Instance.new("Part")
  22. Attachment3 = Instance.new("Attachment")
  23. Decal4 = Instance.new("Decal")
  24. Part0.Parent = mas
  25. Part0.Size = Vector3.new(4, 1, 2)
  26. Part0.CFrame = CFrame.new(-233, 0.5, 118, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  27. Part0.BottomSurface = Enum.SurfaceType.Smooth
  28. Part0.TopSurface = Enum.SurfaceType.Smooth
  29. Part0.Position = Vector3.new(-233, 0.5, 118)
  30. Attachment1.Name = "Attachment0"
  31. Attachment1.Parent = Part0
  32. Part2.Parent = mas
  33. Part2.Size = Vector3.new(4, 1, 2)
  34. Part2.CFrame = CFrame.new(179, 0.5, 106, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  35. Part2.BottomSurface = Enum.SurfaceType.Smooth
  36. Part2.TopSurface = Enum.SurfaceType.Smooth
  37. Part2.Position = Vector3.new(179, 0.5, 106)
  38. Attachment3.Name = "Attachment1"
  39. Attachment3.Parent = Part2
  40. Decal4.Parent = mas
  41. Decal4.Texture = "http://www.roblox.com/asset/?id=109251559"
  42. Decal4.Face = Enum.NormalId.Top
  43. for i,v in pairs(mas:GetChildren()) do
  44. v.Parent = script
  45. pcall(function() v:MakeJoints() end)
  46. end
  47. mas:Destroy()
  48. for i,v in pairs(cors) do
  49. spawn(function()
  50. pcall(v)
  51. end)
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement