Advertisement
Hoshi_star

stone

Jun 9th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.72 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Fantasy"
  17. text.TextStrokeColor3 = Color3.new(50,50,50)
  18. text.Text = "Stone arc"
  19.  
  20. ----- Script made by Pedrorb03 -----
  21. laser = nil
  22. laserRot = 0
  23. pos2 = Vector3.new(0,0,0)
  24. counter = 0
  25. function chargeLaser()
  26. local part = Instance.new("Part")
  27. part.Name = "ChargingLaser"
  28. game:GetService("Debris"):AddItem(part,1)
  29. part.Parent = game.Players.LocalPlayer.Character
  30. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  31. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  32. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  33. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  34. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  35. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  36. part.Material = Enum.Material.Neon
  37. part.Anchored = true
  38. part.CanCollide = false
  39. part.Size = Vector3.new(0.5,0.5,0.5)
  40. local light = math.random(50,150)
  41. local rotx = math.random(-360,360)
  42. local roty = math.random(-360,360)
  43. local rotz = math.random(-360,360)
  44. part.Color = Color3.fromRGB(light,light,light)
  45. part.Transparency = 0.4
  46. part.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1.1,0))) *CFrame.Angles(math.rad(rotx),math.rad(roty),math.rad(rotz))
  47. for i=0.4,1,0.1 do
  48. wait()
  49. part.Size = Vector3.new(0.5+i,0.5+i,0.5+i)
  50. part.Transparency = i
  51. part.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1.1,0))) *CFrame.Angles(math.rad(rotx),math.rad(roty),math.rad(rotz))
  52. end
  53. part:remove()
  54. end
  55. function chargeLaser2()
  56. local part = Instance.new("Part")
  57. game:GetService("Debris"):AddItem(part,1)
  58. part.Name = "ChargingLaser2"
  59. part.Parent = game.Players.LocalPlayer.Character
  60. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  61. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  62. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  63. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  64. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  65. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  66. part.Material = Enum.Material.Neon
  67. part.Anchored = true
  68. part.CanCollide = false
  69. part.Size = Vector3.new(2,2,2)
  70. local light = math.random(50,150)
  71. local rotx = math.random(-360,360)
  72. local roty = math.random(-360,360)
  73. local rotz = math.random(-360,360)
  74. part.Color = Color3.fromRGB(light,light,light)
  75. part.Transparency = 0.4
  76. part.CFrame = CFrame.new(pos2) *CFrame.Angles(math.rad(rotx),math.rad(roty),math.rad(rotz))
  77. for i=0.4,1,0.1 do
  78. wait()
  79. part.Size = Vector3.new(2+i,2+i,2+i)
  80. part.Transparency = i
  81. part.CFrame = CFrame.new(pos2) *CFrame.Angles(math.rad(rotx),math.rad(roty),math.rad(rotz))
  82. end
  83. part:remove()
  84. end
  85.  
  86.  
  87.  
  88.  
  89. game:GetService("RunService").RenderStepped:connect(function()
  90. counter = counter +1
  91. if counter >= 3 then
  92. counter = 0
  93. chargeLaser()
  94. if laser ~= nil then
  95. chargeLaser2(pos2)
  96. end
  97. end
  98.  
  99. laserRot = laserRot+1
  100. if laser ~= nil then
  101. local pos1 = game.Players.LocalPlayer.Character.ChargingLaser.Position
  102. pos2 = game.Players.LocalPlayer:GetMouse().Hit.p
  103.  
  104. laser.Size = Vector3.new(0.75,0.75,(pos1-pos2).magnitude)
  105. laser.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(0,0,math.rad(laserRot))
  106.  
  107. local ray = Ray.new(pos1,(pos2-pos1).unit*600)
  108. local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  109. if hit then
  110.  
  111.  
  112. hit.Name = "nil"
  113. hit.Material = Enum.Material.Concrete
  114.  
  115. local c= hit.Color.r+hit.Color.g+hit.Color.b
  116.  
  117. c = c*255
  118. c = c/3
  119. hit.Color = Color3.fromRGB(c,c,c)
  120.  
  121.  
  122. for _,child in pairs(hit:GetChildren()) do
  123. if child:IsA("BasePart") then
  124.  
  125.  
  126. child.Name = "nil"
  127. child.Material = Enum.Material.Concrete
  128. local c= child.Color.r+child.Color.g+child.Color.b
  129.  
  130. c = c*255
  131. c = c/3
  132. child.Color = Color3.fromRGB(c,c,c)
  133.  
  134. end
  135. if not child:IsA("BasePart") then
  136. child:remove()
  137. end
  138. end
  139. end
  140. end
  141. end)
  142. game:GetService("UserInputService").InputBegan:connect(function(key)
  143. if key.KeyCode == Enum.KeyCode.F then
  144. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(90))
  145. laser = Instance.new("Part")
  146. laser.Name = "Laser"
  147. laser.Transparency = 0.25
  148. laser.Parent = game.Players.LocalPlayer.Character
  149. laser.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  150. laser.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  151. laser.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  152. laser.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  153. laser.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  154. laser.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  155. laser.Material = Enum.Material.Neon
  156. laser.Anchored = true
  157. laser.CanCollide = false
  158. laser.Size = Vector3.new(0.75,0.75,0.75)
  159. laser.Color = Color3.fromRGB(100,100,100)
  160.  
  161. end
  162. end)
  163. game:GetService("UserInputService").InputEnded:connect(function(key)
  164. if key.KeyCode == Enum.KeyCode.F then
  165. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90))
  166. laser:remove()
  167. laser = nil
  168. end
  169. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement