Advertisement
fusionfriends

Beacon

Jul 11th, 2019
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.80 KB | None | 0 0
  1. local Player = owner
  2. local Character = owner.Character
  3. local Beacon = Instance.new("Model",Character)
  4. Beacon.Name = "Beacon"
  5. Beacon.Parent = Character
  6. local Core = Instance.new("Part",Beacon)
  7. Core.Size = Vector3.new(1.5,1.5,1.5)
  8. Core.CFrame = CFrame.new(2.025,-0.725+2,1.68)
  9. Core.Anchored = true
  10. Core.Locked = true
  11. Core.TopSurface = Enum.SurfaceType.Smooth
  12. Core.BottomSurface = Enum.SurfaceType.Smooth
  13. local FaceValue1 = 0
  14. for i = 1,6 do
  15.     FaceValue1 = FaceValue1+1
  16.     local Decal = Instance.new("Decal",Core)
  17.     Decal.Texture = "rbxassetid://152410077"
  18.     if FaceValue1 == 1 then
  19.         Decal.Face = Enum.NormalId.Front
  20.     elseif FaceValue1 == 2 then
  21.         Decal.Face = Enum.NormalId.Back
  22.     elseif FaceValue1 == 3 then
  23.         Decal.Face = Enum.NormalId.Left
  24.     elseif FaceValue1 == 4 then
  25.         Decal.Face = Enum.NormalId.Right
  26.     elseif FaceValue1 == 5 then
  27.         Decal.Face = Enum.NormalId.Top
  28.     elseif FaceValue1 == 6 then
  29.         Decal.Face = Enum.NormalId.Bottom
  30.     end
  31. end
  32. local Glass = Instance.new("Part",Beacon)
  33. Glass.Size = Vector3.new(2.125,2.125,2.25)
  34. Glass.CFrame = CFrame.new(2.018,-0.788+2,1.68)
  35. Glass.Anchored = true
  36. Glass.Locked = true
  37. Glass.Transparency = 1
  38. Glass.TopSurface = Enum.SurfaceType.Smooth
  39. Glass.BottomSurface = Enum.SurfaceType.Smooth
  40. local FaceValue2 = 0
  41. for i = 1,6 do
  42.     FaceValue2 = FaceValue2+1
  43.     local Decal = Instance.new("Decal",Glass)
  44.     Decal.Texture = "rbxassetid://1086749406"
  45.     if FaceValue2 == 1 then
  46.         Decal.Face = Enum.NormalId.Front
  47.     elseif FaceValue2 == 2 then
  48.         Decal.Face = Enum.NormalId.Back
  49.     elseif FaceValue2 == 3 then
  50.         Decal.Face = Enum.NormalId.Left
  51.     elseif FaceValue2 == 4 then
  52.         Decal.Face = Enum.NormalId.Right
  53.     elseif FaceValue2 == 5 then
  54.         Decal.Face = Enum.NormalId.Top
  55.     elseif FaceValue2 == 6 then
  56.         Decal.Face = Enum.NormalId.Bottom
  57.     end
  58. end
  59. local Obsidian = Instance.new("Part",Beacon)
  60. Obsidian.Size = Vector3.new(1.875,0.375,2)
  61. Obsidian.CFrame = CFrame.new(2.018,-1.663+2,1.68)
  62. Obsidian.BrickColor = BrickColor.new("Really black")
  63. Obsidian.Material = Enum.Material.SmoothPlastic
  64. Obsidian.Anchored = true
  65. Obsidian.Locked = true
  66. Obsidian.TopSurface = Enum.SurfaceType.Smooth
  67. Obsidian.BottomSurface = Enum.SurfaceType.Smooth
  68. local Beam = Instance.new("Part",Beacon)
  69. Beam.Size = Vector3.new(.8,500,.8)
  70. Beam.CFrame = CFrame.new(2.018,250,1.68)
  71. Beam.Anchored = true
  72. Beam.CanCollide = false
  73. Beam.Locked = true
  74. Beam.TopSurface = Enum.SurfaceType.Smooth
  75. Beam.BottomSurface = Enum.SurfaceType.Smooth
  76. local FaceValue3 = 0
  77. for i = 1,6 do
  78.     FaceValue3 = FaceValue3+1
  79.     local Texture = Instance.new("Texture",Beam)
  80.     Texture.Texture = "rbxassetid://152410036"
  81.     Texture.StudsPerTileU = .8
  82.     Texture.StudsPerTileV = .8
  83.     if FaceValue3 == 1 then
  84.         Texture.Face = Enum.NormalId.Front
  85.     elseif FaceValue3 == 2 then
  86.         Texture.Face = Enum.NormalId.Back
  87.     elseif FaceValue3 == 3 then
  88.         Texture.Face = Enum.NormalId.Left
  89.     elseif FaceValue3 == 4 then
  90.         Texture.Face = Enum.NormalId.Right
  91.     elseif FaceValue3 == 5 then
  92.         Texture.Face = Enum.NormalId.Top
  93.     elseif FaceValue3 == 6 then
  94.         Texture.Face = Enum.NormalId.Bottom
  95.     end
  96. end
  97. local SecondBeam = Instance.new("Part",Beacon)
  98. SecondBeam.Size = Vector3.new(1,500,1)
  99. SecondBeam.CanCollide = false
  100. SecondBeam.Locked = true
  101. SecondBeam.Transparency = .95
  102. SecondBeam.Material = Enum.Material.Neon
  103. SecondBeam.BrickColor = BrickColor.new("Lily white")
  104. SecondBeam.TopSurface = Enum.SurfaceType.Smooth
  105. SecondBeam.BottomSurface = Enum.SurfaceType.Smooth
  106. local SecondBeamWeld = Instance.new("Weld",SecondBeam)
  107. SecondBeamWeld.Part1 = SecondBeam
  108. SecondBeamWeld.Part0 = Beam
  109. local PointLight = Instance.new("PointLight",Glass)
  110. local Sound = Instance.new("Sound",Glass)
  111. Sound.Volume = 3
  112. Sound.Looped = true
  113. Sound.SoundId = "rbxassetid://2830283353"
  114. Sound:Play()
  115. spawn(function()
  116.     while wait(.1) do
  117.         for i,v in pairs(workspace:GetChildren()) do
  118.             if v:FindFirstChildWhichIsA("Humanoid") then
  119.                 local Torso = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  120.                 if not Torso:FindFirstChild("Particles") then
  121.                     local Particles = Instance.new("ParticleEmitter",Torso)
  122.                     Particles.Name = "Particles"
  123.                     Particles.Texture = "rbxassetid://3450652426"
  124.                     Particles.SpreadAngle = Vector2.new(5000000,5e+06)
  125.                     Particles.RotSpeed = NumberRange.new(360,360)
  126.                     Particles.Size = NumberSequence.new(.25)
  127.                     Particles.Drag = 3
  128.                     Particles.Rate = 5
  129.                     Particles.Lifetime = NumberRange.new(2,2)
  130.                 end
  131.             end
  132.         end
  133.     end
  134. end)
  135. spawn(function()
  136.     game:GetService("RunService").Stepped:Connect(function()
  137.         Beam.Orientation = Vector3.new(Beam.Orientation.X,Beam.Orientation.Y+1,Beam.Orientation.Z)
  138.     end)
  139. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement