Advertisement
kjlaza

hmmmm

Mar 10th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.20 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. clr = "Bright orange" -- set this to whatever you want
  88.  
  89. wait(0.5)
  90. Player=game:GetService("Players").kjlaz
  91. Character=Player.Character
  92. PlayerGui=Player.PlayerGui
  93. Backpack=Player.Backpack
  94. Torso=Character.Torso
  95. Head=Character.Head
  96. Humanoid=Character.Humanoid
  97. m=Instance.new('Model',Character)
  98. LeftArm=Character["Left Arm"]
  99. LeftLeg=Character["Left Leg"]
  100. RightArm=Character["Right Arm"]
  101. RightLeg=Character["Right Leg"]
  102. LS=Torso["Left Shoulder"]
  103. LH=Torso["Left Hip"]
  104. RS=Torso["Right Shoulder"]
  105. RH=Torso["Right Hip"]
  106. Face = Head.face
  107. Neck=Torso.Neck
  108. it=Instance.new
  109. attacktype=1
  110. vt=Vector3.new
  111. cf=CFrame.new
  112. euler=CFrame.fromEulerAnglesXYZ
  113. angles=CFrame.Angles
  114. cloaked=false
  115. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  116. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  117. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  118. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  119. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  120. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  121. RootPart=Character.HumanoidRootPart
  122. RootJoint=RootPart.RootJoint
  123. RootCF=euler(-1.57,0,3.14)
  124. attack = false
  125. attackdebounce = false
  126. deb=false
  127. equipped=true
  128. hand=false
  129. MMouse=nil
  130. combo=0
  131. trispeed=.2
  132. attackmode='none'
  133. local idle=0
  134. local Anim="Idle"
  135.  
  136. it = Instance.new
  137.  
  138. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  139. local prt = it("Part",parent)
  140. prt.Name = name
  141. prt.CanCollide = false
  142. prt.BrickColor = BrickColor.new(brkclr)
  143. if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
  144. prt.Material = mtrl
  145. prt.Reflectance = rfl
  146. prt.Transparency = trns
  147. prt.Size = sz
  148. prt.Anchored = true
  149. return prt
  150. end
  151. local mesh = function(meshtype,parent,meshid,textureid,scale)
  152. local msh = it("SpecialMesh",parent)
  153. if meshtype == "FileMesh" then
  154. msh.MeshId = meshid
  155. msh.TextureId = textureid
  156. end
  157. msh.MeshType = meshtype
  158. msh.Scale = scale
  159. return(msh)
  160. end
  161. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  162. local w = it("Weld",part1)
  163. w.Part0 = part1
  164. w.Part1 = part2
  165. if part1.Anchored or part2.Anchored then
  166. part1.Anchored = false
  167. part2.Anchored = false
  168. end
  169. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  170. return(w)
  171. end
  172. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
  173. local emm = it("ParticleEmitter",parent)
  174. emm.Texture = tex
  175. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  176. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  177. emm.LightEmission = lightem
  178. emm.EmissionDirection = emdir
  179. emm.Lifetime = NumberRange.new(lif)
  180. emm.Rate = rate
  181. emm.Speed = NumberRange.new(speed)
  182. emm.RotSpeed = NumberRange.new(rotspeed)
  183. emm.SpreadAngle = Vector2.new(sprdang,sprdang)
  184. return(emm)
  185. end
  186.  
  187. p = part("Part",m,clr,"Neon",0,0,Vector3.new(0.05, 0.1, 0.1))
  188. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  189. weld(Head,p,0,0.325,-0.575,0,90,0)
  190. p = part("Part",m,Head.BrickColor.Name,"SmoothPlastic",0,0,Vector3.new(0.05, 0.1, 0.1))
  191. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  192. weld(Head,p,-0.04,0.325,-0.58,0,90,0)
  193. --NoobyGames12
  194.  
  195. print'lets do this'
  196.  
  197. plr = owner
  198. char = plr.Character
  199. hum = char.Humanoid
  200. local cam = game.Workspace.CurrentCamera
  201. t = char.Torso
  202. h = char.Head
  203. ra = char["Right Arm"]
  204. la = char["Left Arm"]
  205. rl = char["Right Leg"]
  206. ll = char["Left Leg"]
  207. tors = char.Torso
  208. lleg = char["Left Leg"]
  209. root = char.HumanoidRootPart
  210. hed = char.Head
  211. rleg = char["Right Leg"]
  212. rarm = char["Right Arm"]
  213. larm = char["Left Arm"]
  214. vt = Vector3.new
  215. bc = BrickColor.new
  216. br = BrickColor.random
  217. it = Instance.new
  218. cf = CFrame.new
  219.  
  220. local m = Instance.new("Model",char)
  221. m.Name = "GaunletModel"
  222.  
  223. local maincolor = t.BrickColor
  224. local maincolor2 = BrickColor.new("Really black")
  225.  
  226. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  227. local p = Instance.new("Part")
  228. p.Parent = parent
  229. p.Size = Vector3.new(1,1,1)
  230. p.Transparency = transparency
  231. p.Reflectance = reflectance
  232. p.CanCollide = false
  233. p.BrickColor = brickcolor
  234. p.Material = material
  235. return p
  236. end
  237.  
  238. function CreateMesh(parent,meshtype,x1,y1,z1)
  239. local mesh = Instance.new("SpecialMesh",parent)
  240. mesh.MeshType = meshtype
  241. mesh.Scale = Vector3.new(x1,y1,z1)
  242. return mesh
  243. end
  244.  
  245. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  246. local mesh = Instance.new("SpecialMesh",parent)
  247. mesh.MeshType = "SpecialMesh"
  248. mesh.MeshId = meshid
  249. mesh.Scale = Vector3.new(x1,y1,z1)
  250. return mesh
  251. end
  252.  
  253. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  254. local mesh = Instance.new("SpecialMesh",parent)
  255. mesh.MeshType = "FileMesh"
  256. mesh.MeshId = meshid
  257. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  258. mesh.Scale = Vector3.new(x1,y1,z1)
  259. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  260. return mesh
  261. end
  262.  
  263. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  264. local weld = Instance.new("Weld")
  265. weld.Parent = parent
  266. weld.Part0 = part0
  267. weld.Part1 = part1
  268. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  269. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  270. return weld
  271. end
  272.  
  273. local llegw = CreatePart(m,1,1,"Glass",maincolor2)
  274. CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  275. local rlegw = CreatePart(m,1,1,"Glass",maincolor2)
  276. CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  277.  
  278. local sorb = CreatePart(m,1,1,"Glass",maincolor2)
  279. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  280. local sorb2 = CreatePart(m,1,1,"Glass",maincolor2)
  281. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  282.  
  283. ---- Right arm
  284. local handle = CreatePart(m,0,0,"Glass",maincolor2)
  285. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  286. CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  287. local lowhandle = CreatePart(m,0,0,"Glass",maincolor2)
  288. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  289. CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  290. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  291. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  292. CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  293. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  294. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  295. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  296. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  297. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  298. CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  299. local handleo2 = CreatePart(m,0,0,"Glass",maincolor2)
  300. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  301. CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  302. local zi = CreatePart(m,0,0,"Neon",maincolor)
  303. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  304. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  305.  
  306. local to = CreatePart(m,0,0,"Glass",maincolor2)
  307. CreateMesh(to,"Brick",0.5,1.5,0.5)
  308. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  309. local tl = CreatePart(m,0,0,"Neon",maincolor)
  310. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  311. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  312.  
  313. local zo = CreatePart(m,0,0,"Neon",maincolor)
  314. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  315. CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  316. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  317. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  318. CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  319. local zob = CreatePart(m,0,0,"Neon",maincolor)
  320. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  321. CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  322. local zz = CreatePart(m,0,0,"Neon",maincolor)
  323. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  324. CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  325. local zzo = CreatePart(m,0,0,"Glass",maincolor2)
  326. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  327. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  328.  
  329. local li = CreatePart(m,0,0,"Neon",maincolor)
  330. CreateMesh(li,"Brick",0.275,0.825,0.025)
  331. CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  332.  
  333. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  334. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  335. CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  336. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  337. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  338. CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  339.  
  340. local di = CreatePart(m,0,0,"Neon",maincolor)
  341. CreateMesh(di,"Brick",0.3,0.3,0.3)
  342. CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  343.  
  344. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  345. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  346. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  347. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  348. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  349. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  350. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  351. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  352. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  353. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  354. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  355. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  356. local dio = CreatePart(m,0,0,"Glass",maincolor2)
  357. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  358. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  359. local dio1 = CreatePart(m,0,0,"Glass",maincolor2)
  360. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  361. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  362. local dio2 = CreatePart(m,0,0,"Glass",maincolor2)
  363. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  364. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  365. local dio3 = CreatePart(m,0,0,"Glass",maincolor2)
  366. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  367. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  368. local dio4 = CreatePart(m,0,0,"Glass",maincolor2)
  369. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  370. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  371.  
  372. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  373. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  374. CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  375. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  376. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  377. CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  378. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  379. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  380. CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  381. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  382. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  383. CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  384.  
  385. local sqo1 = CreatePart(m,0,0,"Glass",maincolor2)
  386. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  387. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  388. local sqo2 = CreatePart(m,0,0,"Glass",maincolor2)
  389. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  390. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  391. local sqo3 = CreatePart(m,0,0,"Glass",maincolor2)
  392. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  393. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  394. local sqo4 = CreatePart(m,0,0,"Glass",maincolor2)
  395. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  396. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  397.  
  398. local locl = CreatePart(m,0,0,"Neon",maincolor)
  399. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  400. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  401.  
  402. local dil = CreatePart(m,0,0,"Neon",maincolor)
  403. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  404. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  405.  
  406. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  407. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  408. CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  409. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  410. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  411. CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  412.  
  413. local dilo = CreatePart(m,0,0,"Glass",maincolor2)
  414. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  415. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  416. local dilo1 = CreatePart(m,0,0,"Glass",maincolor2)
  417. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  418. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  419. local dilo2 = CreatePart(m,0,0,"Glass",maincolor2)
  420. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  421. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  422.  
  423. local locr = CreatePart(m,0,0,"Neon",maincolor)
  424. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  425. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  426.  
  427. local dir = CreatePart(m,0,0,"Neon",maincolor)
  428. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  429. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  430.  
  431. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  432. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  433. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  434. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  435. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  436. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  437.  
  438. local diro = CreatePart(m,0,0,"Glass",maincolor2)
  439. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  440. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  441. local diro1 = CreatePart(m,0,0,"Glass",maincolor2)
  442. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  443. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  444. local diro2 = CreatePart(m,0,0,"Glass",maincolor2)
  445. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  446. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  447.  
  448. ---- Left arm
  449. local handle = CreatePart(m,0,0,"Glass",maincolor2)
  450. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  451. CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  452. local lowhandle = CreatePart(m,0,0,"Glass",maincolor2)
  453. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  454. CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  455. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  456. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  457. CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  458. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  459. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  460. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  461. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  462. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  463. CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  464. local handleo2 = CreatePart(m,0,0,"Glass",maincolor2)
  465. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  466. CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  467. local zi = CreatePart(m,0,0,"Neon",maincolor)
  468. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  469. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  470.  
  471. local to = CreatePart(m,0,0,"Glass",maincolor2)
  472. CreateMesh(to,"Brick",0.5,1.5,0.5)
  473. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  474. local tl = CreatePart(m,0,0,"Neon",maincolor)
  475. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  476. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  477.  
  478. local zo = CreatePart(m,0,0,"Neon",maincolor)
  479. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  480. CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  481. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  482. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  483. CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  484. local zob = CreatePart(m,0,0,"Neon",maincolor)
  485. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  486. CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  487. local zz = CreatePart(m,0,0,"Neon",maincolor)
  488. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  489. CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  490. local zzo = CreatePart(m,0,0,"Glass",maincolor2)
  491. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  492. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  493.  
  494. local li = CreatePart(m,0,0,"Neon",maincolor)
  495. CreateMesh(li,"Brick",0.275,0.825,0.025)
  496. CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  497.  
  498. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  499. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  500. CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  501. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  502. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  503. CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  504.  
  505. local di = CreatePart(m,0,0,"Neon",maincolor)
  506. CreateMesh(di,"Brick",0.3,0.3,0.3)
  507. CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  508.  
  509. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  510. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  511. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  512. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  513. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  514. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  515. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  516. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  517. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  518. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  519. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  520. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  521. local dio = CreatePart(m,0,0,"Glass",maincolor2)
  522. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  523. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  524. local dio1 = CreatePart(m,0,0,"Glass",maincolor2)
  525. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  526. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  527. local dio2 = CreatePart(m,0,0,"Glass",maincolor2)
  528. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  529. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  530. local dio3 = CreatePart(m,0,0,"Glass",maincolor2)
  531. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  532. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  533. local dio4 = CreatePart(m,0,0,"Glass",maincolor2)
  534. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  535. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  536.  
  537. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  538. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  539. CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  540. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  541. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  542. CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  543. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  544. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  545. CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  546. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  547. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  548. CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  549.  
  550. local sqo1 = CreatePart(m,0,0,"Glass",maincolor2)
  551. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  552. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  553. local sqo2 = CreatePart(m,0,0,"Glass",maincolor2)
  554. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  555. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  556. local sqo3 = CreatePart(m,0,0,"Glass",maincolor2)
  557. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  558. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  559. local sqo4 = CreatePart(m,0,0,"Glass",maincolor2)
  560. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  561. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  562.  
  563. local locl = CreatePart(m,0,0,"Neon",maincolor)
  564. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  565. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  566.  
  567. local dil = CreatePart(m,0,0,"Neon",maincolor)
  568. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  569. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  570.  
  571. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  572. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  573. CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  574. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  575. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  576. CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  577.  
  578. local dilo = CreatePart(m,0,0,"Glass",maincolor2)
  579. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  580. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  581. local dilo1 = CreatePart(m,0,0,"Glass",maincolor2)
  582. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  583. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  584. local dilo2 = CreatePart(m,0,0,"Glass",maincolor2)
  585. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  586. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  587.  
  588. local locr = CreatePart(m,0,0,"Neon",maincolor)
  589. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  590. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  591.  
  592. local dir = CreatePart(m,0,0,"Neon",maincolor)
  593. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  594. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  595.  
  596. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  597. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  598. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  599. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  600. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  601. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  602.  
  603. local diro = CreatePart(m,0,0,"Glass",maincolor2)
  604. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  605. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  606. local diro1 = CreatePart(m,0,0,"Glass",maincolor2)
  607. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  608. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  609. local diro2 = CreatePart(m,0,0,"Glass",maincolor2)
  610. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  611. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  612.  
  613. Player=owner
  614. Character=Player.Character
  615. PlayerGui=Player.PlayerGui
  616. Backpack=Player.Backpack
  617. Torso=Character.Torso
  618. Head=Character.Head
  619. Humanoid=Character.Humanoid
  620. m=Instance.new('Model',Character)
  621. LeftArm=Character["Left Arm"]
  622. LeftLeg=Character["Left Leg"]
  623. RightArm=Character["Right Arm"]
  624. RightLeg=Character["Right Leg"]
  625. LS=Torso["Left Shoulder"]
  626. LH=Torso["Left Hip"]
  627. RS=Torso["Right Shoulder"]
  628. RH=Torso["Right Hip"]
  629. Face = Head.face
  630. Neck=Torso.Neck
  631. it=Instance.new
  632. attacktype=1
  633. vt=Vector3.new
  634. cf=CFrame.new
  635. euler=CFrame.fromEulerAnglesXYZ
  636. angles=CFrame.Angles
  637. cloaked=false
  638. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  639. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  640. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  641. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  642. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  643. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  644. RootPart=Character.HumanoidRootPart
  645. RootJoint=RootPart.RootJoint
  646. RootCF=euler(-1.57,0,3.14)
  647. attack = false
  648. attackdebounce = false
  649. deb=false
  650. equipped=true
  651. hand=false
  652. MMouse=nil
  653. combo=0
  654. mana=0
  655. trispeed=.2
  656. attackmode='none'
  657. local idle=0
  658. local Anim="Idle"
  659. local Effects={}
  660. local gun=false
  661. local shoot=false
  662. local sine = 0
  663. local change = 1
  664. player=nil
  665.  
  666.  
  667. --save shoulders
  668. RSH, LSH=nil, nil
  669. --welds
  670. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  671. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  672. LH=Torso["Left Hip"]
  673. RH=Torso["Right Hip"]
  674. TorsoColor=Torso.BrickColor
  675. function NoOutline(Part)
  676. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  677. end
  678. player=Player
  679. ch=Character
  680. RSH=ch.Torso["Right Shoulder"]
  681. LSH=ch.Torso["Left Shoulder"]
  682. --
  683. RSH.Parent=nil
  684. LSH.Parent=nil
  685. --
  686. RW.Name="Right Shoulder"
  687. RW.Part0=ch.Torso
  688. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  689. RW.C1=cf(0, 0.5, 0)
  690. RW.Part1=ch["Right Arm"]
  691. RW.Parent=ch.Torso
  692. --
  693. LW.Name="Left Shoulder"
  694. LW.Part0=ch.Torso
  695. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  696. LW.C1=cf(0, 0.5, 0)
  697. LW.Part1=ch["Left Arm"]
  698. LW.Parent=ch.Torso
  699.  
  700. local Stats=Instance.new("BoolValue")
  701. Stats.Name="Stats"
  702. Stats.Parent=Character
  703. local Atk=Instance.new("NumberValue")
  704. Atk.Name="Damage"
  705. Atk.Parent=Stats
  706. Atk.Value=1
  707. local Def=Instance.new("NumberValue")
  708. Def.Name="Defense"
  709. Def.Parent=Stats
  710. Def.Value=1
  711. local Speed=Instance.new("NumberValue")
  712. Speed.Name="Speed"
  713. Speed.Parent=Stats
  714. Speed.Value=1
  715. local Mvmt=Instance.new("NumberValue")
  716. Mvmt.Name="Movement"
  717. Mvmt.Parent=Stats
  718. Mvmt.Value=1
  719.  
  720. local donum=0
  721.  
  722.  
  723. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  724. local fp=it("Part")
  725. fp.formFactor=formfactor
  726. fp.Parent=parent
  727. fp.Reflectance=reflectance
  728. fp.Transparency=transparency
  729. fp.CanCollide=false
  730. fp.Locked=true
  731. fp.BrickColor=brickcolor
  732. fp.Name=name
  733. fp.Size=size
  734. fp.Position=Torso.Position
  735. NoOutline(fp)
  736. fp.Material="Glass"
  737. fp:BreakJoints()
  738. return fp
  739. end
  740.  
  741. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  742. local mesh=it(Mesh)
  743. mesh.Parent=part
  744. if Mesh=="SpecialMesh" then
  745. mesh.MeshType=meshtype
  746. if meshid~="nil" then
  747. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  748. end
  749. end
  750. mesh.Offset=offset
  751. mesh.Scale=scale
  752. return mesh
  753. end
  754.  
  755. function weld(parent,part0,part1,c0)
  756. local weld=it("Weld")
  757. weld.Parent=parent
  758. weld.Part0=part0
  759. weld.Part1=part1
  760. weld.C0=c0
  761. return weld
  762. end
  763.  
  764. local Color1=Torso.BrickColor
  765.  
  766. local bodvel=Instance.new("BodyVelocity")
  767. local bg=Instance.new("BodyGyro")
  768.  
  769. function swait(num)
  770. if num==0 or num==nil then
  771. game:service'RunService'.Stepped:wait(0)
  772. else
  773. for i=0,num do
  774. game:service'RunService'.Stepped:wait(0)
  775. end
  776. end
  777. end
  778.  
  779.  
  780. so = function(id,par,vol,pit)
  781. coroutine.resume(coroutine.create(function()
  782. local sou = Instance.new("Sound",par or workspace)
  783. sou.Volume=vol
  784. sou.Pitch=pit or 1
  785. sou.SoundId=id
  786. swait()
  787. sou:play()
  788. game:GetService("Debris"):AddItem(sou,6)
  789. end))
  790. end
  791.  
  792. function clerp(a,b,t)
  793. local qa = {QuaternionFromCFrame(a)}
  794. local qb = {QuaternionFromCFrame(b)}
  795. local ax, ay, az = a.x, a.y, a.z
  796. local bx, by, bz = b.x, b.y, b.z
  797. local _t = 1-t
  798. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  799. end
  800.  
  801. function QuaternionFromCFrame(cf)
  802. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  803. local trace = m00 + m11 + m22
  804. if trace > 0 then
  805. local s = math.sqrt(1 + trace)
  806. local recip = 0.5/s
  807. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  808. else
  809. local i = 0
  810. if m11 > m00 then
  811. i = 1
  812. end
  813. if m22 > (i == 0 and m00 or m11) then
  814. i = 2
  815. end
  816. if i == 0 then
  817. local s = math.sqrt(m00-m11-m22+1)
  818. local recip = 0.5/s
  819. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  820. elseif i == 1 then
  821. local s = math.sqrt(m11-m22-m00+1)
  822. local recip = 0.5/s
  823. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  824. elseif i == 2 then
  825. local s = math.sqrt(m22-m00-m11+1)
  826. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  827. end
  828. end
  829. end
  830.  
  831. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  832. local xs, ys, zs = x + x, y + y, z + z
  833. local wx, wy, wz = w*xs, w*ys, w*zs
  834. local xx = x*xs
  835. local xy = x*ys
  836. local xz = x*zs
  837. local yy = y*ys
  838. local yz = y*zs
  839. local zz = z*zs
  840. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  841. end
  842.  
  843. function QuaternionSlerp(a, b, t)
  844. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  845. local startInterp, finishInterp;
  846. if cosTheta >= 0.0001 then
  847. if (1 - cosTheta) > 0.0001 then
  848. local theta = math.acos(cosTheta)
  849. local invSinTheta = 1/math.sin(theta)
  850. startInterp = math.sin((1-t)*theta)*invSinTheta
  851. finishInterp = math.sin(t*theta)*invSinTheta
  852. else
  853. startInterp = 1-t
  854. finishInterp = t
  855. end
  856. else
  857. if (1+cosTheta) > 0.0001 then
  858. local theta = math.acos(-cosTheta)
  859. local invSinTheta = 1/math.sin(theta)
  860. startInterp = math.sin((t-1)*theta)*invSinTheta
  861. finishInterp = math.sin(t*theta)*invSinTheta
  862. else
  863. startInterp = t-1
  864. finishInterp = t
  865. end
  866. end
  867. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  868. end
  869.  
  870. local function CFrameFromTopBack(at, top, back)
  871. local right = top:Cross(back)
  872. return CFrame.new(at.x, at.y, at.z,
  873. right.x, top.x, back.x,
  874. right.y, top.y, back.y,
  875. right.z, top.z, back.z)
  876. end
  877.  
  878. function Triangle(a, b, c)
  879. local edg1 = (c-a):Dot((b-a).unit)
  880. local edg2 = (a-b):Dot((c-b).unit)
  881. local edg3 = (b-c):Dot((a-c).unit)
  882. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  883. a, b, c = a, b, c
  884. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  885. a, b, c = b, c, a
  886. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  887. a, b, c = c, a, b
  888. else
  889. assert(false, "unreachable")
  890. end
  891.  
  892. local len1 = (c-a):Dot((b-a).unit)
  893. local len2 = (b-a).magnitude - len1
  894. local width = (a + (b-a).unit*len1 - c).magnitude
  895.  
  896. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  897.  
  898. local list = {}
  899.  
  900. if len1 > 0.01 then
  901. local w1 = Instance.new('WedgePart', m)
  902. game:GetService("Debris"):AddItem(w1,5)
  903. w1.Material = "Glass"
  904. w1.FormFactor = 'Custom'
  905. w1.BrickColor = BrickColor.new("Really red")
  906. w1.Transparency = 0
  907. w1.Reflectance = 0
  908. w1.Material = "Glass"
  909. w1.CanCollide = false
  910. local l1 = Instance.new("PointLight",w1)
  911. l1.Color = Color3.new(170,0,0)
  912. NoOutline(w1)
  913. local sz = Vector3.new(0.2, width, len1)
  914. w1.Size = sz
  915. local sp = Instance.new("SpecialMesh",w1)
  916. sp.MeshType = "Wedge"
  917. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  918. w1:BreakJoints()
  919. w1.Anchored = true
  920. w1.Parent = workspace
  921. w1.Transparency = 0.7
  922. table.insert(Effects,{w1,"Disappear",.01})
  923. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  924. table.insert(list,w1)
  925. end
  926.  
  927. if len2 > 0.01 then
  928. local w2 = Instance.new('WedgePart', m)
  929. game:GetService("Debris"):AddItem(w2,5)
  930. w2.Material = "Glass"
  931. w2.FormFactor = 'Custom'
  932. w2.BrickColor = BrickColor.new("Really red")
  933. w2.Transparency = 0
  934. w2.Reflectance = 0
  935. w2.Material = "Glass"
  936. w2.CanCollide = false
  937. local l2 = Instance.new("PointLight",w2)
  938. l2.Color = Color3.new(170,0,0)
  939. NoOutline(w2)
  940. local sz = Vector3.new(0.2, width, len2)
  941. w2.Size = sz
  942. local sp = Instance.new("SpecialMesh",w2)
  943. sp.MeshType = "Wedge"
  944. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  945. w2:BreakJoints()
  946. w2.Anchored = true
  947. w2.Parent = workspace
  948. w2.Transparency = 0.7
  949. table.insert(Effects,{w2,"Disappear",.01})
  950. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  951. table.insert(list,w2)
  952. end
  953. return unpack(list)
  954. end
  955.  
  956.  
  957. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  958. if hit.Parent==nil then
  959. return
  960. end
  961. h=hit.Parent:FindFirstChild("Humanoid")
  962. for _,v in pairs(hit.Parent:children()) do
  963. if v:IsA("Humanoid") then
  964. h=v
  965. end
  966. end
  967. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  968. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  969. end
  970. if hit.Parent.className=="Hat" then
  971. hit=hit.Parent.Parent:findFirstChild("Head")
  972. end
  973. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  974. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  975. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  976. return
  977. end]]
  978. -- hs(hit,1.2)
  979. c=Instance.new("ObjectValue")
  980. c.Name="creator"
  981. c.Value=game:service("Players").LocalPlayer
  982. c.Parent=h
  983. game:GetService("Debris"):AddItem(c,.5)
  984. Damage=math.random(minim,maxim)
  985. -- h:TakeDamage(Damage)
  986. blocked=false
  987. block=hit.Parent:findFirstChild("Block")
  988. if block~=nil then
  989. print(block.className)
  990. if block.className=="NumberValue" then
  991. if block.Value>0 then
  992. blocked=true
  993. if decreaseblock==nil then
  994. block.Value=block.Value-1
  995. end
  996. end
  997. end
  998. if block.className=="IntValue" then
  999. if block.Value>0 then
  1000. blocked=true
  1001. if decreaseblock~=nil then
  1002. block.Value=block.Value-1
  1003. end
  1004. end
  1005. end
  1006. end
  1007. if blocked==false then
  1008. -- h:TakeDamage(Damage)
  1009. h.Health=h.Health-Damage
  1010. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  1011. else
  1012. h.Health=h.Health-(Damage/2)
  1013. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1014. end
  1015. if Type=="Knockdown" then
  1016. hum=hit.Parent.Humanoid
  1017. hum.PlatformStand=true
  1018. coroutine.resume(coroutine.create(function(HHumanoid)
  1019. swait(1)
  1020. HHumanoid.PlatformStand=false
  1021. end),hum)
  1022. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1023. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1024. local bodvol=Instance.new("BodyVelocity")
  1025. bodvol.velocity=angle*knockback
  1026. bodvol.P=5000
  1027. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1028. bodvol.Parent=hit
  1029. rl=Instance.new("BodyAngularVelocity")
  1030. rl.P=3000
  1031. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1032. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1033. rl.Parent=hit
  1034. game:GetService("Debris"):AddItem(bodvol,.5)
  1035. game:GetService("Debris"):AddItem(rl,.5)
  1036. elseif Type=="Normal" then
  1037. vp=Instance.new("BodyVelocity")
  1038. vp.P=500
  1039. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1040. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1041. if KnockbackType==1 then
  1042. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1043. elseif KnockbackType==2 then
  1044. vp.velocity=Property.CFrame.lookVector*knockback
  1045. end
  1046. if knockback>0 then
  1047. vp.Parent=hit.Parent.Torso
  1048. end
  1049. game:GetService("Debris"):AddItem(vp,.5)
  1050. elseif Type=="Up" then
  1051. local bodyVelocity=Instance.new("BodyVelocity")
  1052. bodyVelocity.velocity=vt(0,60,0)
  1053. bodyVelocity.P=5000
  1054. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1055. bodyVelocity.Parent=hit
  1056. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1057. rl=Instance.new("BodyAngularVelocity")
  1058. rl.P=3000
  1059. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1060. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1061. rl.Parent=hit
  1062. game:GetService("Debris"):AddItem(rl,.5)
  1063. elseif Type=="Snare" then
  1064. bp=Instance.new("BodyPosition")
  1065. bp.P=2000
  1066. bp.D=100
  1067. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1068. bp.position=hit.Parent.Torso.Position
  1069. bp.Parent=hit.Parent.Torso
  1070. game:GetService("Debris"):AddItem(bp,1)
  1071. elseif Type=="Target" then
  1072. if Targetting==false then
  1073. ZTarget=hit.Parent.Torso
  1074. coroutine.resume(coroutine.create(function(Part)
  1075. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1076. swait(5)
  1077. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1078. end),ZTarget)
  1079. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1080. targetgui=Instance.new("BillboardGui")
  1081. targetgui.Parent=ZTarget
  1082. targetgui.Size=UDim2.new(10,100,10,100)
  1083. targ=Instance.new("ImageLabel")
  1084. targ.Parent=targetgui
  1085. targ.BackgroundTransparency=1
  1086. targ.Image="rbxassetid://4834067"
  1087. targ.Size=UDim2.new(1,0,1,0)
  1088. cam.CameraType="Scriptable"
  1089. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1090. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1091. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1092. Targetting=true
  1093. RocketTarget=ZTarget
  1094. for i=1,Property do
  1095. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1096. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1097. swait()
  1098. end
  1099. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1100. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1101. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1102. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1103. end
  1104. Targetting=false
  1105. RocketTarget=nil
  1106. targetgui.Parent=nil
  1107. cam.CameraType="Custom"
  1108. end
  1109. end
  1110. debounce=Instance.new("BoolValue")
  1111. debounce.Name="DebounceHit"
  1112. debounce.Parent=hit.Parent
  1113. debounce.Value=true
  1114. game:GetService("Debris"):AddItem(debounce,Delay)
  1115. c=Instance.new("ObjectValue")
  1116. c.Name="creator"
  1117. c.Value=Player
  1118. c.Parent=h
  1119. game:GetService("Debris"):AddItem(c,.5)
  1120. CRIT=false
  1121. hitDeb=true
  1122. AttackPos=6
  1123. end
  1124. end
  1125.  
  1126. showDamage=function(Char,Dealt,du,Color)
  1127. m=Instance.new("Model")
  1128. m.Name=tostring(Dealt)
  1129. h=Instance.new("Humanoid")
  1130. h.Health=0
  1131. h.MaxHealth=0
  1132. h.Parent=m
  1133. c=Instance.new("Part")
  1134. c.Transparency=0
  1135. c.BrickColor=Color
  1136. c.Transparency = 1
  1137. c.Name="Head"
  1138. c.TopSurface=0
  1139. c.BottomSurface=0
  1140. c.formFactor="Plate"
  1141. c.Size=Vector3.new(1,.4,1)
  1142.  
  1143. local txt = Instance.new("BillboardGui", c)
  1144. txt.Adornee = c
  1145. txt.Name = "_status"
  1146. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1147. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1148. local text = Instance.new("TextLabel", txt)
  1149. text.Size = UDim2.new(10, 0, 7, 0)
  1150. text.FontSize = "Size12"
  1151. text.TextScaled = true
  1152. text.TextTransparency = 0.5
  1153. text.BackgroundTransparency = 1
  1154. text.TextTransparency = 0.5
  1155. text.TextStrokeTransparency = 0.5
  1156. text.Font = "SciFi"
  1157. text.TextStrokeColor3 = Color3.new(0,0,0)
  1158. v=Instance.new("Part")
  1159. v.Name = "ColorBrick"
  1160. v.Parent=c
  1161. v.FormFactor="Symmetric"
  1162. v.Anchored=true
  1163. v.CanCollide=false
  1164. v.BottomSurface="Smooth"
  1165. v.TopSurface="Smooth"
  1166. v.Size=Vector3.new(10,5,3)
  1167. v.Transparency=1
  1168. v.CFrame=c.CFrame
  1169. v.BrickColor=BrickColor.random()
  1170. v.Transparency=1
  1171. text.TextColor3 = maincolor.Color
  1172. v.Shape="Block"
  1173. text.Text = tostring(Dealt)
  1174. ms=Instance.new("CylinderMesh")
  1175. ms.Scale=Vector3.new(.8,.8,.8)
  1176. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1177. local dam = Instance.new("Sound",c)
  1178. local rndm=math.random(1,#hitsounds)
  1179. local r=rndm
  1180. dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
  1181. dam.Volume = 1.25
  1182. dam.Pitch = 1
  1183. dam:Play()
  1184. if CRIT==true then
  1185. ms.Scale=Vector3.new(1,1.25,1)
  1186. end
  1187. ms.Parent=c
  1188. c.Reflectance=0
  1189. Instance.new("BodyGyro").Parent=c
  1190. c.Parent=m
  1191. if Char:findFirstChild("Head")~=nil then
  1192. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1193. elseif Char.Parent:findFirstChild("Head")~=nil then
  1194. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1195. end
  1196. f=Instance.new("BodyPosition")
  1197. f.P=2000
  1198. f.D=100
  1199. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1200. f.position=c.Position+Vector3.new(0,3,0)
  1201. f.Parent=c
  1202. game:GetService("Debris"):AddItem(m,.5+du)
  1203. c.CanCollide=false
  1204. m.Parent=workspace
  1205. c.CanCollide=false
  1206. end
  1207.  
  1208. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1209. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1210. end
  1211.  
  1212. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1213. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1214. prt.Anchored=true
  1215. prt.CFrame=cframe
  1216. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1217. --http://www.roblox.com/asset/?id=4770560
  1218. game:GetService("Debris"):AddItem(prt,2)
  1219. CF=prt.CFrame
  1220. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1221. for i=0,1,0.2 do
  1222. wait()
  1223. Part.CFrame=CF*cf(0,0,-0.4)
  1224. end
  1225. for i=0,1,delay do
  1226. wait()
  1227. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1228. Mesh.Scale=Mesh.Scale
  1229. end
  1230. for i=0,1,0.1 do
  1231. wait()
  1232. Part.Transparency=i
  1233. end
  1234. Part.Parent=nil
  1235. end),prt,msh,CF)
  1236. end
  1237.  
  1238. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1239. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1240. prt.Anchored=true
  1241. prt.Material = "Neon"
  1242. prt.CFrame=cframe
  1243. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1244. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1245. game:GetService("Debris"):AddItem(prt,5)
  1246. coroutine.resume(coroutine.create(function(Part,Mesh)
  1247. for i=0,1,delay do
  1248. swait()
  1249. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1250. Part.Transparency=i
  1251. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1252. end
  1253. Part.Parent=nil
  1254. end),prt,msh)
  1255. end
  1256.  
  1257. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1258. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1259. prt.Anchored=true
  1260. prt.Material = "Neon"
  1261. prt.CFrame=cframe
  1262. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1263. game:GetService("Debris"):AddItem(prt,5)
  1264. coroutine.resume(coroutine.create(function(Part,Mesh)
  1265. local rtype = rottype
  1266. for i=0,1,delay do
  1267. swait()
  1268. if rtype == 1 then
  1269. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1270. elseif rtype == 2 then
  1271. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1272. end
  1273. Part.Transparency=i
  1274. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1275. end
  1276. Part.Parent=nil
  1277. end),prt,msh)
  1278. end
  1279.  
  1280. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1281. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1282. prt.Anchored=true
  1283. prt.CFrame=cframe
  1284. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1285. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1286. game:GetService("Debris"):AddItem(prt,5)
  1287. coroutine.resume(coroutine.create(function(Part,Mesh)
  1288. for i=0,1,delay do
  1289. wait()
  1290. Part.Transparency=i
  1291. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1292. end
  1293. Part.Parent=nil
  1294. end),prt,msh)
  1295. end
  1296.  
  1297. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1298. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1299. prt.Anchored=false
  1300. prt.CFrame=cframe
  1301. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1302. local wld=weld(prt,prt,Parent,cframe)
  1303. game:GetService("Debris"):AddItem(prt,5)
  1304. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1305. for i=0,1,delay do
  1306. wait()
  1307. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1308. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1309. Part.Transparency=i
  1310. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1311. end
  1312. Part.Parent=nil
  1313. end),prt,msh,wld)
  1314. end
  1315.  
  1316. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1317. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1318. prt.Anchored=false
  1319. prt.CFrame=cframe
  1320. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1321. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1322. game:GetService("Debris"):AddItem(prt,5)
  1323. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1324. for i=0,1,delay do
  1325. wait()
  1326. Weld.C0=euler(i*20,0,0)
  1327. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1328. Part.Transparency=i
  1329. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1330. end
  1331. Part.Parent=nil
  1332. end),prt,msh,wld)
  1333. end
  1334.  
  1335. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1336. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1337. prt.Anchored=true
  1338. prt.CFrame=cframe
  1339. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1340. game:GetService("Debris"):AddItem(prt,2)
  1341. coroutine.resume(coroutine.create(function(Part,Mesh)
  1342. for i=0,1,delay do
  1343. wait()
  1344. Part.CFrame=Part.CFrame
  1345. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1346. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1347. prt2.Anchored=true
  1348. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1349. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1350. game:GetService("Debris"):AddItem(prt2,2)
  1351. coroutine.resume(coroutine.create(function(Part,Mesh)
  1352. for i=0,1,0.1 do
  1353. wait()
  1354. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1355. end
  1356. Part.Parent=nil
  1357. end),prt2,msh2)
  1358. end
  1359. for i=0,1,delay*2 do
  1360. wait()
  1361. Part.CFrame=Part.CFrame
  1362. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1363. end
  1364. Part.Parent=nil
  1365. end),prt,msh)
  1366. end
  1367.  
  1368. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1369. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1370. prt.Anchored=true
  1371. prt.CFrame=cframe
  1372. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1373. game:GetService("Debris"):AddItem(prt,2)
  1374. coroutine.resume(coroutine.create(function(Part,Mesh)
  1375. for i=0,1,delay do
  1376. wait()
  1377. Part.CFrame=Part.CFrame
  1378. Part.Transparency=i
  1379. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1380. end
  1381. Part.Parent=nil
  1382. end),prt,msh)
  1383. end
  1384.  
  1385. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1386. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1387. prt.Anchored=true
  1388. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1389. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1390. game:GetService("Debris"):AddItem(prt,2)
  1391. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1392. CF=Part.CFrame
  1393. Numbb=0
  1394. randnumb=math.random()/10
  1395. rand1=math.random()/10
  1396. for i=0,1,rand1 do
  1397. wait()
  1398. CF=CF*cf(0,math.random()/2,0)
  1399. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1400. Part.CFrame=CF*euler(Numbb,0,0)
  1401. Part.Transparency=i
  1402. Numbb=Numbb+randnumb
  1403. end
  1404. Part.Parent=nil
  1405. end),prt,CF,Numbb,randnumb)
  1406. end
  1407.  
  1408. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1409. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1410. prt.Anchored=true
  1411. prt.CFrame=cframe
  1412. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1413. game:GetService("Debris"):AddItem(prt,5)
  1414. coroutine.resume(coroutine.create(function(Part,Mesh)
  1415. for i=0,1,delay do
  1416. wait()
  1417. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1418. Part.Transparency=i
  1419. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1420. end
  1421. Part.Parent=nil
  1422. end),prt,msh)
  1423. end
  1424.  
  1425. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1426. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1427. prt.Anchored=true
  1428. prt.CFrame=cframe
  1429. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1430. game:GetService("Debris"):AddItem(prt,2)
  1431. coroutine.resume(coroutine.create(function(Part,Mesh)
  1432. for i=0,1,delay do
  1433. wait()
  1434. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1435. Part.Transparency=i
  1436. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1437. end
  1438. Part.Parent=nil
  1439. end),prt,msh)
  1440. end
  1441.  
  1442. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1443. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1444. prt.Anchored=true
  1445. prt.CFrame=cframe*cf(x,y,z)
  1446. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1447. game:GetService("Debris"):AddItem(prt,5)
  1448. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1449. local num=math.random()
  1450. local num2=math.random(-3,2)+math.random()
  1451. local numm=0
  1452. for i=0,1,delay*2 do
  1453. swait()
  1454. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1455. Part.Transparency=i
  1456. numm=numm+0.01
  1457. end
  1458. Part.Parent=nil
  1459. Mesh.Parent=nil
  1460. end),prt,msh,x,y,z)
  1461. end
  1462.  
  1463. function dmgstart(dmg,what)
  1464. hitcon = what.Touched:connect(function(hit)
  1465. local hum = hit.Parent:FindFirstChild("Humanoid")
  1466. if hum and not hum:IsDescendantOf(Character) then
  1467. hum:TakeDamage(dmg)
  1468. end
  1469. end)
  1470. end
  1471.  
  1472. function dmgstop()
  1473. hitcon:disconnect()
  1474. end
  1475.  
  1476. function Cloak()
  1477. Face.Parent=nil
  1478. cloaked=true
  1479. for _,v in pairs(Torso.Parent:children()) do
  1480. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1481. coroutine.resume(coroutine.create(function()
  1482. for i=0,1,0.2 do
  1483. wait()
  1484. v.Transparency=i
  1485. end
  1486. v.Transparency=1
  1487. end))
  1488. end
  1489. if v.className=="Hat" then
  1490. hatp=v.Handle
  1491. coroutine.resume(coroutine.create(function(derp)
  1492. for i=0,1,0.2 do
  1493. wait()
  1494. derp.Transparency=i
  1495. end
  1496. derp.Transparency=1
  1497. end),hatp)
  1498. end
  1499. end
  1500. for _,v in pairs(m:children()) do
  1501. if v.className=="Part" then
  1502. coroutine.resume(coroutine.create(function()
  1503. for i=0,1,0.2 do
  1504. wait()
  1505. v.Transparency=i
  1506. end
  1507. v.Transparency=1
  1508. end))
  1509. end
  1510. end
  1511. end
  1512.  
  1513. function UnCloak()
  1514. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1515. Face.Parent=Head
  1516. cloaked=false
  1517. for _,v in pairs(Torso.Parent:children()) do
  1518. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1519. coroutine.resume(coroutine.create(function()
  1520. for i=0,1,0.1 do
  1521. wait()
  1522. v.Transparency=v.Transparency-0.1
  1523. end
  1524. v.Transparency=0
  1525. end))
  1526. end
  1527. if v.className=="Hat" then
  1528. hatp=v.Handle
  1529. coroutine.resume(coroutine.create(function(derp)
  1530. for i=0,1,0.1 do
  1531. wait()
  1532. derp.Transparency=derp.Transparency-0.1
  1533. end
  1534. derp.Transparency=0
  1535. end),hatp)
  1536. end
  1537. end
  1538. for _,v in pairs(m:children()) do
  1539. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1540. coroutine.resume(coroutine.create(function()
  1541. for i=0,1,0.1 do
  1542. wait()
  1543. v.Transparency=v.Transparency-0.1
  1544. end
  1545. v.Transparency=0
  1546. end))
  1547. v.Transparency=0
  1548. end
  1549. end
  1550. end
  1551.  
  1552. function laser()
  1553. attack = true
  1554. so("rbxassetid://588738544",sorb,1,1)
  1555. for i = 0,2,0.1 do
  1556. swait()
  1557. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  1558. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1559. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1560. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1561. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1562. end
  1563. local a = Instance.new("Part",Character)
  1564. a.BrickColor = maincolor
  1565. a.Name = "Lazer"
  1566. a.Anchored = true
  1567. a.Material = "Neon"
  1568. a.CanCollide = false
  1569. local hitbox = Instance.new("Part",char)
  1570. hitbox.Size = Vector3.new(5,5,5)
  1571. hitbox.CFrame = mouse.hit
  1572. hitbox.Anchored = true
  1573. hitbox.Transparency = 1
  1574. hitbox.CanCollide = false
  1575. local ray = Ray.new(
  1576. sorb.CFrame.p, -- origin
  1577. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1578. )
  1579. local ignore = Character
  1580. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1581. if hit then
  1582. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1583.  
  1584. if not humanoid then
  1585. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1586. end
  1587. if humanoid then
  1588. if humanoid.Parent:IsA"Model" then
  1589. Damagefunc(hit,120,125,math.random(120,220),"Normal",RootPart,.2,1)
  1590. end
  1591. end
  1592. end
  1593. a.BottomSurface = 10
  1594. a.TopSurface = 10
  1595. local distance = (sorb.CFrame.p - position).magnitude
  1596. a.Size = Vector3.new(1, 1, distance)
  1597. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1598. game:GetService("Debris"):AddItem(a, 10)
  1599. game:GetService("Debris"):AddItem(hitbox, 1)
  1600. local newmesh = Instance.new("BlockMesh",a)
  1601. so("rbxassetid://553712898",sorb,1,2)
  1602. so("rbxassetid://553712898",sorb,0.5,1.5)
  1603. so("rbxassetid://588737825",sorb,0.05,1)
  1604. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1605. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1606. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  1607. for i = 0, 19*2 do
  1608. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0)
  1609. a.Transparency = a.Transparency + 0.05/2
  1610. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1611. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1612. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1613. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1614. swait()
  1615. end
  1616. attack = false
  1617. end
  1618.  
  1619. function weaklaser1()
  1620. attack = true
  1621. for i = 0,1,0.1 do
  1622. swait()
  1623. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1624. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  1625. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1626. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1627. end
  1628. local a = Instance.new("Part",Character)
  1629. a.BrickColor = maincolor
  1630. a.Name = "Lazer"
  1631. a.Anchored = true
  1632. a.Material = "Neon"
  1633. a.CanCollide = false
  1634. local hitbox = Instance.new("Part",char)
  1635. hitbox.Size = Vector3.new(5,5,5)
  1636. hitbox.CFrame = mouse.hit
  1637. hitbox.Anchored = true
  1638. hitbox.Transparency = 1
  1639. hitbox.CanCollide = false
  1640. local ray = Ray.new(
  1641. sorb.CFrame.p, -- origin
  1642. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1643. )
  1644. local ignore = Character
  1645. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1646. if hit then
  1647. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1648.  
  1649. if not humanoid then
  1650. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1651. end
  1652. if humanoid then
  1653. if humanoid.Parent:IsA"Model" then
  1654. Damagefunc(hit,54,84,math.random(50,90),"Normal",RootPart,.2,1)
  1655. end
  1656. end
  1657. end
  1658. a.BottomSurface = 10
  1659. a.TopSurface = 10
  1660. local distance = (sorb.CFrame.p - position).magnitude
  1661. a.Size = Vector3.new(0.85, 0.85, distance)
  1662. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1663. game:GetService("Debris"):AddItem(a, 10)
  1664. game:GetService("Debris"):AddItem(hitbox, 1)
  1665. local newmesh = Instance.new("BlockMesh",a)
  1666. so("rbxassetid://553712898",sorb,1,2.5)
  1667. so("rbxassetid://553712898",sorb,1,2)
  1668. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1669. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1670. attack = false
  1671. for i = 0, 19 do
  1672. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  1673. a.Transparency = a.Transparency + 0.05
  1674. swait()
  1675. end
  1676. end
  1677.  
  1678. function weaklaser2()
  1679. attack = true
  1680. for i = 0,1,0.1 do
  1681. swait()
  1682. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1683. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  1684. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  1685. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1686. end
  1687. local a = Instance.new("Part",Character)
  1688. a.BrickColor = maincolor
  1689. a.Name = "Lazer"
  1690. a.Anchored = true
  1691. a.Material = "Neon"
  1692. a.CanCollide = false
  1693. local hitbox = Instance.new("Part",char)
  1694. hitbox.Size = Vector3.new(5,5,5)
  1695. hitbox.CFrame = mouse.hit
  1696. hitbox.Anchored = true
  1697. hitbox.Transparency = 1
  1698. hitbox.CanCollide = false
  1699. local ray = Ray.new(
  1700. sorb2.CFrame.p, -- origin
  1701. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  1702. )
  1703. local ignore = Character
  1704. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1705. if hit then
  1706. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1707.  
  1708. if not humanoid then
  1709. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1710. end
  1711. if humanoid then
  1712. if humanoid.Parent:IsA"Model" then
  1713. Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
  1714. end
  1715. end
  1716. end
  1717. a.BottomSurface = 10
  1718. a.TopSurface = 10
  1719. local distance = (sorb2.CFrame.p - position).magnitude
  1720. a.Size = Vector3.new(0.85, 0.85, distance)
  1721. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1722. game:GetService("Debris"):AddItem(a, 10)
  1723. game:GetService("Debris"):AddItem(hitbox, 1)
  1724. local newmesh = Instance.new("BlockMesh",a)
  1725. so("rbxassetid://553712898",sorb2,1,2.5)
  1726. so("rbxassetid://553712898",sorb2,1,2)
  1727. MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1728. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1729. attack = false
  1730. for i = 0, 19 do
  1731. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  1732. a.Transparency = a.Transparency + 0.05
  1733. swait()
  1734. end
  1735. end
  1736.  
  1737. local smeshmoveenabled = false
  1738.  
  1739. function groundwave()
  1740. attack = true
  1741. smeshmoveenabled = true
  1742. so("rbxassetid://255679384",sorb2,2,0.98)
  1743. for i = 0,10,0.1 do
  1744. swait()
  1745. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1746. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1747. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  1748. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  1749. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1)
  1750. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1)
  1751. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1)
  1752. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  1753. end
  1754. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1)
  1755. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2)
  1756. for i = 0,2,0.1 do
  1757. swait()
  1758. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  1759. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1760. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1761. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  1762. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  1763. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3)
  1764. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3)
  1765. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3)
  1766. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1767. end
  1768. attack = false
  1769. smeshmoveenabled = false
  1770. so("rbxassetid://233091205",sorb2,2.25,0.95)
  1771. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1)
  1772. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2)
  1773. for i = 0, 9 do
  1774. MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065)
  1775. end
  1776. local faceam = 5
  1777. for i = 0, 9 do
  1778. faceam = faceam + 10
  1779. local hitbox = Instance.new("Part",char)
  1780. so("rbxassetid://233091205",hitbox,1,2)
  1781. hitbox.Size = Vector3.new(15,15,15)
  1782. hitbox.Material = "Neon"
  1783. hitbox.BrickColor = maincolor
  1784. hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam
  1785. hitbox.Anchored = true
  1786. hitbox.Transparency = 1
  1787. hitbox.CanCollide = false
  1788. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2))
  1789. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2))
  1790. game:GetService("Debris"):AddItem(hitbox, 1)
  1791. hitbox.Touched:connect(function(hit)
  1792. Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1)
  1793. end)
  1794. wait(0.1)
  1795. end
  1796. end
  1797.  
  1798. function smesh()
  1799. attack = true
  1800. smeshmoveenabled = true
  1801. hum.WalkSpeed = 8
  1802. so("rbxassetid://255679384",sorb2,2,0.98)
  1803. for i = 0,10,0.1 do
  1804. swait()
  1805. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1806. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1807. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  1808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  1809. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1)
  1810. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1)
  1811. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1)
  1812. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  1813. end
  1814. for i = 0,2,0.1 do
  1815. swait()
  1816. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  1817. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1818. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1819. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  1820. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  1821. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  1822. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3)
  1823. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3)
  1824. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3)
  1825. end
  1826. so("rbxassetid://165969964",sorb2,1.5,0.98)
  1827. local hitbox = Instance.new("Part",char)
  1828. hitbox.Size = Vector3.new(20,20,20)
  1829. hitbox.Material = "Neon"
  1830. hitbox.BrickColor = maincolor
  1831. hitbox.CFrame = sorb2.CFrame
  1832. hitbox.Anchored = true
  1833. hitbox.Transparency = 1
  1834. hitbox.CanCollide = false
  1835. game:GetService("Debris"):AddItem(hitbox, 1)
  1836. hitbox.Touched:connect(function(hit)
  1837. Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1)
  1838. end)
  1839. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015)
  1840. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025)
  1841. MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15)
  1842. for i = 0, 9 do
  1843. MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065)
  1844. end
  1845. hum.WalkSpeed = 16
  1846. smeshmoveenabled = false
  1847. attack = false
  1848. end
  1849.  
  1850. local begonemoveenabled = false
  1851.  
  1852. function BEGONETHOT()
  1853. smeshmoveenabled = true
  1854. begonemoveenabled = true
  1855. hum.WalkSpeed = 8
  1856. so("rbxassetid://854345294",sorb2,2.5,1)
  1857. wait(2)
  1858. attack = true
  1859. for i = 0,8,0.1 do
  1860. swait()
  1861. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1862. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1863. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1)
  1864. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1)
  1865. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  1866. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  1867. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1)
  1868. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1)
  1869. end
  1870. for i = 0,2,0.1 do
  1871. swait()
  1872. MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1)
  1873. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1874. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1875. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  1876. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3)
  1877. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1878. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1879. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3)
  1880. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3)
  1881. end
  1882. so("rbxassetid://165969964",sorb2,3.5,0.98)
  1883. local hitbox = Instance.new("Part",char)
  1884. hitbox.Size = Vector3.new(75,75,75)
  1885. hitbox.Material = "Neon"
  1886. hitbox.BrickColor = maincolor
  1887. hitbox.CFrame = sorb2.CFrame
  1888. hitbox.Anchored = true
  1889. hitbox.Transparency = 1
  1890. hitbox.CanCollide = false
  1891. game:GetService("Debris"):AddItem(hitbox, 1)
  1892. hitbox.Touched:connect(function(hit)
  1893. Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1)
  1894. end)
  1895. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015)
  1896. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025)
  1897. MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15)
  1898. for i = 0, 9 do
  1899. MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065)
  1900. end
  1901. hum.WalkSpeed = 16
  1902. begonemoveenabled = false
  1903. smeshmoveenabled = false
  1904. attack = false
  1905. end
  1906.  
  1907. function doomsdaylaser()
  1908. attack = true
  1909. for i = 0,1,0.1 do
  1910. swait()
  1911. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  1912. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1913. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  1914. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1915. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1916. end
  1917. local a = Instance.new("Part",Character)
  1918. a.BrickColor = maincolor
  1919. a.Name = "Lazer"
  1920. a.Anchored = true
  1921. a.Transparency = 1
  1922. a.Material = "Neon"
  1923. a.CanCollide = false
  1924. local hitbox = Instance.new("Part",char)
  1925. hitbox.Size = Vector3.new(10,10,10)
  1926. hitbox.Material = "Neon"
  1927. hitbox.BrickColor = maincolor
  1928. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1929. hitbox.Anchored = true
  1930. hitbox.Transparency = 1
  1931. hitbox.CanCollide = false
  1932. local hmesh = CreateMesh(hitbox,"Sphere",1,1,1)
  1933. so("rbxassetid://136007472",sorb,1,0.7)
  1934. for i = 0, 19 do
  1935. swait()
  1936. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1937. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1938. MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15)
  1939. hitbox.Transparency = hitbox.Transparency - 0.05
  1940. end
  1941. for i = 0, 49 do
  1942. swait()
  1943. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1944. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1945. end
  1946. a.Transparency = 0
  1947. local ray = Ray.new(
  1948. hitbox.CFrame.p, -- origin
  1949. (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction
  1950. )
  1951. local ignore = Character
  1952. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1953. if hit then
  1954. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1955.  
  1956. if not humanoid then
  1957. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1958. end
  1959. if humanoid then
  1960. if humanoid.Parent:IsA"Model" then
  1961. Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1)
  1962. end
  1963. end
  1964. end
  1965. a.BottomSurface = 10
  1966. a.TopSurface = 10
  1967. local distance = (sorb.CFrame.p - position).magnitude
  1968. a.Size = Vector3.new(1, 1, distance)
  1969. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1970. game:GetService("Debris"):AddItem(a, 15)
  1971. game:GetService("Debris"):AddItem(hitbox, 15)
  1972. local newmesh = Instance.new("BlockMesh",a)
  1973. so("rbxassetid://553712898",sorb,3.5,1)
  1974. so("rbxassetid://553712898",sorb,0.5,0.5)
  1975. so("rbxassetid://588737825",sorb,2.75,1)
  1976. MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15)
  1977. MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05)
  1978. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  1979. local beamscale = 1.5
  1980. local sizemax = 1*10
  1981. for i = 0, 99 do
  1982. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1983. sizemax = sizemax - 0.01*10
  1984. beamscale = beamscale - 0.01
  1985. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1986. so("rbxassetid://553712898",sorb,0.5,2.5)
  1987. ray = Ray.new(
  1988. hitbox.CFrame.p, -- origin
  1989. (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction
  1990. )
  1991. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1992. distance = (hitbox.CFrame.p - position).magnitude
  1993. if hit then
  1994. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1995.  
  1996. if not humanoid then
  1997. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1998. end
  1999. if humanoid then
  2000. if humanoid.Parent:IsA"Model" then
  2001. Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1)
  2002. end
  2003. end
  2004. end
  2005. a.Size = Vector3.new(5, 5, distance)
  2006. hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01)
  2007. a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2008. newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0)
  2009. MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05)
  2010. swait()
  2011. end
  2012. attack = false
  2013. end
  2014. local attacktype = 0
  2015. mouse.Button1Down:connect(function()
  2016. if attack == false and attacktype == 0 and begonemoveenabled == false then
  2017. attacktype = 1
  2018. weaklaser1()
  2019. elseif attack == false and attacktype == 1 and begonemoveenabled == false then
  2020. attacktype = 0
  2021. weaklaser2()
  2022. end
  2023. end)
  2024.  
  2025. mouse.KeyDown:connect(function(k)
  2026. if k == "z" and attack == false and begonemoveenabled == false then
  2027. laser()
  2028. end
  2029. if k == "x" and attack == false and begonemoveenabled == false then
  2030. groundwave()
  2031. end
  2032. if k == "c" and attack == false and begonemoveenabled == false then
  2033. smesh()
  2034. end
  2035. if k == "v" and attack == false and begonemoveenabled == false then
  2036. doomsdaylaser()
  2037. end
  2038. if k == "p" and attack == false and begonemoveenabled == false then
  2039. BEGONETHOT()
  2040. end
  2041. end)
  2042.  
  2043. Humanoid.Animator.Parent = nil
  2044.  
  2045. attack = true
  2046. hum.WalkSpeed = 0
  2047. hum.MaxHealth = math.huge
  2048. hum.Health = math.huge
  2049. for i = 0,10,0.05 do
  2050. swait()
  2051. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2052. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2053. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025)
  2054. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025)
  2055. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025)
  2056. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025)
  2057. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025)
  2058. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025)
  2059. end
  2060. MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025)
  2061. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015)
  2062. MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05)
  2063. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076)
  2064. so("rbxassetid://588737825",t,0.5,1)
  2065. so("rbxassetid://588737825",t,0.5,1)
  2066. so("rbxassetid://588698460",t,1,0.5)
  2067. so("rbxassetid://440794203",t,1,1)
  2068. so("rbxassetid://553712898",t,1,0.85)
  2069. so("rbxassetid://553712898",t,1.5,0.5)
  2070. so("rbxassetid://553712898",t,1.5,0.25)
  2071. so("rbxassetid://553712898",t,1.5,0.15)
  2072. for i = 0,10,0.05 do
  2073. swait()
  2074. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2075. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2076. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125)
  2077. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025)
  2078. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125)
  2079. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125)
  2080. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125)
  2081. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125)
  2082. end
  2083. attack = false
  2084. hum.WalkSpeed = 16
  2085. hum.MaxHealth = 250
  2086. hum.Health = 250
  2087.  
  2088. idleanim=.4
  2089. while true do
  2090. swait()
  2091. sine = sine + change
  2092. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2093. local velderp=RootPart.Velocity.y
  2094. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2095. if equipped==true or equipped==false then
  2096. if attack==false then
  2097. idle=idle+1
  2098. else
  2099. idle=0
  2100. end
  2101. if idle>=500 then
  2102. if attack==false then
  2103. --Sheath()
  2104. end
  2105. end
  2106. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2107. Anim="Jump"
  2108. if attack==false then
  2109. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2110. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2111. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2113. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2114. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2115. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2116. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2117. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2118. end
  2119. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2120. Anim="Fall"
  2121. if attack==false then
  2122. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2123. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2126. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2128. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2129. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2130. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2131. end
  2132. elseif torvel<1 and hitfloor~=nil then
  2133. Anim="Idle"
  2134. if smeshmoveenabled == false then
  2135. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  2136. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  2137. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2138. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2139. end
  2140. if attack==false then
  2141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3)
  2142. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3)
  2143. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  2144. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  2145. end
  2146. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2147. Anim="Walk"
  2148. if smeshmoveenabled == false then
  2149. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  2150. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  2151. MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  2152. MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  2153. MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  2154. MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  2155. end
  2156. if attack==false then
  2157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  2158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  2160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  2161. end
  2162. elseif torvel>=22 and hitfloor~=nil then
  2163. Anim="Run"
  2164. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2165. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2166. if attack==false then
  2167. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2169. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2170. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2171. end
  2172. end
  2173. end
  2174. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement