frog2128

Untitled

Mar 11th, 2015
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.58 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. for i=1,10 do
  576. so("http://roblox.com/asset/?id=146767803",cannon,1,1)
  577. swait(5)
  578. MagicBlock(BrickColor.new("Bright red"),cannon.CFrame,1,1,1,3,3,3,.05,1)
  579. Torso.Velocity=RootPart.CFrame.lookVector*-130
  580. for i=1,30 do
  581. local confetti=part(3,workspace,0,0,BrickColor.Random(),"Confetti",vt())
  582. local cmsh=mesh("BlockMesh",confetti,"","",vt(0,0,0),vt(3,1,3))
  583. confetti.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  584. 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))
  585. game:GetService("Debris"):AddItem(confetti,5)
  586. end
  587. --[[for i=1,10 do
  588. num=math.random(100,400)/100
  589. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  590. Giftify(giftprt,num,num,num)
  591. giftprt.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,-100)/100)
  592. giftprt.CanCollide=true
  593. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(40,60))+(vt(0,1,0)*math.random(60,80))
  594. game:GetService("Debris"):AddItem(giftprt,10)
  595. Boom(giftprt,math.random(200,600),num,10,20,true)
  596. end]]
  597. --[[for i=1,100 do
  598. num=math.random(100,400)/100
  599. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  600. Giftify(giftprt,num,num,num)
  601. giftprt.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,-100)/100)
  602. giftprt.CanCollide=true
  603. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(30,80))+(vt(0,1,0)*math.random(60,80))
  604. game:GetService("Debris"):AddItem(giftprt,10)
  605. Boom(giftprt,math.random(200,600),num,10,20,true)
  606. end]]
  607. for i=1,5 do
  608. num=math.random(200,1000)/100
  609. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  610. Giftify(giftprt,num,num,num)
  611. giftprt.CFrame=cannon.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,-100)/100)
  612. giftprt.CanCollide=true
  613. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(50,100))+(vt(0,1,0)*math.random(60,80))
  614. game:GetService("Debris"):AddItem(giftprt,10)
  615. Boom(giftprt,math.random(200,600),num,10,20,true)
  616. end
  617. end
  618. --swait(100)
  619. cannon.Parent=nil
  620. Humanoid.WalkSpeed=16
  621. attack=false
  622. end
  623.  
  624. function SnowDay()
  625. attack=true
  626. Humanoid.WalkSpeed=0
  627. local gairo=Instance.new("BodyGyro")
  628. gairo.Parent=RootPart
  629. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  630. gairo.P=20e+003
  631. gairo.cframe=RootPart.CFrame
  632. s=Instance.new("Sound")
  633. s.Parent=Torso
  634. s.Pitch=1
  635. s.Volume=1
  636. s.SoundId="http://www.roblox.com/asset/?id=19358641"
  637. s.Looped=true
  638. s:Play()
  639. num=0
  640. num2=0
  641. num3=0
  642. CF=RootPart.CFrame
  643. local snowfield=part(3,modelzorz,0,1,BrickColor.new("White"),"SnowField",vt())
  644. local cmsh=mesh("CylinderMesh",snowfield,"","",vt(0,0,0),vt(300,1,300))
  645. snowfield.Anchored=true
  646. snowfield.CFrame=cf(RootPart.Position)*cf(0,-3,0)
  647. while holdc==true do
  648. swait()
  649. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  650. if hitfloor2~=nil then
  651. snowfield.CFrame=cf(posfloor2)
  652. end
  653. if snowfield.Transparency>=.85 then
  654. snowfield.Transparency=snowfield.Transparency-0.0001
  655. end
  656. Neck.C0=clerp(Neck.C0,necko*euler(-.6,0,0),.3)
  657. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  658. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,.8),.3)
  659. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  660. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3,0,-.8),.3)
  661. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  662. MagicBlock(BrickColor.new("White"),LeftArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1)
  663. MagicBlock(BrickColor.new("White"),RightArm.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,1)
  664. gairo.cframe=CF*euler(0,num,0)
  665. num=num+0.1
  666. num2=num2+1
  667. if num2%100==0 then
  668. MagniDamage(RootPart,30,0,10,math.random(1,5),"Knockdown")
  669. end
  670. if num2%20==0 then
  671. local cloud=part(3,workspace,0,0,BrickColor.new("White"),"Cloud",vt())
  672. local cmsh=mesh("SpecialMesh",cloud,"FileMesh","http://www.roblox.com/asset/?id=1095708",vt(0,0,0),vt(8,8,8))
  673. cloud.Anchored=true
  674. cloud.CFrame=cf(RootPart.Position)*cf(math.random(-2000,2000)/100,30,math.random(-2000,2000)/100)*euler(0,1.57,0)
  675. game:GetService("Debris"):AddItem(cloud,5)
  676. table.insert(Effects,{cloud,"Snow",40,0})
  677. end
  678. end
  679. snowfield.Parent=nil
  680. gairo.Parent=nil
  681. s:Stop()
  682. s.Parent=nil
  683. Humanoid.WalkSpeed=16
  684. attack=false
  685. end
  686.  
  687. function SantaSleigh()
  688. attack=true
  689. Humanoid.WalkSpeed=0
  690. for i=0,1,0.1 do
  691. swait()
  692. Neck.C0=clerp(Neck.C0,necko*euler(-.5,0,0),.3)
  693. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.8,0,-0.4),.3)
  695. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,0.4),.3)
  697. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  698. end
  699. local sleigh=part(3,modelzorz,0,0,BrickColor.new("White"),"Sleigh",vt())
  700. local smsh=mesh("SpecialMesh",sleigh,"FileMesh","http://www.roblox.com/asset/?id=67730602 ",vt(0,0,0),vt(1.5,1.5,1.5))
  701. smsh.TextureId="http://www.roblox.com/asset/?id=67730764"
  702. local swld=weld(sleigh,sleigh,LeftArm,euler(3.14,0,.4+1.57)*cf(-0.6,2,-1))
  703. for i=0,1,0.1 do
  704. swait()
  705. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  706. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,0),.3)
  707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,-0.4),.3)
  708. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  709. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0.4),.3)
  710. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  711. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  712. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.3)
  713. end
  714. swld.Part1=Torso
  715. swld.C0=euler(1.57,-1.57,0)*cf(0,1.2,0)
  716. wld2.C0=euler(0,1.57,0)*cf(0,-.8,-1.8)
  717. for i=0,1,0.1 do
  718. swait()
  719. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  720. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  721. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.4),.3)
  722. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  723. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.4),.3)
  724. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  725. RH.C0=clerp(RH.C0,cf(1,-1,-0)*euler(1.3,1.57,0)*euler(-0.2,0,0),.3)
  726. LH.C0=clerp(LH.C0,cf(-1,-1,-0)*euler(1.3,-1.57,0)*euler(-0.2,0,0),.3)
  727. end
  728. s=Instance.new("Sound")
  729. s.Parent=Torso
  730. s.Pitch=1
  731. s.Volume=1
  732. s.SoundId="http://www.roblox.com/asset/?id=19358641"
  733. s.Looped=true
  734. s:Play()
  735. bodvel=Instance.new("BodyVelocity")
  736. bodvel.Parent=RootPart
  737. bodvel.velocity=MMouse.Hit.lookVector*30
  738. bodvel.P=5000
  739. bodvel.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  740. local gairo=Instance.new("BodyGyro")
  741. gairo.Parent=RootPart
  742. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)
  743. gairo.P=3000
  744. gairo.cframe=RootPart.CFrame
  745. gift=0
  746. for i=1,1000 do
  747. swait()
  748. bodvel.velocity=MMouse.Hit.lookVector*80
  749. gairo.cframe=CFrame.new(RootPart.Position,MMouse.Hit.p)
  750. if gift>=20 then
  751. gift=0
  752. for i=1,5 do
  753. local confetti=part(3,workspace,0,0,BrickColor.Random(),"Confetti",vt())
  754. local cmsh=mesh("BlockMesh",confetti,"","",vt(0,0,0),vt(3,1,3))
  755. confetti.CFrame=RootPart.CFrame*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  756. 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))
  757. game:GetService("Debris"):AddItem(confetti,5)
  758. end
  759. for i=1,math.random(2,6) do
  760. num=math.random(100,300)/100
  761. local giftprt=part(3,workspace,0,0,BrickColor.new("Black"),"Gift",vt(num,num,num))
  762. Giftify(giftprt,num,num,num)
  763. giftprt.CFrame=RootPart.CFrame*cf(math.random(-300,300)/100,math.random(-500,-300)/100,math.random(-300,300)/100)
  764. giftprt.CanCollide=true
  765. giftprt.Velocity=(RootPart.CFrame.lookVector*math.random(20,40))+(vt(math.random(-1,1),-1,math.random(-1,1))*math.random(20,60))
  766. game:GetService("Debris"):AddItem(giftprt,10)
  767. Boom(giftprt,math.random(200,400),num,10,20,false)
  768. end
  769. end
  770. gift=gift+1
  771. end
  772. s:Stop()
  773. s.Parent=nil
  774. bodvel.Parent=nil
  775. gairo.Parent=nil
  776. wld2.C0=euler(0,1.57,0)*cf(0,.5,-1.5)
  777. Humanoid.WalkSpeed=16
  778. sleigh.Parent=nil
  779. attack=false
  780. end
  781.  
  782. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  783. for _,c in pairs(workspace:children()) do
  784. local hum=c:findFirstChild("Humanoid")
  785. if hum~=nil then
  786. local head=c:findFirstChild("Torso")
  787. if head~=nil then
  788. local targ=head.Position-Part.Position
  789. local mag=targ.magnitude
  790. if mag<=magni and c.Name~=Player.Name then
  791. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  792. end
  793. end
  794. end
  795. end
  796. end
  797.  
  798. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  799. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  800. end
  801.  
  802. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  803. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  804. prt.Anchored=true
  805. prt.CFrame=cframe
  806. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  807. game:GetService("Debris"):AddItem(prt,5)
  808. if Type==1 or Type==nil then
  809. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  810. elseif Type==2 then
  811. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  812. end
  813. end
  814.  
  815. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  816. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  817. prt.Anchored=true
  818. prt.CFrame=cframe
  819. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  820. game:GetService("Debris"):AddItem(prt,2)
  821. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  822. end
  823.  
  824. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  825. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  826. prt.Anchored=true
  827. prt.CFrame=cframe
  828. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  829. game:GetService("Debris"):AddItem(prt,5)
  830. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  831. end
  832.  
  833. function Boom(Part,numb,magnitude,mindam,maxdam,cantouch)
  834. if cantouch==true then
  835. con1=Part.Touched:connect(function(hit)
  836. if hit.Parent==nil then
  837. return
  838. end
  839. h=hit.Parent:FindFirstChild("Humanoid")
  840. for _,v in pairs(hit.Parent:children()) do
  841. if v:IsA("Humanoid") then
  842. h=v
  843. end
  844. end
  845. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  846. Part.Parent=nil
  847. end
  848. end)
  849. end
  850. table.insert(Effects,{Part,"Explode",numb,magnitude,mindam,maxdam})
  851. end
  852.  
  853. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  854. if hit.Parent==nil then
  855. return
  856. end
  857. h=hit.Parent:FindFirstChild("Humanoid")
  858. for _,v in pairs(hit.Parent:children()) do
  859. if v:IsA("Humanoid") then
  860. h=v
  861. end
  862. end
  863. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  864. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  865. end
  866. if hit.Parent.className=="Hat" then
  867. hit=hit.Parent.Parent:findFirstChild("Head")
  868. end
  869. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  870. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  871. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  872. return
  873. end]]
  874. -- hs(hit,1.2)
  875. c=Instance.new("ObjectValue")
  876. c.Name="creator"
  877. c.Value=game:service("Players").LocalPlayer
  878. c.Parent=h
  879. game:GetService("Debris"):AddItem(c,.5)
  880. Damage=math.random(minim,maxim)
  881. -- h:TakeDamage(Damage)
  882. blocked=false
  883. block=hit.Parent:findFirstChild("Block")
  884. if block~=nil then
  885. print(block.className)
  886. if block.className=="NumberValue" then
  887. if block.Value>0 then
  888. blocked=true
  889. if decreaseblock~=nil then
  890. block.Value=block.Value-decreaseblock
  891. end
  892. end
  893. end
  894. if block.className=="IntValue" then
  895. if block.Value>0 then
  896. blocked=true
  897. if decreaseblock~=nil then
  898. block.Value=block.Value-decreaseblock
  899. end
  900. end
  901. end
  902. end
  903. if blocked==false then
  904. -- h:TakeDamage(Damage)
  905. h.Health=h.Health-Damage
  906. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  907. else
  908. h.Health=h.Health-(Damage/2)
  909. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  910. end
  911. if Type=="Knockdown" then
  912. hum=hit.Parent.Humanoid
  913. hum.PlatformStand=true
  914. coroutine.resume(coroutine.create(function(HHumanoid)
  915. swait(1)
  916. HHumanoid.PlatformStand=false
  917. end),hum)
  918. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  919. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  920. local bodvol=Instance.new("BodyVelocity")
  921. bodvol.velocity=angle*knockback
  922. bodvol.P=5000
  923. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  924. bodvol.Parent=hit
  925. rl=Instance.new("BodyAngularVelocity")
  926. rl.P=3000
  927. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  928. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  929. rl.Parent=hit
  930. game:GetService("Debris"):AddItem(bodvol,.5)
  931. game:GetService("Debris"):AddItem(rl,.5)
  932. elseif Type=="Normal" then
  933. vp=Instance.new("BodyVelocity")
  934. vp.P=500
  935. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  936. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  937. if KnockbackType==1 then
  938. vp.velocity=Property.CFrame.lookVector*knockback
  939. elseif KnockbackType==2 then
  940. vp.velocity=Property.CFrame.lookVector*knockback
  941. end
  942. if knockback>0 then
  943. vp.Parent=hit.Parent.Torso
  944. end
  945. game:GetService("Debris"):AddItem(vp,.5)
  946. elseif Type=="Up" then
  947. local bodyVelocity=Instance.new("BodyVelocity")
  948. bodyVelocity.velocity=vt(0,30,0)
  949. bodyVelocity.P=5000
  950. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  951. bodyVelocity.Parent=hit
  952. game:GetService("Debris"):AddItem(bodyVelocity,1)
  953. rl=Instance.new("BodyAngularVelocity")
  954. rl.P=3000
  955. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  956. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  957. rl.Parent=hit
  958. game:GetService("Debris"):AddItem(rl,.5)
  959. elseif Type=="Snare" then
  960. bp=Instance.new("BodyPosition")
  961. bp.P=2000
  962. bp.D=100
  963. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  964. bp.position=hit.Parent.Torso.Position
  965. bp.Parent=hit.Parent.Torso
  966. game:GetService("Debris"):AddItem(bp,1)
  967. end
  968. debounce=Instance.new("BoolValue")
  969. debounce.Name="DebounceHit"
  970. debounce.Parent=hit.Parent
  971. debounce.Value=true
  972. game:GetService("Debris"):AddItem(debounce,Delay)
  973. c=Instance.new("ObjectValue")
  974. c.Name="creator"
  975. c.Value=Player
  976. c.Parent=h
  977. game:GetService("Debris"):AddItem(c,.5)
  978. CRIT=false
  979. end
  980. end
  981.  
  982. showDamage=function(Char,Dealt,du,Color)
  983. m=Instance.new("Model")
  984. m.Name=tostring(math.floor(Dealt))
  985. h=Instance.new("Humanoid")
  986. h.Health=0
  987. h.MaxHealth=0
  988. h.Parent=m
  989. c=Instance.new("Part")
  990. c.Transparency=0
  991. c.BrickColor=Color
  992. c.Name="Head"
  993. c.TopSurface=0
  994. c.BottomSurface=0
  995. c.formFactor="Plate"
  996. c.Size=Vector3.new(1,.4,1)
  997. ms=Instance.new("CylinderMesh")
  998. ms.Scale=Vector3.new(.8,.8,.8)
  999. if CRIT==true then
  1000. ms.Scale=Vector3.new(1,1.25,1)
  1001. end
  1002. ms.Parent=c
  1003. c.Reflectance=0
  1004. Instance.new("BodyGyro").Parent=c
  1005. c.Parent=m
  1006. if Char:findFirstChild("Head")~=nil then
  1007. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1008. elseif Char.Parent:findFirstChild("Head")~=nil then
  1009. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1010. end
  1011. f=Instance.new("BodyPosition")
  1012. f.P=2000
  1013. f.D=100
  1014. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1015. f.position=c.Position+Vector3.new(0,3,0)
  1016. f.Parent=c
  1017. game:GetService("Debris"):AddItem(m,.5+du)
  1018. c.CanCollide=false
  1019. m.Parent=workspace
  1020. c.CanCollide=false
  1021. end
  1022.  
  1023. combo=0
  1024. function ob1d(mouse)
  1025. if attack==true or equipped==false then return end
  1026. hold=true
  1027.  
  1028. if combo==0 then
  1029. combo=1
  1030. attackone()
  1031. elseif combo==1 then
  1032. combo=2
  1033. attacktwo()
  1034. elseif combo==2 then
  1035. combo=0
  1036. attackthree()
  1037. end
  1038. coroutine.resume(coroutine.create(function()
  1039. for i=1,50 do
  1040. if attack==false then
  1041. swait()
  1042. end
  1043. end
  1044. if attack==false then
  1045. combo=0
  1046. end
  1047. end))
  1048. end
  1049.  
  1050. function ob1u(mouse)
  1051. hold = false
  1052. end
  1053.  
  1054. buttonhold = false
  1055.  
  1056. eul=0
  1057. holdg=false
  1058. holdc=false
  1059. cansurprise=true
  1060. equipped=false
  1061. function key(key)
  1062. if key=="g" then
  1063. holdg=true
  1064. end
  1065. if key=="c" then
  1066. holdc=true
  1067. end
  1068. if attack==true then return end
  1069. if key=="f" then
  1070. attack=true
  1071. if equipped==false then
  1072. equipped=true
  1073. RSH=ch.Torso["Right Shoulder"]
  1074. LSH=ch.Torso["Left Shoulder"]
  1075. --
  1076. RSH.Parent=nil
  1077. LSH.Parent=nil
  1078. --
  1079. RW.Name="Right Shoulder"
  1080. RW.Part0=ch.Torso
  1081. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1082. RW.C1=cf(0, 0.5, 0)
  1083. RW.Part1=ch["Right Arm"]
  1084. RW.Parent=ch.Torso
  1085. --
  1086. LW.Name="Left Shoulder"
  1087. LW.Part0=ch.Torso
  1088. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1089. LW.C1=cf(0, 0.5, 0)
  1090. LW.Part1=ch["Left Arm"]
  1091. LW.Parent=ch.Torso
  1092. --
  1093. equipanim()
  1094. else
  1095. equipped=false
  1096. hideanim()
  1097. swait(0)
  1098. RW.Parent=nil
  1099. LW.Parent=nil
  1100. RSH.Parent=player.Character.Torso
  1101. LSH.Parent=player.Character.Torso
  1102. end
  1103. attack=false
  1104. end
  1105. if equipped==false then return end
  1106. if key=="z" and cansurprise==true then
  1107. Surprise()
  1108. cansurprise=false
  1109. coroutine.resume(coroutine.create(function()
  1110. wait(5)
  1111. cansurprise=true
  1112. end))
  1113. end
  1114. if key=="x" then
  1115. PartyCannon()
  1116. end
  1117. if key=="c" then
  1118. SnowDay()
  1119. end
  1120. if key=="v" and cansleigh==true then
  1121. cansleigh=false
  1122. SantaSleigh()
  1123. end
  1124. --[[if key=="g" then
  1125. while holdg==true do
  1126. swait()
  1127. attack=true
  1128. Neck.C0=clerp(Neck.C0,necko*euler(-.6,0,0),.3)
  1129. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1130. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,.8),.3)
  1131. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1132. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3,0,-.8),.3)
  1133. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1134. size=math.random(100,500)/100
  1135. local giftprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Gift",vt(size*2,size*2,size*2))
  1136. Giftify(giftprt,size*2,size*2,size*2)
  1137. giftprt.Parent=workspace
  1138. giftprt.CanCollide=true
  1139. giftprt.CFrame=Torso.CFrame*cf(math.random(-50,50),math.random(80,100),math.random(-50,50))
  1140. game:GetService("Debris"):AddItem(giftprt,5)
  1141. Boom(giftprt,size*100,size*2,5,10,false)
  1142. end
  1143. attack=false
  1144. end]]
  1145. end
  1146.  
  1147. function key2(key)
  1148. if key=="g" then
  1149. holdg=false
  1150. end
  1151. if key=="c" then
  1152. holdc=false
  1153. end
  1154. end
  1155.  
  1156. function s(mouse)
  1157. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1158. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1159. mouse.KeyDown:connect(key)
  1160. mouse.KeyUp:connect(key2)
  1161.  
  1162. player=Player
  1163. ch=Character
  1164. MMouse=mouse
  1165. end
  1166.  
  1167. function ds(mouse)
  1168. end
  1169.  
  1170. Bin.Selected:connect(s)
  1171. Bin.Deselected:connect(ds)
  1172. print("Santa's Elf loaded.")
  1173.  
  1174.  
  1175. local donum=0
  1176. while true do
  1177. swait()
  1178. if donum>=.5 then
  1179. handidle=true
  1180. elseif donum<=0 then
  1181. handidle=false
  1182. end
  1183. if handidle==false then
  1184. donum=donum+0.003
  1185. else
  1186. donum=donum-0.003
  1187. end
  1188. --between prt16 and prt17
  1189. --local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0))
  1190. --[[local top=prt16r.CFrame
  1191. local bottom=prt17r.CFrame
  1192. oristrpos=CFrame.new((top.p+bottom.p)/2)
  1193. local mg1=(top.p-oristrpos.p).magnitude
  1194. local mg2=(bottom.p-oristrpos.p).magnitude
  1195. cff=CFrame.new(top*angles(1.57,0,0).p,prt17r.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  1196. hit2=prt27
  1197. hit=prt17r
  1198. wld27.Parent=prt27
  1199. wld27.Part0=hit2
  1200. wld27.Part1=hit
  1201. HitPos=cff.p
  1202. local CJ = CFrame.new(HitPos)
  1203. local C0=cff:inverse() *CJ
  1204. local C1=hit.CFrame:inverse() * CJ
  1205. wld27.C0=clerp(wld27.C0,C0,.1)
  1206. wld27.C1=clerp(wld27.C1,C1,.1)]]
  1207. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1208. local velderp=RootPart.Velocity.y
  1209. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1210. if equipped==true then
  1211. if attack==false then
  1212. idle=idle+1
  1213. else
  1214. idle=0
  1215. end
  1216. if idle>=500 then
  1217. if attack==false then
  1218. --Sheath()
  1219. end
  1220. end
  1221. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1222. Anim="Jump"
  1223. if attack==false then
  1224. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1225. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1226. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1227. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1228. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1229. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1230. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1231. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1232. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1233. end
  1234. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1235. Anim="Fall"
  1236. if attack==false then
  1237. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1238. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1239. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1240. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1241. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1242. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1243. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1244. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1245. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1246. end
  1247. elseif torvel<1 and hitfloor~=nil then
  1248. Anim="Idle"
  1249. if attack==false then
  1250. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1251. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1252. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1253. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1-(donum/5)),.3)
  1254. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1255. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1+(donum/5)),.3)
  1256. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1257. RH.C0=clerp(RH.C0,RHC0,.3)
  1258. RH.C1=clerp(RH.C1,RHC1,.3)
  1259. LH.C0=clerp(LH.C0,LHC0,.3)
  1260. LH.C1=clerp(LH.C1,LHC1,.3)
  1261. end
  1262. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1263. Anim="Walk"
  1264. if attack==false then
  1265. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1266. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1267. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.3)
  1268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.2,0,0.3),.3)
  1269. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.3),.3)
  1271. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1272. RH.C0=clerp(RH.C0,RHC0,.3)
  1273. LH.C0=clerp(LH.C0,LHC0,.3)
  1274. end
  1275. elseif torvel>=22 and hitfloor~=nil then
  1276. Anim="Run"
  1277. if attack==false then
  1278. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1279. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1280. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,0),.3)
  1281. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.5,0,0.5),.3)
  1282. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1283. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3)
  1284. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1285. end
  1286. end
  1287. end
  1288. if #Effects>0 then
  1289. --table.insert(Effects,{prt,"Block1",delay})
  1290. for e=1,#Effects do
  1291. if Effects[e]~=nil then
  1292. --for j=1,#Effects[e] do
  1293. local Thing=Effects[e]
  1294. if Thing~=nil then
  1295. local Part=Thing[1]
  1296. local Mode=Thing[2]
  1297. local Delay=Thing[3]
  1298. local IncX=Thing[4]
  1299. local IncY=Thing[5]
  1300. local IncZ=Thing[6]
  1301. if Thing[2]=="Snow" then
  1302. if Thing[1].Parent~=nil then
  1303. if Thing[4]==Thing[3] then
  1304. local snow=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt())
  1305. snow.CFrame=Thing[1].CFrame*cf(math.random(-300,300)/100,0,math.random(-300,300)/100)
  1306. local smsh=mesh("SpecialMesh",snow,"Sphere","",vt(0,0,0),vt(1,1,1))
  1307. bodvol=Instance.new("BodyVelocity")
  1308. bodvol.Parent=snow
  1309. bodvol.velocity=vt(0,-1,0)*10
  1310. bodvol.P=5000
  1311. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1312. game:GetService("Debris"):AddItem(snow,5)
  1313. Thing[4]=0
  1314. else
  1315. Thing[4]=Thing[4]+1
  1316. end
  1317. end
  1318. end
  1319. if Thing[2]=="Explode" then
  1320. if Thing[3]<=0 or Thing[1].Parent==nil then
  1321. Thing[1].Parent=nil
  1322. size=Thing[4]
  1323. MagicBlock(BrickColor.new("Bright red"),Thing[1].CFrame,1,1,1,size,size,size,.05,1)
  1324. MagicCircle(BrickColor.new("Bright yellow"),Thing[1].CFrame,1,1,1,size*5,size*5,size*5,.1)
  1325. local prtt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1326. prtt.Anchored=true
  1327. prtt.CFrame=Thing[1].CFrame
  1328. MagniDamage(prtt,size*5,Thing[5],Thing[6],math.random(size*2,size*3),"Normal")
  1329. game:GetService("Debris"):AddItem(prtt,1)
  1330. so("http://roblox.com/asset/?id=2101148",prtt,1,1)
  1331. table.remove(Effects,e)
  1332. end
  1333. Thing[3]=Thing[3]-1
  1334. end
  1335. if Thing[1].Transparency<=1 then
  1336. if Thing[2]=="Block1" then
  1337. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1338. Mesh=Thing[7]
  1339. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1340. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1341. elseif Thing[2]=="Block2" then
  1342. Thing[1].CFrame=Thing[1].CFrame
  1343. Mesh=Thing[7]
  1344. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1345. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1346. elseif Thing[2]=="Cylinder" then
  1347. Mesh=Thing[7]
  1348. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1349. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1350. elseif Thing[2]=="Blood" then
  1351. Mesh=Thing[7]
  1352. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1353. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1354. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1355. elseif Thing[2]=="Elec" then
  1356. Mesh=Thing[1].Mesh
  1357. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1358. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1359. elseif Thing[2]=="Disappear" then
  1360. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1361. end
  1362. else
  1363. Part.Parent=nil
  1364. table.remove(Effects,e)
  1365. end
  1366. end
  1367. --end
  1368. end
  1369. end
  1370. end
  1371. end
  1372.  
  1373. --[[
  1374. Copyrighted (C) Fenrier 2014
  1375. ]]
Add Comment
Please, Sign In to add comment