Advertisement
Kaemi

Untitled

Feb 3rd, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.40 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --Converted with ttyyuu12345's model to script plugin v4
  87. function sandbox(var,func)
  88. local env = getfenv(func)
  89. local newenv = setmetatable({},{
  90. __index = function(self,k)
  91. if k=="script" then
  92. return var
  93. else
  94. return env[k]
  95. end
  96. end,
  97. })
  98. setfenv(func,newenv)
  99. return func
  100. end
  101. cors = {}
  102. mas = Instance.new("Model",game:GetService("Lighting"))
  103. Model0 = Instance.new("Model")
  104. Camera1 = Instance.new("Camera")
  105. BoolValue2 = Instance.new("BoolValue")
  106. Shirt3 = Instance.new("Shirt")
  107. Pants4 = Instance.new("Pants")
  108. StringValue5 = Instance.new("StringValue")
  109. BoolValue6 = Instance.new("BoolValue")
  110. BoolValue7 = Instance.new("BoolValue")
  111. Script8 = Instance.new("Script")
  112. ScreenGui9 = Instance.new("ScreenGui")
  113. ImageLabel10 = Instance.new("ImageLabel")
  114. Script11 = Instance.new("Script")
  115. Folder12 = Instance.new("Folder")
  116. Animation13 = Instance.new("Animation")
  117. Animation14 = Instance.new("Animation")
  118. ObjectValue15 = Instance.new("ObjectValue")
  119. NumberValue16 = Instance.new("NumberValue")
  120. ObjectValue17 = Instance.new("ObjectValue")
  121. LocalScript18 = Instance.new("LocalScript")
  122. Humanoid19 = Instance.new("Humanoid")
  123. Part20 = Instance.new("Part")
  124. SpecialMesh21 = Instance.new("SpecialMesh")
  125. Sound22 = Instance.new("Sound")
  126. Decal23 = Instance.new("Decal")
  127. Sound24 = Instance.new("Sound")
  128. Weld25 = Instance.new("Weld")
  129. Weld26 = Instance.new("Weld")
  130. Part27 = Instance.new("Part")
  131. ParticleEmitter28 = Instance.new("ParticleEmitter")
  132. ParticleEmitter29 = Instance.new("ParticleEmitter")
  133. ParticleEmitter30 = Instance.new("ParticleEmitter")
  134. Part31 = Instance.new("Part")
  135. Part32 = Instance.new("Part")
  136. Part33 = Instance.new("Part")
  137. Hat34 = Instance.new("Hat")
  138. Part35 = Instance.new("Part")
  139. SpecialMesh36 = Instance.new("SpecialMesh")
  140. Camera37 = Instance.new("Camera")
  141. Hat38 = Instance.new("Hat")
  142. Part39 = Instance.new("Part")
  143. SpecialMesh40 = Instance.new("SpecialMesh")
  144. Camera41 = Instance.new("Camera")
  145. Part42 = Instance.new("Part")
  146. Motor6D43 = Instance.new("Motor6D")
  147. Motor6D44 = Instance.new("Motor6D")
  148. Motor6D45 = Instance.new("Motor6D")
  149. Motor6D46 = Instance.new("Motor6D")
  150. Motor6D47 = Instance.new("Motor6D")
  151. Part48 = Instance.new("Part")
  152. Motor6D49 = Instance.new("Motor6D")
  153. Sound50 = Instance.new("Sound")
  154. Model0.Name = "FurryBoss"
  155. Model0.Parent = mas
  156. Model0.PrimaryPart = Part42
  157. Camera1.Name = "ThumbnailCamera"
  158. Camera1.Parent = Model0
  159. Camera1.CFrame = CFrame.new(-126.561401, 7.8807168, -126.360405, -0.454598993, 0.102303706, 0.884801507, -3.72529074e-09, 0.993381858, -0.114858136, -0.890696228, -0.0522143953, -0.451590419)
  160. Camera1.CoordinateFrame = CFrame.new(-126.561401, 7.8807168, -126.360405, -0.454598993, 0.102303706, 0.884801507, -3.72529074e-09, 0.993381858, -0.114858136, -0.890696228, -0.0522143953, -0.451590419)
  161. Camera1.Focus = CFrame.new(-128.330994, 8.11043167, -125.45723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  162. Camera1.focus = CFrame.new(-128.330994, 8.11043167, -125.45723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  163. BoolValue2.Name = "FixValue"
  164. BoolValue2.Parent = Model0
  165. Shirt3.Name = "Shirt"
  166. Shirt3.Parent = Model0
  167. Shirt3.ShirtTemplate = "http://www.roblox.com/asset/?id=184821191"
  168. Pants4.Name = "Pants"
  169. Pants4.Parent = Model0
  170. Pants4.PantsTemplate = "http://www.roblox.com/asset/?id=184821199"
  171. StringValue5.Name = "Classification"
  172. StringValue5.Parent = Model0
  173. StringValue5.Value = "Furry"
  174. BoolValue6.Name = "Zombie"
  175. BoolValue6.Parent = Model0
  176. BoolValue7.Name = "Ressurects"
  177. BoolValue7.Parent = BoolValue6
  178. Script8.Name = "AI"
  179. Script8.Parent = Model0
  180. table.insert(cors,sandbox(Script8,function()
  181. IT = Instance.new
  182. CF = CFrame.new
  183. VT = Vector3.new
  184. RAD = math.rad
  185. C3 = Color3.new
  186. UD2 = UDim2.new
  187. BRICKC = BrickColor.new
  188. ANGLES = CFrame.Angles
  189. EULER = CFrame.fromEulerAnglesXYZ
  190. COS = math.cos
  191. ACOS = math.acos
  192. SIN = math.sin
  193. ASIN = math.asin
  194. ABS = math.abs
  195. MRANDOM = math.random
  196. FLOOR = math.floor
  197.  
  198.  
  199. Pscale = 1.625
  200.  
  201.  
  202. local CHARACTER = script.Parent
  203. local CLONE = CHARACTER:Clone()
  204. local TORSO = CHARACTER.HumanoidRootPart
  205. local HED = CHARACTER.Head
  206. local HUMANOID = CHARACTER.Humanoid
  207. local CLASSIFICATION = CHARACTER.Classification.Value
  208. local ANIMS = script.Anims
  209. local ARMS = HUMANOID:LoadAnimation(ANIMS.ArmAnim)
  210. local ATTACKA = HUMANOID:LoadAnimation(ANIMS.Attack)
  211. local DEAD = false
  212. local Attack = false
  213. local TweenService = game:GetService("TweenService")
  214. RootPart = CHARACTER["HumanoidRootPart"]
  215. Torso = CHARACTER["Torso"]
  216. Head = CHARACTER["Head"]
  217. RightArm = CHARACTER["Right Arm"]
  218. LeftArm = CHARACTER["Left Arm"]
  219. RightLeg = CHARACTER["Right Leg"]
  220. LeftLeg = CHARACTER["Left Leg"]
  221. RootJoint = RootPart["RootJoint"]
  222. Neck = Torso["Neck"]
  223. RS =Torso["Right Shoulder"]
  224. LS =Torso["Left Shoulder"]
  225. RH =Torso["Right Hip"]
  226. LH =Torso["Left Hip"]
  227. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  228. local NeckCF = CF(0, 1*Pscale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  229. RS.C1 = CF(0, 0.5*Pscale, 0)
  230. LS.C1 = CF(0, 0.5*Pscale, 0)
  231. RH.C1 = CF(0, 1*Pscale, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  232. LH.C1 = CF(0, 1*Pscale, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  233. AnimP = 0
  234. AnimSpeed=0
  235. Anim = "Walk"
  236. local Tuant = Head:WaitForChild("Tuant")
  237. local Effects = IT("Folder",CHARACTER)
  238. Debris = game:GetService("Debris")
  239.  
  240.  
  241. music = CHARACTER.Sound
  242.  
  243.  
  244. --//=================================\\
  245. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  246. --\\=================================//
  247.  
  248. ArtificialHB = Instance.new("BindableEvent", script)
  249. ArtificialHB.Name = "ArtificialHB"
  250.  
  251. script:WaitForChild("ArtificialHB")
  252.  
  253. frame = 1/60
  254. tf = 0
  255. allowframeloss = false
  256. tossremainder = false
  257. lastframe = tick()
  258. script.ArtificialHB:Fire()
  259.  
  260. game:GetService("RunService").Heartbeat:connect(function(s, p)
  261. tf = tf + s
  262. if tf >= frame then
  263. if allowframeloss then
  264. script.ArtificialHB:Fire()
  265. lastframe = tick()
  266. else
  267. for i = 1, math.floor(tf / frame) do
  268. script.ArtificialHB:Fire()
  269. end
  270. lastframe = tick()
  271. end
  272. if tossremainder then
  273. tf = 0
  274. else
  275. tf = tf - frame * math.floor(tf / frame)
  276. end
  277. end
  278. end)
  279.  
  280. function PositiveAngle(NUMBER)
  281. if NUMBER >= 0 then
  282. NUMBER = 0
  283. end
  284. return NUMBER
  285. end
  286.  
  287. function NegativeAngle(NUMBER)
  288. if NUMBER <= 0 then
  289. NUMBER = 0
  290. end
  291. return NUMBER
  292. end
  293.  
  294. function Swait(NUMBER)
  295. if NUMBER == 0 or NUMBER == nil then
  296. ArtificialHB.Event:wait()
  297. else
  298. for i = 1, NUMBER do
  299. ArtificialHB.Event:wait()
  300. end
  301. end
  302. end
  303.  
  304. --//=================================\\
  305. --|| FUNCTIONS
  306. --\\=================================//
  307. function CF2(X1,Y1,Z1)
  308.  
  309. local output = CFrame.new(X1*Pscale,Y1*Pscale,Z1*Pscale)
  310. return output
  311. end
  312. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  313. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  314. local outorin = Enum.EasingDirection[outorin2]
  315.  
  316.  
  317.  
  318.  
  319. local tweeningInformation = TweenInfo.new(
  320. AnimTime,
  321. MoveStyle,
  322. outorin,
  323. 0,
  324. false,
  325. 0
  326. )
  327. local MoveCF = CFr
  328. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  329. tweenanim:Play()
  330. end
  331. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  332. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  333. --Arms
  334. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(2))},"Quad","InOut",AnimSpeed)
  335. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(-2))},"Quad","InOut",AnimSpeed)
  336.  
  337. --Legs
  338. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  339. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  340.  
  341. function QuaternionFromCFrame(cf)
  342. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  343. local trace = m00 + m11 + m22
  344. if trace > 0 then
  345. local s = math.sqrt(1 + trace)
  346. local recip = 0.5 / s
  347. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  348. else
  349. local i = 0
  350. if m11 > m00 then
  351. i = 1
  352. end
  353. if m22 > (i == 0 and m00 or m11) then
  354. i = 2
  355. end
  356. if i == 0 then
  357. local s = math.sqrt(m00 - m11 - m22 + 1)
  358. local recip = 0.5 / s
  359. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  360. elseif i == 1 then
  361. local s = math.sqrt(m11 - m22 - m00 + 1)
  362. local recip = 0.5 / s
  363. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  364. elseif i == 2 then
  365. local s = math.sqrt(m22 - m00 - m11 + 1)
  366. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  367. end
  368. end
  369. end
  370.  
  371. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  372. local xs, ys, zs = x + x, y + y, z + z
  373. local wx, wy, wz = w * xs, w * ys, w * zs
  374. local xx = x * xs
  375. local xy = x * ys
  376. local xz = x * zs
  377. local yy = y * ys
  378. local yz = y * zs
  379. local zz = z * zs
  380. 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))
  381. end
  382.  
  383. function QuaternionSlerp(a, b, t)
  384. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  385. local startInterp, finishInterp;
  386. if cosTheta >= 0.0001 then
  387. if (1 - cosTheta) > 0.0001 then
  388. local theta = ACOS(cosTheta)
  389. local invSinTheta = 1 / SIN(theta)
  390. startInterp = SIN((1 - t) * theta) * invSinTheta
  391. finishInterp = SIN(t * theta) * invSinTheta
  392. else
  393. startInterp = 1 - t
  394. finishInterp = t
  395. end
  396. else
  397. if (1 + cosTheta) > 0.0001 then
  398. local theta = ACOS(-cosTheta)
  399. local invSinTheta = 1 / SIN(theta)
  400. startInterp = SIN((t - 1) * theta) * invSinTheta
  401. finishInterp = SIN(t * theta) * invSinTheta
  402. else
  403. startInterp = t - 1
  404. finishInterp = t
  405. end
  406. end
  407. 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
  408. end
  409.  
  410.  
  411. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  412. local NEWMESH = IT(MESH)
  413. if MESH == "SpecialMesh" then
  414. NEWMESH.MeshType = MESHTYPE
  415. if MESHID ~= "nil" and MESHID ~= "" then
  416. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  417. end
  418. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  419. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  420. end
  421. end
  422. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  423. NEWMESH.Scale = SCALE
  424. NEWMESH.Parent = PARENT
  425. return NEWMESH
  426. end
  427.  
  428. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  429. local NEWPART = IT("Part")
  430. NEWPART.formFactor = FORMFACTOR
  431. NEWPART.Reflectance = REFLECTANCE
  432. NEWPART.Transparency = TRANSPARENCY
  433. NEWPART.CanCollide = false
  434. NEWPART.Locked = true
  435. NEWPART.Anchored = true
  436. if ANCHOR == false then
  437. NEWPART.Anchored = false
  438. end
  439. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  440. NEWPART.Name = NAME
  441. NEWPART.Size = SIZE
  442. NEWPART.Position = Torso.Position
  443. NEWPART.Material = MATERIAL
  444. NEWPART:BreakJoints()
  445. NEWPART.Parent = PARENT
  446. return NEWPART
  447. end
  448.  
  449.  
  450.  
  451. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  452. local NEWSOUND = nil
  453. coroutine.resume(coroutine.create(function()
  454. NEWSOUND = IT("Sound")
  455. NEWSOUND.Parent = PARENT
  456. NEWSOUND.Volume = VOLUME
  457. NEWSOUND.Pitch = PITCH
  458. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  459. NEWSOUND:play()
  460. if DOESLOOP == true then
  461. NEWSOUND.Looped = true
  462. else
  463. repeat wait(1) until NEWSOUND.Playing == false
  464. NEWSOUND:remove()
  465. end
  466. end))
  467. return NEWSOUND
  468. end
  469.  
  470. function WACKYEFFECT(Table)
  471. local TYPE = (Table.EffectType or "Sphere")
  472. local SIZE = (Table.Size or VT(1,1,1))
  473. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  474. local TRANSPARENCY = (Table.Transparency or 0)
  475. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  476. local CFRAME = (Table.CFrame or Torso.CFrame)
  477. local MOVEDIRECTION = (Table.MoveToPos or nil)
  478. local ROTATION1 = (Table.RotationX or 0)
  479. local ROTATION2 = (Table.RotationY or 0)
  480. local ROTATION3 = (Table.RotationZ or 0)
  481. local MATERIAL = (Table.Material or "Neon")
  482. local COLOR = (Table.Color or C3(1,1,1))
  483. local TIME = (Table.Time or 45)
  484. local SOUNDID = (Table.SoundID or nil)
  485. local SOUNDPITCH = (Table.SoundPitch or nil)
  486. local SOUNDVOLUME = (Table.SoundVolume or nil)
  487. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  488. local BOOMERANG = (Table.Boomerang or 0)
  489. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  490. coroutine.resume(coroutine.create(function()
  491. local PLAYSSOUND = false
  492. local SOUND = nil
  493. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  494. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  495. PLAYSSOUND = true
  496. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  497. end
  498. EFFECT.Color = COLOR
  499. local MSH = nil
  500. if TYPE == "Sphere" then
  501. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  502. elseif TYPE == "Block" or TYPE == "Box" then
  503. MSH = IT("BlockMesh",EFFECT)
  504. MSH.Scale = SIZE
  505. elseif TYPE == "Wave" then
  506. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  507. elseif TYPE == "Ring" then
  508. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  509. elseif TYPE == "Slash" then
  510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  511. elseif TYPE == "Round Slash" then
  512. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  513. elseif TYPE == "Swirl" then
  514. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  515. elseif TYPE == "Skull" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  517. elseif TYPE == "Crystal" then
  518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  519. end
  520. if MSH ~= nil then
  521. local BOOMR1 = 1+BOOMERANG/50
  522. local BOOMR2 = 1+SIZEBOOMERANG/50
  523. local MOVESPEED = nil
  524. if MOVEDIRECTION ~= nil then
  525. if USEBOOMERANGMATH == true then
  526. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  527. else
  528. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  529. end
  530. end
  531. local GROWTH = nil
  532. if USEBOOMERANGMATH == true then
  533. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  534. else
  535. GROWTH = (SIZE - ENDSIZE)
  536. end
  537. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  538. if TYPE == "Block" then
  539. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  540. else
  541. EFFECT.CFrame = CFRAME
  542. end
  543. if USEBOOMERANGMATH == true then
  544. for LOOP = 1, TIME+1 do
  545. Swait()
  546. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  547. if TYPE == "Wave" then
  548. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  549. end
  550. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  551. if TYPE == "Block" then
  552. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  553. else
  554. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  555. end
  556. if MOVEDIRECTION ~= nil then
  557. local ORI = EFFECT.Orientation
  558. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  559. EFFECT.Orientation = ORI
  560. end
  561. end
  562. else
  563. for LOOP = 1, TIME+1 do
  564. Swait()
  565. MSH.Scale = MSH.Scale - GROWTH/TIME
  566. if TYPE == "Wave" then
  567. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  568. end
  569. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  570. if TYPE == "Block" then
  571. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  572. else
  573. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  574. end
  575. if MOVEDIRECTION ~= nil then
  576. local ORI = EFFECT.Orientation
  577. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  578. EFFECT.Orientation = ORI
  579. end
  580. end
  581. end
  582. EFFECT.Transparency = 1
  583. if PLAYSSOUND == false then
  584. EFFECT:remove()
  585. else
  586. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  587. EFFECT:remove()
  588. end
  589. else
  590. if PLAYSSOUND == false then
  591. EFFECT:remove()
  592. else
  593. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  594. EFFECT:remove()
  595. end
  596. end
  597. end))
  598. end
  599.  
  600.  
  601.  
  602. wait()
  603.  
  604. function Clerp(a, b, t)
  605. local qa = {QuaternionFromCFrame(a)}
  606. local qb = {QuaternionFromCFrame(b)}
  607. local ax, ay, az = a.x, a.y, a.z
  608. local bx, by, bz = b.x, b.y, b.z
  609. local _t = 1 - t
  610. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  611. end
  612. function GatherAllInstances(Parent,ig)
  613. local Instances = {}
  614. local Ignore=nil
  615. if ig ~= nil then
  616. Ignore = ig
  617. end
  618.  
  619. local function GatherInstances(Parent,Ignore)
  620. for i, v in pairs(Parent:GetChildren()) do
  621.  
  622. if v ~= Ignore then
  623. GatherInstances(v,Ignore)
  624. table.insert(Instances, v) end
  625. end
  626. end
  627. GatherInstances(Parent,Ignore)
  628. return Instances
  629. end
  630.  
  631. function infect(Char)
  632. end
  633.  
  634. function ApplyDamage(Humanoid,Damage)
  635. Damage = Damage * 1
  636.  
  637. local SOUND = CreateSound(610359515, RightArm, 1.0, 1.5, false)
  638.  
  639. if game.Players:FindFirstChild(Humanoid.Parent.Name) then
  640. local PLR = game.Players:FindFirstChild(Humanoid.Parent.Name)
  641. end
  642. if Humanoid.Health - Damage < 0.000001 then
  643. --Tuant:Play()
  644.  
  645.  
  646. local Zombie = Humanoid.Parent
  647. Humanoid.PlatformStand = true
  648. infect(Zombie)
  649.  
  650.  
  651.  
  652. end
  653.  
  654.  
  655. if Humanoid.Health ~= 0 then
  656. Humanoid.Health = Humanoid.Health - Damage
  657. end
  658. end
  659.  
  660. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  661. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  662. end
  663.  
  664.  
  665.  
  666.  
  667.  
  668. --//=================================\\
  669. --|| ATRIFICIAL INTELLIGENCE
  670. --\\=================================//
  671.  
  672. function Attack1()
  673. local POS = TORSO.CFrame * CF(0,0,-12*Pscale)
  674. local HIT = false
  675. Attack = true
  676. AnimSpeed=.15
  677. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  678. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  679. --Arms
  680. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(170),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
  681. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(50),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed) --]]
  682.  
  683. for i = 1, 5 do
  684. Swait()
  685. TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
  686. end
  687. --ATTACKA:Play()
  688. --ATTACKA:AdjustSpeed(2.5)
  689. wait(0.1)
  690. AnimSpeed =.3
  691. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
  692. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  693. --Arms
  694. SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(60),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
  695. SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
  696. local SOUND = CreateSound(305734380, RightArm, 1.5, 1.0, false)
  697. for i = 1, 12 do
  698. if DEAD == true then
  699. break
  700. end
  701. RightArm.Flame:Emit(10)
  702. RightArm.Sparks:Emit(5)
  703. TORSO.CFrame = Clerp(TORSO.CFrame,POS,0.1)
  704. for index, CHILD in pairs(workspace:GetDescendants()) do
  705. local Pass = false
  706. if CHILD:FindFirstChild("Classification") and CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
  707. Pass=true
  708. end
  709.  
  710. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER and Pass == false then
  711. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  712. if HUM then
  713. local TORSO2 = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  714. if TORSO2 then
  715. if (TORSO2.Position - TORSO.CFrame*CF(0,0,-1).p).Magnitude <= 3*Pscale then
  716. local DMG = MRANDOM(35,45)
  717. ApplyDamage(HUM,DMG)
  718. HIT = true
  719. end
  720. end
  721. end
  722. end
  723. end
  724. if HIT == true then
  725. break
  726. end
  727. Swait()
  728. end
  729.  
  730.  
  731.  
  732. wait(.5)
  733. Attack = false
  734. end
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  752. for index, CHILD in pairs(workspace:GetDescendants()) do
  753. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  754. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  755.  
  756. local Pass=false
  757. if CHILD:FindFirstChild("Classification") and CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
  758. Pass=true
  759. end
  760. if HUM and Pass == false then
  761. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  762. if TORSO then
  763. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  764. if INSTAKILL == true then
  765. CHILD:BreakJoints()
  766. else
  767. local DMG = MRANDOM(MINDMG,MAXDMG)
  768. ApplyDamage(HUM,DMG)
  769. end
  770. if FLING > 0 then
  771. for _, c in pairs(CHILD:GetChildren()) do
  772. if c:IsA("BasePart") then
  773. local bv = Instance.new("BodyVelocity")
  774. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  775. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  776. bv.Parent = c
  777. Debris:AddItem(bv,0.05)
  778. end
  779. end
  780. end
  781. end
  782. end
  783. end
  784. end
  785. end
  786. end
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794. function Attack2()
  795. Attack = true
  796. local POS = TORSO.CFrame * CF(0,0,-6)
  797. local HIT = false
  798. for i = 1, 5 do
  799. Swait()
  800. TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
  801. end
  802. AnimSpeed =.3
  803. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed)
  804. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
  805. --Arms
  806. SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(60),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
  807. SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
  808.  
  809. wait(AnimSpeed)
  810.  
  811. local RPP = RootPart.Position
  812. local lookv= RootPart.CFrame.lookVector
  813. coroutine.resume(coroutine.create(function()
  814. for i = 1,10,1 do
  815. local attackP = RPP+lookv*i*6
  816. local attackCF = CF(attackP,attackP+lookv*1)
  817.  
  818. WACKYEFFECT({Time = 30,EffectType = "Sphere", Size = VT(2,0,10), Size2 = VT(2,60,10), Transparency = .5, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 1452071798, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 1.25})
  819. WACKYEFFECT({Time = 20,EffectType = "Wave", Size = VT(0,0,10), Size2 = VT(2,60,10), Transparency = 0.8, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = math.random(-10,10)/10, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  820.  
  821. ApplyAoE(attackP,6,3,5,12,false)
  822.  
  823. Swait(5)
  824. end
  825. end))
  826.  
  827.  
  828. AnimSpeed =.3
  829. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(-10),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
  830. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed)
  831. --Arms
  832. SetTween(RS,{C0=CF2(1.5,.5,-.1)*ANGLES(math.rad(160),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
  833. SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-0),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
  834.  
  835. wait(AnimSpeed)
  836.  
  837. Attack = false
  838. end
  839.  
  840.  
  841. function Attack3()
  842. Attack = true
  843. local POS = TORSO.CFrame * CF(0,0,-6)
  844. local HIT = false
  845. for i = 1, 5 do
  846. Swait()
  847. TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
  848. end
  849. AnimSpeed =.3
  850. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
  851. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  852. --Arms
  853. SetTween(RS,{C0=CF2(1.5,.5,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
  854. SetTween(LS,{C0=CF2(-1.5,.5,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed) --]]
  855.  
  856. wait(AnimSpeed)
  857.  
  858. local RPP = RootPart.Position
  859. local lookv= RootPart.CFrame.lookVector
  860. local attackP = RPP+lookv*6
  861. local attackCF = CF(attackP,attackP+lookv*1)
  862.  
  863.  
  864.  
  865.  
  866. WACKYEFFECT({Time = 30,EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(200,1,200), Transparency = .5, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 1452071798, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
  867. WACKYEFFECT({Time = 30,EffectType = "Wave", Size = VT(20,0,20), Size2 = VT(200,10,200), Transparency = 0.8, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 10, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  868.  
  869. coroutine.resume(coroutine.create(function()
  870. for i = 0,20 do Swait()
  871. coroutine.resume(coroutine.create(function()
  872.  
  873. local BlastPos = attackCF*CF(math.random(-50,50),0,math.random(-50,50))
  874.  
  875. WACKYEFFECT({Time = 20,EffectType = "Sphere", Size = VT(10,1,10), Size2 = VT(0,1,0), Transparency = .5, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 588738949, SoundPitch = 1, SoundVolume = 2})
  876.  
  877. wait(1)
  878. WACKYEFFECT({Time = 40,EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(10,60,10), Transparency = .5, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 610359590, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 1.5})
  879. WACKYEFFECT({Time = 30,EffectType = "Wave", Size = VT(20,0,20), Size2 = VT(10,10,10), Transparency = 0.8, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 2, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  880. ApplyAoE(BlastPos.p,10,13,15,32,false)
  881.  
  882. end))
  883. end
  884. end))
  885.  
  886.  
  887. AnimSpeed =1
  888. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(-10),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  889. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
  890. --Arms
  891. SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(150),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
  892. SetTween(LS,{C0=CF2(-1.25,.5,-.1)*ANGLES(math.rad(150),math.rad(0),math.rad(25))},"Quad","InOut",AnimSpeed) --]]
  893.  
  894. wait(AnimSpeed)
  895. AnimSpeed =.25
  896. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  897. SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
  898. --Arms
  899. SetTween(RS,{C0=CF2(1.5,.5,-.0)*ANGLES(math.rad(90),math.rad(0),math.rad(90))},"Quad","InOut",AnimSpeed)
  900. SetTween(LS,{C0=CF2(-1.5,.5,-.0)*ANGLES(math.rad(90),math.rad(0),math.rad(-90))},"Quad","InOut",AnimSpeed) --]]
  901.  
  902. wait(AnimSpeed)
  903. Attack = false
  904. wait(AnimSpeed)
  905. end
  906.  
  907. function intro()
  908. Attack = true
  909. coroutine.resume(coroutine.create(function()
  910. local SCRIPTS = {}
  911. for index, CHILD in pairs(game.Players:GetChildren()) do
  912. local SCRIPT = script.Cutscene:Clone()
  913. SCRIPT.Parent = CHILD.PlayerGui
  914. SCRIPT.Disabled = false
  915. script.AttachPart:Clone().Parent = SCRIPT
  916. script.TestFor:Clone().Parent = SCRIPT
  917. script.Dist:Clone().Parent = SCRIPT
  918. table.insert(SCRIPTS,SCRIPT)
  919. end
  920. for E = 1, #SCRIPTS do
  921. SCRIPTS[E].Dist.Value = 13.5
  922. end
  923.  
  924.  
  925. wait(1)
  926. for i = 15,25,0.1 do
  927. for E = 1, #SCRIPTS do
  928. SCRIPTS[E].Dist.Value = i
  929. end
  930. Swait()
  931. end
  932.  
  933. wait(.1)
  934.  
  935. CHARACTER.FixValue.Value = true
  936. for E = 1, #SCRIPTS do
  937. Debris:AddItem(SCRIPTS[E],12)
  938. end
  939.  
  940. wait(.1)
  941. CHARACTER.FixValue.Value = false
  942. end))
  943. AnimSpeed=1.5/2
  944. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  945. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  946. --Arms
  947. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  948. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
  949.  
  950. local SOUND = CreateSound(907329532, Torso, 1.5, 1.2, false)
  951. wait(AnimSpeed)
  952. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  953. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(20),math.rad(0))},"Quad","InOut",AnimSpeed)
  954. --Arms
  955. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(90),math.rad(0),math.rad(90))},"Quad","InOut",AnimSpeed)
  956. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
  957. wait(AnimSpeed)
  958. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  959. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  960. --Arms
  961. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(50),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
  962. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
  963. wait(AnimSpeed)
  964. music:Play()
  965. Attack = false
  966. end
  967.  
  968. --//=================================\\
  969. --|| WRAP
  970. --\\=================================//
  971. wait(.5)
  972. intro()
  973. function BEGINAI()
  974. if CHARACTER.Zombie.Value == true then
  975. ARMS:Play()
  976. end
  977. HUMANOID.Died:Connect(function()
  978. DEAD = true
  979. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  980. if CHILD:IsA("BasePart") then
  981. CHILD.Anchored = true
  982.  
  983. coroutine.resume(coroutine.create(function()
  984. wait(math.random(100,150)/1000)
  985.  
  986. WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
  987. WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
  988. WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
  989. WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
  990.  
  991. CHILD:Destroy()
  992. end))
  993.  
  994.  
  995. end
  996. end
  997.  
  998.  
  999. print("Dead")
  1000. coroutine.resume(coroutine.create(function()
  1001. if music.Parent == CHARACTER then
  1002. while music.Volume > 0.001 do
  1003. music.Volume = music.Volume -0.1
  1004. wait()
  1005. end
  1006.  
  1007.  
  1008. music:Stop()
  1009. end
  1010. end))
  1011. local SOUND = CreateSound(260434750, workspace, 1.5, 1, false)
  1012.  
  1013. Debris:AddItem(CHARACTER,15)
  1014.  
  1015. end)
  1016. while true do
  1017. if DEAD == true then
  1018. break
  1019. end
  1020. local TARGETVARIANTS = {}
  1021. local TARGET = nil
  1022. for index, CHILD in pairs(workspace:GetChildren()) do
  1023. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1024. if HUMAN then
  1025. if HUMAN.Health > 0 then
  1026. if HUMAN.Torso then
  1027. local PASS = true
  1028. if CHILD:FindFirstChild("Classification") then
  1029. if CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
  1030. PASS = false
  1031. end
  1032. end
  1033. if PASS == true then
  1034. local DISTANCE = (HUMAN.Torso.Position - HED.Position).Magnitude
  1035. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  1036. end
  1037. end
  1038. end
  1039. end
  1040. end
  1041. local DIST = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1042. for E = 1, #TARGETVARIANTS do
  1043. local PLAYER = TARGETVARIANTS[E]
  1044. local CHARACTER = PLAYER[1]
  1045. local DISTANCE = PLAYER[2]
  1046. if DISTANCE < DIST then
  1047. DIST = DISTANCE
  1048. TARGET = CHARACTER
  1049. end
  1050. end
  1051. if TARGET and TARGET:FindFirstChildOfClass("Humanoid") then
  1052. local HUM = TARGET:FindFirstChildOfClass("Humanoid")
  1053. local ROOT = HUM.Torso
  1054. if ROOT then
  1055. if DIST < 8*Pscale then
  1056. HUMANOID:MoveTo(TORSO.Position)
  1057. local POS = VT(ROOT.Position.X,TORSO.Position.Y,ROOT.Position.Z)
  1058. TORSO.CFrame = Clerp(TORSO.CFrame,CF(TORSO.Position,POS),0.3)
  1059. local Cattack = MRANDOM(1,4)
  1060. if MRANDOM(1,5) == 1 then
  1061.  
  1062. if Cattack == 1 then
  1063. Attack1()
  1064. elseif Cattack == 2 then
  1065. Attack2()
  1066. elseif Cattack == 3 then
  1067. Attack3()
  1068. elseif Cattack == 4 then
  1069. -- Attack4()
  1070. elseif Cattack == 5 then
  1071.  
  1072. end
  1073.  
  1074.  
  1075. end
  1076. else
  1077. HUMANOID:MoveTo(ROOT.Position)
  1078. end
  1079. end
  1080. end
  1081. wait()
  1082. end
  1083.  
  1084.  
  1085.  
  1086.  
  1087. end
  1088. coroutine.resume(coroutine.create(function()
  1089. BEGINAI() end))
  1090.  
  1091. while DEAD == false do
  1092.  
  1093. AnimP = AnimP +1
  1094. if AnimP > 4 then
  1095. AnimP=1
  1096. end
  1097.  
  1098.  
  1099. hitfloor = Raycast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4*Pscale, CHARACTER)
  1100.  
  1101. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1102. local velderp = RootPart.Velocity.y
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111. inairvel=torvel
  1112.  
  1113.  
  1114. if inairvel > 30 then
  1115. inairvel=30
  1116. end
  1117. inairvel=inairvel/50
  1118. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1119. Anim = "Jump"
  1120. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1121. Anim = "Fall"
  1122. elseif HUMANOID.Sit == true then
  1123. Anim = "Sit"
  1124. elseif torvel < 1 and hitfloor ~= nil then
  1125. Anim = "Idle"
  1126. elseif torvel > 2 and hitfloor ~= nil then
  1127.  
  1128. Anim = "Walk"
  1129.  
  1130. else
  1131. Anim = ""
  1132.  
  1133. end
  1134.  
  1135.  
  1136.  
  1137. if Attack == false then
  1138. AnimSpeed=.5
  1139. if Anim == "Idle" then
  1140. AnimSpeed=.4
  1141. if AnimP == 1 then
  1142.  
  1143. elseif AnimP == 2 then
  1144. ----------------------------------------------------------------------------------------------------------------
  1145. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1146. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1147. --Arms
  1148. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(2))},"Quad","InOut",AnimSpeed*2)
  1149. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(-2))},"Quad","InOut",AnimSpeed*2)
  1150.  
  1151. --Legs
  1152. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1153. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1154.  
  1155. elseif AnimP == 3 then
  1156.  
  1157. elseif AnimP == 4 then
  1158. ----------------------------------------------------------------------------------------------------------------
  1159. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1160. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1161. --Arms
  1162. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(2),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1163. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(2),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1164.  
  1165. --Legs
  1166. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1167. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
  1168.  
  1169. end
  1170. end
  1171.  
  1172.  
  1173. if Anim == "Walk" then
  1174. if AnimP == 1 then
  1175. ----------------------------------------------------------------------------------------------------------------
  1176. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(10))},"Linear","InOut",AnimSpeed)
  1177. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(-5),math.rad(0),math.rad(-10))},"Linear","InOut",AnimSpeed)
  1178. --Arms
  1179. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(70),math.rad(0),math.rad(5))},"Linear","InOut",AnimSpeed)
  1180. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(30),math.rad(0),math.rad(5))},"Linear","InOut",AnimSpeed)
  1181.  
  1182. --Legs
  1183. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1184. SetTween(LH,{C0=CF2(-.5,-1,-.3)*ANGLES(math.rad(-50),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1185. elseif AnimP == 2 then
  1186. ----------------------------------------------------------------------------------------------------------------
  1187. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1188. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1189.  
  1190. --Arms
  1191. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(60),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1192. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1193.  
  1194. --Legs
  1195. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1196. SetTween(LH,{C0=CF2(-.5,-.5,-.2)*ANGLES(math.rad(-20),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1197. elseif AnimP == 3 then
  1198. ----------------------------------------------------------------------------------------------------------------
  1199. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(-10))},"Linear","InOut",AnimSpeed)
  1200. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(-5),math.rad(0),math.rad(10))},"Linear","InOut",AnimSpeed)
  1201. --Arms
  1202. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(70),math.rad(0),math.rad(-5))},"Linear","InOut",AnimSpeed)
  1203. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-5))},"Linear","InOut",AnimSpeed)
  1204.  
  1205. --Legs
  1206. SetTween(RH,{C0=CF2(.5,-1,-.3)*ANGLES(math.rad(-50),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1207. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1208. elseif AnimP == 4 then
  1209. ----------------------------------------------------------------------------------------------------------------
  1210. SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1211. SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1212. --Arms
  1213. SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(60),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1214. SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1215.  
  1216. --Legs
  1217. SetTween(RH,{C0=CF2(.5,-.5,-.2)*ANGLES(math.rad(-20),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1218. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
  1219.  
  1220. end
  1221. end
  1222. else
  1223. --[[
  1224. ----------------------------------------------------------------------------------------------------------------
  1225. SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  1226. SetTween(LS,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  1227. --Arms
  1228. SetTween(RS,{C0=CF(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  1229. SetTween(LS,{C0=CF(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
  1230. --Legs
  1231. SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  1232. SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
  1233.  
  1234. end
  1235. wait(AnimSpeed)
  1236. end
  1237.  
  1238. end))
  1239. ScreenGui9.Name = "BloodGui"
  1240. ScreenGui9.Parent = Script8
  1241. ImageLabel10.Name = "Blood"
  1242. ImageLabel10.Parent = ScreenGui9
  1243. ImageLabel10.Position = UDim2.new(0, 0, -0.100000001, 0)
  1244. ImageLabel10.Size = UDim2.new(1, 0, 1.29999995, 0)
  1245. ImageLabel10.BackgroundColor = BrickColor.new("Institutional white")
  1246. ImageLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
  1247. ImageLabel10.BackgroundTransparency = 1
  1248. ImageLabel10.Image = "rbxassetid://154207804"
  1249. ImageLabel10.ImageColor3 = Color3.new(0, 0.835294, 1)
  1250. ImageLabel10.ImageTransparency = 0.5
  1251. Script11.Name = "Scrip"
  1252. Script11.Parent = ScreenGui9
  1253. table.insert(cors,sandbox(Script11,function()
  1254. for i = 1, 15 do
  1255. wait()
  1256. script.Parent.Blood.ImageTransparency = script.Parent.Blood.ImageTransparency + 0.5/15
  1257. end
  1258. script.Parent:Remove()
  1259.  
  1260. end))
  1261. Script11.Disabled = true
  1262. Folder12.Name = "Anims"
  1263. Folder12.Parent = Script8
  1264. Animation13.Name = "ArmAnim"
  1265. Animation13.Parent = Folder12
  1266. Animation13.AnimationId = "http://www.roblox.com/asset/?id=183294396"
  1267. Animation14.Name = "Attack"
  1268. Animation14.Parent = Folder12
  1269. Animation14.AnimationId = "http://www.roblox.com/asset/?id=180416148"
  1270. ObjectValue15.Name = "AttachPart"
  1271. ObjectValue15.Parent = Script8
  1272. ObjectValue15.Value = Part42
  1273. NumberValue16.Name = "Dist"
  1274. NumberValue16.Parent = Script8
  1275. NumberValue16.Value = 5
  1276. ObjectValue17.Name = "TestFor"
  1277. ObjectValue17.Parent = Script8
  1278. ObjectValue17.Value = BoolValue2
  1279. LocalScript18.Name = "Cutscene"
  1280. LocalScript18.Parent = Script8
  1281. table.insert(cors,sandbox(LocalScript18,function()
  1282. local PLR = game.Players.LocalPlayer
  1283. local CAM = workspace.CurrentCamera
  1284. repeat wait() until script:FindFirstChild("AttachPart")
  1285. local ATTACH = script:FindFirstChild("AttachPart").Value
  1286. repeat wait() until script:FindFirstChild("TestFor")
  1287. local TESTFOR = script:FindFirstChild("TestFor").Value
  1288. repeat wait() until script:FindFirstChild("Dist")
  1289. local DIST = script:FindFirstChild("Dist")
  1290.  
  1291. CAM.CameraType = Enum.CameraType.Scriptable
  1292. local CFRAME = ATTACH.CFrame*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(180),0)
  1293. CAM.CFrame = CFRAME*CFrame.new(0,0,DIST.Value)
  1294. DIST.Changed:Connect(function()
  1295. CAM.CFrame = CFRAME*CFrame.new(0,0,DIST.Value)
  1296. end)
  1297. TESTFOR.Changed:Connect(function()
  1298. repeat wait() until PLR.Character
  1299. local CHR = PLR.Character
  1300. CAM.CameraType = Enum.CameraType.Custom
  1301. CAM.CameraSubject = CHR.Humanoid
  1302. end)
  1303.  
  1304. end))
  1305. LocalScript18.Disabled = true
  1306. Humanoid19.Parent = Model0
  1307. Humanoid19.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1308. Humanoid19.Health = 5000
  1309. Humanoid19.LeftLeg = Part33
  1310. Humanoid19.MaxHealth = 5000
  1311. Humanoid19.RightLeg = Part32
  1312. Humanoid19.Torso = Part48
  1313. Humanoid19.WalkSpeed = 12
  1314. Humanoid19.maxHealth = 5000
  1315. Part20.Name = "Head"
  1316. Part20.Parent = Model0
  1317. Part20.CFrame = CFrame.new(67.730072, 7.31244183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1318. Part20.Orientation = Vector3.new(0, -90, 0)
  1319. Part20.Position = Vector3.new(67.730072, 7.31244183, 21.3516541)
  1320. Part20.Rotation = Vector3.new(0, -90, 0)
  1321. Part20.Size = Vector3.new(3.25, 1.625, 1.625)
  1322. Part20.BottomSurface = Enum.SurfaceType.Smooth
  1323. Part20.TopSurface = Enum.SurfaceType.Smooth
  1324. SpecialMesh21.Parent = Part20
  1325. SpecialMesh21.Scale = Vector3.new(1.25, 1.25, 1.25)
  1326. Sound22.Name = "Ressurect"
  1327. Sound22.Parent = Part20
  1328. Sound22.MaxDistance = 65
  1329. Sound22.SoundId = "rbxassetid://1158091961"
  1330. Sound22.Volume = 2
  1331. Decal23.Name = "face"
  1332. Decal23.Parent = Part20
  1333. Decal23.Texture = "http://www.roblox.com/asset/?id=1908765569"
  1334. Sound24.Name = "Tuant"
  1335. Sound24.Parent = Part20
  1336. Sound24.SoundId = "rbxassetid://463770058"
  1337. Sound24.Volume = 2
  1338. Weld25.Name = "HeadWeld"
  1339. Weld25.Parent = Part20
  1340. Weld25.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1341. Weld25.C1 = CFrame.new(0.0500000007, 0.129999995, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1342. Weld25.Part0 = Part20
  1343. Weld25.Part1 = Part35
  1344. Weld25.part1 = Part35
  1345. Weld26.Name = "HeadWeld"
  1346. Weld26.Parent = Part20
  1347. Weld26.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1348. Weld26.C1 = CFrame.new(0, -0.300000012, -0.150000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1349. Weld26.Part0 = Part20
  1350. Weld26.Part1 = Part39
  1351. Weld26.part1 = Part39
  1352. Part27.Name = "Right Arm"
  1353. Part27.Parent = Model0
  1354. Part27.CFrame = CFrame.new(67.730072, 4.87494183, 23.7891541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  1355. Part27.Orientation = Vector3.new(0, -90, 0)
  1356. Part27.Position = Vector3.new(67.730072, 4.87494183, 23.7891541)
  1357. Part27.Rotation = Vector3.new(0, -90, 0)
  1358. Part27.Size = Vector3.new(1.625, 3.25, 1.625)
  1359. Part27.BottomSurface = Enum.SurfaceType.Smooth
  1360. Part27.CanCollide = false
  1361. Part27.TopSurface = Enum.SurfaceType.Smooth
  1362. ParticleEmitter28.Name = "Flame"
  1363. ParticleEmitter28.Parent = Part27
  1364. ParticleEmitter28.Speed = NumberRange.new(4, 4)
  1365. ParticleEmitter28.Rotation = NumberRange.new(-180, 180)
  1366. ParticleEmitter28.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
  1367. ParticleEmitter28.Enabled = false
  1368. ParticleEmitter28.LightEmission = 0.75
  1369. ParticleEmitter28.Texture = "http://www.roblox.com/asset/?id=304437537"
  1370. ParticleEmitter28.Transparency = NumberSequence.new(1,0.5,0.25,0.25,0.5,1)
  1371. ParticleEmitter28.ZOffset = -1
  1372. ParticleEmitter28.Size = NumberSequence.new(5.875,1.1874997615814,0.3125)
  1373. ParticleEmitter28.Acceleration = Vector3.new(0, 4.5, 0)
  1374. ParticleEmitter28.Lifetime = NumberRange.new(1, 1.125)
  1375. ParticleEmitter28.Rate = 300
  1376. ParticleEmitter28.RotSpeed = NumberRange.new(-200, 200)
  1377. ParticleEmitter28.SpreadAngle = Vector2.new(10, 10)
  1378. ParticleEmitter28.VelocitySpread = 10
  1379. ParticleEmitter29.Name = "Sparks"
  1380. ParticleEmitter29.Parent = Part27
  1381. ParticleEmitter29.Speed = NumberRange.new(4, 5)
  1382. ParticleEmitter29.Rotation = NumberRange.new(-180, 180)
  1383. ParticleEmitter29.Color = ColorSequence.new(Color3.new(1, 0.72549, 0.482353),Color3.new(1, 0.72549, 0.482353))
  1384. ParticleEmitter29.Enabled = false
  1385. ParticleEmitter29.LightEmission = 0.5
  1386. ParticleEmitter29.Texture = "http://www.roblox.com/asset/?id=301261210"
  1387. ParticleEmitter29.Transparency = NumberSequence.new(1,0,0,1)
  1388. ParticleEmitter29.Size = NumberSequence.new(0,0.075000002980232,0.025000000372529)
  1389. ParticleEmitter29.Acceleration = Vector3.new(0, 5.5, 0)
  1390. ParticleEmitter29.Lifetime = NumberRange.new(1, 3)
  1391. ParticleEmitter29.Rate = 50
  1392. ParticleEmitter29.SpreadAngle = Vector2.new(22.5, 22.5)
  1393. ParticleEmitter29.VelocitySpread = 22.5
  1394. ParticleEmitter30.Name = "Flame2"
  1395. ParticleEmitter30.Parent = Part27
  1396. ParticleEmitter30.Speed = NumberRange.new(2, 2)
  1397. ParticleEmitter30.Rotation = NumberRange.new(-180, 180)
  1398. ParticleEmitter30.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0.14902, 0, 1))
  1399. ParticleEmitter30.LightEmission = 1
  1400. ParticleEmitter30.Texture = "http://www.roblox.com/asset/?id=304437537"
  1401. ParticleEmitter30.Transparency = NumberSequence.new(1,0.93209874629974,0.790123462677,0.69753086566925,0.67901235818863,0.8148148059845,1)
  1402. ParticleEmitter30.ZOffset = -1
  1403. ParticleEmitter30.Size = NumberSequence.new(1.5,0.56249976158142)
  1404. ParticleEmitter30.Acceleration = Vector3.new(0, 2.5, 0)
  1405. ParticleEmitter30.Lifetime = NumberRange.new(1, 1.125)
  1406. ParticleEmitter30.Rate = 50
  1407. ParticleEmitter30.RotSpeed = NumberRange.new(-200, 200)
  1408. ParticleEmitter30.SpreadAngle = Vector2.new(10, 10)
  1409. ParticleEmitter30.VelocitySpread = 10
  1410. Part31.Name = "Left Arm"
  1411. Part31.Parent = Model0
  1412. Part31.CFrame = CFrame.new(67.730072, 4.87494183, 18.9141541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  1413. Part31.Orientation = Vector3.new(0, -90, 0)
  1414. Part31.Position = Vector3.new(67.730072, 4.87494183, 18.9141541)
  1415. Part31.Rotation = Vector3.new(0, -90, 0)
  1416. Part31.Size = Vector3.new(1.625, 3.25, 1.625)
  1417. Part31.BottomSurface = Enum.SurfaceType.Smooth
  1418. Part31.CanCollide = false
  1419. Part31.TopSurface = Enum.SurfaceType.Smooth
  1420. Part32.Name = "Right Leg"
  1421. Part32.Parent = Model0
  1422. Part32.CFrame = CFrame.new(67.730072, 1.62494206, 22.1641541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  1423. Part32.Orientation = Vector3.new(0, -90, 0)
  1424. Part32.Position = Vector3.new(67.730072, 1.62494206, 22.1641541)
  1425. Part32.Rotation = Vector3.new(0, -90, 0)
  1426. Part32.Size = Vector3.new(1.625, 3.25, 1.625)
  1427. Part32.BottomSurface = Enum.SurfaceType.Smooth
  1428. Part32.CanCollide = false
  1429. Part32.TopSurface = Enum.SurfaceType.Smooth
  1430. Part33.Name = "Left Leg"
  1431. Part33.Parent = Model0
  1432. Part33.CFrame = CFrame.new(67.730072, 1.62494206, 20.5391541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  1433. Part33.Orientation = Vector3.new(0, -90, 0)
  1434. Part33.Position = Vector3.new(67.730072, 1.62494206, 20.5391541)
  1435. Part33.Rotation = Vector3.new(0, -90, 0)
  1436. Part33.Size = Vector3.new(1.625, 3.25, 1.625)
  1437. Part33.BottomSurface = Enum.SurfaceType.Smooth
  1438. Part33.CanCollide = false
  1439. Part33.TopSurface = Enum.SurfaceType.Smooth
  1440. Hat34.Name = "MessySpikes"
  1441. Hat34.Parent = Model0
  1442. Hat34.AttachmentPoint = CFrame.new(0.0500000007, 0.129999995, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1443. Hat34.AttachmentPos = Vector3.new(0.0500000007, 0.129999995, -0.200000003)
  1444. Part35.Name = "Handle"
  1445. Part35.Parent = Hat34
  1446. Part35.CFrame = CFrame.new(67.5300751, 7.68244171, 21.3016548, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1447. Part35.Orientation = Vector3.new(0, -90, 0)
  1448. Part35.Position = Vector3.new(67.5300751, 7.68244171, 21.3016548)
  1449. Part35.Rotation = Vector3.new(0, -90, 0)
  1450. Part35.Color = Color3.new(0.356863, 0.364706, 0.411765)
  1451. Part35.Size = Vector3.new(1.4000001, 1.79999995, 1.60000014)
  1452. Part35.BottomSurface = Enum.SurfaceType.Smooth
  1453. Part35.BrickColor = BrickColor.new("Smoky grey")
  1454. Part35.CanCollide = false
  1455. Part35.TopSurface = Enum.SurfaceType.Smooth
  1456. Part35.brickColor = BrickColor.new("Smoky grey")
  1457. Part35.FormFactor = Enum.FormFactor.Custom
  1458. Part35.formFactor = Enum.FormFactor.Custom
  1459. SpecialMesh36.Parent = Part35
  1460. SpecialMesh36.MeshId = "http://www.roblox.com/asset/?id=62246019"
  1461. SpecialMesh36.Offset = Vector3.new(0, 0.125, 0)
  1462. SpecialMesh36.Scale = Vector3.new(1.625, 1.625, 1.625)
  1463. SpecialMesh36.MeshType = Enum.MeshType.FileMesh
  1464. Camera37.Name = "ThumbnailCamera"
  1465. Camera37.Parent = Hat34
  1466. Camera37.CFrame = CFrame.new(-1.32546198, 23.7707462, 24.1931286, 0.813008785, -0.0187010244, -0.581951082, 9.31322686e-10, 0.999484122, -0.032118462, 0.582251549, 0.0261125918, 0.812589228)
  1467. Camera37.CoordinateFrame = CFrame.new(-1.32546198, 23.7707462, 24.1931286, 0.813008785, -0.0187010244, -0.581951082, 9.31322686e-10, 0.999484122, -0.032118462, 0.582251549, 0.0261125918, 0.812589228)
  1468. Camera37.Focus = CFrame.new(-0.109605432, 23.8378506, 22.4954052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1469. Camera37.focus = CFrame.new(-0.109605432, 23.8378506, 22.4954052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1470. Hat38.Name = "Zootopia Faux Fox Ears"
  1471. Hat38.Parent = Model0
  1472. Hat38.AttachmentPoint = CFrame.new(0, -0.300000012, -0.150000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1473. Hat38.AttachmentPos = Vector3.new(0, -0.300000012, -0.150000006)
  1474. Part39.Name = "Handle"
  1475. Part39.Parent = Hat38
  1476. Part39.CFrame = CFrame.new(67.5800705, 8.11244202, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1477. Part39.Orientation = Vector3.new(0, -90, 0)
  1478. Part39.Position = Vector3.new(67.5800705, 8.11244202, 21.3516541)
  1479. Part39.Rotation = Vector3.new(0, -90, 0)
  1480. Part39.Size = Vector3.new(1.25000024, 1.12999988, 1.1400001)
  1481. Part39.BottomSurface = Enum.SurfaceType.Smooth
  1482. Part39.CanCollide = false
  1483. Part39.Locked = true
  1484. Part39.TopSurface = Enum.SurfaceType.Smooth
  1485. Part39.FormFactor = Enum.FormFactor.Custom
  1486. Part39.formFactor = Enum.FormFactor.Custom
  1487. SpecialMesh40.Parent = Part39
  1488. SpecialMesh40.MeshId = "http://www.roblox.com/asset/?id=361948302"
  1489. SpecialMesh40.Offset = Vector3.new(0, 0.5, 0)
  1490. SpecialMesh40.MeshType = Enum.MeshType.FileMesh
  1491. Camera41.Name = "ThumbnailCamera"
  1492. Camera41.Parent = Hat38
  1493. Camera41.CFrame = CFrame.new(65.5680084, 6.36890173, -44.0067368, -0.848218083, 0.0804693326, -0.523498595, -0, 0.98839128, 0.151930109, 0.529647052, 0.128869861, -0.838371396)
  1494. Camera41.CoordinateFrame = CFrame.new(65.5680084, 6.36890173, -44.0067368, -0.848218083, 0.0804693326, -0.523498595, -0, 0.98839128, 0.151930109, 0.529647052, 0.128869861, -0.838371396)
  1495. Camera41.Focus = CFrame.new(66.6150055, 6.06504154, -42.3299942, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1496. Camera41.focus = CFrame.new(66.6150055, 6.06504154, -42.3299942, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1497. Part42.Name = "Torso"
  1498. Part42.Parent = Model0
  1499. Part42.CFrame = CFrame.new(67.730072, 4.87494183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1500. Part42.Orientation = Vector3.new(0, -90, 0)
  1501. Part42.Position = Vector3.new(67.730072, 4.87494183, 21.3516541)
  1502. Part42.Rotation = Vector3.new(0, -90, 0)
  1503. Part42.Size = Vector3.new(3.25, 3.25, 1.625)
  1504. Part42.BottomSurface = Enum.SurfaceType.Smooth
  1505. Part42.CanCollide = false
  1506. Part42.TopSurface = Enum.SurfaceType.Smooth
  1507. Motor6D43.Name = "Left Hip"
  1508. Motor6D43.Parent = Part42
  1509. Motor6D43.C0 = CFrame.new(-1.625, -1.625, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1510. Motor6D43.C1 = CFrame.new(-0.8125, 1.625, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1511. Motor6D43.Part0 = Part42
  1512. Motor6D43.Part1 = Part33
  1513. Motor6D43.part1 = Part33
  1514. Motor6D44.Name = "Right Hip"
  1515. Motor6D44.Parent = Part42
  1516. Motor6D44.C0 = CFrame.new(1.625, -1.625, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1517. Motor6D44.C1 = CFrame.new(0.8125, 1.625, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1518. Motor6D44.Part0 = Part42
  1519. Motor6D44.Part1 = Part32
  1520. Motor6D44.part1 = Part32
  1521. Motor6D45.Name = "Left Shoulder"
  1522. Motor6D45.Parent = Part42
  1523. Motor6D45.C0 = CFrame.new(-1.625, 0.8125, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1524. Motor6D45.C1 = CFrame.new(0.8125, 0.8125, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  1525. Motor6D45.Part0 = Part42
  1526. Motor6D45.Part1 = Part31
  1527. Motor6D45.part1 = Part31
  1528. Motor6D46.Name = "Right Shoulder"
  1529. Motor6D46.Parent = Part42
  1530. Motor6D46.C0 = CFrame.new(1.625, 0.8125, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1531. Motor6D46.C1 = CFrame.new(-0.8125, 0.8125, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  1532. Motor6D46.Part0 = Part42
  1533. Motor6D46.Part1 = Part27
  1534. Motor6D46.part1 = Part27
  1535. Motor6D47.Name = "Neck"
  1536. Motor6D47.Parent = Part42
  1537. Motor6D47.C0 = CFrame.new(0, 1.625, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1538. Motor6D47.C1 = CFrame.new(0, -0.8125, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1539. Motor6D47.Part0 = Part42
  1540. Motor6D47.Part1 = Part20
  1541. Motor6D47.part1 = Part20
  1542. Part48.Name = "HumanoidRootPart"
  1543. Part48.Parent = Model0
  1544. Part48.CFrame = CFrame.new(67.730072, 4.87494183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1545. Part48.Orientation = Vector3.new(0, -90, 0)
  1546. Part48.Position = Vector3.new(67.730072, 4.87494183, 21.3516541)
  1547. Part48.Rotation = Vector3.new(0, -90, 0)
  1548. Part48.Transparency = 1
  1549. Part48.Size = Vector3.new(3.25, 3.25, 1.625)
  1550. Part48.BottomSurface = Enum.SurfaceType.Smooth
  1551. Part48.TopSurface = Enum.SurfaceType.Smooth
  1552. Motor6D49.Name = "RootJoint"
  1553. Motor6D49.Parent = Part48
  1554. Motor6D49.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1555. Motor6D49.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1556. Motor6D49.Part0 = Part48
  1557. Motor6D49.Part1 = Part42
  1558. Motor6D49.part1 = Part42
  1559. Sound50.Parent = Model0
  1560. Sound50.Looped = true
  1561. Sound50.SoundId = "rbxassetid://1842660676"
  1562. Sound50.Volume = 1
  1563. for i,v in pairs(mas:GetChildren()) do
  1564. v.Parent = workspace
  1565. pcall(function() v:MakeJoints() end)
  1566. end
  1567. mas:Destroy()
  1568. for i,v in pairs(cors) do
  1569. spawn(function()
  1570. pcall(v)
  1571. end)
  1572. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement