Advertisement
RealPieDiePew

Untitled

Sep 12th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. --[[
  2. Altered Fenrier's Cyber Bruiser to utilize Vanta's attack functions. -Ucalegen
  3. ]]
  4. de=true
  5. Player=game:GetService("Players").LocalPlayer
  6. Character=Player.Character
  7. PlayerGui=Player.PlayerGui
  8. Backpack=Player.Backpack
  9. Torso=Character.Torso
  10. Head=Character.Head
  11. Humanoid=Character.Humanoid
  12. moose = Player:GetMouse()
  13. LeftArm=Character["Left Arm"]
  14. LeftLeg=Character["Left Leg"]
  15. RightArm=Character["Right Arm"]
  16. RightLeg=Character["Right Leg"]
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. Neck=Torso.Neck
  22. it=Instance.new
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  30. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RootPart=Character.HumanoidRootPart
  34. RootJoint=RootPart.RootJoint
  35. RootCF=euler(-1.57,0,3.14)
  36. attack = false
  37. attackdebounce = false
  38. MMouse=nil
  39. combo=0
  40. mana=0
  41. local idle=0
  42. local Anim="Idle"
  43. local orbnum=0
  44. local Mode="Normal"
  45. --player
  46. player=nil
  47. --save shoulders
  48. RSH, LSH=nil, nil
  49. --welds
  50. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  51. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  52. LH=Torso["Left Hip"]
  53. RH=Torso["Right Hip"]
  54. Charge=0
  55. TorsoColor=Torso.BrickColor.Color
  56. Col1=1-Torso.Color.r
  57. Col2=1-Torso.Color.g
  58. Col3=1-Torso.Color.b
  59. InverseCol=BrickColor.new(Color3.new(Col1,Col2,Col3))
  60. upvel=Instance.new("BodyVelocity")
  61. local hitbeat=nil
  62.  
  63. function swait(num)
  64. if num==0 or num==nil then
  65. game:service'RunService'.RenderStepped:wait()
  66. else
  67. for i=0,num do
  68. game:service'RunService'.RenderStepped:wait()
  69. end
  70. end
  71. end
  72.  
  73. if Character:findFirstChild("Vanta",true) ~= nil then
  74. Character:findFirstChild("Vanta",true).Parent = nil
  75. end
  76. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  77. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  78. end
  79.  
  80.  
  81. function NoOutline(Part)
  82. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  83. end
  84.  
  85. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  86. local fp=it("Part")
  87. fp.formFactor=formfactor
  88. fp.Parent=parent
  89. fp.Reflectance=reflectance
  90. fp.Transparency=transparency
  91. fp.CanCollide=false
  92. fp.Locked=true
  93. fp.BrickColor=brickcolor
  94. fp.Name=name
  95. fp.Size=size
  96. fp.Position=Torso.Position
  97. NoOutline(fp)
  98. fp.Material="SmoothPlastic"
  99. fp:BreakJoints()
  100. return fp
  101. end
  102.  
  103. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  104. local mesh=it(Mesh)
  105. mesh.Parent=part
  106. if Mesh=="SpecialMesh" then
  107. mesh.MeshType=meshtype
  108. mesh.MeshId=meshid
  109. end
  110. mesh.Offset=offset
  111. mesh.Scale=scale
  112. return mesh
  113. end
  114.  
  115. function weld(parent,part0,part1,c0)
  116. local weld=it("Weld")
  117. weld.Parent=parent
  118. weld.Part0=part0
  119. weld.Part1=part1
  120. weld.C0=c0
  121. return weld
  122. end
  123.  
  124. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  125. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  126. prt.Anchored=true
  127. prt.CFrame=cframe
  128. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  129. game:GetService("Debris"):AddItem(prt,5)
  130. coroutine.resume(coroutine.create(function(Part,Mesh)
  131. for i=0,1,delay do
  132. wait()
  133. Part.CFrame=Part.CFrame
  134. Part.Transparency=i
  135. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  136. end
  137. Part.Parent=nil
  138. end),prt,msh)
  139. end
  140.  
  141. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  142. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  143. prt.Anchored=true
  144. prt.CFrame=cframe
  145. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  146. game:GetService("Debris"):AddItem(prt,5)
  147. coroutine.resume(coroutine.create(function(Part,Mesh)
  148. for i=0,1,delay do
  149. wait()
  150. Part.CFrame=Part.CFrame
  151. Part.Transparency=i
  152. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  153. end
  154. Part.Parent=nil
  155. end),prt,msh)
  156. end
  157.  
  158. local Color1=Torso.BrickColor
  159.  
  160. local fengui=it("GuiMain")
  161. fengui.Parent=Player.PlayerGui
  162. fengui.Name="WeaponGUI"
  163. local fenframe=it("Frame")
  164. fenframe.Parent=fengui
  165. fenframe.BackgroundColor3=Color3.new(255,255,255)
  166. fenframe.BackgroundTransparency=1
  167. fenframe.BorderColor3=Color3.new(17,17,17)
  168. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  169. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  170. fenframe.Visible=false
  171. local fenbarmana1=it("TextLabel")
  172. fenbarmana1.Parent=fenframe
  173. fenbarmana1.Text=" "
  174. fenbarmana1.BackgroundTransparency=0
  175. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  176. fenbarmana1.SizeConstraint="RelativeXY"
  177. fenbarmana1.TextXAlignment="Center"
  178. fenbarmana1.TextYAlignment="Center"
  179. fenbarmana1.Position=UDim2.new(0,0,0,0)
  180. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  181. local fenbarmana2=it("TextLabel")
  182. fenbarmana2.Parent=fenframe
  183. fenbarmana2.Text=" "
  184. fenbarmana2.BackgroundTransparency=0
  185. fenbarmana2.BackgroundColor3=Torso.Color
  186. fenbarmana2.SizeConstraint="RelativeXY"
  187. fenbarmana2.TextXAlignment="Center"
  188. fenbarmana2.TextYAlignment="Center"
  189. fenbarmana2.Position=UDim2.new(0,0,0,0)
  190. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  191. local fenbarmana3=it("TextLabel")
  192. fenbarmana3.Parent=fenframe
  193. fenbarmana3.Text=" "
  194. fenbarmana3.BackgroundTransparency=0
  195. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  196. fenbarmana3.SizeConstraint="RelativeXY"
  197. fenbarmana3.TextXAlignment="Center"
  198. fenbarmana3.TextYAlignment="Center"
  199. fenbarmana3.Position=UDim2.new(0,0,0,0)
  200. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  201. local fenbarmana4=it("TextLabel")
  202. fenbarmana4.Parent=fenframe
  203. fenbarmana4.Text="Energy("..mana..")"
  204. fenbarmana4.BackgroundTransparency=1
  205. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  206. fenbarmana4.SizeConstraint="RelativeXY"
  207. fenbarmana4.TextXAlignment="Center"
  208. fenbarmana4.TextYAlignment="Center"
  209. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  210. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  211. fenbarmana4.FontSize="Size9"
  212. fenbarmana4.TextStrokeTransparency=0
  213. fenbarmana4.TextColor=BrickColor.new("White")
  214.  
  215. local modelzorz=Instance.new("Model")
  216. modelzorz.Parent=Character
  217. modelzorz.Name="Vanta"
  218.  
  219. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  220. hitbox.Anchored=false
  221.  
  222. if (script.Parent.className~="HopperBin") then
  223. Tool=Instance.new("HopperBin")
  224. Tool.Parent=Backpack
  225. Tool.Name="Vanta"
  226. script.Parent=Tool
  227. end
  228. Bin=script.Parent
  229.  
  230. local bodvel=Instance.new("BodyVelocity")
  231. local bg=Instance.new("BodyGyro")
  232.  
  233. so = function(id,par,vol,pit)
  234. coroutine.resume(coroutine.create(function()
  235. local sou = Instance.new("Sound",par or workspace)
  236. sou.Volume=vol
  237. sou.Pitch=pit or 1
  238. sou.SoundId=id
  239. swait()
  240. sou:play()
  241. game:GetService("Debris"):AddItem(sou,6)
  242. end))
  243. end
  244.  
  245. function clerp(a,b,t)
  246. local qa = {QuaternionFromCFrame(a)}
  247. local qb = {QuaternionFromCFrame(b)}
  248. local ax, ay, az = a.x, a.y, a.z
  249. local bx, by, bz = b.x, b.y, b.z
  250. local _t = 1-t
  251. return QuaternionToCFrame(_t*ax + t*bx, t*ay + t*by, t*az + t*bz,QuaternionSlerp(qa, qb, t))
  252. end
  253.  
  254. function QuaternionFromCFrame(cf)
  255. local mx, my, mz, m00, m01, m02, m10, m11, m12
  256. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement