Advertisement
Guest User

Untitled

a guest
May 26th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.07 KB | None | 0 0
  1. --[[
  2. Santa's Elf Class Made by Fenrier.
  3. ]]
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  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. Neck=Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. MMouse=nil
  37. combo=0
  38. mana=0
  39. local idle=0
  40. local Anim="Idle"
  41. local cansleigh=true
  42. --player
  43. player=nil
  44. --save shoulders
  45. RSH, LSH=nil, nil
  46. --welds
  47. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  48. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  49. LH=Torso["Left Hip"]
  50. RH=Torso["Right Hip"]
  51. local Effects={}
  52. local GiftbagGifts={}
  53.  
  54. function swait(num)
  55. if num==0 or num==nil then
  56. game:service'RunService'.RenderStepped:wait()
  57. else
  58. for i=0,num do
  59. game:service'RunService'.RenderStepped:wait()
  60. end
  61. end
  62. end
  63.  
  64. if Character:findFirstChild("Elf",true) ~= nil then
  65. Character:findFirstChild("Elf",true).Parent = nil
  66. end
  67. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  68. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  69. end
  70.  
  71.  
  72. function NoOutline(Part)
  73. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  74. end
  75.  
  76. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  77. local fp=it("Part")
  78. fp.formFactor=formfactor
  79. fp.Parent=parent
  80. fp.Reflectance=reflectance
  81. fp.Transparency=transparency
  82. fp.CanCollide=false
  83. fp.Locked=true
  84. fp.BrickColor=brickcolor
  85. fp.Name=name
  86. fp.Size=size
  87. fp.Position=Torso.Position
  88. NoOutline(fp)
  89. fp.Material="SmoothPlastic"
  90. fp:BreakJoints()
  91. return fp
  92. end
  93.  
  94. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  95. local mesh=it(Mesh)
  96. mesh.Parent=part
  97. if Mesh=="SpecialMesh" then
  98. mesh.MeshType=meshtype
  99. mesh.MeshId=meshid
  100. end
  101. mesh.Offset=offset
  102. mesh.Scale=scale
  103. return mesh
  104. end
  105.  
  106. function weld(parent,part0,part1,c0)
  107. local weld=it("Weld")
  108. weld.Parent=parent
  109. weld.Part0=part0
  110. weld.Part1=part1
  111. weld.C0=c0
  112. return weld
  113. end
  114.  
  115. GiftTextures1={
  116. "http://www.roblox.com/asset/?id=67108526",
  117. "http://www.roblox.com/asset/?id=66892127",
  118. "http://www.roblox.com/asset/?id=67156256",
  119. "http://www.roblox.com/asset/?id=22731874",
  120. "http://www.roblox.com/asset/?id=66888912",
  121. "http://www.roblox.com/asset/?id=138053709",
  122. "http://www.roblox.com/asset/?id=137677423",
  123. "http://www.roblox.com/asset/?id=137441786",
  124. "http://www.roblox.com/asset/?id=67156688",
  125. "http://www.roblox.com/asset/?id=67156487",
  126. "http://www.roblox.com/asset/?id=67108654",
  127. "http://www.roblox.com/asset/?id=67108786",
  128. "http://www.roblox.com/asset/?id=99262324",
  129. "http://www.roblox.com/asset/?id=99262600",
  130. "http://www.roblox.com/asset/?id=189783253",
  131. "http://www.roblox.com/asset/?id=137441880",
  132. "http://www.roblox.com/asset/?id=67099135",
  133. "http://www.roblox.com/asset/?id=137729610",
  134. "http://www.roblox.com/asset/?id=138219638",
  135. "http://www.roblox.com/asset/?id=162200169",
  136. "http://www.roblox.com/asset/?id=66888967",
  137. "http://www.roblox.com/asset/?id=66895727",
  138. "http://www.roblox.com/asset/?id=66895855",
  139. "http://www.roblox.com/asset/?id=67108896",
  140. "http://www.roblox.com/asset/?id=99262911",
  141. "http://www.roblox.com/asset/?id=100205893",
  142. "http://www.roblox.com/asset/?id=100372723",
  143. "http://www.roblox.com/asset/?id=189748284",
  144. "http://www.roblox.com/asset/?id=137676972",
  145. "http://www.roblox.com/asset/?id=137441880",
  146. "http://www.roblox.com/asset/?id=138376505",
  147. "http://www.roblox.com/asset/?id=138219638",
  148. "http://www.roblox.com/asset/?id=138135295",
  149. "http://www.roblox.com/asset/?id=137611947",
  150. "http://www.roblox.com/asset/?id=137677423",
  151. "http://www.roblox.com/asset/?id=137729610",
  152. "http://www.roblox.com/asset/?id=137384483",
  153. "http://www.roblox.com/asset/?id=137441786",
  154. "http://www.roblox.com/asset/?id=138293850",
  155. "http://www.roblox.com/asset/?id=138053709",
  156. "http://www.roblox.com/asset/?id=136798527",
  157. "http://www.roblox.com/asset/?id=99902032",
  158. }
  159. GiftTextures2={
  160. "http://www.roblox.com/asset/?id=41510057",
  161. "http://www.roblox.com/asset/?id=1238797",
  162. "http://www.roblox.com/asset/?id=10090366",
  163. "http://www.roblox.com/asset/?id=1237427",
  164. "http://www.roblox.com/asset/?id=1247867",
  165. "http://www.roblox.com/asset/?id=18986139",
  166. "http://www.roblox.com/asset/?id=19906004",
  167. "http://www.roblox.com/asset/?id=40867788",
  168. "http://www.roblox.com/asset/?id=1247871",
  169. "http://www.roblox.com/asset/?id=1239423",
  170. "http://www.roblox.com/asset/?id=11596767",
  171. "http://www.roblox.com/asset/?id=1247866",
  172. "http://www.roblox.com/asset/?id=1246569",
  173. "http://www.roblox.com/asset/?id=1239715",
  174. "http://www.roblox.com/asset/?id=6125462",
  175. "http://www.roblox.com/asset/?id=6202189",
  176. "http://www.roblox.com/asset/?id=34115626",
  177. "http://www.roblox.com/asset/?id=6313630",
  178. "http://www.roblox.com/asset/?id=6024329",
  179. "http://www.roblox.com/asset/?id=6020478",
  180. "http://www.roblox.com/asset/?id=6144194",
  181. "http://www.roblox.com/asset/?id=1459021",
  182. "http://www.roblox.com/asset/?id=18824013",
  183. }
  184.  
  185. function Giftify(Part,x,y,z)
  186. if Part.className=="Part" then
  187. if math.random(1,2)==1 then
  188. Texture=math.random(1,#GiftTextures1) --FileMesh of gift 1 is weird :V
  189. local giftmsh=mesh("SpecialMesh",Part,"FileMesh","http://www.roblox.com/asset/?id=66887781",vt(0,0,0),vt(x,y,z))
  190. giftmsh.TextureId=GiftTextures1[Texture]
  191. else
  192. Texture=math.random(1,#GiftTextures2)
  193. local giftmsh=mesh("SpecialMesh",Part,"FileMesh","http://www.roblox.com/asset/?id=1237207",vt(0,0,0),vt(x,y,z))
  194. giftmsh.TextureId=GiftTextures2[Texture]
  195. end
  196. end
  197. end
  198.  
  199. local modelzorz=Instance.new("Model")
  200. modelzorz.Parent=Character
  201. modelzorz.Name="Elf"
  202.  
  203. local prt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Hat",vt())
  204. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Bag",vt())
  205. local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift1",vt())
  206. local prt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift2",vt())
  207. local prt5=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift3",vt())
  208. local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift4",vt())
  209. table.insert(GiftbagGifts,prt3)
  210. table.insert(GiftbagGifts,prt4)
  211. table.insert(GiftbagGifts,prt5)
  212. table.insert(GiftbagGifts,prt6)
  213.  
  214. local msh1=mesh("SpecialMesh",prt1,"FileMesh","http://www.roblox.com/asset/?id=1090610",vt(0,0,0),vt(1,1,1))
  215. msh1.TextureId="http://www.roblox.com/asset/?id=42037120"
  216. local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=19646118",vt(0,0,0),vt(1.5,1.5,1.5))
  217. msh2.TextureId="http://www.roblox.com/asset/?id=19646165"
  218. Giftify(prt3,1.3,1.3,1.3)
  219. Giftify(prt4,1.3,1.3,1.3)
  220. Giftify(prt5,1.3,1.3,1.3)
  221. Giftify(prt6,1.3,1.3,1.3)
  222.  
  223. local wld1=weld(prt1,prt1,Head,euler(0,0,0)*cf(0,-.5,0))
  224. local wld2=weld(prt2,prt2,Torso,euler(0,1.57,0)*cf(0,.5,-1.5))
  225. local wld3=weld(prt3,prt3,prt2,euler(.5,.1,0)*cf(-.2,-1.6,0.3))
  226. local wld4=weld(prt4,prt4,prt2,euler(0,.1,.5)*cf(-.2,-1.4,0))
  227. local wld5=weld(prt5,prt5,prt2,euler(0,.1,-.3)*cf(.3,-1.6,-.1))
  228. local wld6=weld(prt6,prt6,prt2,euler(-.4,-.2,0)*cf(0,-1.7,-.4))
  229.  
  230. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  231. hitbox.Anchored=false
  232.  
  233. if (script.Parent.className~="HopperBin") then
  234. Tool=Instance.new("HopperBin")
  235. Tool.Parent=Backpack
  236. Tool.Name="Christmas Spirit"
  237. script.Parent=Tool
  238. end
  239. Bin=script.Parent
  240.  
  241. local bodvel=Instance.new("BodyVelocity")
  242. local bg=Instance.new("BodyGyro")
  243.  
  244. so = function(id,par,vol,pit)
  245. coroutine.resume(coroutine.create(function()
  246. local sou = Instance.new("Sound",par or workspace)
  247. sou.Volume=vol
  248. sou.Pitch=pit or 1
  249. sou.SoundId=id
  250. swait()
  251. sou:play()
  252. game:GetService("Debris"):AddItem(sou,6)
  253. end))
  254. end
  255.  
  256. function clerp(a,b,t)
  257. local qa = {QuaternionFromCFrame(a)}
  258. local qb = {QuaternionFromCFrame(b)}
  259. local ax, ay, az = a.x, a.y, a.z
  260. local bx, by, bz = b.x, b.y, b.z
  261. local _t = 1-t
  262. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  263. end
  264.  
  265. function QuaternionFromCFrame(cf)
  266. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  267. local trace = m00 + m11 + m22
  268. if trace > 0 then
  269. local s = math.sqrt(1 + trace)
  270. local recip = 0.5/s
  271. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  272. else
  273. local i = 0
  274. if m11 > m00 then
  275. i = 1
  276. end
  277. if m22 > (i == 0 and m00 or m11) then
  278. i = 2
  279. end
  280. if i == 0 then
  281. local s = math.sqrt(m00-m11-m22+1)
  282. local recip = 0.5/s
  283. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  284. elseif i == 1 then
  285. local s = math.sqrt(m11-m22-m00+1)
  286. local recip = 0.5/s
  287. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  288. elseif i == 2 then
  289. local s = math.sqrt(m22-m00-m11+1)
  290. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  291. end
  292. end
  293. end
  294.  
  295. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  296. local xs, ys, zs = x + x, y + y, z + z
  297. local wx, wy, wz = w*xs, w*ys, w*zs
  298. local xx = x*xs
  299. local xy = x*ys
  300. local xz = x*zs
  301. local yy = y*ys
  302. local yz = y*zs
  303. local zz = z*zs
  304. 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))
  305. end
  306.  
  307. function QuaternionSlerp(a, b, t)
  308. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  309. local startInterp, finishInterp;
  310. if cosTheta >= 0.0001 then
  311. if (1 - cosTheta) > 0.0001 then
  312. local theta = math.acos(cosTheta)
  313. local invSinTheta = 1/math.sin(theta)
  314. startInterp = math.sin((1-t)*theta)*invSinTheta
  315. finishInterp = math.sin(t*theta)*invSinTheta
  316. else
  317. startInterp = 1-t
  318. finishInterp = t
  319. end
  320. else
  321. if (1+cosTheta) > 0.0001 then
  322. local theta = math.acos(-cosTheta)
  323. local invSinTheta = 1/math.sin(theta)
  324. startInterp = math.sin((t-1)*theta)*invSinTheta
  325. finishInterp = math.sin(t*theta)*invSinTheta
  326. else
  327. startInterp = t-1
  328. finishInterp = t
  329. end
  330. end
  331. 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
  332. end
  333.  
  334. function hideanim()
  335. equipped=false
  336. for i=0,1,0.1 do
  337. swait()
  338. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  340. Torso.Neck.C1=clerp(Torso.Neck.C1,necko2*euler(0,0,0),.4)
  341. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  342. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  343. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  344. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  345. RH.C0=clerp(RH.C0,RHC0,.2)
  346. RH.C1=clerp(RH.C1,RHC1,.2)
  347. LH.C0=clerp(LH.C0,LHC0,.2)
  348. LH.C1=clerp(LH.C1,LHC1,.2)
  349. end
  350. end
  351.  
  352. function equipanim()
  353. equipped=true
  354. for i=0,1,0.1 do
  355. swait()
  356. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  357. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  358. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3)
  359. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  360. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1),.3)
  361. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  362. end
  363. end
  364.  
  365. function attackone()
  366. attack=true
  367. for i=0,1,0.1 do
  368. swait()
  369. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.4),.3)
  370. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  371. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  372. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  373. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.3),.3)
  374. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  375. end
  376. num=math.random(1,#GiftbagGifts)
  377. GiftbagGifts[num].Mesh.Parent=nil
  378. Giftify(GiftbagGifts[num],1.3,1.3,1.3)
  379. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(1.3,1.3,1.3))
  380. Giftify(giftprt,1.3,1.3,1.3)
  381. local gwld=weld(giftprt,giftprt,RightArm,euler(1.57,0,0)*cf(0,1.3,0))
  382. for i=0,1,0.15 do
  383. swait()
  384. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  385. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  386. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0.5),.3)
  387. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  388. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-0.3),.3)
  389. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  390. end
  391. so("http://roblox.com/asset/?id=169445092",RightArm,1,math.random(80,120)/100)
  392. gwld.Parent=nil
  393. giftprt.Parent=workspace
  394. giftprt.CanCollide=true
  395. local TheHit=MMouse.Hit.p
  396. local MouseLook=cf((RootPart.Position+TheHit)/2,TheHit)
  397. --giftprt.Velocity=RootPart.CFrame.lookVector*100
  398. giftprt.Velocity=MouseLook.lookVector*160
  399. game:GetService("Debris"):AddItem(giftprt,5)
  400. Boom(giftprt,100,2,5,10,true)
  401. for i=0,1,0.1 do
  402. swait()
  403. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7),.3)
  404. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.3)
  405. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.2),.3)
  406. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  407. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-0.3),.3)
  408. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  409. end
  410. attack=false
  411. end
  412.  
  413. function attacktwo()
  414. attack=true
  415. for i=0,1,0.1 do
  416. swait()
  417. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,.4),.3)
  418. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  419. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.3),.3)
  420. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  422. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  423. end
  424. num=math.random(1,#GiftbagGifts)
  425. GiftbagGifts[num].Mesh.Parent=nil
  426. Giftify(GiftbagGifts[num],1.3,1.3,1.3)
  427. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(1.3,1.3,1.3))
  428. Giftify(giftprt,1.3,1.3,1.3)
  429. local gwld=weld(giftprt,giftprt,LeftArm,euler(1.57,0,0)*cf(0,1.3,0))
  430. for i=0,1,0.15 do
  431. swait()
  432. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  433. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,0.3),.3)
  435. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  436. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-0.5),.3)
  437. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  438. end
  439. so("http://roblox.com/asset/?id=169445092",LeftArm,1,math.random(80,120)/100)
  440. gwld.Parent=nil
  441. giftprt.Parent=workspace
  442. giftprt.CanCollide=true
  443. local TheHit=MMouse.Hit.p
  444. local MouseLook=cf((RootPart.Position+TheHit)/2,TheHit)
  445. --giftprt.Velocity=RootPart.CFrame.lookVector*100
  446. giftprt.Velocity=MouseLook.lookVector*160
  447. game:GetService("Debris"):AddItem(giftprt,5)
  448. Boom(giftprt,100,2,5,10,true)
  449. for i=0,1,0.1 do
  450. swait()
  451. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7),.3)
  452. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.7),.3)
  453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,0.3),.3)
  454. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  455. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-0.2),.3)
  456. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  457. end
  458. attack=false
  459. end
  460.  
  461. function attackthree()
  462. attack=true
  463. for i=0,1,0.1 do
  464. swait()
  465. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  466. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  467. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  468. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  470. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  471. end
  472. num=math.random(1,#GiftbagGifts)
  473. GiftbagGifts[num].Mesh.Parent=nil
  474. Giftify(GiftbagGifts[num],1.3,1.3,1.3)
  475. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(2,2,2))
  476. Giftify(giftprt,2,2,2)
  477. local gwld=weld(giftprt,giftprt,LeftArm,euler(1.57,0,0)*cf(-.8,1.8,0))
  478. for i=0,1,0.15 do
  479. swait()
  480. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  481. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  482. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,-0.4),.3)
  483. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  484. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0.4),.3)
  485. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  486. end
  487. so("http://roblox.com/asset/?id=169445092",LeftArm,1,math.random(60,90)/100)
  488. gwld.Parent=nil
  489. giftprt.Parent=workspace
  490. giftprt.CanCollide=true
  491. local TheHit=MMouse.Hit.p
  492. local MouseLook=cf((RootPart.Position+TheHit)/2,TheHit)
  493. --giftprt.Velocity=RootPart.CFrame.lookVector*100
  494. giftprt.Velocity=MouseLook.lookVector*120
  495. game:GetService("Debris"):AddItem(giftprt,5)
  496. Boom(giftprt,150,4,7,12,true)
  497. for i=0,1,0.1 do
  498. swait()
  499. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  500. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  501. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1,0,-0.4),.3)
  502. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  503. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1,0,0.4),.3)
  504. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  505. end
  506. attack=false
  507. end
  508.  
  509. function Surprise()
  510. attack=true
  511. for i=0,1,0.1 do
  512. swait()
  513. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  514. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  515. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  516. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  517. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  518. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  519. end
  520. num=math.random(1,#GiftbagGifts)
  521. GiftbagGifts[num].Mesh.Parent=nil
  522. Giftify(GiftbagGifts[num],1.3,1.3,1.3)
  523. Humanoid.WalkSpeed=0
  524. so("http://roblox.com/asset/?id=169445092",RightArm,1,math.random(50,80)/100)
  525. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(6,6,6))
  526. Giftify(giftprt,6,6,6)
  527. local gwld=weld(giftprt,giftprt,LeftArm,euler(1.57,0,.4)*cf(-.2,2.5,0))
  528. for i=0,1,0.1 do
  529. swait()
  530. Neck.C0=clerp(Neck.C0,necko*euler(0.2,0,0),.3)
  531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,0),.3)
  532. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,-0.4),.3)
  533. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  534. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0.4),.3)
  535. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  536. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  537. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.3)
  538. end
  539. Humanoid.WalkSpeed=16
  540. gwld.Parent=nil
  541. giftprt.Parent=workspace
  542. giftprt.CanCollide=true
  543. game:GetService("Debris"):AddItem(giftprt,10)
  544. Boom(giftprt,300,6,10,20,false)
  545. attack=false
  546. end
  547.  
  548. function PartyCannon()
  549. attack=true
  550. for i=0,1,0.1 do
  551. swait()
  552. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  553. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  554. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  555. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  556. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  557. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  558. end
  559. Humanoid.WalkSpeed=0
  560. local cannon=part(3,modelzorz,0,0,BrickColor.new("Bright stone grey"),"Cannon",vt())
  561. local cmsh=mesh("SpecialMesh",cannon,"FileMesh","http://www.roblox.com/asset/?id=110153429",vt(0,0,0),vt(1.5,1.5,1.5))
  562. local cwld=weld(cannon,cannon,LeftArm,euler(1.57,0,.4)*cf(-0.6,2,-0.5))
  563. for i=0,1,0.1 do
  564. swait()
  565. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  566. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,0),.3)
  567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,-0.4),.3)
  568. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  569. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0.4),.3)
  570. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  571. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  572. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.3)
  573. end
  574. swait(5)
  575. so("http://roblox.com/asset/?id=146767803",cannon,1,1)
  576. swait(5)
  577. MagicBlock(BrickColor.new("Bright red"),cannon.CFrame,1,1,1,3,3,3,.05,1)
  578. Torso.Velocity=RootPart.CFrame.lookVector*-130
  579. for i=1,30 do
  580. local confetti=part(3,workspace,0,0,BrickColor.Random(),"Confetti",vt())
  581. local cmsh=mesh("BlockMesh",confetti,"","",vt(0,0,0),vt(3,1,3))
  582. confetti.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  583. confetti.Velocity=(RootPart.CFrame.lookVector*math.random(40,60))+(vt(math.random(-100,100)/100,1,math.random(-100,100)/100)*math.random(60,80))
  584. game:GetService("Debris"):AddItem(confetti,5)
  585. end
  586. for i=1,10 do
  587. num=math.random(100,400)/100
  588. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  589. Giftify(giftprt,num,num,num)
  590. giftprt.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,-100)/100)
  591. giftprt.CanCollide=true
  592. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(40,60))+(vt(0,1,0)*math.random(60,80))
  593. game:GetService("Debris"):AddItem(giftprt,10)
  594. Boom(giftprt,math.random(200,600),num,10,20,false)
  595. end
  596. --[[for i=1,100 do
  597. num=math.random(100,400)/100
  598. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  599. Giftify(giftprt,num,num,num)
  600. giftprt.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,-100)/100)
  601. giftprt.CanCollide=true
  602. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(30,80))+(vt(0,1,0)*math.random(60,80))
  603. game:GetService("Debris"):AddItem(giftprt,10)
  604. Boom(giftprt,math.random(200,600),num,10,20,false)
  605. end]]
  606. swait(100)
  607. cannon.Parent=nil
  608. Humanoid.WalkSpeed=16
  609. attack=false
  610. end
  611.  
  612. function SnowDay()
  613. attack=true
  614. Humanoid.WalkSpeed=0
  615. local gairo=Instance.new("BodyGyro")
  616. gairo.Parent=RootPart
  617. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  618. gairo.P=20e+003
  619. gairo.cframe=RootPart.CFrame
  620. s=Instance.new("Sound")
  621. s.Parent=Torso
  622. s.Pitch=1
  623. s.Volume=1
  624. s.SoundId="http://www.roblox.com/asset/?id=19358641"
  625. s.Looped=true
  626. s:Play()
  627. num=0
  628. num2=0
  629. num3=0
  630. CF=RootPart.CFrame
  631. local snowfield=part(3,modelzorz,0,1,BrickColor.new("White"),"SnowField",vt())
  632. local cmsh=mesh("CylinderMesh",snowfield,"","",vt(0,0,0),vt(300,1,300))
  633. snowfield.Anchored=true
  634. snowfield.CFrame=cf(RootPart.Position)*cf(0,-3,0)
  635. while holdc==true do
  636. swait()
  637. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  638. if hitfloor2~=nil then
  639. snowfield.CFrame=cf(posfloor2)
  640. end
  641. if snowfield.Transparency>=.85 then
  642. snowfield.Transparency=snowfield.Transparency-0.0001
  643. end
  644. Neck.C0=clerp(Neck.C0,necko*euler(-.6,0,0),.3)
  645. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  646. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,.8),.3)
  647. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  648. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3,0,-.8),.3)
  649. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  650. MagicBlock(BrickColor.new("White"),LeftArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1)
  651. MagicBlock(BrickColor.new("White"),RightArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1)
  652. gairo.cframe=CF*euler(0,num,0)
  653. num=num+0.1
  654. num2=num2+1
  655. if num2%100==0 then
  656. MagniDamage(RootPart,30,0,10,math.random(1,5),"Knockdown")
  657. end
  658. if num2%20==0 then
  659. local cloud=part(3,workspace,0,0,BrickColor.new("White"),"Cloud",vt())
  660. local cmsh=mesh("SpecialMesh",cloud,"FileMesh","http://www.roblox.com/asset/?id=1095708",vt(0,0,0),vt(8,8,8))
  661. cloud.Anchored=true
  662. cloud.CFrame=cf(RootPart.Position)*cf(math.random(-2000,2000)/100,30,math.random(-2000,2000)/100)*euler(0,1.57,0)
  663. game:GetService("Debris"):AddItem(cloud,5)
  664. table.insert(Effects,{cloud,"Snow",40,0})
  665. end
  666. end
  667. snowfield.Parent=nil
  668. gairo.Parent=nil
  669. s:Stop()
  670. s.Parent=nil
  671. Humanoid.WalkSpeed=16
  672. attack=false
  673. end
  674.  
  675. function SantaSleigh()
  676. attack=true
  677. Humanoid.WalkSpeed=0
  678. for i=0,1,0.1 do
  679. swait()
  680. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  681. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  682. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  683. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  684. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  685. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  686. end
  687. local sleigh=part(3,modelzorz,0,0,BrickColor.new("White"),"Sleigh",vt())
  688. local smsh=mesh("SpecialMesh",sleigh,"FileMesh","http://www.roblox.com/asset/?id=67730602 ",vt(0,0,0),vt(1.5,1.5,1.5))
  689. smsh.TextureId="http://www.roblox.com/asset/?id=67730764"
  690. local swld=weld(sleigh,sleigh,LeftArm,euler(3.14,0,.4+1.57)*cf(-0.6,2,-1))
  691. for i=0,1,0.1 do
  692. swait()
  693. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,0),.3)
  695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,-0.4),.3)
  696. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0.4),.3)
  698. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  699. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  700. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.3)
  701. end
  702. swld.Part1=Torso
  703. swld.C0=euler(1.57,-1.57,0)*cf(0,1.2,0)
  704. wld2.C0=euler(0,1.57,0)*cf(0,-.8,-1.8)
  705. for i=0,1,0.1 do
  706. swait()
  707. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.4),.3)
  710. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  711. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.4),.3)
  712. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  713. RH.C0=clerp(RH.C0,cf(1,-1,-0)*euler(1.3,1.57,0)*euler(-0.2,0,0),.3)
  714. LH.C0=clerp(LH.C0,cf(-1,-1,-0)*euler(1.3,-1.57,0)*euler(-0.2,0,0),.3)
  715. end
  716. s=Instance.new("Sound")
  717. s.Parent=Torso
  718. s.Pitch=1
  719. s.Volume=1
  720. s.SoundId="http://www.roblox.com/asset/?id=19358641"
  721. s.Looped=true
  722. s:Play()
  723. bodvel=Instance.new("BodyVelocity")
  724. bodvel.Parent=RootPart
  725. bodvel.velocity=MMouse.Hit.lookVector*30
  726. bodvel.P=5000
  727. bodvel.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  728. local gairo=Instance.new("BodyGyro")
  729. gairo.Parent=RootPart
  730. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)
  731. gairo.P=3000
  732. gairo.cframe=RootPart.CFrame
  733. gift=0
  734. for i=1,1000 do
  735. swait()
  736. bodvel.velocity=MMouse.Hit.lookVector*80
  737. gairo.cframe=CFrame.new(RootPart.Position,MMouse.Hit.p)
  738. if gift>=20 then
  739. gift=0
  740. for i=1,5 do
  741. local confetti=part(3,workspace,0,0,BrickColor.Random(),"Confetti",vt())
  742. local cmsh=mesh("BlockMesh",confetti,"","",vt(0,0,0),vt(3,1,3))
  743. confetti.CFrame=RootPart.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  744. confetti.Velocity=(RootPart.CFrame.lookVector*math.random(40,60))+(vt(math.random(-100,100)/100,-1,math.random(-100,100)/100)*math.random(60,80))
  745. game:GetService("Debris"):AddItem(confetti,5)
  746. end
  747. for i=1,math.random(2,6) do
  748. num=math.random(100,300)/100
  749. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  750. Giftify(giftprt,num,num,num)
  751. giftprt.CFrame=RootPart.CFrame*cf(math.random(-300,300)/100,math.random(-500,-300)/100,math.random(-300,300)/100)
  752. giftprt.CanCollide=true
  753. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(20,40))+(vt(math.random(-1,1),-1,math.random(-1,1))*math.random(20,60))
  754. game:GetService("Debris"):AddItem(giftprt,10)
  755. Boom(giftprt,math.random(200,400),num,10,20,false)
  756. end
  757. end
  758. gift=gift+1
  759. end
  760. s:Stop()
  761. s.Parent=nil
  762. bodvel.Parent=nil
  763. gairo.Parent=nil
  764. wld2.C0=euler(0,1.57,0)*cf(0,.5,-1.5)
  765. Humanoid.WalkSpeed=16
  766. sleigh.Parent=nil
  767. attack=false
  768. end
  769.  
  770. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  771. for _,c in pairs(workspace:children()) do
  772. local hum=c:findFirstChild("Humanoid")
  773. if hum~=nil then
  774. local head=c:findFirstChild("Torso")
  775. if head~=nil then
  776. local targ=head.Position-Part.Position
  777. local mag=targ.magnitude
  778. if mag<=magni and c.Name~=Player.Name then
  779. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  780. end
  781. end
  782. end
  783. end
  784. end
  785.  
  786. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  787. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  788. end
  789.  
  790. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  791. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  792. prt.Anchored=true
  793. prt.CFrame=cframe
  794. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  795. game:GetService("Debris"):AddItem(prt,5)
  796. if Type==1 or Type==nil then
  797. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  798. elseif Type==2 then
  799. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  800. end
  801. end
  802.  
  803. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  804. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  805. prt.Anchored=true
  806. prt.CFrame=cframe
  807. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  808. game:GetService("Debris"):AddItem(prt,2)
  809. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  810. end
  811.  
  812. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  813. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  814. prt.Anchored=true
  815. prt.CFrame=cframe
  816. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  817. game:GetService("Debris"):AddItem(prt,5)
  818. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  819. end
  820.  
  821. function Boom(Part,numb,magnitude,mindam,maxdam,cantouch)
  822. if cantouch==true then
  823. con1=Part.Touched:connect(function(hit)
  824. if hit.Parent==nil then
  825. return
  826. end
  827. h=hit.Parent:FindFirstChild("Humanoid")
  828. for _,v in pairs(hit.Parent:children()) do
  829. if v:IsA("Humanoid") then
  830. h=v
  831. end
  832. end
  833. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  834. Part.Parent=nil
  835. end
  836. end)
  837. end
  838. table.insert(Effects,{Part,"Explode",numb,magnitude,mindam,maxdam})
  839. end
  840.  
  841. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  842. if hit.Parent==nil then
  843. return
  844. end
  845. h=hit.Parent:FindFirstChild("Humanoid")
  846. for _,v in pairs(hit.Parent:children()) do
  847. if v:IsA("Humanoid") then
  848. h=v
  849. end
  850. end
  851. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  852. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  853. end
  854. if hit.Parent.className=="Hat" then
  855. hit=hit.Parent.Parent:findFirstChild("Head")
  856. end
  857. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  858. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  859. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  860. return
  861. end]]
  862. -- hs(hit,1.2)
  863. c=Instance.new("ObjectValue")
  864. c.Name="creator"
  865. c.Value=game:service("Players").LocalPlayer
  866. c.Parent=h
  867. game:GetService("Debris"):AddItem(c,.5)
  868. Damage=math.random(minim,maxim)
  869. -- h:TakeDamage(Damage)
  870. blocked=false
  871. block=hit.Parent:findFirstChild("Block")
  872. if block~=nil then
  873. print(block.className)
  874. if block.className=="NumberValue" then
  875. if block.Value>0 then
  876. blocked=true
  877. if decreaseblock~=nil then
  878. block.Value=block.Value-decreaseblock
  879. end
  880. end
  881. end
  882. if block.className=="IntValue" then
  883. if block.Value>0 then
  884. blocked=true
  885. if decreaseblock~=nil then
  886. block.Value=block.Value-decreaseblock
  887. end
  888. end
  889. end
  890. end
  891. if blocked==false then
  892. -- h:TakeDamage(Damage)
  893. h.Health=h.Health-Damage
  894. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  895. else
  896. h.Health=h.Health-(Damage/2)
  897. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  898. end
  899. if Type=="Knockdown" then
  900. hum=hit.Parent.Humanoid
  901. hum.PlatformStand=true
  902. coroutine.resume(coroutine.create(function(HHumanoid)
  903. swait(1)
  904. HHumanoid.PlatformStand=false
  905. end),hum)
  906. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  907. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  908. local bodvol=Instance.new("BodyVelocity")
  909. bodvol.velocity=angle*knockback
  910. bodvol.P=5000
  911. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  912. bodvol.Parent=hit
  913. rl=Instance.new("BodyAngularVelocity")
  914. rl.P=3000
  915. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  916. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  917. rl.Parent=hit
  918. game:GetService("Debris"):AddItem(bodvol,.5)
  919. game:GetService("Debris"):AddItem(rl,.5)
  920. elseif Type=="Normal" then
  921. vp=Instance.new("BodyVelocity")
  922. vp.P=500
  923. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  924. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  925. if KnockbackType==1 then
  926. vp.velocity=Property.CFrame.lookVector*knockback
  927. elseif KnockbackType==2 then
  928. vp.velocity=Property.CFrame.lookVector*knockback
  929. end
  930. if knockback>0 then
  931. vp.Parent=hit.Parent.Torso
  932. end
  933. game:GetService("Debris"):AddItem(vp,.5)
  934. elseif Type=="Up" then
  935. local bodyVelocity=Instance.new("BodyVelocity")
  936. bodyVelocity.velocity=vt(0,30,0)
  937. bodyVelocity.P=5000
  938. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  939. bodyVelocity.Parent=hit
  940. game:GetService("Debris"):AddItem(bodyVelocity,1)
  941. rl=Instance.new("BodyAngularVelocity")
  942. rl.P=3000
  943. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  944. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  945. rl.Parent=hit
  946. game:GetService("Debris"):AddItem(rl,.5)
  947. elseif Type=="Snare" then
  948. bp=Instance.new("BodyPosition")
  949. bp.P=2000
  950. bp.D=100
  951. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  952. bp.position=hit.Parent.Torso.Position
  953. bp.Parent=hit.Parent.Torso
  954. game:GetService("Debris"):AddItem(bp,1)
  955. end
  956. debounce=Instance.new("BoolValue")
  957. debounce.Name="DebounceHit"
  958. debounce.Parent=hit.Parent
  959. debounce.Value=true
  960. game:GetService("Debris"):AddItem(debounce,Delay)
  961. c=Instance.new("ObjectValue")
  962. c.Name="creator"
  963. c.Value=Player
  964. c.Parent=h
  965. game:GetService("Debris"):AddItem(c,.5)
  966. CRIT=false
  967. end
  968. end
  969.  
  970. showDamage=function(Char,Dealt,du,Color)
  971. m=Instance.new("Model")
  972. m.Name=tostring(math.floor(Dealt))
  973. h=Instance.new("Humanoid")
  974. h.Health=0
  975. h.MaxHealth=0
  976. h.Parent=m
  977. c=Instance.new("Part")
  978. c.Transparency=0
  979. c.BrickColor=Color
  980. c.Name="Head"
  981. c.TopSurface=0
  982. c.BottomSurface=0
  983. c.formFactor="Plate"
  984. c.Size=Vector3.new(1,.4,1)
  985. ms=Instance.new("CylinderMesh")
  986. ms.Scale=Vector3.new(.8,.8,.8)
  987. if CRIT==true then
  988. ms.Scale=Vector3.new(1,1.25,1)
  989. end
  990. ms.Parent=c
  991. c.Reflectance=0
  992. Instance.new("BodyGyro").Parent=c
  993. c.Parent=m
  994. if Char:findFirstChild("Head")~=nil then
  995. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  996. elseif Char.Parent:findFirstChild("Head")~=nil then
  997. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  998. end
  999. f=Instance.new("BodyPosition")
  1000. f.P=2000
  1001. f.D=100
  1002. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1003. f.position=c.Position+Vector3.new(0,3,0)
  1004. f.Parent=c
  1005. game:GetService("Debris"):AddItem(m,.5+du)
  1006. c.CanCollide=false
  1007. m.Parent=workspace
  1008. c.CanCollide=false
  1009. end
  1010.  
  1011. combo=0
  1012. function ob1d(mouse)
  1013. if attack==true or equipped==false then return end
  1014. hold=true
  1015.  
  1016. if combo==0 then
  1017. combo=1
  1018. attackone()
  1019. elseif combo==1 then
  1020. combo=2
  1021. attacktwo()
  1022. elseif combo==2 then
  1023. combo=0
  1024. attackthree()
  1025. end
  1026. coroutine.resume(coroutine.create(function()
  1027. for i=1,50 do
  1028. if attack==false then
  1029. swait()
  1030. end
  1031. end
  1032. if attack==false then
  1033. combo=0
  1034. end
  1035. end))
  1036. end
  1037.  
  1038. function ob1u(mouse)
  1039. hold = false
  1040. end
  1041.  
  1042. buttonhold = false
  1043.  
  1044. eul=0
  1045. holdg=false
  1046. holdc=false
  1047. cansurprise=true
  1048. equipped=false
  1049. function key(key)
  1050. if key=="g" then
  1051. holdg=true
  1052. end
  1053. if key=="c" then
  1054. holdc=true
  1055. end
  1056. if attack==true then return end
  1057. if key=="f" then
  1058. attack=true
  1059. if equipped==false then
  1060. equipped=true
  1061. RSH=ch.Torso["Right Shoulder"]
  1062. LSH=ch.Torso["Left Shoulder"]
  1063. --
  1064. RSH.Parent=nil
  1065. LSH.Parent=nil
  1066. --
  1067. RW.Name="Right Shoulder"
  1068. RW.Part0=ch.Torso
  1069. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1070. RW.C1=cf(0, 0.5, 0)
  1071. RW.Part1=ch["Right Arm"]
  1072. RW.Parent=ch.Torso
  1073. --
  1074. LW.Name="Left Shoulder"
  1075. LW.Part0=ch.Torso
  1076. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1077. LW.C1=cf(0, 0.5, 0)
  1078. LW.Part1=ch["Left Arm"]
  1079. LW.Parent=ch.Torso
  1080. --
  1081. equipanim()
  1082. else
  1083. equipped=false
  1084. hideanim()
  1085. swait(0)
  1086. RW.Parent=nil
  1087. LW.Parent=nil
  1088. RSH.Parent=player.Character.Torso
  1089. LSH.Parent=player.Character.Torso
  1090. end
  1091. attack=false
  1092. end
  1093. if equipped==false then return end
  1094. if key=="z" and cansurprise==true then
  1095. Surprise()
  1096. cansurprise=false
  1097. coroutine.resume(coroutine.create(function()
  1098. wait(5)
  1099. cansurprise=true
  1100. end))
  1101. end
  1102. if key=="x" then
  1103. PartyCannon()
  1104. end
  1105. if key=="c" then
  1106. SnowDay()
  1107. end
  1108. if key=="v" and cansleigh==true then
  1109. cansleigh=false
  1110. SantaSleigh()
  1111. end
  1112. --[[if key=="g" then
  1113. while holdg==true do
  1114. swait()
  1115. attack=true
  1116. Neck.C0=clerp(Neck.C0,necko*euler(-.6,0,0),.3)
  1117. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1118. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,.8),.3)
  1119. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1120. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3,0,-.8),.3)
  1121. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1122. size=math.random(100,500)/100
  1123. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(size*2,size*2,size*2))
  1124. Giftify(giftprt,size*2,size*2,size*2)
  1125. giftprt.Parent=workspace
  1126. giftprt.CanCollide=true
  1127. giftprt.CFrame=Torso.CFrame*cf(math.random(-50,50),math.random(80,100),math.random(-50,50))
  1128. game:GetService("Debris"):AddItem(giftprt,5)
  1129. Boom(giftprt,size*100,size*2,5,10,false)
  1130. end
  1131. attack=false
  1132. end]]
  1133. end
  1134.  
  1135. function key2(key)
  1136. if key=="g" then
  1137. holdg=false
  1138. end
  1139. if key=="c" then
  1140. holdc=false
  1141. end
  1142. end
  1143.  
  1144. function s(mouse)
  1145. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1146. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1147. mouse.KeyDown:connect(key)
  1148. mouse.KeyUp:connect(key2)
  1149.  
  1150. player=Player
  1151. ch=Character
  1152. MMouse=mouse
  1153. end
  1154.  
  1155. function ds(mouse)
  1156. end
  1157.  
  1158. Bin.Selected:connect(s)
  1159. Bin.Deselected:connect(ds)
  1160. print("Santa's Elf loaded.")
  1161.  
  1162.  
  1163. local donum=0
  1164. while true do
  1165. swait()
  1166. if donum>=.5 then
  1167. handidle=true
  1168. elseif donum<=0 then
  1169. handidle=false
  1170. end
  1171. if handidle==false then
  1172. donum=donum+0.003
  1173. else
  1174. donum=donum-0.003
  1175. end
  1176. --between prt16 and prt17
  1177. --local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0))
  1178. --[[local top=prt16r.CFrame
  1179. local bottom=prt17r.CFrame
  1180. oristrpos=CFrame.new((top.p+bottom.p)/2)
  1181. local mg1=(top.p-oristrpos.p).magnitude
  1182. local mg2=(bottom.p-oristrpos.p).magnitude
  1183. cff=CFrame.new(top*angles(1.57,0,0).p,prt17r.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  1184. hit2=prt27
  1185. hit=prt17r
  1186. wld27.Parent=prt27
  1187. wld27.Part0=hit2
  1188. wld27.Part1=hit
  1189. HitPos=cff.p
  1190. local CJ = CFrame.new(HitPos)
  1191. local C0=cff:inverse() *CJ
  1192. local C1=hit.CFrame:inverse() * CJ
  1193. wld27.C0=clerp(wld27.C0,C0,.1)
  1194. wld27.C1=clerp(wld27.C1,C1,.1)]]
  1195. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1196. local velderp=RootPart.Velocity.y
  1197. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1198. if equipped==true then
  1199. if attack==false then
  1200. idle=idle+1
  1201. else
  1202. idle=0
  1203. end
  1204. if idle>=500 then
  1205. if attack==false then
  1206. --Sheath()
  1207. end
  1208. end
  1209. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1210. Anim="Jump"
  1211. if attack==false then
  1212. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1213. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1214. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1215. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1216. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1217. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1218. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1219. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1220. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1221. end
  1222. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1223. Anim="Fall"
  1224. if attack==false then
  1225. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1226. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1227. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1228. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1229. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1231. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1232. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1233. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1234. end
  1235. elseif torvel<1 and hitfloor~=nil then
  1236. Anim="Idle"
  1237. if attack==false then
  1238. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1239. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1240. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1241. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1-(donum/5)),.3)
  1242. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1243. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1+(donum/5)),.3)
  1244. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1245. RH.C0=clerp(RH.C0,RHC0,.3)
  1246. RH.C1=clerp(RH.C1,RHC1,.3)
  1247. LH.C0=clerp(LH.C0,LHC0,.3)
  1248. LH.C1=clerp(LH.C1,LHC1,.3)
  1249. end
  1250. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1251. Anim="Walk"
  1252. if attack==false then
  1253. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1254. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1255. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.3)
  1256. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.2,0,0.3),.3)
  1257. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1258. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.3),.3)
  1259. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1260. RH.C0=clerp(RH.C0,RHC0,.3)
  1261. LH.C0=clerp(LH.C0,LHC0,.3)
  1262. end
  1263. elseif torvel>=22 and hitfloor~=nil then
  1264. Anim="Run"
  1265. if attack==false then
  1266. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1267. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1268. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,0),.3)
  1269. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.5,0,0.5),.3)
  1270. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1271. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3)
  1272. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1273. end
  1274. end
  1275. end
  1276. if #Effects>0 then
  1277. --table.insert(Effects,{prt,"Block1",delay})
  1278. for e=1,#Effects do
  1279. if Effects[e]~=nil then
  1280. --for j=1,#Effects[e] do
  1281. local Thing=Effects[e]
  1282. if Thing~=nil then
  1283. local Part=Thing[1]
  1284. local Mode=Thing[2]
  1285. local Delay=Thing[3]
  1286. local IncX=Thing[4]
  1287. local IncY=Thing[5]
  1288. local IncZ=Thing[6]
  1289. if Thing[2]=="Snow" then
  1290. if Thing[1].Parent~=nil then
  1291. if Thing[4]==Thing[3] then
  1292. local snow=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt())
  1293. snow.CFrame=Thing[1].CFrame*cf(math.random(-300,300)/100,0,math.random(-300,300)/100)
  1294. local smsh=mesh("SpecialMesh",snow,"Sphere","",vt(0,0,0),vt(1,1,1))
  1295. bodvol=Instance.new("BodyVelocity")
  1296. bodvol.Parent=snow
  1297. bodvol.velocity=vt(0,-1,0)*10
  1298. bodvol.P=5000
  1299. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1300. game:GetService("Debris"):AddItem(snow,5)
  1301. Thing[4]=0
  1302. else
  1303. Thing[4]=Thing[4]+1
  1304. end
  1305. end
  1306. end
  1307. if Thing[2]=="Explode" then
  1308. if Thing[3]<=0 or Thing[1].Parent==nil then
  1309. Thing[1].Parent=nil
  1310. size=Thing[4]
  1311. MagicBlock(BrickColor.new("Bright red"),Thing[1].CFrame,1,1,1,size,size,size,.05,1)
  1312. MagicCircle(BrickColor.new("Bright yellow"),Thing[1].CFrame,1,1,1,size*5,size*5,size*5,.1)
  1313. local prtt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1314. prtt.Anchored=true
  1315. prtt.CFrame=Thing[1].CFrame
  1316. MagniDamage(prtt,size*5,Thing[5],Thing[6],math.random(size*2,size*3),"Normal")
  1317. game:GetService("Debris"):AddItem(prtt,1)
  1318. so("http://roblox.com/asset/?id=2101148",prtt,1,1)
  1319. table.remove(Effects,e)
  1320. end
  1321. Thing[3]=Thing[3]-1
  1322. end
  1323. if Thing[1].Transparency<=1 then
  1324. if Thing[2]=="Block1" then
  1325. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1326. Mesh=Thing[7]
  1327. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1328. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1329. elseif Thing[2]=="Block2" then
  1330. Thing[1].CFrame=Thing[1].CFrame
  1331. Mesh=Thing[7]
  1332. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1333. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1334. elseif Thing[2]=="Cylinder" then
  1335. Mesh=Thing[7]
  1336. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1337. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1338. elseif Thing[2]=="Blood" then
  1339. Mesh=Thing[7]
  1340. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1341. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1342. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1343. elseif Thing[2]=="Elec" then
  1344. Mesh=Thing[1].Mesh
  1345. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1346. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1347. elseif Thing[2]=="Disappear" then
  1348. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1349. end
  1350. else
  1351. Part.Parent=nil
  1352. table.remove(Effects,e)
  1353. end
  1354. end
  1355. --end
  1356. end
  1357. end
  1358. end
  1359. end
  1360.  
  1361. --[[
  1362. Copyrighted (C) Fenrier 2014
  1363. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement