Advertisement
epicodascripter

asd

Feb 15th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. local Plr = game.Players.LocalPlayer
  2. local Char = Plr.Character
  3. local Cam = game.Workspace.CurrentCamera
  4. local Run = game:GetService('RunService')
  5. local Path = nil
  6.  
  7. function Armor(Part,Size,Color,Val,VColor)
  8.  
  9. local P = Instance.new('Part')
  10. P.Name = tostring(Part)..'Armor'
  11. P.CanCollide = false
  12. P.BrickColor = BrickColor.new(Color)
  13. P.Parent = Char
  14. P.FormFactor = 'Custom'
  15. P.Anchored = false
  16. P.Size = Size
  17. P.BottomSurface = 'Smooth'
  18. P.TopSurface = 'Smooth'
  19. P.Locked = true
  20. Path = P
  21.  
  22. if Val then
  23. local Box = Instance.new('SelectionBox',P)
  24. Box.Adornee = P
  25. Box.Color = BrickColor.new(VColor)
  26. Box.Transparency = .5
  27. end
  28.  
  29. local Weld = Instance.new('Weld')
  30. Weld.Parent = P
  31. Weld.Part0 = Part
  32. Weld.Part1 = P
  33. end
  34.  
  35. Plr.Chatted:connect(function(msg)
  36. local Gui = Instance.new('BillboardGui',Char.Head)
  37. Gui.ExtentsOffset = Vector3.new(0,3,0)
  38. Gui.Size = UDim2.new(0,200,0,300)
  39. local Frame = Instance.new('Frame',Gui)
  40. Frame.BackgroundTransparency = 1
  41. Frame.Size = UDim2.new(1,0,1,0)
  42. local Txt = Instance.new('TextLabel',Frame)
  43. Txt.BackgroundTransparency = 1
  44. Txt.Size = UDim2.new(1,0,1,0)
  45. Txt.Font = 'ArialBold'
  46. Txt.FontSize = 'Size24'
  47. Txt.Text = ''
  48. Txt.TextColor3 = Color3.new(255/255,255/255,255/255)
  49. Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  50. Txt.TextStrokeTransparency = .5
  51. Txt.TextWrapped = true
  52. Txt.TextScaled = false
  53. delay(wait(),function()
  54. for v = 1, #msg do
  55. Txt.Text=string.sub(msg,1,v)
  56. wait(.07)
  57. end;
  58. wait(1)
  59. for v = 1, #Txt.Text do
  60. Txt.Text=string.sub(msg,-1,v)
  61. wait(.05)
  62. end;
  63. Gui:remove()
  64. end)
  65. end)
  66.  
  67. function SetHeadPos()
  68. local run,error = ypcall(function()
  69. local Weld = Instance.new("Weld")
  70. Weld.Part0 = Char.Torso
  71. Weld.Part1 = Char["Head"]
  72. Weld.C0 = CFrame.new(0, 1.4, 0)
  73. Weld.Parent = Weld.Part0
  74.  
  75. pcall(function()
  76. for _,v in pairs(Char.Head:GetChildren()) do
  77. if v.ClassName=='SpecialMesh' then
  78. v:remove()
  79. end
  80. end
  81. end)
  82.  
  83. if Char:findFirstChild('Head') then
  84. pcall(function()
  85. for _,v in pairs(Char:GetChildren()) do
  86. if v.ClassName == 'Hat' or v.ClassName == 'SpecialMesh' then
  87. v:remove()
  88. end
  89. end -- *CFrame.Angles(0, 0, 0)*CFrame.new(0, 0, 0)
  90. local jointPosition = Weld.Part0.CFrame:toWorldSpace(CFrame.new(0, 1.5, 0))
  91. local cframe = CFrame.new(jointPosition.p,Plr:GetMouse().Hit.p)
  92. Weld.C0 = Weld.Part0.CFrame:toObjectSpace(cframe)
  93. end)
  94. end
  95. end)
  96. if not run then end
  97. end
  98.  
  99. Run.Heartbeat:connect(SetHeadPos)
  100.  
  101. wait()
  102. Armor(Char['Right Arm'],Vector3.new(1.1,2.1,1.1),'Really black',false,'Deep orange')
  103. Armor(Char['Left Arm'],Vector3.new(1.1,2.1,1.1),'Really black',false,'Deep orange')
  104. Armor(Char['Torso'],Vector3.new(2.01,2.01,1.01),'Really black',true,'Deep orange')
  105. Armor(Char['Head'],Vector3.new(1.5,1.5,1.5),'Really black',false,'Deep orange')
  106. Armor(Char['Right Leg'],Vector3.new(1.1,2.1,1.1),'Really black',false,'Deep orange')
  107. Armor(Char['Left Leg'],Vector3.new(1.1,2.1,1.1),'Really black',false,'Deep orange')
  108.  
  109.  
  110. -- Tool --
  111. local T=Instance.new('HopperBin',Plr.Backpack)
  112. T.Name='YEEEE EAT IT'
  113.  
  114. T.Selected:connect(function(MSE)
  115. MSE.Button1Down:connect(function()
  116.  
  117. local Bullet = nil
  118. local Client = MSE.Target.Position
  119.  
  120. if Client == nil then return end
  121.  
  122. local P=Instance.new('Part',workspace)
  123. P.Transparency=1
  124. P.Name='Bullet'
  125. P.Anchored=false
  126. P.Position=Vector3.new(Plr.Character['Right Arm'].Position.X, Plr.Character['Right Arm'].Position.Y, Plr.Character['Right Arm'].Position.Z)
  127. P.CanCollide=true
  128. P.Locked=true
  129. P.FormFactor='Custom'
  130. P.Size=Vector3.new(0.32, 0.29, 1.48)
  131. local Pos = Instance.new("BodyPosition",P)
  132. Pos.position = Vector3.new(Client.X,Client.Y,Client.Z)
  133.  
  134. local Box=Instance.new('SelectionBox',P)
  135. Box.Adornee=P
  136. Box.Color=BrickColor.new('Teal')
  137. Box.Transparency=.5
  138.  
  139. P.Touched:connect(function(part)
  140. delay(wait(),function()
  141. Box.Transparency=1
  142. P.Transparency=1
  143.  
  144. local function asd()
  145. coroutine.resume(coroutine.create(function()
  146. local PA=Instance.new('Part',workspace)
  147. PA.Transparency=1
  148. local Box2=Instance.new('SelectionBox',PA)
  149. Box2.Adornee=PA
  150. Box2.Color=BrickColor.new('Teal')
  151. Box2.Transparency=.1
  152. PA.Anchored=false
  153. PA.CanCollide=false
  154. PA.Locked=true
  155. PA.Name = 'Bullet_Explosion'
  156. PA.FormFactor='Custom'
  157. PA.Position=Vector3.new(part.Position.X,part.Position.Y,part.Position.Z)
  158. PA.Size=Vector3.new(math.random(1,8.5),math.random(1,8.5),math.random(1,8.5))
  159. PA.Rotation=Vector3.new(math.random(1.5,275),math.random(1.5,215),math.random(1.5,200))
  160. PA.Touched:connect(function(hit)
  161. if hit.Parent.Name ~= Plr.Name and hit.Parent'Humanoid' then
  162. hit.Parent.Humanoid:TakeDamage(50/3)
  163. end
  164. end)
  165.  
  166. Bullet = PA
  167.  
  168. local S=Instance.new('Sound',PA)
  169. S.Volume=1
  170. S.SoundId='rbxassetid://165969964'
  171. wait()
  172. S:Play()
  173. wait(S.TimeLength)
  174. S:Pause()
  175.  
  176. if part.ClassName == 'Part' then
  177. part.Anchored=false
  178. elseif part.ClassName == 'Model' then
  179. for _,v in pairs(part.Parent:GetChildren()) do
  180. if v.ClassName == 'Part' then
  181. v.Anchored=false
  182. delay(3.2,function()
  183. v.Anchored=false
  184. end)
  185. if v.Name == 'Humanoid' then
  186. v.Health=v.Health-5
  187. end
  188. end
  189. end
  190. else
  191. end
  192. end))
  193. end --function asd end
  194.  
  195. for i = 0,4,1 do
  196. asd()
  197. end
  198.  
  199. wait(math.random(.1,1))
  200. P:remove()
  201. Bullet:remove()
  202.  
  203. end)
  204. end)
  205.  
  206. end)
  207. end)
  208. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement