Advertisement
Dark_EccentricYT

Untitled

May 11th, 2017
987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.07 KB | None | 0 0
  1. --[[Winter Gloves created by Brannon1964802.]]--
  2.  
  3. Player=game:GetService("Players").LocalPlayer
  4. Character=Player.Character
  5. PlayerGui=Player.PlayerGui
  6. Backpack=Player.Backpack
  7. Torso=Character.Torso
  8. Head=Character.Head
  9. Humanoid=Character.Humanoid
  10. --m=Instance.new('Model',Character)
  11. LeftArm=Character["Left Arm"]
  12. LeftLeg=Character["Left Leg"]
  13. RightArm=Character["Right Arm"]
  14. RightLeg=Character["Right Leg"]
  15. LS=Torso["Left Shoulder"]
  16. LH=Torso["Left Hip"]
  17. RS=Torso["Right Shoulder"]
  18. RH=Torso["Right Hip"]
  19. Face = Head.face
  20. Neck=Torso.Neck
  21. it=Instance.new
  22. attacktype=1
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. cloaked=false
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  31. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  32. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RootPart=Character.HumanoidRootPart
  35. RootJoint=RootPart.RootJoint
  36. RootCF=euler(-1.57,0,3.14)
  37. attack = false
  38. attackdebounce = false
  39. deb=false
  40. equipped=false
  41. hand=false
  42. MMouse=nil
  43. combo=0
  44. mana=0
  45. trispeed=.2
  46. attackmode='none'
  47. local idle=0
  48. local Anim="Idle"
  49. local gun=false
  50. local shoot=false
  51. player=nil
  52. mana=0
  53.  
  54. local Player = game.Players.localPlayer
  55. local Character = Player.Character
  56. local Humanoid = Character.Humanoid
  57. local mouse = Player:GetMouse()
  58. --local m = Instance.new('Model', Character)
  59. local LeftArm = Character["Left Arm"]
  60. local RightArm = Character["Right Arm"]
  61. local LeftLeg = Character["Left Leg"]
  62. local RightLeg = Character["Right Leg"]
  63. local Head = Character.Head
  64. local Torso = Character.Torso
  65. local cam = game.Workspace.CurrentCamera
  66. local RootPart = Character.HumanoidRootPart
  67. --cam.CameraSubject = Head
  68. --Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  69. local equipped = false
  70. local attack = false
  71. local Anim = 'Idle'
  72. local idle = 0
  73. local sprint = false
  74. local battlestance = false
  75. local attacktype = 1
  76. local state = 'none'
  77. local torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  78. local velocity = RootPart.Velocity.y
  79. local sine = 0
  80. local change = 1
  81. local on = false
  82. local grabbed = false
  83. local skill1 = false
  84. local skill2 = false
  85. local skill3 = false
  86. local skill4 = false
  87. local cooldown1 = 0
  88. local cooldown2 = 0
  89. local cooldown3 = 0
  90. local cooldown4 = 0
  91. local co1 = 0--how long it will take for skill to cooldown
  92. local co2 = 0
  93. local co3 = 0
  94. local co4 = 0
  95. local inputserv = game:GetService('UserInputService')
  96. local typing = false
  97. local crit = false
  98. local critchance = 2--critical chance percentage
  99. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  100. local critdamageaddmax = 7--maximum amount
  101. local maxstamina = 100--max amount of stamina
  102. local stamina = 0--stamina you start out with
  103. local skill1stam = 0--how much stamina is needed for a skill
  104. local skill2stam = 0
  105. local skill3stam = 0
  106. local skill4stam = 0
  107. local recovermana = 3--how much mana per second
  108. local mindamage = 5--self explanatory
  109. local maxdamage = 10--self explanatory
  110. local cf = CFrame.new-- make things easier :)
  111. local mr = math.rad
  112. local angles = CFrame.Angles
  113. local ud = UDim2.new
  114. local c3 = Color3.new
  115. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  116.  
  117. local defensevalue = 1
  118. local speedvalue = 1
  119. local damagevalue = 1
  120. local cf = CFrame.new-- make things easier :)
  121. local mr = math.rad
  122. local angles = CFrame.Angles
  123. local ud = UDim2.new
  124. local c3 = Color3.new
  125. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  126.  
  127. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  128. function makeframe(par, trans, pos, size, color)
  129. local frame = Instance.new('Frame', par)
  130. frame.BackgroundTransparency = trans
  131. frame.BorderSizePixel = 0
  132. frame.Position = pos
  133. frame.Size = size
  134. frame.BackgroundColor3 = color
  135. return frame
  136. end
  137. function makelabel(par, text)
  138. local label = Instance.new('TextLabel', par)
  139. label.BackgroundTransparency = 1
  140. label.Size = ud(1, 0, 1, 0)
  141. label.Position = ud(0, 0, 0, 0)
  142. label.TextColor3 = c3(255, 255, 255)
  143. label.TextStrokeTransparency = 0
  144. label.FontSize = Enum.FontSize.Size32
  145. label.Font = Enum.Font.SourceSansBold
  146. label.BorderSizePixel = 0
  147. label.TextScaled = true
  148. label.Text = text
  149. end
  150.  
  151. local stats=Instance.new('Folder',Character)
  152. stats.Name='Stats'
  153. local block=Instance.new('BoolValue',stats)
  154. block.Name='Block'
  155. block.Value=false
  156. local stun=Instance.new('BoolValue',stats)
  157. stun.Name='Stun'
  158. stun.Value=false
  159. local defense=Instance.new('NumberValue',stats)
  160. defense.Name='Defence'
  161. defense.Value=defensevalue
  162. local speed=Instance.new('NumberValue',stats)
  163. speed.Name='Speed'
  164. speed.Value=speedvalue
  165. local damagea=Instance.new('NumberValue',stats)
  166. damagea.Name='Damage'
  167. damagea.Value=damagevalue
  168.  
  169. framesk1 = makeframe(scrn, 0.5, ud(.13, 0, .56, 0), ud(.08, 0, .06, 0), c3(1,1,0.5))
  170. bar1 = makeframe(framesk1, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1,1,0.5))
  171. ammolabel = Instance.new("TextLabel",framesk1)
  172. ammolabel.BackgroundTransparency = 1
  173. ammolabel.Size = ud(1, 0, 1, 0)
  174. ammolabel.Position = ud(0, 0, 0, 0)
  175. ammolabel.TextColor3 = c3(255, 255, 255)
  176. ammolabel.TextStrokeTransparency = 0
  177. ammolabel.FontSize = Enum.FontSize.Size8
  178. ammolabel.Font = Enum.Font.SourceSans
  179. ammolabel.BorderSizePixel = 0
  180. ammolabel.TextScaled = true
  181. ammolabel.Text ='Speed ['..speed.Value..']'
  182. framesk2 = makeframe(scrn, 0.5, ud(.13, 0, .63, 0), ud(.08, 0, .06, 0), c3(1,0.5,1))
  183. bar2 = makeframe(framesk2, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.5,0.25,0.25))
  184. ammolabel2 = Instance.new("TextLabel",framesk2)
  185. ammolabel2.BackgroundTransparency = 1
  186. ammolabel2.Size = ud(1, 0, 1, 0)
  187. ammolabel2.Position = ud(0, 0, 0, 0)
  188. ammolabel2.TextColor3 = c3(255, 255, 255)
  189. ammolabel2.TextStrokeTransparency = 0
  190. ammolabel2.FontSize = Enum.FontSize.Size8
  191. ammolabel2.Font = Enum.Font.SourceSans
  192. ammolabel2.BorderSizePixel = 0
  193. ammolabel2.TextScaled = true
  194. ammolabel2.Text ='Damage ['..damagea.Value..']'
  195. framesk3 = makeframe(scrn, 0.5, ud(.13, 0, .70, 0), ud(.08, 0, .06, 0), c3(1,0.5,1))
  196. bar3 = makeframe(framesk3, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.25,0.25,0.5))
  197. ammolabel3 = Instance.new("TextLabel",framesk3)
  198. ammolabel3.BackgroundTransparency = 1
  199. ammolabel3.Size = ud(1, 0, 1, 0)
  200. ammolabel3.Position = ud(0, 0, 0, 0)
  201. ammolabel3.TextColor3 = c3(255, 255, 255)
  202. ammolabel3.TextStrokeTransparency = 0
  203. ammolabel3.FontSize = Enum.FontSize.Size8
  204. ammolabel3.Font = Enum.Font.SourceSans
  205. ammolabel3.BorderSizePixel = 0
  206. ammolabel3.TextScaled = true
  207. ammolabel3.Text ='Defense ['..defense.Value..']'
  208. framesk4 = makeframe(scrn, 0.5, ud(.13, 0, .42, 0), ud(.08, 0, .06, 0), c3(1,1,1))
  209. bar4 = makeframe(framesk4, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1,1,1))
  210. ammolabel4 = Instance.new("TextLabel",framesk4)
  211. ammolabel4.BackgroundTransparency = 1
  212. ammolabel4.Size = ud(1, 0, 1, 0)
  213. ammolabel4.Position = ud(0, 0, 0, 0)
  214. ammolabel4.TextColor3 = c3(255, 255, 255)
  215. ammolabel4.TextStrokeTransparency = 0
  216. ammolabel4.FontSize = Enum.FontSize.Size8
  217. ammolabel4.Font = Enum.Font.SourceSans
  218. ammolabel4.BorderSizePixel = 0
  219. ammolabel4.TextScaled = true
  220. ammolabel4.Text ='Press F to equip your weapon.'
  221. framesk5 = makeframe(scrn, 0.5, ud(.13, 0, .49, 0), ud(.08, 0, .06, 0), c3(1,1,1))
  222. bar5 = makeframe(framesk5, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1,1,1))
  223. ammolabel4 = Instance.new("TextLabel",framesk5)
  224. ammolabel4.BackgroundTransparency = 1
  225. ammolabel4.Size = ud(1, 0, 1, 0)
  226. ammolabel4.Position = ud(0, 0, 0, 0)
  227. ammolabel4.TextColor3 = c3(255, 255, 255)
  228. ammolabel4.TextStrokeTransparency = 0
  229. ammolabel4.FontSize = Enum.FontSize.Size8
  230. ammolabel4.Font = Enum.Font.SourceSans
  231. ammolabel4.BorderSizePixel = 0
  232. ammolabel4.TextScaled = true
  233. ammolabel4.Text ='The keys for the abilities are: E, Z, X, C, and V.'
  234.  
  235. animate = Character:findFirstChild("Animate")
  236. animate.Disabled = false
  237.  
  238. CustomColor = BrickColor.new("Institutional white")
  239.  
  240. Colorpart1 = Torso.BrickColor.r
  241. Colorpart2 = Torso.BrickColor.g
  242. Colorpart3 = Torso.BrickColor.b
  243.  
  244. local TorsoLight=Instance.new("PointLight",Torso)
  245. TorsoLight.Brightness=5
  246. TorsoLight.Range=7.5
  247. TorsoLight.Color=Color3.new(Colorpart1,Colorpart2,Colorpart3)
  248.  
  249. mouse=Player:GetMouse()
  250. --save shoulders
  251. --RSH, LSH=nil, nil
  252. --welds
  253. --RW, LW=Instance.new("Weld"), Instance.new("Weld")
  254. --RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  255. RW=Torso["Right Shoulder"]
  256. LW=Torso["Left Shoulder"]
  257. LH=Torso["Left Hip"]
  258. RH=Torso["Right Hip"]
  259. TorsoColor=Torso.BrickColor
  260. function NoOutline(Part)
  261. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  262. end
  263. --[[player=Player
  264. ch=Character
  265. RSH=ch.Torso["Right Shoulder"]
  266. LSH=ch.Torso["Left Shoulder"]
  267. --
  268. RSH.Parent=player.Character.Torso
  269. LSH.Parent=player.Character.Torso
  270. --
  271. RW.Name="Right Shoulder"
  272. RW.Part0=ch.Torso
  273. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  274. RW.C1=cf(0, 0.5, 0)
  275. RW.Part1=ch["Right Arm"]
  276. RW.Parent=nil
  277. --
  278. LW.Name="Left Shoulder"
  279. LW.Part0=ch.Torso
  280. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  281. LW.C1=cf(0, 0.5, 0)
  282. LW.Part1=ch["Left Arm"]
  283. LW.Parent=nil]]--
  284.  
  285. local function weldBetween(a, b)
  286. local weldd = Instance.new("ManualWeld")
  287. weldd.Part0 = a
  288. weldd.Part1 = b
  289. weldd.C0 = CFrame.new()
  290. weldd.C1 = b.CFrame:inverse() * a.CFrame
  291. weldd.Parent = a
  292. return weldd
  293. end
  294.  
  295. function swait(num)
  296. if num==0 or num==nil then
  297. game:service'RunService'.Stepped:wait(0)
  298. else
  299. for i=0,num do
  300. game:service'RunService'.Stepped:wait(0)
  301. end
  302. end
  303. end
  304.  
  305. fat = Instance.new("BindableEvent",script)
  306. fat.Name = "Heartbeat"
  307.  
  308. script:WaitForChild("Heartbeat")
  309.  
  310. frame = 1/30
  311. tf = 0
  312. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  313. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  314. lastframe = tick()
  315. script.Heartbeat:Fire() --ayy lmao
  316.  
  317. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  318. tf = tf + s
  319. if tf >= frame then
  320. if allowframeloss then
  321. script.Heartbeat:Fire()
  322. lastframe=tick()
  323. else
  324. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  325. for i=1, math.floor(tf/frame) do
  326. script.Heartbeat:Fire()
  327. end
  328. lastframe=tick()
  329. end
  330. if tossremainder then
  331. tf = 0
  332. else
  333. tf = tf - frame * math.floor(tf/frame)
  334. end
  335. end
  336. end)
  337. --To use: fat.Event:wait() or fat.Event:connect(function() asdcode end)
  338.  
  339. function nooutline(part)
  340. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  341. end
  342.  
  343. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  344. local fp=it("Part")
  345. fp.formFactor=formfactor
  346. fp.Parent=parent
  347. fp.Reflectance=reflectance
  348. fp.Transparency=transparency
  349. fp.CanCollide=false
  350. fp.Locked=true
  351. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  352. fp.Name=name
  353. fp.Size=size
  354. fp.Position=Character.Torso.Position
  355. nooutline(fp)
  356. fp.Material=material
  357. fp:BreakJoints()
  358. return fp
  359. end
  360.  
  361. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  362. local mesh=it(Mesh)
  363. mesh.Parent=part
  364. if Mesh=="SpecialMesh" then
  365. mesh.MeshType=meshtype
  366. mesh.MeshId=meshid
  367. end
  368. mesh.Offset=offset
  369. mesh.Scale=scale
  370. return mesh
  371. end
  372.  
  373. function weld(parent,part0,part1,c0,c1)
  374. local weld=it("Weld")
  375. weld.Parent=parent
  376. weld.Part0=part0
  377. weld.Part1=part1
  378. weld.C0=c0
  379. weld.C1=c1
  380. return weld
  381. end
  382.  
  383. m=Instance.new("Model",Character)
  384. m.Name="Gloves"
  385.  
  386. Handle1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Pastel light blue","Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  387. Handle1weld=weld(m,Character["Right Arm"],Handle1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-005, 2.28881836e-005, -0.700001955, 1, 0, 0, 0, 1.94707155e-007, 1, 0, -0.999999881, 1.94707184e-007))
  388. mesh("SpecialMesh",Handle1,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12221505",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.524999976, 0.779999971))
  389. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  390. Partweld=weld(m,Handle1,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.350000143, 0, 1, 0, 0, 0, 1.94707184e-007, -1, 0, 1, 1.94707184e-007))
  391. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12221505",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.0599999987, 1.10000002))
  392. Snowflake=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Snowflake",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  393. Snowflakeweld=weld(m,Handle1,Snowflake,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.53000021, 0, -4.37113883e-008, -1.94707184e-007, 1, 1, -8.51092099e-015, 4.37113883e-008, 0, 1, 1.94707184e-007))
  394. mesh("SpecialMesh",Snowflake,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=19251107",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  395. --Hitbox1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox1",Vector3.new(1.20000005, 1, 1.20000005))
  396. --Hitbox1weld=weld(m,Handle1,Hitbox1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1.94707184e-007, -1, 0, 1, 1.94707184e-007))
  397. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Pastel light blue","Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  398. Handle2weld=weld(m,Character["Left Arm"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 2.28881836e-005, -0.700001955, 1, 0, 0, 0, 1.94707155e-007, 1, 0, -0.999999881, 1.94707184e-007))
  399. mesh("SpecialMesh",Handle2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12221505",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.524999976, 0.779999971))
  400. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  401. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.350000143, 0, 1, 0, 0, 0, 1.94707184e-007, -1, 0, 1, 1.94707184e-007))
  402. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12221505",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.0599999987, 1.10000002))
  403. Snowflake=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Snowflake",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  404. Snowflakeweld=weld(m,Handle2,Snowflake,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.38418579e-007, -0.529999733, 0, -4.37113883e-008, 1.94707184e-007, -1, -1, -8.51092099e-015, 4.37113883e-008, 0, 1, 1.94707184e-007))
  405. mesh("SpecialMesh",Snowflake,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=19251107",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  406. --Hitbox2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox2",Vector3.new(1.20000005, 1, 1.20000005))
  407. --Hitbox2weld=weld(m,Handle2,Hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1.94707184e-007, -1, 0, 1, 1.94707184e-007))
  408.  
  409. if (script.Parent.className~="HopperBin") then
  410. Tool=Instance.new("HopperBin")
  411. Tool.Parent=Backpack
  412. Tool.Name="Winter Gloves"
  413. script.Parent=Tool
  414. end
  415. Bin=script.Parent
  416.  
  417. for i,v in pairs(Character:GetChildren()) do
  418. if v:IsA'Model' then
  419. for _,c in pairs(v:GetChildren()) do
  420. if c:IsA'Part' then
  421. c.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  422. end
  423. end
  424. end
  425. end
  426.  
  427. so = function(id,par,vol,pit)
  428. coroutine.resume(coroutine.create(function()
  429. local sou = Instance.new("Sound",par or workspace)
  430. sou.Volume=vol
  431. sou.Pitch=pit or 1
  432. sou.SoundId=id
  433. swait()
  434. sou:play()
  435. game:GetService("Debris"):AddItem(sou,6)
  436. end))
  437. end
  438.  
  439. local function CFrameFromTopBack(at, top, back)
  440. local right = top:Cross(back)
  441. return CFrame.new(at.x, at.y, at.z,
  442. right.x, top.x, back.x,
  443. right.y, top.y, back.y,
  444. right.z, top.z, back.z)
  445. end
  446.  
  447. function Triangle(a, b, c)
  448. local edg1 = (c-a):Dot((b-a).unit)
  449. local edg2 = (a-b):Dot((c-b).unit)
  450. local edg3 = (b-c):Dot((a-c).unit)
  451. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  452. a, b, c = a, b, c
  453. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  454. a, b, c = b, c, a
  455. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  456. a, b, c = c, a, b
  457. else
  458. assert(false, "unreachable")
  459. end
  460.  
  461. local len1 = (c-a):Dot((b-a).unit)
  462. local len2 = (b-a).magnitude - len1
  463. local width = (a + (b-a).unit*len1 - c).magnitude
  464.  
  465. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  466.  
  467. local list = {}
  468.  
  469. local TrailColor = ("Dark grey")
  470.  
  471. if len1 > 0.01 then
  472. local w1 = Instance.new('WedgePart', m)
  473. game:GetService("Debris"):AddItem(w1,5)
  474. w1.Material = "SmoothPlastic"
  475. w1.FormFactor = 'Custom'
  476. w1.BrickColor = BrickColor.new(TrailColor)
  477. w1.Transparency = 0
  478. w1.Reflectance = 0
  479. w1.Material = "SmoothPlastic"
  480. w1.CanCollide = false
  481. NoOutline(w1)
  482. local sz = Vector3.new(0.2, width, len1)
  483. w1.Size = sz
  484. local sp = Instance.new("SpecialMesh",w1)
  485. sp.MeshType = "Wedge"
  486. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  487. w1:BreakJoints()
  488. w1.Anchored = true
  489. w1.Parent = workspace
  490. w1.Transparency = 0.7
  491. table.insert(Effects,{w1,"Disappear",.01})
  492. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  493. table.insert(list,w1)
  494. end
  495.  
  496. if len2 > 0.01 then
  497. local w2 = Instance.new('WedgePart', m)
  498. game:GetService("Debris"):AddItem(w2,5)
  499. w2.Material = "SmoothPlastic"
  500. w2.FormFactor = 'Custom'
  501. w2.BrickColor = BrickColor.new(TrailColor)
  502. w2.Transparency = 0
  503. w2.Reflectance = 0
  504. w2.Material = "SmoothPlastic"
  505. w2.CanCollide = false
  506. NoOutline(w2)
  507. local sz = Vector3.new(0.2, width, len2)
  508. w2.Size = sz
  509. local sp = Instance.new("SpecialMesh",w2)
  510. sp.MeshType = "Wedge"
  511. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  512. w2:BreakJoints()
  513. w2.Anchored = true
  514. w2.Parent = workspace
  515. w2.Transparency = 0.7
  516. table.insert(Effects,{w2,"Disappear",.01})
  517. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  518. table.insert(list,w2)
  519. end
  520. return unpack(list)
  521. end
  522.  
  523. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  524. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  525. end
  526.  
  527. function clerp(a,b,t)
  528. local qa = {QuaternionFromCFrame(a)}
  529. local qb = {QuaternionFromCFrame(b)}
  530. local ax, ay, az = a.x, a.y, a.z
  531. local bx, by, bz = b.x, b.y, b.z
  532. local _t = 1-t
  533. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  534. end
  535.  
  536. function QuaternionFromCFrame(cf)
  537. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  538. local trace = m00 + m11 + m22
  539. if trace > 0 then
  540. local s = math.sqrt(1 + trace)
  541. local recip = 0.5/s
  542. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  543. else
  544. local i = 0
  545. if m11 > m00 then
  546. i = 1
  547. end
  548. if m22 > (i == 0 and m00 or m11) then
  549. i = 2
  550. end
  551. if i == 0 then
  552. local s = math.sqrt(m00-m11-m22+1)
  553. local recip = 0.5/s
  554. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  555. elseif i == 1 then
  556. local s = math.sqrt(m11-m22-m00+1)
  557. local recip = 0.5/s
  558. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  559. elseif i == 2 then
  560. local s = math.sqrt(m22-m00-m11+1)
  561. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  562. end
  563. end
  564. end
  565.  
  566. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  567. local xs, ys, zs = x + x, y + y, z + z
  568. local wx, wy, wz = w*xs, w*ys, w*zs
  569. local xx = x*xs
  570. local xy = x*ys
  571. local xz = x*zs
  572. local yy = y*ys
  573. local yz = y*zs
  574. local zz = z*zs
  575. 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))
  576. end
  577.  
  578. function QuaternionSlerp(a, b, t)
  579. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  580. local startInterp, finishInterp;
  581. if cosTheta >= 0.0001 then
  582. if (1 - cosTheta) > 0.0001 then
  583. local theta = math.acos(cosTheta)
  584. local invSinTheta = 1/math.sin(theta)
  585. startInterp = math.sin((1-t)*theta)*invSinTheta
  586. finishInterp = math.sin(t*theta)*invSinTheta
  587. else
  588. startInterp = 1-t
  589. finishInterp = t
  590. end
  591. else
  592. if (1+cosTheta) > 0.0001 then
  593. local theta = math.acos(-cosTheta)
  594. local invSinTheta = 1/math.sin(theta)
  595. startInterp = math.sin((t-1)*theta)*invSinTheta
  596. finishInterp = math.sin(t*theta)*invSinTheta
  597. else
  598. startInterp = t-1
  599. finishInterp = t
  600. end
  601. end
  602. 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
  603. end
  604.  
  605. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  606. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  607. end
  608.  
  609. function makegui(cframe, text)
  610. local a = math.random(-10, 10) / 100
  611. local c = Instance.new("Part")
  612. c.Transparency = 1
  613. Instance.new("BodyGyro").Parent = c
  614. c.Parent = workspace
  615. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  616. local f = Instance.new("BodyPosition")
  617. f.P = 2000
  618. f.D = 100
  619. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  620. f.position = c.Position + Vector3.new(0, 3, 0)
  621. f.Parent = c
  622. game:GetService("Debris"):AddItem(c, .5 + 6)
  623. c.CanCollide = false
  624. c.Parent = workspace
  625. c.CanCollide = false
  626. local bg = Instance.new('BillboardGui', c)
  627. bg.Adornee = c
  628. bg.Size = UDim2.new(1, 0, 1, 0)
  629. bg.StudsOffset = Vector3.new(0, 0, 0)
  630. bg.AlwaysOnTop = false
  631. local tl = Instance.new('TextLabel', bg)
  632. tl.BackgroundTransparency = 1
  633. tl.Size = UDim2.new(1, 0, 1, 0)
  634. tl.Text = text
  635. tl.Font = 'SourceSansBold'
  636. tl.FontSize = 'Size42'
  637. if crit == true then
  638. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  639. else
  640. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  641. end
  642. tl.TextStrokeTransparency = 0
  643. tl.TextScaled = true
  644. tl.TextWrapped = true
  645. coroutine.wrap(function()
  646. wait(2)
  647. for i = 1, 10 do
  648. swait()
  649. c.Transparency = 1
  650. tl.TextTransparency = tl.TextTransparency + .1
  651. end
  652. end)()
  653. end
  654.  
  655. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  656. if hit.Parent==nil then
  657. return
  658. end
  659. h=hit.Parent:FindFirstChild("Humanoid")
  660. for _,v in pairs(hit.Parent:children()) do
  661. if v:IsA("Humanoid") then
  662. h=v
  663. end
  664. end
  665. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  666. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  667. end
  668. if hit.Parent.className=="Hat" then
  669. hit=hit.Parent.Parent:findFirstChild("Head")
  670. end
  671. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  672. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  673. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  674. return
  675. end]]
  676. -- hs(hit,1.2)
  677. --[[ c=Instance.new("ObjectValue")
  678. c.Name="creator"
  679. c.Value=game:service("Players").LocalPlayer
  680. c.Parent=h
  681. game:GetService("Debris"):AddItem(c,.5)]]--
  682. --Damage=math.random(minim,maxim)*damagea.Value/defense.Value
  683. -- h:TakeDamage(Damage)
  684. local blocked=false
  685. block=hit.Parent:findFirstChild("Block")
  686. if block~=nil then
  687. print(block.className)
  688. if block.className=="NumberValue" then
  689. if block.Value>0 then
  690. blocked=true
  691. if decreaseblock==nil then
  692. block.Value=block.Value-1
  693. end
  694. end
  695. end
  696. if block.className=="IntValue" then
  697. if block.Value>0 then
  698. blocked=true
  699. if decreaseblock~=nil then
  700. block.Value=block.Value-1
  701. end
  702. end
  703. end
  704. end
  705. if blocked==false then
  706. -- h:TakeDamage(Damage)
  707. local D = math.random(minim, maxim)*damagea.Value
  708. if h.Parent:FindFirstChild('Stats') then
  709. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  710. elseif not h.Parent:FindFirstChild('Stats') then
  711. D=D
  712. end
  713. h.Health=h.Health-D
  714. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  715. --showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  716. else
  717. local D = math.random(minim, maxim)*damagea.Value
  718. if h.Parent:FindFirstChild('Stats') then
  719. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  720. elseif not h.Parent:FindFirstChild('Stats') then
  721. D=D
  722. end
  723. h.Health=h.Health-(D/2)
  724. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  725. --showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  726. end
  727. if Type=="Knockdown" then
  728. local humanoid=hit.Parent.Humanoid
  729. humanoid.PlatformStand=true
  730. coroutine.resume(coroutine.create(function(Humanoid)
  731. --swait(1)
  732. fat.Event:wait()
  733. Humanoid.PlatformStand=false
  734. end),humanoid)
  735. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  736. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  737. local bodvol=Instance.new("BodyVelocity")
  738. bodvol.velocity=angle*knockback
  739. bodvol.P=5000
  740. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  741. bodvol.Parent=hit
  742. rl=Instance.new("BodyAngularVelocity")
  743. rl.P=3000
  744. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  745. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  746. rl.Parent=hit
  747. game:GetService("Debris"):AddItem(bodvol,.5)
  748. game:GetService("Debris"):AddItem(rl,.5)
  749. elseif Type=="Normal" then
  750. local hitsoundchoose=math.random(1,6)
  751. if hitsoundchoose==1 then
  752. so("http://www.roblox.com/asset/?id=199149137",hit,1,1)
  753. elseif hitsoundchoose==2 then
  754. so("http://www.roblox.com/asset/?id=199149186",hit,1,1)
  755. elseif hitsoundchoose==3 then
  756. so("http://www.roblox.com/asset/?id=199149221",hit,1,1)
  757. elseif hitsoundchoose==4 then
  758. so("http://www.roblox.com/asset/?id=199149235",hit,1,1)
  759. elseif hitsoundchoose==5 then
  760. so("http://www.roblox.com/asset/?id=199149269",hit,1,1)
  761. elseif hitsoundchoose==6 then
  762. so("http://www.roblox.com/asset/?id=199149297",hit,1,1)
  763. end
  764. vp=Instance.new("BodyVelocity")
  765. vp.P=500
  766. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  767. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  768. if KnockbackType==1 then
  769. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  770. elseif KnockbackType==2 then
  771. vp.velocity=Property.CFrame.lookVector*knockback
  772. end
  773. if knockback>0 then
  774. vp.Parent=hit.Parent.Torso
  775. end
  776. game:GetService("Debris"):AddItem(vp,.5)
  777. elseif Type=="UltThingy" then
  778. --[[ local hitsoundchoose=math.random(1,6)
  779. if hitsoundchoose==1 then
  780. so("http://www.roblox.com/asset/?id=199149137",hit,1,1)
  781. elseif hitsoundchoose==2 then
  782. so("http://www.roblox.com/asset/?id=199149186",hit,1,1)
  783. elseif hitsoundchoose==3 then
  784. so("http://www.roblox.com/asset/?id=199149221",hit,1,1)
  785. elseif hitsoundchoose==4 then
  786. so("http://www.roblox.com/asset/?id=199149235",hit,1,1)
  787. elseif hitsoundchoose==5 then
  788. so("http://www.roblox.com/asset/?id=199149269",hit,1,1)
  789. elseif hitsoundchoose==6 then
  790. so("http://www.roblox.com/asset/?id=199149297",hit,1,1)
  791. end]]--
  792. vp=Instance.new("BodyVelocity")
  793. vp.P=500
  794. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  795. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  796. if KnockbackType==1 then
  797. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  798. elseif KnockbackType==2 then
  799. vp.velocity=Property.CFrame.lookVector*knockback
  800. end
  801. if knockback>0 then
  802. vp.Parent=hit.Parent.Torso
  803. end
  804. game:GetService("Debris"):AddItem(vp,.5)
  805. elseif Type=="MovementDebuff" then
  806. coroutine.resume(coroutine.create(function()
  807. hit.Parent.Humanoid.WalkSpeed=hit.Parent.Humanoid.WalkSpeed-0.2
  808. speed.Value=speed.Value+0.2
  809. Humanoid.WalkSpeed = 16*speed.Value
  810. wait(1)
  811. hit.Parent.Humanoid.WalkSpeed=hit.Parent.Humanoid.WalkSpeed+0.2
  812. speed.Value=speed.Value-0.2
  813. Humanoid.WalkSpeed = 16*speed.Value
  814. end))
  815. vp=Instance.new("BodyVelocity")
  816. vp.P=500
  817. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  818. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  819. if KnockbackType==1 then
  820. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  821. elseif KnockbackType==2 then
  822. vp.velocity=Property.CFrame.lookVector*knockback
  823. end
  824. if knockback>0 then
  825. vp.Parent=hit.Parent.Torso
  826. end
  827. game:GetService("Debris"):AddItem(vp,.5)
  828. elseif Type=="CurseAura" then
  829. coroutine.resume(coroutine.create(function()
  830. local savethewalkspeed=hit.Parent.Humanoid.WalkSpeed
  831. hit.Parent.Humanoid.WalkSpeed=0
  832. wait(0.25)
  833. hit.Parent.Humanoid.WalkSpeed=savethewalkspeed
  834. end))
  835. vp=Instance.new("BodyVelocity")
  836. vp.P=500
  837. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  838. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  839. if KnockbackType==1 then
  840. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  841. elseif KnockbackType==2 then
  842. vp.velocity=Property.CFrame.lookVector*knockback
  843. end
  844. if knockback>0 then
  845. vp.Parent=hit.Parent.Torso
  846. end
  847. game:GetService("Debris"):AddItem(vp,.5)
  848. elseif Type=="Up" then
  849. local bodyVelocity=Instance.new("BodyVelocity")
  850. bodyVelocity.velocity=vt(0,60,0)
  851. bodyVelocity.P=5000
  852. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  853. bodyVelocity.Parent=hit
  854. game:GetService("Debris"):AddItem(bodyVelocity,1)
  855. rl=Instance.new("BodyAngularVelocity")
  856. rl.P=3000
  857. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  858. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  859. rl.Parent=hit
  860. game:GetService("Debris"):AddItem(rl,.5)
  861. elseif Type=="Snare" then
  862. wait()
  863. bp=Instance.new("BodyPosition")
  864. bp.P=2000
  865. bp.D=100
  866. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  867. bp.position=hit.Parent.Torso.Position
  868. bp.Parent=hit.Parent.Torso
  869. game:GetService("Debris"):AddItem(bp,1)
  870. elseif Type=="Target" then
  871. so("http://www.roblox.com/asset/?id=199144144",hit,1,math.random(150,200)/100)
  872. vp=Instance.new("BodyVelocity")
  873. vp.P=500
  874. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  875. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  876. if KnockbackType==1 then
  877. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  878. elseif KnockbackType==2 then
  879. vp.velocity=Property.CFrame.lookVector*knockback
  880. end
  881. if knockback>0 then
  882. vp.Parent=hit.Parent.Torso
  883. end
  884. game:GetService("Debris"):AddItem(vp,.5)
  885. end
  886. debounce=Instance.new("BoolValue")
  887. debounce.Name="DebounceHit"
  888. debounce.Parent=hit.Parent
  889. debounce.Value=true
  890. game:GetService("Debris"):AddItem(debounce,Delay)
  891. c=Instance.new("ObjectValue")
  892. c.Name="creator"
  893. c.Value=Player
  894. c.Parent=h
  895. game:GetService("Debris"):AddItem(c,.5)
  896. CRIT=false
  897. hitDeb=true
  898. AttackPos=6
  899. end
  900. end
  901.  
  902. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  903. for _,c in pairs(workspace:children()) do
  904. local hum=c:findFirstChild("Humanoid")
  905. if hum~=nil then
  906. local head=c:findFirstChild("Torso")
  907. if head~=nil then
  908. local targ=head.Position-Part.Position
  909. local mag=targ.magnitude
  910. if mag<=magni and c.Name~=Player.Name then
  911. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  912. end
  913. end
  914. end
  915. end
  916. end
  917.  
  918. function Lightning(p0,p1,tym,ofs,brickcolor,th,tra,last)
  919. --[[p0=pos1
  920. p1=pos2
  921. tym=times
  922. ofs=offset
  923. col=color
  924. th=size
  925. tra=transparency
  926. last=lastingtime]]
  927. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  928. for i=1,tym do
  929. --local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  930. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = brickcolor
  931. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  932. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  933. if tym == i then
  934. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  935. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  936. else
  937. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  938. end
  939. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  940. coroutine.resume(coroutine.create(function()
  941. while li.Transparency~=1 do
  942. --local StartTransparency=tra
  943. for i=0,1,last do
  944. --swait(1)
  945. fat.Event:wait()
  946. li.Transparency = li.Transparency+(0.1/last)
  947. end
  948. end
  949. end))
  950. end
  951. end
  952.  
  953. function JumpEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  954. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  955. prt.Anchored = true
  956. prt.CanCollide=false
  957. prt.CFrame = cframe*angles(math.rad(90),0,0)
  958. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  959. game:GetService("Debris"):AddItem(prt, 10)
  960. coroutine.resume(coroutine.create(function(Part, Mesh)
  961. for i = 0, 1, delay do
  962. --swait(1)
  963. fat.Event:wait()
  964. Part.CFrame = Part.CFrame
  965. Part.Transparency = i
  966. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  967. end
  968. Part.Parent = nil
  969. end), prt, msh)
  970. end
  971.  
  972. function Shockwave2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  973. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  974. prt.Anchored = true
  975. prt.CFrame = cframe
  976. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  977. game:GetService("Debris"):AddItem(prt, 4)
  978. coroutine.resume(coroutine.create(function(Part, Mesh)
  979. for i = 0, 1, delay do
  980. --swait(1)
  981. fat.Event:wait()
  982. Part.CFrame = Part.CFrame
  983. Part.Transparency = i
  984. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  985. end
  986. Part.Parent = nil
  987. end), prt, msh)
  988. end
  989.  
  990. function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  991. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  992. prt.Anchored = true
  993. prt.CanCollide=false
  994. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  995. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  996. game:GetService("Debris"):AddItem(prt, 10)
  997. coroutine.resume(coroutine.create(function(Part, Mesh)
  998. for i = 0, 1, delay do
  999. --swait(1)
  1000. fat.Event:wait()
  1001. Part.CFrame = Part.CFrame
  1002. Part.Transparency = i
  1003. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1004. end
  1005. Part.Parent = nil
  1006. end), prt, msh)
  1007. end
  1008.  
  1009. function BlockShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1010. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1011. prt.Anchored = true
  1012. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1013. --prt.Material = "Neon"
  1014. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1015. game:GetService("Debris"):AddItem(prt, 10)
  1016. coroutine.resume(coroutine.create(function(Part, Mesh)
  1017. for i = 0, 1, delay do
  1018. --swait(1)
  1019. fat.Event:wait()
  1020. Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1021. Part.Transparency = i
  1022. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1023. end
  1024. Part.Parent = nil
  1025. end), prt, msh)
  1026. end
  1027.  
  1028. --[[
  1029. local rainbowcolor=BrickColor.new(0)
  1030.  
  1031. coroutine.resume(coroutine.create(function()
  1032. while true do
  1033. wait()
  1034. rainbowcolor=BrickColor.new(23)
  1035. wait()
  1036. rainbowcolor=BrickColor.new(107)
  1037. wait()
  1038. rainbowcolor=BrickColor.new(37)
  1039. wait()
  1040. rainbowcolor=BrickColor.new(119)
  1041. wait()
  1042. rainbowcolor=BrickColor.new(24)
  1043. wait()
  1044. rainbowcolor=BrickColor.new(106)
  1045. wait()
  1046. rainbowcolor=BrickColor.new(21)
  1047. wait()
  1048. rainbowcolor=BrickColor.new(104)
  1049. end
  1050. end))
  1051. ]]--
  1052.  
  1053. function RainbowBlockShockwave(cframe, x1, y1, z1, x3, y3, z3, delay)
  1054. local rainbowcolor=BrickColor.new(0)
  1055. local prt = part(3, workspace, "SmoothPlastic", 0, 0, rainbowcolor, "Effect", vt(0.5, 0.5, 0.5))
  1056. prt.Anchored = true
  1057. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1058. prt.Material = "Neon"
  1059. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1060. game:GetService("Debris"):AddItem(prt, 10)
  1061. coroutine.resume(coroutine.create(function()
  1062. while prt.Parent~=nil do
  1063. wait()
  1064. rainbowcolor=BrickColor.new(23)
  1065. wait()
  1066. rainbowcolor=BrickColor.new(107)
  1067. wait()
  1068. rainbowcolor=BrickColor.new(37)
  1069. wait()
  1070. rainbowcolor=BrickColor.new(119)
  1071. wait()
  1072. rainbowcolor=BrickColor.new(24)
  1073. wait()
  1074. rainbowcolor=BrickColor.new(106)
  1075. wait()
  1076. rainbowcolor=BrickColor.new(21)
  1077. wait()
  1078. rainbowcolor=BrickColor.new(104)
  1079. end
  1080. end))
  1081. coroutine.resume(coroutine.create(function(Part, Mesh)
  1082. for i = 0, 1, delay do
  1083. --swait(1)
  1084. fat.Event:wait()
  1085. Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1086. Part.Transparency = i
  1087. Part.BrickColor=rainbowcolor
  1088. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1089. end
  1090. Part.Parent = nil
  1091. end), prt, msh)
  1092. end
  1093.  
  1094. function RainbowCylinderShockwave(cframe, x1, y1, z1, x3, y3, z3, delay)
  1095. local rainbowcolor=BrickColor.new(0)
  1096. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1097. prt.Anchored = true
  1098. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1099. prt.Material = "Neon"
  1100. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1101. game:GetService("Debris"):AddItem(prt, 10)
  1102. coroutine.resume(coroutine.create(function()
  1103. while prt.Parent~=nil do
  1104. wait()
  1105. rainbowcolor=BrickColor.new(23)
  1106. wait()
  1107. rainbowcolor=BrickColor.new(107)
  1108. wait()
  1109. rainbowcolor=BrickColor.new(37)
  1110. wait()
  1111. rainbowcolor=BrickColor.new(119)
  1112. wait()
  1113. rainbowcolor=BrickColor.new(24)
  1114. wait()
  1115. rainbowcolor=BrickColor.new(106)
  1116. wait()
  1117. rainbowcolor=BrickColor.new(21)
  1118. wait()
  1119. rainbowcolor=BrickColor.new(104)
  1120. end
  1121. end))
  1122. coroutine.resume(coroutine.create(function(Part, Mesh)
  1123. for i = 0, 1, delay do
  1124. --swait(1)
  1125. fat.Event:wait()
  1126. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1127. Part.BrickColor=rainbowcolor
  1128. Part.Transparency = i
  1129. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1130. end
  1131. Part.Parent = nil
  1132. end), prt, msh)
  1133. end
  1134.  
  1135.  
  1136. function CylinderShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1137. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1138. prt.Anchored = true
  1139. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1140. --prt.Material = "Neon"
  1141. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1142. game:GetService("Debris"):AddItem(prt, 10)
  1143. coroutine.resume(coroutine.create(function(Part, Mesh)
  1144. for i = 0, 1, delay do
  1145. --swait(1)
  1146. fat.Event:wait()
  1147. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1148. Part.Transparency = i
  1149. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1150. end
  1151. Part.Parent = nil
  1152. end), prt, msh)
  1153. end
  1154.  
  1155. function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1156. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1157. prt.Anchored = true
  1158. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1159. prt.Material = "Neon"
  1160. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1161. game:GetService("Debris"):AddItem(prt, 10)
  1162. coroutine.resume(coroutine.create(function(Part, Mesh)
  1163. for i = 0, 1, delay do
  1164. --swait(1)
  1165. fat.Event:wait()
  1166. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1167. Part.Transparency = i
  1168. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1169. end
  1170. Part.Parent = nil
  1171. end), prt, msh)
  1172. end
  1173.  
  1174. function Laser2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1175. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1176. prt.Anchored = true
  1177. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1178. prt.Material = "Neon"
  1179. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1180. game:GetService("Debris"):AddItem(prt, 10)
  1181. coroutine.resume(coroutine.create(function(Part, Mesh)
  1182. for i = 0, 1, delay do
  1183. --swait(1)
  1184. fat.Event:wait()
  1185. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1186. Part.Transparency = i
  1187. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1188. end
  1189. Part.Parent = nil
  1190. end), prt, msh)
  1191. end
  1192.  
  1193. function Laser3(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1194. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1195. prt.Anchored = true
  1196. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1197. prt.Material = "Neon"
  1198. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1199. game:GetService("Debris"):AddItem(prt, 10)
  1200. coroutine.resume(coroutine.create(function(Part, Mesh)
  1201. for i = 0, 1, delay do
  1202. --swait(1)
  1203. fat.Event:wait()
  1204. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1205. Part.Transparency = i
  1206. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1207. end
  1208. Part.Parent = nil
  1209. end), prt, msh)
  1210. end
  1211.  
  1212.  
  1213. function SphereShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1214. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1215. prt.Anchored = true
  1216. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1217. --prt.Material = "Neon"
  1218. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1219. game:GetService("Debris"):AddItem(prt, 10)
  1220. coroutine.resume(coroutine.create(function(Part, Mesh)
  1221. for i = 0, 1, delay do
  1222. --swait(1)
  1223. fat.Event:wait()
  1224. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1225. Part.Transparency = i
  1226. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1227. end
  1228. Part.Parent = nil
  1229. end), prt, msh)
  1230. end
  1231.  
  1232. function SphereShockwave2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1233. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1234. prt.Anchored = true
  1235. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1236. --prt.Material = "Neon"
  1237. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1238. game:GetService("Debris"):AddItem(prt, 10)
  1239. coroutine.resume(coroutine.create(function(Part, Mesh)
  1240. for i = 0, 1, delay do
  1241. --swait(1)
  1242. fat.Event:wait()
  1243. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1244. Part.Transparency = i
  1245. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1246. end
  1247. Part.Parent = nil
  1248. end), prt, msh)
  1249. end
  1250.  
  1251. function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1252. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1253. prt.Anchored = true
  1254. prt.CFrame = cframe
  1255. --prt.Material = "Neon"
  1256. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1257. game:GetService("Debris"):AddItem(prt, 10)
  1258. coroutine.resume(coroutine.create(function(Part, Mesh)
  1259. for i = 0, 1, delay do
  1260. --swait(1)
  1261. fat.Event:wait()
  1262. Part.CFrame = Part.CFrame
  1263. Part.Transparency = i
  1264. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1265. end
  1266. Part.Parent = nil
  1267. end), prt, msh)
  1268. end
  1269.  
  1270. function BashEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1271. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1272. prt.Anchored = true
  1273. prt.CFrame = cframe
  1274. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1275. game:GetService("Debris"):AddItem(prt, 10)
  1276. coroutine.resume(coroutine.create(function(Part, Mesh)
  1277. for i = 0, 1, delay do
  1278. --swait(1)
  1279. fat.Event:wait()
  1280. Part.CFrame = Part.CFrame
  1281. Part.Transparency = i
  1282. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1283. end
  1284. Part.Parent = nil
  1285. end), prt, msh)
  1286. end
  1287.  
  1288. function Snowflakes(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1289. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1290. prt.Anchored = true
  1291. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1292. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=19251107", vt(0, 0, 0), vt(x1, y1, z1))
  1293. game:GetService("Debris"):AddItem(prt, 10)
  1294. coroutine.resume(coroutine.create(function(Part, Mesh)
  1295. for i = 0, 1, delay do
  1296. --swait(1)
  1297. fat.Event:wait()
  1298. Part.CFrame = Part.CFrame
  1299. Part.Transparency = i
  1300. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1301. end
  1302. Part.Parent = nil
  1303. end), prt, msh)
  1304. end
  1305.  
  1306. leftlegangle=0
  1307. leftlegcframe2=0
  1308. leftlegcframe3=0
  1309. rightlegangle=0
  1310. rightlegcframe2=0
  1311. rightlegcframe3=0
  1312. leftarmangle=0
  1313. rightarmangle=0
  1314. MMouse=mouse
  1315. canidle=true
  1316. canwalk=true
  1317. local robloxidleanimation=Instance.new("Animation",Torso)
  1318. robloxidleanimation.Name="robloxidleanimation"
  1319. robloxidleanimation.AnimationId="http://www.roblox.com/asset/?id=180435571"
  1320. RWC0=cf(-0.5,0,0)*angles(math.rad(0),math.rad(90),math.rad(0))
  1321. LWC0=cf(0.5,0,0)*angles(math.rad(0),math.rad(-90),math.rad(0))
  1322.  
  1323. coroutine.resume(coroutine.create(function()
  1324. while true do
  1325. leftlegangle=-60--*(speed.Value/1)
  1326. leftlegcframe3=0.1--*(speed.Value/1)
  1327. leftlegcframe2=0.225--*(speed.Value/1)
  1328. rightlegangle=60--*(speed.Value/1)
  1329. rightlegcframe3=0.2--*(speed.Value/1)
  1330. rightlegcframe2=-0.2--*(speed.Value/1)
  1331. leftarmangle=-30--*(speed.Value/1)
  1332. rightarmangle=60--*(speed.Value/1)
  1333. if speed.Value>0.9 then
  1334. wait(0.375/(speed.Value/0.9))
  1335. elseif speed.Value==0.9 or speed.Value<0.9 then
  1336. wait(0.375)
  1337. end
  1338. --wait(0.31/speed.Value)
  1339. leftlegangle=60--*(speed.Value/1)
  1340. leftlegcframe3=-0.2--*(speed.Value/1)
  1341. leftlegcframe2=-0.2--*(speed.Value/1)
  1342. rightlegangle=-60--*(speed.Value/1)
  1343. rightlegcframe3=-0.1--*(speed.Value/1)
  1344. rightlegcframe2=0.225--*(speed.Value/1)
  1345. leftarmangle=60--*(speed.Value/1)
  1346. rightarmangle=-30--*(speed.Value/1)
  1347. if speed.Value>0.9 then
  1348. wait(0.375/(speed.Value/0.9))
  1349. elseif speed.Value==0.9 or speed.Value<0.9 then
  1350. wait(0.375)
  1351. end
  1352. --wait(0.31/speed.Value)
  1353. end
  1354. end))
  1355.  
  1356. --[[Optional Stroof walk]]--
  1357. --[[
  1358. ((Humanoid.WalkSpeed/16)*10)/50 --put this at end
  1359. ]]--
  1360.  
  1361. canability1=true
  1362. canability2=true
  1363. canability3=true
  1364. canability4=true
  1365.  
  1366. function equipanim()
  1367. attack=true
  1368. --[[for i=0,1,0.1 do
  1369. --swait(1)
  1370. fat.Event:wait()
  1371. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1372. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1373. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RWC0,0.3)
  1374. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*LWC0,0.3)
  1375. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1376. 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(0),math.rad(0)),0.3)
  1377. end]]--
  1378. speed.Value = speed.Value-0.1
  1379. attack=false
  1380. end
  1381.  
  1382. function unequipanim()
  1383. attack=true
  1384. for i=0,1,0.08 do
  1385. --swait(1)
  1386. fat.Event:wait()
  1387. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1388. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1389. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RWC0,0.3)
  1390. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*LWC0,0.3)
  1391. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1392. 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(0),math.rad(0)),0.3)
  1393. end
  1394. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1395. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1396. speed.Value = speed.Value+0.1
  1397. attack=false
  1398. end
  1399.  
  1400. function attackone()
  1401. attack=true
  1402. for i=0,1,0.18 do
  1403. --swait(1)
  1404. fat.Event:wait()
  1405. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(-30)),0.3)
  1406. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),0.3)
  1407. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(80),math.rad(0),math.rad(60))*RWC0,0.3)
  1408. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(40),math.rad(0),math.rad(30))*LWC0,0.3)
  1409. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1410. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(5)),0.3)
  1411. end
  1412. con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,8,12,5,"Normal",RootPart,.2,1) end)
  1413. so("http://roblox.com/asset/?id=169445092",RightArm,1,0.8)
  1414. for i=0,1,0.14 do
  1415. --swait(1)
  1416. fat.Event:wait()
  1417. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(15)),0.3)
  1418. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  1419. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(80),math.rad(0),math.rad(-60))*RWC0,0.3)
  1420. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20))*LWC0,0.3)
  1421. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(75),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-5)),0.3)
  1422. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),0.3)
  1423. end
  1424. con1:disconnect()
  1425. attack=false
  1426. end
  1427.  
  1428. function attacktwo()
  1429. attack=true
  1430. for i=0,1,0.18 do
  1431. --swait(1)
  1432. fat.Event:wait()
  1433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  1434. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(15)),0.3)
  1435. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0.25)*angles(math.rad(100),math.rad(0),math.rad(15))*RWC0,0.3)
  1436. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10))*LWC0,0.3)
  1437. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1438. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(5)),0.3)
  1439. end
  1440. con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,8,12,5,"Normal",RootPart,.2,1) end)
  1441. so("http://roblox.com/asset/?id=169445092",RightArm,1,1)
  1442. for i=0,1,0.14 do
  1443. --swait(1)
  1444. fat.Event:wait()
  1445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(15)),0.3)
  1446. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(-15)),0.3)
  1447. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,-0.25)*angles(math.rad(70),math.rad(0),math.rad(-15))*RWC0,0.3)
  1448. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.3)
  1449. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-5)),0.3)
  1450. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),0.3)
  1451. end
  1452. con1:disconnect()
  1453. attack=false
  1454. end
  1455.  
  1456. function attackthree()
  1457. attack=true
  1458. for i=0,1,0.18 do
  1459. --swait(1)
  1460. fat.Event:wait()
  1461. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.3)
  1463. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(15))*RWC0,0.3)
  1464. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10))*LWC0,0.3)
  1465. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1466. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(5)),0.3)
  1467. end
  1468. con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,8,12,5,"Normal",RootPart,.2,1) end)
  1469. so("http://roblox.com/asset/?id=169445092",RightArm,1,1.2)
  1470. for i=0,1,0.14 do
  1471. --swait(1)
  1472. fat.Event:wait()
  1473. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(15)),0.3)
  1474. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(-15)),0.3)
  1475. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,-0.75)*angles(math.rad(80),math.rad(0),math.rad(-15))*RWC0,0.3)
  1476. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.3)
  1477. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-5)),0.3)
  1478. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),0.3)
  1479. end
  1480. con1:disconnect()
  1481. attack=false
  1482. end
  1483.  
  1484. function attackfour()
  1485. attack=true
  1486. for i=0,1,0.18 do
  1487. --swait(1)
  1488. fat.Event:wait()
  1489. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(30)),0.3)
  1490. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),0.3)
  1491. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(40),math.rad(0),math.rad(-30))*RWC0,0.3)
  1492. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(80),math.rad(0),math.rad(-60))*LWC0,0.3)
  1493. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-5)),0.3)
  1494. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),0.3)
  1495. end
  1496. con1=LeftArm.Touched:connect(function(hit) Damagefunc(hit,8,12,5,"Normal",RootPart,.2,1) end)
  1497. so("http://roblox.com/asset/?id=169445092",LeftArm,1,0.6)
  1498. for i=0,1,0.14 do
  1499. --swait(1)
  1500. fat.Event:wait()
  1501. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  1502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(15)),0.3)
  1503. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20))*RWC0,0.3)
  1504. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(80),math.rad(0),math.rad(60))*LWC0,0.3)
  1505. RH.C0=clerp(RH.C0,cf(1,-0.8,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1506. LH.C0=clerp(LH.C0,cf(-1,-0.8,-0.1)*angles(math.rad(0),math.rad(-75),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(5)),0.3)
  1507. end
  1508. con1:disconnect()
  1509. attack=false
  1510. end
  1511.  
  1512. snowcraft=false
  1513.  
  1514. function Snowcraft()
  1515. attack=true
  1516. if snowcraft==false then
  1517. snowcraft=true
  1518. speed.Value=speed.Value-0.5
  1519. for i=0,1,0.08 do
  1520. --swait(1)
  1521. fat.Event:wait()
  1522. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1.5)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  1524. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(10))*RWC0,0.3)
  1525. LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-10))*LWC0,0.3)
  1526. RH.C0=clerp(RH.C0,cf(1,0.65,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1527. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1528. end
  1529. snowflake=part(3,Character,"SmoothPlastic",0,0,BrickColor.new("Institutional white"),"Effect",vt())
  1530. snowflake.Anchored=false
  1531. snowflake.CanCollide=false
  1532. snowflake.Size=Vector3.new(0.2,0.2,0.2)
  1533. snowflake.CFrame=RootPart.CFrame*cf(0,-3,-1)
  1534. snowflakemesh=Instance.new("SpecialMesh",snowflake)
  1535. snowflakemesh.MeshType=Enum.MeshType.FileMesh
  1536. snowflakemesh.MeshId="http://www.roblox.com/asset/?id=19251107"
  1537. snowflakemesh.Scale=Vector3.new(0,0,0)
  1538. snowflakefirstweld=weld(RootPart,RootPart,snowflake,CFrame.new(0,-2.9,-1),CFrame.new(0,0,0))
  1539. so("http://roblox.com/asset/?id=169445073",snowflake,0.5,1)
  1540. for i=0,1,0.15 do
  1541. --swait(1)
  1542. fat.Event:wait()
  1543. snowflakemesh.Scale=Vector3.new(0+1*i,1,0+1*i)
  1544. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1.5)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1545. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  1546. RW.C0=clerp(RW.C0,CFrame.new(1,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-20))*RWC0,0.3)
  1547. LW.C0=clerp(LW.C0,CFrame.new(-1,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(20))*LWC0,0.3)
  1548. RH.C0=clerp(RH.C0,cf(1,0.65,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1549. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1550. end
  1551. snowflakemesh.Scale=Vector3.new(1,1,1)
  1552. for i=0,1,0.15 do
  1553. --swait(1)
  1554. fat.Event:wait()
  1555. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1.5)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  1557. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(10))*RWC0,0.3)
  1558. LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-10))*LWC0,0.3)
  1559. RH.C0=clerp(RH.C0,cf(1,0.65,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1560. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1561. end
  1562. so("http://roblox.com/asset/?id=169445073",snowflake,0.5,1.2)
  1563. for i=0,1,0.15 do
  1564. --swait(1)
  1565. fat.Event:wait()
  1566. snowflakemesh.Scale=Vector3.new(1+1*i,1,1+1*i)
  1567. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1.5)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  1569. RW.C0=clerp(RW.C0,CFrame.new(1,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-20))*RWC0,0.3)
  1570. LW.C0=clerp(LW.C0,CFrame.new(-1,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(20))*LWC0,0.3)
  1571. RH.C0=clerp(RH.C0,cf(1,0.65,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1572. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1573. end
  1574. snowflakemesh.Scale=Vector3.new(2,1,2)
  1575. for i=0,1,0.15 do
  1576. --swait(1)
  1577. fat.Event:wait()
  1578. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1.5)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1579. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  1580. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(10))*RWC0,0.3)
  1581. LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.25,-0.5)*angles(math.rad(40),math.rad(0),math.rad(-10))*LWC0,0.3)
  1582. RH.C0=clerp(RH.C0,cf(1,0.65,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1583. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1584. end
  1585. snowflakefirstweld:Destroy()
  1586. snowflakeweld=weld(RightArm,RightArm,snowflake,CFrame.new(0,-1,0),CFrame.new(0,0,0))
  1587. snowflake.Anchored=false
  1588. coroutine.resume(coroutine.create(function()
  1589. while snowcraft==true do
  1590. for i=0,1,0.01 do
  1591. --swait(1)
  1592. fat.Event:wait()
  1593. snowflakeweld.C0=clerp(snowflakeweld.C0,cf(0.55,-0.7,0)*angles(math.rad(0),math.rad(0),math.rad(-90))*angles(math.rad(0),math.rad(0-360*i),math.rad(0)),0.3)
  1594. if snowcraft==false then
  1595. break
  1596. end
  1597. end
  1598. end
  1599. end))
  1600. speed.Value=speed.Value+0.5
  1601. elseif snowcraft==true then
  1602. snowcraft=false
  1603. for i=0,1,0.1 do
  1604. --swait(1)
  1605. fat.Event:wait()
  1606. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.3)
  1607. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  1608. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(105),math.rad(0),math.rad(-45))*RWC0,0.3)
  1609. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.3)
  1610. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(45),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1611. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(5)),0.3)
  1612. end
  1613. local snowflakeremovespeed=math.random(1,3)
  1614. local snowflakeremovespeed2=math.random(1,3)
  1615. coroutine.resume(coroutine.create(function()
  1616. for i=0,1,0.1 do
  1617. --swait(1)
  1618. fat.Event:wait()
  1619. snowflakeweld.C0=clerp(snowflakeweld.C0,cf(0.55,-0.7-snowflakeremovespeed*i,0+snowflakeremovespeed2*i)*angles(math.rad(0),math.rad(0),math.rad(-90))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1620. snowflakemesh.Scale=Vector3.new(2+1*i,1,2+1*i)
  1621. snowflake.Transparency=0+1*i
  1622. end
  1623. snowflake:Destroy()
  1624. end))
  1625. so("http://roblox.com/asset/?id=199146109",snowflake,0.5,1)
  1626. so("http://roblox.com/asset/?id=199146069",snowflake,0.5,1)
  1627. for i=0,1,0.1 do
  1628. --swait(1)
  1629. fat.Event:wait()
  1630. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),0.3)
  1631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),0.3)
  1632. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-45),math.rad(0),math.rad(45))*RWC0,0.3)
  1633. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(0))*LWC0,0.3)
  1634. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(75),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-5)),0.3)
  1635. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),0.3)
  1636. end
  1637. end
  1638. attack=false
  1639. end
  1640.  
  1641. block=false
  1642.  
  1643. function Block()
  1644. attack=true
  1645. block=true
  1646. speed.Value=speed.Value-0.6
  1647. for i=0,1,0.08 do
  1648. --swait(1)
  1649. fat.Event:wait()
  1650. snowflakemesh.Scale=Vector3.new(2+1*i,1+2*i,2+1*i)
  1651. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.3)
  1652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  1653. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(105),math.rad(0),math.rad(-45))*RWC0,0.3)
  1654. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.3)
  1655. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(45),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1656. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(10)),0.3)
  1657. end
  1658. snowflakemesh.Scale=Vector3.new(3,3,3)
  1659. while block==true do
  1660. for i=0,1,0.1 do
  1661. --swait(1)
  1662. fat.Event:wait()
  1663. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.3)
  1664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  1665. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(105),math.rad(0),math.rad(-45))*RWC0,0.3)
  1666. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.3)
  1667. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(45),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-5)),0.3)
  1668. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(10)),0.3)
  1669. if block==false then
  1670. break
  1671. end
  1672. end
  1673. if block==false then
  1674. coroutine.resume(coroutine.create(function()
  1675. for i=0,1,0.1 do
  1676. --swait(1)
  1677. fat.Event:wait()
  1678. snowflakemesh.Scale=Vector3.new(3-1*i,3-2*i,3-1*i)
  1679. end
  1680. snowflakemesh.Scale=Vector3.new(2,1,2)
  1681. end))
  1682. end
  1683. end
  1684. speed.Value=speed.Value+0.6
  1685. block=false
  1686. attack=false
  1687. end
  1688.  
  1689. function SnowSpike()
  1690. attack=true
  1691. for i=0,1,0.12 do
  1692. --swait(1)
  1693. fat.Event:wait()
  1694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-15)),0.3)
  1696. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-45))*RWC0,0.3)
  1697. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(45))*LWC0,0.3)
  1698. RH.C0=clerp(RH.C0,cf(0.5,-1,0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10)),0.3)
  1699. LH.C0=clerp(LH.C0,cf(-0.5,-1,-0.5)*angles(math.rad(0),math.rad(-180),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),0.3)
  1700. end
  1701. for i=0,1,0.08 do
  1702. --swait(1)
  1703. fat.Event:wait()
  1704. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  1705. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1706. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90))*RWC0,0.3)
  1707. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*LWC0,0.3)
  1708. RH.C0=clerp(RH.C0,cf(0.5,-1,0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10)),0.3)
  1709. LH.C0=clerp(LH.C0,cf(-0.5,-1,-0.5)*angles(math.rad(0),math.rad(-180),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),0.3)
  1710. end
  1711. local inc=-10
  1712. for i=1,3 do
  1713. wait(0.2)
  1714. Shockwave("Bright blue",cf(snowflake.Position),0.1,0.1,0.1,0.75,0.75,0.75,0.1)
  1715. local snowspikeref=part(3,Character,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1716. snowspikeref.Anchored=true
  1717. snowspikeref.CanCollide=false
  1718. snowspikeref.Size=Vector3.new(0.2,0.2,0.2)
  1719. snowspikeref.CFrame=RootPart.CFrame*cf(0,-1,inc)
  1720. game:getService("Debris"):AddItem(snowspikeref,1)
  1721. hit,pos=rayCast(snowspikeref.Position,(CFrame.new(snowspikeref.Position,snowspikeref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  1722. if hit~=nil then
  1723. floor=true
  1724. local startingsnowspikeref=part(3,Character,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1725. startingsnowspikeref.Anchored=true
  1726. startingsnowspikeref.CanCollide=false
  1727. startingsnowspikeref.Size=Vector3.new(0.2,0.2,0.2)
  1728. startingsnowspikeref.CFrame=cf(pos)
  1729. game:getService("Debris"):AddItem(snowspikeref,1)
  1730. so("http://roblox.com/asset/?id=199146035",startingsnowspikeref,1,1)
  1731. MagniDamage(startingsnowspikeref,10,10,15,10,"Normal")
  1732. BlockShockwave("Bright blue",cf(startingsnowspikeref.Position),0.1,0.1,0.1,2,2,2,0.05)
  1733. local snowspike=part(3,Character,"SmoothPlastic",0,0,BrickColor.new("Cyan"),"Effect",vt())
  1734. snowspike.Anchored=true
  1735. snowspike.CanCollide=false
  1736. snowspike.Size=Vector3.new(0.2,0.2,0.2)
  1737. snowspike.CFrame=startingsnowspikeref.CFrame
  1738. local snowspikemesh=Instance.new("SpecialMesh",snowspike)
  1739. snowspikemesh.MeshType=Enum.MeshType.FileMesh
  1740. snowspikemesh.MeshId="http://www.roblox.com/asset/?id=1778999"
  1741. snowspikemesh.Scale=Vector3.new(5.5,6,5.5)
  1742. snowspikemesh.Offset=Vector3.new(0,-2.5,0)
  1743. game:getService("Debris"):AddItem(snowspike,2)
  1744. inc=inc-10
  1745. for i=1,15 do
  1746. local spikedebris=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("Bright blue"),"Ground",vt())
  1747. spikedebris.Anchored=true
  1748. spikedebris.CanCollide=true
  1749. spikedebris.Size=Vector3.new(math.random(200,400)/100,math.random(200,400)/100,math.random(200,400)/100)
  1750. spikedebris.CFrame=startingsnowspikeref.CFrame*cf(math.random(-300,300)/100,0,math.random(-300,300)/100)*angles(math.random(math.rad(-45),math.rad(45)),math.random(math.rad(-45),math.rad(45)),math.random(math.rad(-45),math.rad(45)))
  1751. game:getService("Debris"):AddItem(spikedebris,5)
  1752. coroutine.resume(coroutine.create(function()
  1753. wait()
  1754. for i=0,1,0.08 do
  1755. fat.Event:wait()
  1756. snowspikemesh.Offset=Vector3.new(0,-2.5+7.5*i,0)
  1757. end
  1758. wait(0.1)
  1759. while snowspike.Transparency<1 do
  1760. fat.Event:wait()
  1761. snowspike.Transparency=snowspike.Transparency+(1/500)
  1762. end
  1763. wait(2.5)
  1764. while spikedebris.Transparency<1 do
  1765. fat.Event:wait()
  1766. spikedebris.Transparency=spikedebris.Transparency+(1/50)
  1767. end
  1768. end))
  1769. end
  1770. end
  1771. end
  1772. wait(0.25)
  1773. attack=false
  1774. end
  1775.  
  1776. function GiantSnowSpike()
  1777. attack=true
  1778. for i=0,1,0.08 do
  1779. --swait(1)
  1780. fat.Event:wait()
  1781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1783. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(-30))*RWC0,0.3)
  1784. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(30))*LWC0,0.3)
  1785. RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1786. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-45),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1787. end
  1788. local inc=-15
  1789. for i=1,1 do
  1790. Shockwave("Bright blue",cf(snowflake.Position),0.1,0.1,0.1,0.75,0.75,0.75,0.1)
  1791. local snowspikeref=part(3,Character,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1792. snowspikeref.Anchored=true
  1793. snowspikeref.CanCollide=false
  1794. snowspikeref.Size=Vector3.new(0.2,0.2,0.2)
  1795. snowspikeref.CFrame=RootPart.CFrame*cf(0,-1,inc)
  1796. game:getService("Debris"):AddItem(snowspikeref,1)
  1797. hit,pos=rayCast(snowspikeref.Position,(CFrame.new(snowspikeref.Position,snowspikeref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  1798. if hit~=nil then
  1799. floor=true
  1800. local startingsnowspikeref=part(3,Character,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  1801. startingsnowspikeref.Anchored=true
  1802. startingsnowspikeref.CanCollide=false
  1803. startingsnowspikeref.Size=Vector3.new(0.2,0.2,0.2)
  1804. startingsnowspikeref.CFrame=cf(pos)
  1805. game:getService("Debris"):AddItem(snowspikeref,1)
  1806. so("http://roblox.com/asset/?id=199146035",startingsnowspikeref,1,0.8)
  1807. MagniDamage(startingsnowspikeref,20,20,30,10,"Normal")
  1808. BlockShockwave("Bright blue",cf(startingsnowspikeref.Position),0.1,0.1,0.1,2,2,2,0.025)
  1809. local snowspike=part(3,Character,"SmoothPlastic",0,0,BrickColor.new("Cyan"),"Effect",vt())
  1810. snowspike.Anchored=true
  1811. snowspike.CanCollide=false
  1812. snowspike.Size=Vector3.new(0.2,0.2,0.2)
  1813. snowspike.CFrame=startingsnowspikeref.CFrame
  1814. local snowspikemesh=Instance.new("SpecialMesh",snowspike)
  1815. snowspikemesh.MeshType=Enum.MeshType.FileMesh
  1816. snowspikemesh.MeshId="http://www.roblox.com/asset/?id=1778999"
  1817. snowspikemesh.Scale=Vector3.new(17.5,18,17.5)
  1818. snowspikemesh.Offset=Vector3.new(0,-12.5,0)
  1819. game:getService("Debris"):AddItem(snowspike,2)
  1820. inc=inc-15
  1821. for i=1,20 do
  1822. local spikedebris=part(3,Character,"SmoothPlastic",0,0.5,BrickColor.new("Bright blue"),"Ground",vt())
  1823. spikedebris.Anchored=true
  1824. spikedebris.CanCollide=true
  1825. spikedebris.Size=Vector3.new(math.random(400,600)/100,math.random(400,600)/100,math.random(400,600)/100)
  1826. spikedebris.CFrame=startingsnowspikeref.CFrame*cf(math.random(-800,800)/100,0,math.random(-800,800)/100)*angles(math.random(math.rad(-45),math.rad(45)),math.random(math.rad(-45),math.rad(45)),math.random(math.rad(-45),math.rad(45)))
  1827. game:getService("Debris"):AddItem(spikedebris,6.25)
  1828. coroutine.resume(coroutine.create(function()
  1829. wait()
  1830. for i=0,1,0.08 do
  1831. fat.Event:wait()
  1832. snowspikemesh.Offset=Vector3.new(0,-12.5+25*i,0)
  1833. end
  1834. wait(0.5)
  1835. while snowspike.Transparency<1 do
  1836. fat.Event:wait()
  1837. snowspike.Transparency=snowspike.Transparency+(1/500)
  1838. end
  1839. wait(3.5)
  1840. while spikedebris.Transparency<1 do
  1841. fat.Event:wait()
  1842. spikedebris.Transparency=spikedebris.Transparency+(1/50)
  1843. end
  1844. end))
  1845. end
  1846. end
  1847. end
  1848. for i=0,1,0.08 do
  1849. --swait(1)
  1850. fat.Event:wait()
  1851. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1852. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  1853. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(135),math.rad(0),math.rad(30))*RWC0,0.3)
  1854. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(135),math.rad(0),math.rad(-30))*LWC0,0.3)
  1855. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1856. 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(0),math.rad(0)),0.3)
  1857. end
  1858. attack=false
  1859. end
  1860.  
  1861. function Blizzard()
  1862. attack=true
  1863. so("http://roblox.com/asset/?id=199145761",RootPart,1,1)
  1864. so("http://roblox.com/asset/?id=199145793",RootPart,1,1)
  1865. startingultdmg=true
  1866. coroutine.resume(coroutine.create(function()
  1867. while startingultdmg==true do
  1868. wait(0.25)
  1869. MagniDamage(RootPart,15,1,2,0,"UltThingy")
  1870. if startingultdmg==false then
  1871. break
  1872. end
  1873. end
  1874. end))
  1875. for i=0,1,0.01 do
  1876. --swait(1)
  1877. fat.Event:wait()
  1878. Snowflakes("Bright blue",RootPart.CFrame*cf(math.random(-15,15),math.random(-10,10),math.random(-15,15)),math.random(200,400)/1000,math.random(200,400)/1000,math.random(200,400)/1000,0.001,0.001,0.001,0.05)
  1879. Snowflakes("Pastel light blue",RootPart.CFrame*cf(math.random(-15,15),math.random(-10,10),math.random(-15,15)),math.random(200,400)/1000,math.random(200,400)/1000,math.random(200,400)/1000,0.001,0.001,0.001,0.05)
  1880. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1881. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  1882. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(135),math.rad(0),math.rad(-45))*angles(math.rad(0),math.rad(-60),math.rad(0))*RWC0,0.3)
  1883. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10))*angles(math.rad(0),math.rad(10),math.rad(0))*LWC0,0.3)
  1884. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  1885. 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(0),math.rad(0)),0.3)
  1886. end
  1887. startingultdmg=false
  1888. for i=0,1,0.04 do
  1889. --swait(1)
  1890. fat.Event:wait()
  1891. Snowflakes("Bright blue",RootPart.CFrame*cf(math.random(-15,15),math.random(-10,10),math.random(-15,15)),math.random(200,400)/1000,math.random(200,400)/1000,math.random(200,400)/1000,0.001,0.001,0.001,0.05)
  1892. Snowflakes("Pastel light blue",RootPart.CFrame*cf(math.random(-15,15),math.random(-10,10),math.random(-15,15)),math.random(200,400)/1000,math.random(200,400)/1000,math.random(200,400)/1000,0.001,0.001,0.001,0.05)
  1893. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1894. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
  1895. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60))*angles(math.rad(0),math.rad(90),math.rad(0))*RWC0,0.15)
  1896. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60))*angles(math.rad(0),math.rad(-90),math.rad(0))*LWC0,0.15)
  1897. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1898. 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(0),math.rad(0)),0.15)
  1899. end
  1900. so("http://roblox.com/asset/?id=199145739",RootPart,1,1)
  1901. Shockwave("Bright blue",RootPart.CFrame,1,1,1,4,4,4,0.025)
  1902. BlockShockwave("Bright blue",RootPart.CFrame,1,1,1,2.5,2.5,2.5,0.025)
  1903. MagniDamage(RootPart,30,30,40,0,"Normal")
  1904. attack=false
  1905. end
  1906.  
  1907. hold=false
  1908.  
  1909. function ob1d(mouse)
  1910. --mouse.Button1Down:connect(function()
  1911. if attack==true or equipped==false then return end
  1912. --if attack==false and equipped==true then
  1913. hold=true
  1914. if attacktype==1 then
  1915. attacktype=2
  1916. attackone()
  1917. elseif attacktype==2 then
  1918. attacktype=3
  1919. attacktwo()
  1920. elseif attacktype==3 then
  1921. attacktype=4
  1922. attackthree()
  1923. elseif attacktype==4 then
  1924. attacktype=1
  1925. attackfour()
  1926. end
  1927. --end
  1928. coroutine.resume(coroutine.create(function()
  1929. for i=1,50 do
  1930. if attack==false then
  1931. swait(1)
  1932. end
  1933. end
  1934. if attack==false then
  1935. attacktype=1
  1936. end
  1937. end))
  1938. --end)
  1939. end
  1940.  
  1941. function ob1u(mouse)
  1942. hold = false
  1943. end
  1944.  
  1945. function k(k)
  1946. --mouse.KeyDown:connect(function(k)
  1947. -- k=k:lower()
  1948. if k=='f' and attack==false then
  1949. if equipped==false then
  1950. equipped=true
  1951. -- RSH.Parent=nil
  1952. -- LSH.Parent=nil
  1953. -- RW.Parent=ch.Torso
  1954. -- LW.Parent=ch.Torso
  1955. animate.Disabled=true
  1956. local idleanimation=Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1957. idleanimation:Play()
  1958. equipanim()
  1959. elseif equipped==true then
  1960. equipped=false
  1961. if snowcraft==true then
  1962. Snowcraft()
  1963. end
  1964. unequipanim()
  1965. swait(0)
  1966. animate.Disabled=false
  1967. -- RW.Parent=nil
  1968. -- LW.Parent=nil
  1969. -- RSH.Parent=player.Character.Torso
  1970. -- LSH.Parent=player.Character.Torso
  1971. end
  1972. end
  1973. if k=='e' and attack==false and equipped==true then
  1974. Snowcraft()
  1975. end
  1976. if k=='z' and attack==false and equipped==true and canability1==true and snowcraft==true and block==false then
  1977. Block()
  1978. end
  1979. if k=='z' and block==true then
  1980. block=false
  1981. end
  1982. if k=='x' and attack==false and equipped==true and canability2==true and snowcraft==true then
  1983. SnowSpike()
  1984. end
  1985. if k=='c' and attack==false and equipped==true and canability3==true and snowcraft==true then
  1986. GiantSnowSpike()
  1987. end
  1988. if k=='v' and attack==false and equipped==true and canability4==true and snowcraft==true then
  1989. Blizzard()
  1990. end
  1991. --end)
  1992. end
  1993.  
  1994. function k2(k)
  1995. end
  1996.  
  1997. function s(mouse)
  1998. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1999. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2000. mouse.KeyDown:connect(k)
  2001. mouse.KeyUp:connect(k2)
  2002.  
  2003. player=Player
  2004. ch=Character
  2005. MMouse=mouse
  2006. end
  2007.  
  2008. function ds(mouse)
  2009. end
  2010.  
  2011. Bin.Selected:connect(s)
  2012. Bin.Deselected:connect(ds)
  2013.  
  2014. local donum=0
  2015. local sine = 0
  2016. local change = 1
  2017. local val = 0
  2018.  
  2019. while true do
  2020. swait()
  2021. Humanoid.WalkSpeed=16*speed.Value
  2022. --fat.Event:wait()
  2023. ammolabel.Text ='Speed ['..speed.Value..']'
  2024. ammolabel2.Text ='Damage ['..damagea.Value..']'
  2025. ammolabel3.Text ='Defense ['..defense.Value..']'
  2026. --gyro.CFrame=CFrame.new(Vector3.new(),(cam.CoordinateFrame.p-RootPart.CFrame.p).unit*-100)
  2027. sine = sine + change
  2028. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2029. local velderp=RootPart.Velocity.y
  2030. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2031. if donum>=.5 then
  2032. handidle=true
  2033. elseif donum<=0 then
  2034. handidle=false
  2035. end
  2036. if handidle==false then
  2037. donum=donum+0.003
  2038. else
  2039. donum=donum-0.003
  2040. end
  2041. if equipped==true or equipped==false then
  2042. if attack==false then
  2043. idle=idle+1
  2044. else
  2045. idle=0
  2046. end
  2047. if idle>=500 then
  2048. if attack==false then
  2049. --Sheath()
  2050. end
  2051. end
  2052. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2053. Anim="Jump"
  2054. if attack==false and equipped==true then
  2055. --swait()
  2056. fat.Event:wait()
  2057. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),0.15)
  2059. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(20))*RWC0,0.15)
  2060. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-20))*LWC0,0.15)
  2061. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  2062. LH.C0=clerp(LH.C0,cf(-1,-1,-0.25)*angles(math.rad(-40),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  2063. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2064. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2065. elseif attack==true and equipped==true then
  2066. --swait()
  2067. fat.Event:wait()
  2068. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2069. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2070. end
  2071. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2072. Anim="Fall"
  2073. if attack==false and equipped==true then
  2074. --swait()
  2075. fat.Event:wait()
  2076. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  2078. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(10))*RWC0,0.15)
  2079. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-10))*LWC0,0.15)
  2080. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  2081. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  2082. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2083. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2084. elseif attack==true and equipped==true then
  2085. --swait()
  2086. fat.Event:wait()
  2087. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2088. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2089. end
  2090. elseif torvel<1 and hitfloor~=nil then
  2091. Anim="Idle"
  2092. if attack==false and equipped==true and snowcraft==false then
  2093. --swait()
  2094. fat.Event:wait()
  2095. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
  2097. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(20+(donum/0.05)),math.rad(0),math.rad(20-(donum/0.05)))*angles(math.rad(0),math.rad(-30+(donum/0.05)),math.rad(0))*RWC0,0.15)
  2098. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(20+(donum/0.05)),math.rad(0),math.rad(-20+(donum/0.05)))*LWC0,0.15)
  2099. RH.C0=clerp(RH.C0,cf(1,-1,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(2.5)),0.15)
  2100. LH.C0=clerp(LH.C0,cf(-1,-1,-0.1)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-2.5)),0.15)
  2101. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2102. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2103. elseif attack==false and equipped==true and snowcraft==true then
  2104. --swait()
  2105. fat.Event:wait()
  2106. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.15)
  2107. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(15)),0.15)
  2108. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30+(donum/0.05)),math.rad(0),math.rad(30-(donum/0.05)))*angles(math.rad(0),math.rad(-30+(donum/0.05)),math.rad(0))*RWC0,0.15)
  2109. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(30+(donum/0.05)),math.rad(0),math.rad(-30+(donum/0.05)))*LWC0,0.15)
  2110. RH.C0=clerp(RH.C0,cf(1,-1,-0.1)*angles(math.rad(0),math.rad(75),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-7.5)),0.15)
  2111. LH.C0=clerp(LH.C0,cf(-1,-1,-0.1)*angles(math.rad(0),math.rad(-75),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-2.5)),0.15)
  2112. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2113. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2114. elseif attack==true and equipped==true and canidle==true then
  2115. --swait()
  2116. fat.Event:wait()
  2117. RH.C1=clerp(RH.C1,RHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2118. LH.C1=clerp(LH.C1,LHC1*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2119. end
  2120. elseif torvel>2 and hitfloor~=nil then
  2121. Anim="Walk"
  2122. if attack==false and equipped==true and snowcraft==false then
  2123. --swait()
  2124. fat.Event:wait()
  2125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
  2126. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
  2127. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0+rightarmangle),math.rad(0),math.rad(0))*RWC0,0.175*(speed.Value/0.9))
  2128. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0+leftarmangle),math.rad(0),math.rad(0))*LWC0,0.175*(speed.Value/0.9))
  2129. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2130. 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(0),math.rad(0)),0.15)
  2131. RH.C1=clerp(RH.C1,RHC1*cf(0+rightlegcframe3,0+rightlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+rightlegangle)),0.175*(speed.Value/0.9))
  2132. LH.C1=clerp(LH.C1,LHC1*cf(0+leftlegcframe3,0+leftlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0-leftlegangle)),0.175*(speed.Value/0.9))
  2133. elseif attack==false and equipped==true and snowcraft==true then
  2134. --swait()
  2135. fat.Event:wait()
  2136. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
  2137. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
  2138. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(15))*RWC0,0.15)
  2139. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20))*LWC0,0.15)
  2140. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  2141. 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(0),math.rad(0)),0.15)
  2142. RH.C1=clerp(RH.C1,RHC1*cf(0+rightlegcframe3,0+rightlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+rightlegangle)),0.175*(speed.Value/0.9))
  2143. LH.C1=clerp(LH.C1,LHC1*cf(0+leftlegcframe3,0+leftlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0-leftlegangle)),0.175*(speed.Value/0.9))
  2144. elseif attack==true and equipped==true and canwalk==true then
  2145. --swait()
  2146. fat.Event:wait()
  2147. RH.C1=clerp(RH.C1,RHC1*cf(0+rightlegcframe3,0+rightlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0+rightlegangle)),0.175*(speed.Value/0.9))
  2148. LH.C1=clerp(LH.C1,LHC1*cf(0+leftlegcframe3,0+leftlegcframe2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0-leftlegangle)),0.175*(speed.Value/0.9))
  2149. end
  2150. end
  2151. end
  2152. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement