Advertisement
Josemmoya

dsdssds

Jul 5th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 106.86 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --Converted with ttyyuu12345's model to script plugin v4
  85. function sandbox(var,func)
  86. local env = getfenv(func)
  87. local newenv = setmetatable({},{
  88. __index = function(self,k)
  89. if k=="script" then
  90. return var
  91. else
  92. return env[k]
  93. end
  94. end,
  95. })
  96. setfenv(func,newenv)
  97. return func
  98. end
  99. cors = {}
  100. mas = Instance.new("Model",game:GetService("Lighting"))
  101. LocalScript0 = Instance.new("LocalScript")
  102. LocalScript1 = Instance.new("LocalScript")
  103. LocalScript2 = Instance.new("LocalScript")
  104. LocalScript0.Parent = mas
  105. table.insert(cors,sandbox(LocalScript0,function()
  106. wait(0.016666666666666666)
  107. Effects = {}
  108. local Player = owner
  109. local chara = Player.Character
  110. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  111. local LeftArm = chara["Left Arm"]
  112. local RightArm = chara["Right Arm"]
  113. local LeftLeg = chara["Left Leg"]
  114. local RightLeg = chara["Right Leg"]
  115. local Head = chara.Head
  116. local Torso = chara.Torso
  117. local RootPart = chara.HumanoidRootPart
  118. local RootJoint = RootPart.RootJoint
  119. local attack = false
  120. local Anim = "Idle"
  121. local attacktype = 1
  122. local delays = false
  123. local play = true
  124. local targetted
  125. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  126. local velocity = RootPart.Velocity.y
  127. local sine = 0
  128. local change = 1
  129. local doe = 0
  130. local heddo
  131. local grabhead = false
  132. local armo
  133. local grabhand = false
  134. local Create = LoadLibrary("RbxUtility").Create
  135. Humanoid.WalkSpeed = 8
  136. if Player.UserId ~= Player.UserId then
  137. chara:BreakJoints()
  138. end
  139. Humanoid.Animator.Parent = nil
  140. chara.Animate.Parent = nil
  141. local function newMotor(part0, part1, c0, c1)
  142. local w = Create("Motor")({
  143. Parent = part0,
  144. Part0 = part0,
  145. Part1 = part1,
  146. C0 = c0,
  147. C1 = c1
  148. })
  149. return w
  150. end
  151. function clerp(a, b, t)
  152. return a:lerp(b, t)
  153. end
  154. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  155. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  156. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  157. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  158. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  159. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  160. RootJoint.C1 = CFrame.new(0, 0, 0)
  161. RootJoint.C0 = CFrame.new(0, 0, 0)
  162. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  163. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  164. if Player.UserId ~= Player.UserId then
  165. chara:BreakJoints()
  166. end
  167. local rarmc1 = RW.C1
  168. local larmc1 = LW.C1
  169. local rlegc1 = RH.C1
  170. local llegc1 = LH.C1
  171. local resetc1 = false
  172. function PlayAnimationFromTable(table, speed, bool)
  173. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  174. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  175. RW.C0 = clerp(RW.C0, table[3], speed)
  176. LW.C0 = clerp(LW.C0, table[4], speed)
  177. RH.C0 = clerp(RH.C0, table[5], speed)
  178. LH.C0 = clerp(LH.C0, table[6], speed)
  179. if bool == true and resetc1 == false then
  180. resetc1 = true
  181. RootJoint.C1 = RootJoint.C1
  182. Torso.Neck.C1 = Torso.Neck.C1
  183. RW.C1 = rarmc1
  184. LW.C1 = larmc1
  185. RH.C1 = rlegc1
  186. LH.C1 = llegc1
  187. end
  188. end
  189. if Player.UserId ~= Player.UserId then
  190. chara:BreakJoints()
  191. end
  192. ArtificialHB = Instance.new("BindableEvent", script)
  193. ArtificialHB.Name = "Heartbeat"
  194. script:WaitForChild("Heartbeat")
  195. frame = 0.03333333333333
  196. tf = 0
  197. allowframeloss = false
  198. tossremainder = false
  199. lastframe = tick()
  200. script.Heartbeat:Fire()
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202. tf = tf + s
  203. if tf >= frame then
  204. if allowframeloss then
  205. script.Heartbeat:Fire()
  206. lastframe = tick()
  207. else
  208. for i = 1, math.floor(tf / frame) do
  209. script.Heartbeat:Fire()
  210. end
  211. lastframe = tick()
  212. end
  213. if tossremainder then
  214. tf = 0
  215. else
  216. tf = tf - frame * math.floor(tf / frame)
  217. end
  218. end
  219. end)
  220. function swait(num)
  221. if num == 0 or num == nil then
  222. ArtificialHB.Event:wait()
  223. else
  224. for i = 0, num do
  225. ArtificialHB.Event:wait()
  226. end
  227. end
  228. end
  229. function RemoveOutlines(part)
  230. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  231. end
  232. if Player.UserId ~= Player.UserId then
  233. chara:BreakJoints()
  234. end
  235. CFuncs = {
  236. Part = {
  237. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  238. local Part = Create("Part")({
  239. Parent = Parent,
  240. Reflectance = Reflectance,
  241. Transparency = Transparency,
  242. CanCollide = false,
  243. Locked = true,
  244. BrickColor = BrickColor.new(tostring(BColor)),
  245. Name = Name,
  246. Size = Size,
  247. Material = Material
  248. })
  249. RemoveOutlines(Part)
  250. return Part
  251. end
  252. },
  253. Mesh = {
  254. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  255. local Msh = Create(Mesh)({
  256. Parent = Part,
  257. Offset = OffSet,
  258. Scale = Scale
  259. })
  260. if Mesh == "SpecialMesh" then
  261. Msh.MeshType = MeshType
  262. Msh.MeshId = MeshId
  263. end
  264. return Msh
  265. end
  266. },
  267. Mesh = {
  268. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  269. local Msh = Create(Mesh)({
  270. Parent = Part,
  271. Offset = OffSet,
  272. Scale = Scale
  273. })
  274. if Mesh == "SpecialMesh" then
  275. Msh.MeshType = MeshType
  276. Msh.MeshId = MeshId
  277. end
  278. return Msh
  279. end
  280. },
  281. Weld = {
  282. Create = function(Parent, Part0, Part1, C0, C1)
  283. local Weld = Create("Weld")({
  284. Parent = Parent,
  285. Part0 = Part0,
  286. Part1 = Part1,
  287. C0 = C0,
  288. C1 = C1
  289. })
  290. return Weld
  291. end
  292. },
  293. ParticleEmitter = {
  294. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  295. local fp = Create("ParticleEmitter")({
  296. Parent = Parent,
  297. Color = ColorSequence.new(Color1, Color2),
  298. LightEmission = LightEmission,
  299. Size = Size,
  300. Texture = Texture,
  301. Transparency = Transparency,
  302. ZOffset = ZOffset,
  303. Acceleration = Accel,
  304. Drag = Drag,
  305. LockedToPart = LockedToPart,
  306. VelocityInheritance = VelocityInheritance,
  307. EmissionDirection = EmissionDirection,
  308. Enabled = Enabled,
  309. Lifetime = LifeTime,
  310. Rate = Rate,
  311. Rotation = Rotation,
  312. RotSpeed = RotSpeed,
  313. Speed = Speed,
  314. VelocitySpread = VelocitySpread
  315. })
  316. return fp
  317. end
  318. },
  319. CreateTemplate = {}
  320. }
  321. if Player.UserId ~= Player.UserId then
  322. chara:BreakJoints()
  323. end
  324. function so(id, par, pit, vol)
  325. local sou = Instance.new("Sound", par or workspace)
  326. if par == chara then
  327. sou.Parent = chara.Torso
  328. end
  329. sou.Volume = vol
  330. sou.Pitch = pit or 1
  331. sou.SoundId = "rbxassetid://" .. id
  332. sou.PlayOnRemove = true
  333. sou:Destroy()
  334. end
  335. local mus = Instance.new("Sound", Head)
  336. mus.Name = "mus"
  337. mus.SoundId = "rbxassetid://153384019"
  338. mus.Looped = true
  339. mus.Volume = 1
  340. mus:Play()
  341. function New(Object, Parent, Name, Data)
  342. local Object = Instance.new(Object)
  343. for Index, Value in pairs(Data or {}) do
  344. Object[Index] = Value
  345. end
  346. Object.Parent = Parent
  347. Object.Name = Name
  348. return Object
  349. end
  350. function createrainbow(part, size, trans, life, face, speed, accel, velsp, lock, name)
  351. local fira = Instance.new("ParticleEmitter", part)
  352. fira.Name = name
  353. fira.Color = ColorSequence.new(Color3.new(0, 0, 0))
  354. fira.Size = size
  355. fira.Texture = "rbxasset://textures/particles/fire_main.dds"
  356. fira.Transparency = trans
  357. fira.Lifetime = life
  358. fira.EmissionDirection = face
  359. fira.Rate = 10000
  360. fira.RotSpeed = NumberRange.new(100)
  361. fira.Rotation = NumberRange.new(0, 360)
  362. fira.Speed = speed
  363. fira.VelocitySpread = velsp
  364. fira.Acceleration = accel
  365. fira.LockedToPart = lock
  366. return fira
  367. end
  368. Wings = New("Model", chara, "Wings", {})
  369. MainPart = New("Part", Wings, "MainPart", {
  370. Transparency = 1,
  371. Transparency = 1,
  372. Size = Vector3.new(2, 2, 1),
  373. CFrame = CFrame.new(67.400032, 1.00001299, -47.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  374. })
  375. Weld = New("ManualWeld", MainPart, "Weld", {Part0 = MainPart, Part1 = Torso})
  376. Wing1Part = New("Part", Wings, "Wing1Part", {
  377. Transparency = 1,
  378. CanCollide = true,
  379. Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),
  380. CFrame = CFrame.new(68.2041626, 2.02130413, -46.7787056, 0.866025448, 0.35355404, 0.35355413, -0.353553772, 0.933016062, -0.0669873655, -0.353553891, -0.0669873059, 0.933015943)
  381. })
  382. createrainbow(Wing1Part, NumberSequence.new(0.5, 1), NumberSequence.new(0), NumberRange.new(1), "Back", NumberRange.new(5), Vector3.new(0, 10, 0), 0, true, "Firea")
  383. Weld = New("ManualWeld", Wing1Part, "Weld", {
  384. Part0 = Wing1Part,
  385. Part1 = MainPart,
  386. C0 = CFrame.new(0, 0, 0, 0.866025448, -0.353553772, -0.353553891, 0.35355404, 0.933016062, -0.0669873059, 0.35355413, -0.0669873655, 0.933015943),
  387. C1 = CFrame.new(0.804130554, 1.02129114, 0.52129364, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  388. })
  389. Wing2Part = New("Part", Wings, "Wing2Part", {
  390. Transparency = 1,
  391. CanCollide = true,
  392. Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),
  393. CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.433013618, 0.250000477, 0.353553772, 0.176777452, -0.918561935, 0.353553891, 0.883886695, 0.306187093)
  394. })
  395. createrainbow(Wing2Part, NumberSequence.new(1, 0), NumberSequence.new(0), NumberRange.new(1.5), "Back", NumberRange.new(10), Vector3.new(0, 10, 0), 0, true, "Firea")
  396. Weld = New("ManualWeld", Wing2Part, "Weld", {
  397. Part0 = Wing2Part,
  398. Part1 = MainPart,
  399. C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.433013618, 0.176777452, 0.883886695, 0.250000477, -0.918561935, 0.306187093),
  400. C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  401. })
  402. Wing2Part = New("Part", Wings, "Wing2Part", {
  403. Transparency = 1,
  404. CanCollide = true,
  405. Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),
  406. CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.482963979, 0.12940979, 0.353553772, 0.408495188, -0.841509461, 0.353553891, 0.774522126, 0.524520695)
  407. })
  408. createrainbow(Wing2Part, NumberSequence.new(1, 0), NumberSequence.new(0), NumberRange.new(1.5), "Back", NumberRange.new(10), Vector3.new(0, 10, 0), 0, true, "Firea")
  409. Weld = New("ManualWeld", Wing2Part, "Weld", {
  410. Part0 = Wing2Part,
  411. Part1 = MainPart,
  412. C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.482963979, 0.408495188, 0.774522126, 0.12940979, -0.841509461, 0.524520695),
  413. C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  414. })
  415. Wing2Part = New("Part", Wings, "Wing2Part", {
  416. Transparency = 1,
  417. CanCollide = true,
  418. Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),
  419. CFrame = CFrame.new(70.4018326, 6.17824459, -42.6217613, 0.866025448, -0.500001192, 3.06954462E-12, 0.353553772, 0.612374902, -0.707109571, 0.353553891, 0.61237514, 0.707109332)
  420. })
  421. createrainbow(Wing2Part, NumberSequence.new(1, 0), NumberSequence.new(0), NumberRange.new(1.5), "Back", NumberRange.new(10), Vector3.new(0, 10, 0), 0, true, "Firea")
  422. Weld = New("ManualWeld", Wing2Part, "Weld", {
  423. Part0 = Wing2Part,
  424. Part1 = MainPart,
  425. C0 = CFrame.new(0, 0, 0, 0.866025448, 0.353553772, 0.353553891, -0.500001192, 0.612374902, 0.61237514, 3.06954462E-12, -0.707109571, 0.707109332),
  426. C1 = CFrame.new(3.00180054, 5.17823172, 4.67823792, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  427. })
  428. Halo = New("Model", chara, "Halo", {})
  429. AHaloPart = New("Part", Halo, "AHaloPart", {
  430. Transparency = 1,
  431. Transparency = 1,
  432. Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),
  433. CFrame = CFrame.new(-18.7999973, 5.50001764, -16.4999981, 1.00000644, 0, 1.25170106E-6, 0, 1, 0, 1.22189874E-6, 0, 1.00000715),
  434. CanCollide = false,
  435. BottomSurface = Enum.SurfaceType.Smooth,
  436. TopSurface = Enum.SurfaceType.Smooth
  437. })
  438. HaWeld = New("ManualWeld", AHaloPart, "HaWeld", {
  439. Part0 = AHaloPart,
  440. Part1 = Head,
  441. C0 = CFrame.new(0, 0, 0, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715),
  442. C1 = CFrame.new(-1.90734863E-6, 1.00000906, 1.33514404E-5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  443. })
  444. HaPart = New("Part", Halo, "HaPart", {
  445. BrickColor = BrickColor.new("Really black"),
  446. Material = Enum.Material.SmoothPlastic,
  447. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  448. CFrame = CFrame.new(-18.1071625, 5.50001764, -16.0999889, 0.500003397, 0, 0.866038799, 0, 1, 0, -0.866037428, 0, 0.500008583),
  449. CanCollide = false,
  450. BottomSurface = Enum.SurfaceType.Smooth,
  451. TopSurface = Enum.SurfaceType.Smooth,
  452. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  453. })
  454. Weld = New("ManualWeld", HaPart, "Weld", {
  455. Part0 = HaPart,
  456. Part1 = AHaloPart,
  457. C0 = CFrame.new(0, 0, 0, 0.499999106, 0, -0.866026282, 0, 1, 0, 0.866026342, 0, 0.499999285),
  458. C1 = CFrame.new(0.692829132, 0, 0.400005341, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715)
  459. })
  460. HaPart = New("Part", Halo, "HaPart", {
  461. BrickColor = BrickColor.new("Really black"),
  462. Material = Enum.Material.SmoothPlastic,
  463. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  464. CFrame = CFrame.new(-18.285759, 5.50001764, -15.8871527, 0.76605016, 0, 0.642795265, 0, 1, 0, -0.642793238, 0, 0.766053021),
  465. CanCollide = false,
  466. BottomSurface = Enum.SurfaceType.Smooth,
  467. TopSurface = Enum.SurfaceType.Smooth,
  468. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  469. })
  470. Weld = New("ManualWeld", HaPart, "Weld", {
  471. Part0 = HaPart,
  472. Part1 = AHaloPart,
  473. C0 = CFrame.new(0, 0, 0, 0.766044378, 0, -0.642788231, 0, 1, 0, 0.642788351, 0, 0.766044497),
  474. C1 = CFrame.new(0.514234543, 0, 0.612840652, 1.00000238, 0, 3.57627869E-7, 0, 1, 0, 3.57627869E-7, 0, 1.00000262)
  475. })
  476. HaPart = New("Part", Halo, "HaPart", {
  477. BrickColor = BrickColor.new("Really black"),
  478. Material = Enum.Material.SmoothPlastic,
  479. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  480. CFrame = CFrame.new(-19.0736217, 5.50001764, -17.2517643, 0.939700842, 0, 0.342024595, 0, 1, 0, -0.342021763, 0, 0.939702868),
  481. CanCollide = false,
  482. BottomSurface = Enum.SurfaceType.Smooth,
  483. TopSurface = Enum.SurfaceType.Smooth,
  484. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  485. })
  486. Weld = New("ManualWeld", HaPart, "Weld", {
  487. Part0 = HaPart,
  488. Part1 = AHaloPart,
  489. C0 = CFrame.new(0, 0, 0, 0.939693093, 0, -0.342019916, 0, 1, 0, 0.342020094, 0, 0.939693153),
  490. C1 = CFrame.new(-0.273622513, 0, -0.751760483, 1.00000238, 0, 3.57627869E-7, 0, 1, 0, 3.57627869E-7, 0, 1.00000262)
  491. })
  492. HaPart = New("Part", Halo, "HaPart", {
  493. BrickColor = BrickColor.new("Really black"),
  494. Material = Enum.Material.SmoothPlastic,
  495. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  496. CFrame = CFrame.new(-19.4928379, 5.50001764, -16.9000072, 0.500003397, 0, 0.866038799, 0, 1, 0, -0.866037428, 0, 0.500008583),
  497. CanCollide = false,
  498. BottomSurface = Enum.SurfaceType.Smooth,
  499. TopSurface = Enum.SurfaceType.Smooth,
  500. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  501. })
  502. Weld = New("ManualWeld", HaPart, "Weld", {
  503. Part0 = HaPart,
  504. Part1 = AHaloPart,
  505. C0 = CFrame.new(0, 0, 0, 0.499999106, 0, -0.866026282, 0, 1, 0, 0.866026342, 0, 0.499999285),
  506. C1 = CFrame.new(-0.692834854, 0, -0.400005341, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715)
  507. })
  508. HaPart = New("Part", Halo, "HaPart", {
  509. BrickColor = BrickColor.new("Really black"),
  510. Material = Enum.Material.SmoothPlastic,
  511. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  512. CFrame = CFrame.new(-19.4928265, 5.50001764, -16.0999737, -0.500008047, 0, 0.866034508, 0, 1, 0, -0.866037786, 0, -0.500004828),
  513. CanCollide = false,
  514. BottomSurface = Enum.SurfaceType.Smooth,
  515. TopSurface = Enum.SurfaceType.Smooth,
  516. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  517. })
  518. Weld = New("ManualWeld", HaPart, "Weld", {
  519. Part0 = HaPart,
  520. Part1 = AHaloPart,
  521. C0 = CFrame.new(0, 0, 0, -0.500000477, 0, -0.866025746, 0, 1, 0, 0.866025627, 0, -0.500000358),
  522. C1 = CFrame.new(-0.692825317, 0, 0.400022507, 1.00000501, 0, 8.64267349E-7, 0, 1, 0, 8.94069672E-7, 0, 1.00000548)
  523. })
  524. HaPart = New("Part", Halo, "HaPart", {
  525. BrickColor = BrickColor.new("Really black"),
  526. Material = Enum.Material.SmoothPlastic,
  527. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  528. CFrame = CFrame.new(-19.5878544, 5.50001764, -16.6389122, 0.173646897, 0, 0.984815121, 0, 1, 0, -0.984815359, 0, 0.173649639),
  529. CanCollide = false,
  530. BottomSurface = Enum.SurfaceType.Smooth,
  531. TopSurface = Enum.SurfaceType.Smooth,
  532. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  533. })
  534. Weld = New("ManualWeld", HaPart, "Weld", {
  535. Part0 = HaPart,
  536. Part1 = AHaloPart,
  537. C0 = CFrame.new(0, 0, 0, 0.173647016, 0, -0.984808564, 0, 1, 0, 0.984808564, 0, 0.173647195),
  538. C1 = CFrame.new(-0.787851334, 0, -0.138912201, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  539. })
  540. HaPart = New("Part", Halo, "HaPart", {
  541. BrickColor = BrickColor.new("Really black"),
  542. Material = Enum.Material.SmoothPlastic,
  543. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  544. CFrame = CFrame.new(-18.5263824, 5.50001764, -17.2517605, -0.939701259, 0, 0.342020363, 0, 1, 0, -0.342023492, 0, -0.93970114),
  545. CanCollide = false,
  546. BottomSurface = Enum.SurfaceType.Smooth,
  547. TopSurface = Enum.SurfaceType.Smooth,
  548. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  549. })
  550. Weld = New("ManualWeld", HaPart, "Weld", {
  551. Part0 = HaPart,
  552. Part1 = AHaloPart,
  553. C0 = CFrame.new(0, 0, 0, -0.93969363, 0, -0.34201926, 0, 1, 0, 0.342019081, 0, -0.93969363),
  554. C1 = CFrame.new(0.273614883, 0, -0.751756668, 1.00000119, 0, 1.78813934E-7, 0, 1, 0, 1.78813934E-7, 0, 1.00000131)
  555. })
  556. HaPart = New("Part", Halo, "HaPart", {
  557. BrickColor = BrickColor.new("Really black"),
  558. Material = Enum.Material.SmoothPlastic,
  559. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  560. CFrame = CFrame.new(-18.0121346, 5.50001764, -16.6389122, -0.173651725, 0, 0.984817922, 0, 1, 0, -0.984819889, 0, -0.173648074),
  561. CanCollide = false,
  562. BottomSurface = Enum.SurfaceType.Smooth,
  563. TopSurface = Enum.SurfaceType.Smooth,
  564. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  565. })
  566. Weld = New("ManualWeld", HaPart, "Weld", {
  567. Part0 = HaPart,
  568. Part1 = AHaloPart,
  569. C0 = CFrame.new(0, 0, 0, -0.173648179, 0, -0.984808624, 0, 1, 0, 0.984808445, 0, -0.17364794),
  570. C1 = CFrame.new(0.787857056, 0, -0.138914108, 1.00000358, 0, 5.81145287E-7, 0, 1, 0, 5.96046448E-7, 0, 1.00000393)
  571. })
  572. HaPart = New("Part", Halo, "HaPart", {
  573. BrickColor = BrickColor.new("Really black"),
  574. Material = Enum.Material.SmoothPlastic,
  575. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  576. CFrame = CFrame.new(-18.0121384, 5.50001764, -16.3610725, 0.173646957, 0, 0.984817505, 0, 1, 0, -0.984817922, 0, 0.173650518),
  577. CanCollide = false,
  578. BottomSurface = Enum.SurfaceType.Smooth,
  579. TopSurface = Enum.SurfaceType.Smooth,
  580. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  581. })
  582. Weld = New("ManualWeld", HaPart, "Weld", {
  583. Part0 = HaPart,
  584. Part1 = AHaloPart,
  585. C0 = CFrame.new(0, 0, 0, 0.173647016, 0, -0.984808624, 0, 1, 0, 0.984808564, 0, 0.173647255),
  586. C1 = CFrame.new(0.787853241, 0, 0.138923645, 1.00000238, 0, 3.57627869E-7, 0, 1, 0, 3.57627869E-7, 0, 1.00000262)
  587. })
  588. HaPart = New("Part", Halo, "HaPart", {
  589. BrickColor = BrickColor.new("Really black"),
  590. Material = Enum.Material.SmoothPlastic,
  591. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  592. CFrame = CFrame.new(-18.2857647, 5.50001764, -17.1128464, -0.766056955, 0, 0.642793596, 0, 1, 0, -0.642798543, 0, -0.766054869),
  593. CanCollide = false,
  594. BottomSurface = Enum.SurfaceType.Smooth,
  595. TopSurface = Enum.SurfaceType.Smooth,
  596. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  597. })
  598. Weld = New("ManualWeld", HaPart, "Weld", {
  599. Part0 = HaPart,
  600. Part1 = AHaloPart,
  601. C0 = CFrame.new(0, 0, 0, -0.766045511, 0, -0.642787457, 0, 1, 0, 0.642787278, 0, -0.766045451),
  602. C1 = CFrame.new(0.514230728, 0, -0.612844467, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715)
  603. })
  604. HaPart = New("Part", Halo, "HaPart", {
  605. BrickColor = BrickColor.new("Really black"),
  606. Material = Enum.Material.SmoothPlastic,
  607. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  608. CFrame = CFrame.new(-18.1071663, 5.50001764, -16.9000053, -0.500009298, 0, 0.866035819, 0, 1, 0, -0.866039753, 0, -0.500005484),
  609. CanCollide = false,
  610. BottomSurface = Enum.SurfaceType.Smooth,
  611. TopSurface = Enum.SurfaceType.Smooth,
  612. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  613. })
  614. Weld = New("ManualWeld", HaPart, "Weld", {
  615. Part0 = HaPart,
  616. Part1 = AHaloPart,
  617. C0 = CFrame.new(0, 0, 0, -0.500000715, 0, -0.866026103, 0, 1, 0, 0.866025865, 0, -0.500000477),
  618. C1 = CFrame.new(0.692827225, 0, -0.400005341, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715)
  619. })
  620. HaPart = New("Part", Halo, "HaPart", {
  621. BrickColor = BrickColor.new("Really black"),
  622. Material = Enum.Material.SmoothPlastic,
  623. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  624. CFrame = CFrame.new(-19.3142319, 5.50001764, -15.8871336, -0.766055584, 0, 0.642793, 0, 1, 0, -0.642797172, 0, -0.766053736),
  625. CanCollide = false,
  626. BottomSurface = Enum.SurfaceType.Smooth,
  627. TopSurface = Enum.SurfaceType.Smooth,
  628. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  629. })
  630. Weld = New("ManualWeld", HaPart, "Weld", {
  631. Part0 = HaPart,
  632. Part1 = AHaloPart,
  633. C0 = CFrame.new(0, 0, 0, -0.766045511, 0, -0.642787457, 0, 1, 0, 0.642787278, 0, -0.766045451),
  634. C1 = CFrame.new(-0.514232635, 0, 0.61286068, 1.00000501, 0, 8.64267349E-7, 0, 1, 0, 8.94069672E-7, 0, 1.00000548)
  635. })
  636. HaPart = New("Part", Halo, "HaPart", {
  637. BrickColor = BrickColor.new("Really black"),
  638. Material = Enum.Material.SmoothPlastic,
  639. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  640. CFrame = CFrame.new(-19.0736103, 5.50001764, -15.7482185, -0.939703703, 0, 0.34202081, 0, 1, 0, -0.342024893, 0, -0.939703524),
  641. CanCollide = false,
  642. BottomSurface = Enum.SurfaceType.Smooth,
  643. TopSurface = Enum.SurfaceType.Smooth,
  644. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  645. })
  646. Weld = New("ManualWeld", HaPart, "Weld", {
  647. Part0 = HaPart,
  648. Part1 = AHaloPart,
  649. C0 = CFrame.new(0, 0, 0, -0.939693749, 0, -0.342019379, 0, 1, 0, 0.342019081, 0, -0.939693689),
  650. C1 = CFrame.new(-0.273612976, 0, 0.751774788, 1.00000358, 0, 5.81145287E-7, 0, 1, 0, 5.96046448E-7, 0, 1.00000393)
  651. })
  652. HaPart = New("Part", Halo, "HaPart", {
  653. BrickColor = BrickColor.new("Really black"),
  654. Material = Enum.Material.SmoothPlastic,
  655. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  656. CFrame = CFrame.new(-19.587862, 5.50001764, -16.3610744, -0.173652977, 0, 0.984820604, 0, 1, 0, -0.984823227, 0, -0.17364794),
  657. CanCollide = false,
  658. BottomSurface = Enum.SurfaceType.Smooth,
  659. TopSurface = Enum.SurfaceType.Smooth,
  660. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  661. })
  662. Weld = New("ManualWeld", HaPart, "Weld", {
  663. Part0 = HaPart,
  664. Part1 = AHaloPart,
  665. C0 = CFrame.new(0, 0, 0, -0.173648298, 0, -0.984808683, 0, 1, 0, 0.984808445, 0, -0.17364791),
  666. C1 = CFrame.new(-0.787858963, 0, 0.138923645, 1.00000644, 0, 1.22189874E-6, 0, 1, 0, 1.25170106E-6, 0, 1.00000715)
  667. })
  668. HaPart = New("Part", Halo, "HaPart", {
  669. BrickColor = BrickColor.new("Really black"),
  670. Material = Enum.Material.SmoothPlastic,
  671. Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),
  672. CFrame = CFrame.new(-18.7999992, 5.50001764, -17.3000011, 1.00001216, 0, 2.29479861E-6, 0, 1, 0, 2.29479883E-6, 0, 1.00001347),
  673. CanCollide = false,
  674. BottomSurface = Enum.SurfaceType.Smooth,
  675. TopSurface = Enum.SurfaceType.Smooth,
  676. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  677. })
  678. Weld = New("ManualWeld", HaPart, "Weld", {
  679. Part0 = HaPart,
  680. Part1 = AHaloPart,
  681. C0 = CFrame.new(0, 0, 0, 1.00000072, 0, 1.78813934E-7, 0, 1, 0, 1.78813934E-7, 0, 1.00000083),
  682. C1 = CFrame.new(0, 0, -0.79999733, 1.00000501, 0, 8.64267349E-7, 0, 1, 0, 8.94069672E-7, 0, 1.00000548)
  683. })
  684. Horns = New("Part", Halo, "Horns", {
  685. FormFactor = Enum.FormFactor.Custom,
  686. Size = Vector3.new(0.100000001, 0.100000001, 0.100000001),
  687. CFrame = CFrame.new(-18.7999992, 5.72899342, -16.4698296, -1, 0, 0, 0, 1, 0, 0, 0, -1),
  688. CanCollide = false,
  689. BottomSurface = Enum.SurfaceType.Smooth,
  690. TopSurface = Enum.SurfaceType.Smooth
  691. })
  692. Mesh = New("SpecialMesh", Horns, "Mesh", {
  693. Scale = Vector3.new(1.08000004, 1, 1),
  694. VertexColor = Vector3.new(-1, -1, -1),
  695. MeshId = "http://www.roblox.com/asset/?id=71494804",
  696. TextureId = "http://www.roblox.com/asset/?id=71494779",
  697. MeshType = Enum.MeshType.FileMesh
  698. })
  699. Weld = New("ManualWeld", Horns, "Weld", {
  700. Part0 = Horns,
  701. Part1 = Head,
  702. C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),
  703. C1 = CFrame.new(0, 1.22898483, -0.0301551819, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  704. })
  705. for i, v in pairs(Halo:children()) do
  706. if v:IsA("BasePart") then
  707. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  708. end
  709. end
  710. coroutine.wrap(function()
  711. while true do
  712. swait()
  713. HaWeld.C0 = HaWeld.C0 * CFrame.Angles(0, math.rad(1), 0)
  714. end
  715. end)()
  716. if Player.UserId ~= Player.UserId then
  717. chara:BreakJoints()
  718. end
  719. function CreateTrailObj(parent, color1, color2, ofsx, ofsz)
  720. local Att1 = New("Attachment", parent, "Att1", {
  721. Position = Vector3.new(ofsx, parent.Size.Y / 2, ofsz)
  722. })
  723. local Att2 = New("Attachment", parent, "Att2", {
  724. Position = Vector3.new(ofsx, -(parent.Size.Y / 2), ofsz)
  725. })
  726. local TEff = New("Trail", parent, "TrailEff", {
  727. Color = ColorSequence.new({
  728. ColorSequenceKeypoint.new(0, BrickColor.new(color1).Color),
  729. ColorSequenceKeypoint.new(1, BrickColor.new(color2).Color)
  730. }),
  731. Transparency = NumberSequence.new({
  732. NumberSequenceKeypoint.new(0, 0.5),
  733. NumberSequenceKeypoint.new(1, 1)
  734. }),
  735. Attachment0 = Att1,
  736. Attachment1 = Att2,
  737. Enabled = false,
  738. Lifetime = 0.5,
  739. MinLength = 0.001,
  740. LightEmission = 1
  741. })
  742. return TEff
  743. end
  744. LLTr = CreateTrailObj(LeftLeg, "White", "White", 0, 0)
  745. RLTr = CreateTrailObj(RightLeg, "White", "White", 0, 0)
  746. LATr = CreateTrailObj(LeftArm, "White", "White", 0, 0)
  747. RATR = CreateTrailObj(RightArm, "White", "White", 0, 0)
  748. function rayCast(Position, Direction, Range, Ignore)
  749. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  750. end
  751. function killmortal(dude, faws)
  752. local hah = dude:FindFirstChildOfClass("Humanoid")
  753. if hah then
  754. if hah.RigType == Enum.HumanoidRigType.R6 then
  755. local raggy = script.RagdollScript:Clone()
  756. raggy.Parent = dude
  757. raggy.Disabled = false
  758. elseif hah.RigType == Enum.HumanoidRigType.R15 then
  759. local raggy = script.R15RagdollScript:Clone()
  760. raggy.Parent = dude
  761. raggy.Disabled = false
  762. end
  763. do
  764. local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso")
  765. if torsy then
  766. torsy.Velocity = RootPart.CFrame.lookVector * faws
  767. coroutine.wrap(function()
  768. for nn = 1, math.random(4, 6) do
  769. do
  770. local bl = Instance.new("Part", dude)
  771. bl.CFrame = torsy.CFrame + Vector3.new(math.random(-1, 1), 0, math.random(-1, 1))
  772. local randd = math.random(6, 20) / 10
  773. bl.Size = Vector3.new(randd, 0.2, randd)
  774. bl.BrickColor = BrickColor.new("Maroon")
  775. bl.Material = "Granite"
  776. local clm = Instance.new("CylinderMesh", bl)
  777. coroutine.wrap(function()
  778. swait(120)
  779. for i = 0, 1, 0.01 do
  780. clm.Scale = Vector3.new(1 - i, 1 - i, 1 - i)
  781. swait()
  782. end
  783. bl:Destroy()
  784. end)()
  785. end
  786. end
  787. end)()
  788. end
  789. dude:BreakJoints()
  790. end
  791. end
  792. end
  793. function mdmg(Part, Magnitude, HitType)
  794. for _, c in pairs(workspace:GetDescendants()) do
  795. do
  796. local hum = c:FindFirstChildOfClass("Humanoid")
  797. if hum ~= nil then
  798. do
  799. local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
  800. if head ~= nil then
  801. local targ = head.Position - Part.Position
  802. local mag = targ.magnitude
  803. if Magnitude >= mag and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd") == nil and c.Name ~= chara and (c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly") then
  804. local val = Instance.new("BoolValue", c)
  805. val.Name = "MagDmgd"
  806. if HitType == "Blunt" then
  807. so(386946017, head, 0.95, 3)
  808. elseif HitType == "Scream" then
  809. coroutine.wrap(function()
  810. local haed = c:FindFirstChild("Head")
  811. swait(3)
  812. so(206082327, haed, 1, 5)
  813. local passa = haed.Position
  814. haed:Destroy()
  815. createSplatter(passa)
  816. for i = 1, 15 do
  817. local bl = Instance.new("Part", head)
  818. bl.CFrame = CFrame.new(passa) + Vector3.new(math.random(-10, 10) / 10, 0, math.random(-10, 10) / 10)
  819. local rand = math.random(2, 7) / 10
  820. bl.Size = Vector3.new(rand, rand, rand)
  821. bl.BrickColor = BrickColor.new("Maroon")
  822. bl.Material = "Granite"
  823. end
  824. end)()
  825. elseif HitType == "Arm" then
  826. grabhand = false
  827. so(386946017, head, 0.95, 3)
  828. armo:BreakJoints()
  829. do
  830. local ar = armo
  831. coroutine.wrap(function()
  832. ar.Velocity = RootPart.CFrame.lookVector * -5 + RootPart.CFrame.rightVector * -5 + Vector3.new(0, 60, 0)
  833. swait(2)
  834. ar.CanCollide = true
  835. swait(60)
  836. for i = 0, 1, 0.05 do
  837. swait()
  838. ar.Transparency = i
  839. end
  840. ar.Parent:Destroy()
  841. end)()
  842. armo = nil
  843. end
  844. elseif HitType == "Shot" then
  845. so(144884872, head, 0.9, 3)
  846. game:service("Debris"):AddItem(val, 0.05)
  847. end
  848. killmortal(c, 10)
  849. else
  850. end
  851. end
  852. end
  853. end
  854. end
  855. end
  856. end
  857. if Player.UserId ~= Player.UserId then
  858. chara:BreakJoints()
  859. end
  860. function FindNearestTorso(Position, Distance, SinglePlayer)
  861. if SinglePlayer then
  862. return Distance > (SinglePlayer.Head.CFrame.p - Position).magnitude
  863. end
  864. local List = {}
  865. for i, v in pairs(workspace:GetDescendants()) do
  866. if v:IsA("Model") and v:findFirstChild("Head") and v ~= chara and Distance >= (v.Head.Position - Position).magnitude then
  867. table.insert(List, v)
  868. end
  869. end
  870. return List
  871. end
  872. if Player.UserId ~= Player.UserId then
  873. chara:BreakJoints()
  874. end
  875. function chatfunc(text)
  876. coroutine.wrap(function()
  877. if chara:FindFirstChild("TalkingBillBoard") ~= nil then
  878. chara:FindFirstChild("TalkingBillBoard"):destroy()
  879. end
  880. local naeeym2 = Instance.new("BillboardGui", chara)
  881. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  882. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  883. naeeym2.Adornee = chara.Head
  884. naeeym2.Name = "TalkingBillBoard"
  885. local tecks2 = Instance.new("TextLabel", naeeym2)
  886. tecks2.BackgroundTransparency = 1
  887. tecks2.BorderSizePixel = 0
  888. tecks2.Text = ""
  889. tecks2.Font = "Fantasy"
  890. tecks2.FontSize = "Size24"
  891. tecks2.TextStrokeTransparency = 0
  892. tecks2.TextColor3 = Color3.new(0.6, 0, 0)
  893. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  894. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  895. local shk = coroutine.wrap(function()
  896. while tecks2 ~= nil do
  897. swait(0.05)
  898. tecks2.Position = UDim2.new(0, math.random(-3, 3), 0, math.random(-3, 3))
  899. end
  900. end)
  901. shk()
  902. for i = 1, string.len(text) do
  903. tecks2.Text = string.sub(text, 1, i)
  904. swait(0.01)
  905. end
  906. swait(30)
  907. for i = 1, 5 do
  908. swait()
  909. tecks2.Position = tecks2.Position - UDim2.new(0, 0, 0.05, 0)
  910. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.2
  911. tecks2.TextTransparency = tecks2.TextTransparency + 0.2
  912. end
  913. naeeym2:Destroy()
  914. end)()
  915. end
  916. if Player.UserId ~= Player.UserId then
  917. chara:BreakJoints()
  918. end
  919. if Player.UserId ~= Player.UserId then
  920. chara:BreakJoints()
  921. end
  922. EffectModel = Create("Model")({Parent = chara, Name = "Effects"})
  923. if Player.UserId ~= Player.UserId then
  924. chara:BreakJoints()
  925. end
  926. Effects = {
  927. Block = {
  928. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  929. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  930. prt.Anchored = true
  931. prt.CFrame = cframe
  932. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  933. game:GetService("Debris"):AddItem(prt, 10)
  934. if Type == 1 or Type == nil then
  935. table.insert(Effects, {
  936. prt,
  937. "Block1",
  938. delay,
  939. x3,
  940. y3,
  941. z3,
  942. msh
  943. })
  944. elseif Type == 2 then
  945. table.insert(Effects, {
  946. prt,
  947. "Block2",
  948. delay,
  949. x3,
  950. y3,
  951. z3,
  952. msh
  953. })
  954. end
  955. end
  956. },
  957. Cylinder = {
  958. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  959. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  960. prt.Anchored = true
  961. prt.CFrame = cframe
  962. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  963. game:GetService("Debris"):AddItem(prt, 10)
  964. table.insert(Effects, {
  965. prt,
  966. "Cylinder",
  967. delay,
  968. x3,
  969. y3,
  970. z3,
  971. msh
  972. })
  973. end
  974. },
  975. Head = {
  976. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  977. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  978. prt.Anchored = true
  979. prt.CFrame = cframe
  980. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  981. game:GetService("Debris"):AddItem(prt, 10)
  982. table.insert(Effects, {
  983. prt,
  984. "Cylinder",
  985. delay,
  986. x3,
  987. y3,
  988. z3,
  989. msh
  990. })
  991. end
  992. },
  993. Sphere = {
  994. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  995. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  996. prt.Anchored = true
  997. prt.CFrame = cframe
  998. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  999. game:GetService("Debris"):AddItem(prt, 10)
  1000. table.insert(Effects, {
  1001. prt,
  1002. "Cylinder",
  1003. delay,
  1004. x3,
  1005. y3,
  1006. z3,
  1007. msh
  1008. })
  1009. end
  1010. },
  1011. Elect = {
  1012. Create = function(cff, x, y, z)
  1013. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  1014. prt.Anchored = true
  1015. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1016. prt.CFrame = CFrame.new(prt.Position)
  1017. game:GetService("Debris"):AddItem(prt, 2)
  1018. local xval = math.random() / 2
  1019. local yval = math.random() / 2
  1020. local zval = math.random() / 2
  1021. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1022. table.insert(Effects, {
  1023. prt,
  1024. "Elec",
  1025. 0.1,
  1026. x,
  1027. y,
  1028. z,
  1029. xval,
  1030. yval,
  1031. zval
  1032. })
  1033. end
  1034. },
  1035. Ring = {
  1036. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1037. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1038. prt.Anchored = true
  1039. prt.CFrame = cframe
  1040. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1041. game:GetService("Debris"):AddItem(prt, 10)
  1042. table.insert(Effects, {
  1043. prt,
  1044. "Cylinder",
  1045. delay,
  1046. x3,
  1047. y3,
  1048. z3,
  1049. msh
  1050. })
  1051. end
  1052. },
  1053. Wave = {
  1054. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1055. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1056. prt.Anchored = true
  1057. prt.CFrame = cframe
  1058. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1059. game:GetService("Debris"):AddItem(prt, 10)
  1060. table.insert(Effects, {
  1061. prt,
  1062. "Cylinder",
  1063. delay,
  1064. x3,
  1065. y3,
  1066. z3,
  1067. msh
  1068. })
  1069. end
  1070. },
  1071. Break = {
  1072. Create = function(brickcolor, cframe, x1, y1, z1)
  1073. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1074. prt.Anchored = true
  1075. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1076. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1077. local num = math.random(10, 50) / 1000
  1078. game:GetService("Debris"):AddItem(prt, 10)
  1079. table.insert(Effects, {
  1080. prt,
  1081. "Shatter",
  1082. num,
  1083. prt.CFrame,
  1084. math.random() - math.random(),
  1085. 0,
  1086. math.random(50, 100) / 100
  1087. })
  1088. end
  1089. },
  1090. Fire = {
  1091. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1092. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1093. prt.Anchored = true
  1094. prt.CFrame = cframe
  1095. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1096. game:GetService("Debris"):AddItem(prt, 10)
  1097. table.insert(Effects, {
  1098. prt,
  1099. "Fire",
  1100. delay,
  1101. 1,
  1102. 1,
  1103. 1,
  1104. msh
  1105. })
  1106. end
  1107. },
  1108. FireWave = {
  1109. Create = function(brickcolor, cframe, x1, y1, z1)
  1110. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1111. prt.Anchored = true
  1112. prt.CFrame = cframe
  1113. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1114. local d = Create("Decal")({
  1115. Parent = prt,
  1116. Texture = "rbxassetid://26356434",
  1117. Face = "Top"
  1118. })
  1119. local d = Create("Decal")({
  1120. Parent = prt,
  1121. Texture = "rbxassetid://26356434",
  1122. Face = "Bottom"
  1123. })
  1124. game:GetService("Debris"):AddItem(prt, 10)
  1125. table.insert(Effects, {
  1126. prt,
  1127. "FireWave",
  1128. 1,
  1129. 30,
  1130. math.random(400, 600) / 100,
  1131. msh
  1132. })
  1133. end
  1134. },
  1135. Lightning = {
  1136. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1137. local magz = (p0 - p1).magnitude
  1138. local curpos = p0
  1139. local trz = {
  1140. -ofs,
  1141. ofs
  1142. }
  1143. for i = 1, tym do
  1144. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1145. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1146. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1147. li.Material = "Neon"
  1148. if tym == i then
  1149. local magz2 = (curpos - p1).magnitude
  1150. li.Size = Vector3.new(th, th, magz2)
  1151. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1152. table.insert(Effects, {
  1153. li,
  1154. "Disappear",
  1155. last
  1156. })
  1157. else
  1158. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1159. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1160. game.Debris:AddItem(li, 10)
  1161. table.insert(Effects, {
  1162. li,
  1163. "Disappear",
  1164. last
  1165. })
  1166. end
  1167. end
  1168. end
  1169. },
  1170. EffectTemplate = {}
  1171. }
  1172. if Player.UserId ~= Player.UserId then
  1173. chara:BreakJoints()
  1174. end
  1175. coroutine.wrap(function()
  1176. while true do
  1177. swait()
  1178. Humanoid.MaxHealth = math.huge
  1179. Humanoid.Health = math.huge
  1180. Humanoid.Name = "CHACHASHHHAHHAAAAAAAAAAAAAAAA"
  1181. if chara:FindFirstChild("GodFF") == nil then
  1182. local ff = Instance.new("ForceField", chara)
  1183. ff.Name = "GodFF"
  1184. ff.Visible = false
  1185. end
  1186. end
  1187. end)()
  1188. if chara:FindFirstChild("FakeHeadM") then
  1189. local CorruptFace = New("Decal", chara.FakeHeadM.FakeHead, "Corrupt", {
  1190. Texture = "rbxassetid://1000657824"
  1191. })
  1192. chara.FakeHeadM.FakeHead.Normal:Destroy()
  1193. chara.FakeHeadM.FakeHead.Lood:Destroy()
  1194. chara.FakeHeadM.FakeHead.Rooped:Destroy()
  1195. chara.FaysG:Destroy()
  1196. chara.FakeHeadM.Ahoge:Destroy()
  1197. chara.Shirta.ShirtTemplate = "rbxassetid://1049388163"
  1198. chara.Pantsa.PantsTemplate = "rbxassetid://1269870713"
  1199. for i, v in pairs(chara:GetDescendants()) do
  1200. if v:IsA("BasePart") and (v.BrickColor == BrickColor.new("Alder") or v.BrickColor == BrickColor.new("Royal purple")) then
  1201. v.BrickColor = BrickColor.new("Crimson")
  1202. elseif v:IsA("BasePart") and v.BrickColor == BrickColor.new("Institutional white") then
  1203. v.BrickColor = BrickColor.new("Really black")
  1204. elseif v.Name == "SpecPart" or v.Name == "Ears1Part" then
  1205. v:Destroy()
  1206. elseif v.Name == "Ears2Part" then
  1207. v.Transparency = 0
  1208. end
  1209. end
  1210. end
  1211. local blpemit = Instance.new("ParticleEmitter")
  1212. blpemit.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  1213. blpemit.Texture = "rbxassetid://233069772"
  1214. blpemit.Transparency = NumberSequence.new(0, 1)
  1215. blpemit.Lifetime = NumberRange.new(1, 3)
  1216. blpemit.Acceleration = Vector3.new(0, -10, 0)
  1217. blpemit.Enabled = true
  1218. blpemit.EmissionDirection = "Front"
  1219. blpemit.Speed = NumberRange.new(1, 3)
  1220. blpemit.Size = NumberSequence.new(0.5)
  1221. blpemit.Rate = 1000
  1222. blpemit.RotSpeed = NumberRange.new(50)
  1223. blpemit.Rotation = NumberRange.new(0, 360)
  1224. function createSplatter(pos)
  1225. local emit = Instance.new("Part", chara)
  1226. emit.Anchored = true
  1227. emit.CanCollide = false
  1228. emit.Size = Vector3.new()
  1229. emit.Transparency = 1
  1230. emit.CFrame = CFrame.new(pos)
  1231. local blp = blpemit:Clone()
  1232. blp.Parent = emit
  1233. blp.Enabled = false
  1234. blp.EmissionDirection = "Top"
  1235. blp.VelocitySpread = 60
  1236. blp.Size = NumberSequence.new(2, 0)
  1237. blp.Lifetime = NumberRange.new(3)
  1238. blp.Speed = NumberRange.new(10)
  1239. blp.Acceleration = Vector3.new(0, -10, 0)
  1240. blp:Emit(math.random(35, 40))
  1241. game:service("Debris"):AddItem(emit, 4)
  1242. end
  1243. function thenatsuki()
  1244. attack = true
  1245. Humanoid.WalkSpeed = 2
  1246. local grab, torsy
  1247. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1248. if v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1249. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1250. grab = v
  1251. end
  1252. end
  1253. if grab ~= nil and torsy ~= nil then
  1254. Instance.new("BoolValue", grab).Name = "NATSUKID"
  1255. so(200632136, RootPart, 0.8, 1)
  1256. for i = 0, 2, 0.1 do
  1257. swait()
  1258. PlayAnimationFromTable({
  1259. CFrame.new(0, 0.00182705373, -0.0581560358, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661),
  1260. CFrame.new(0, 1.49941719, 0.0767186508, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661),
  1261. CFrame.new(1.1733681, 1.00347483, -0.438556999, 0.834721148, 0.546610475, 0.0667646676, 0.395648003, -0.510977745, -0.763128042, -0.383018494, 0.663414538, -0.642789304),
  1262. CFrame.new(-1.19234979, 1.02193367, -0.467352033, 0.879184604, -0.471780479, -0.0667649657, -0.349608243, -0.543515444, -0.763128519, 0.323741287, 0.694272459, -0.642788768),
  1263. CFrame.new(0.499997675, -1.9992758, -0.116536342, 0.965925872, 0, -0.258818984, -0.02255762, 0.996194661, -0.0841862038, 0.257834077, 0.087155968, 0.962250173),
  1264. CFrame.new(-0.50000006, -1.99927592, -0.116537228, 0.984807849, 0, 0.173647985, 0.0151344584, 0.996194661, -0.0858318806, -0.172987193, 0.087155968, 0.981060326)
  1265. }, 0.3, false)
  1266. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1267. torsy.Velocity = Vector3.new()
  1268. end
  1269. local wel = Instance.new("Weld", grab.Head)
  1270. wel.Part0 = torsy
  1271. wel.Part1 = grab.Head
  1272. wel.C0 = CFrame.new(0, 1.5, 0)
  1273. local bledp = Instance.new("Part", grab)
  1274. bledp.Size = Vector3.new(0, 0, 0)
  1275. bledp.Transparency = 1
  1276. bledp.CanCollide = false
  1277. local blpe = blpemit:Clone()
  1278. blpe.Parent = bledp
  1279. blpe.EmissionDirection = "Top"
  1280. blpe.VelocitySpread = 5
  1281. wel.C0 = CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
  1282. local bledw = Instance.new("Weld", bledp)
  1283. bledw.Part0 = grab.Head
  1284. bledw.Part1 = bledp
  1285. bledw.C0 = CFrame.new(0, -0.7, 0) * CFrame.Angles(0, 0, math.rad(45))
  1286. so(314390675, torsy, 0.7, 5)
  1287. for i = 0, 1, 0.25 do
  1288. swait()
  1289. PlayAnimationFromTable({
  1290. CFrame.new(-0.37728107, 0.00182711286, -0.228351086, 0.707106352, 0.0616285279, -0.704416513, 0, 0.99619478, 0.0871558264, 0.707107365, -0.0616284423, 0.7044155),
  1291. CFrame.new(-9.90927219E-7, 1.49941754, 0.0767165273, 0.766044199, 0, 0.642788053, 0.0560227223, 0.99619478, -0.066765219, -0.640341938, 0.0871558264, 0.763129056),
  1292. CFrame.new(1.14925241, 0.936202288, -0.560600817, 0.834721982, 0.490812272, 0.249685481, 0.39564395, -0.219157442, -0.891872227, -0.383021295, 0.843251646, -0.377122372),
  1293. CFrame.new(-1.01654804, 1.22616923, -0.180458635, 0.525007069, -0.121539712, -0.8423751, -0.63483566, -0.715151966, -0.292475075, -0.566878796, 0.688320994, -0.452617407),
  1294. CFrame.new(0.499999106, -1.99927592, -0.116537355, 0.965925813, 0, -0.258819491, -0.0225576311, 0.99619478, -0.0841860622, 0.257834613, 0.0871558264, 0.962249994),
  1295. CFrame.new(-0.500003219, -1.99927604, -0.116538122, 0.984807849, 0, 0.173648447, 0.0151344724, 0.99619478, -0.0858317465, -0.17298761, 0.0871558264, 0.981060266)
  1296. }, 0.3, false)
  1297. wel.C0 = CFrame.new(0.7 * i, 1.5, 0) * CFrame.Angles(0, 0, math.rad(-90 * i))
  1298. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -2)
  1299. torsy.Velocity = Vector3.new()
  1300. end
  1301. for i = 1, 30 do
  1302. swait()
  1303. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -2)
  1304. torsy.Velocity = Vector3.new()
  1305. end
  1306. killmortal(grab, 20)
  1307. end
  1308. attack = false
  1309. Humanoid.WalkSpeed = 8
  1310. end
  1311. xhold = false
  1312. function thesurou()
  1313. attack = true
  1314. Humanoid.WalkSpeed = 2
  1315. local grab, torsy, hum
  1316. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1317. if v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1318. hum = v:FindFirstChildOfClass("Humanoid")
  1319. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1320. grab = v
  1321. end
  1322. end
  1323. if grab ~= nil and torsy ~= nil then
  1324. so(200632136, RootPart, 0.8, 1)
  1325. for i = 0, 1.5, 0.1 do
  1326. swait()
  1327. PlayAnimationFromTable({
  1328. CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1329. CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1330. CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704E-7, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876),
  1331. CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1332. CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1333. CFrame.new(-0.499997556, -2, 1.63912773E-7, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557)
  1334. }, 0.3, false)
  1335. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1336. torsy.Velocity = Vector3.new()
  1337. end
  1338. so(240429615, torsy, 1, 1)
  1339. for i = 0, 1.5, 0.1 do
  1340. swait()
  1341. PlayAnimationFromTable({
  1342. CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1343. CFrame.new(0.0219391882, 1.50780332, -0.243838966, 0.852868617, 0.0296956748, -0.521280766, 0.173647985, 0.925416708, 0.336823881, 0.492404163, -0.377785802, 0.784102201),
  1344. CFrame.new(1.50000226, 0.469847411, -0.171007544, 0.939692974, -0.342019379, -5.81145287E-7, 0.116976947, 0.321393847, -0.939692736, 0.321393311, 0.883022606, 0.342019975),
  1345. CFrame.new(-1.50000036, 0, -3.81469818E-6, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1346. CFrame.new(0.500001073, -1.99999905, 7.15255737E-7, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1347. CFrame.new(-0.500000119, -1.99999905, -3.81469818E-6, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)
  1348. }, 0.3, false)
  1349. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1350. torsy.Velocity = Vector3.new()
  1351. end
  1352. repeat
  1353. swait()
  1354. PlayAnimationFromTable({
  1355. CFrame.new(-0.00874902681, -4.76837158E-7, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
  1356. CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
  1357. CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224E-8, 0, 0, 0, -1, -2.98023224E-8, 1.00000012, 0),
  1358. CFrame.new(-1.54019761, 0.669612885, -6.12696294E-6, 0.499998331, 0.866026461, 1.87754631E-6, -0.866026402, 0.499998331, 2.13891599E-6, 8.94069672E-7, -2.71201134E-6, 1.00000012),
  1359. CFrame.new(0.500005782, -1.99999893, -3.82959888E-6, 1.00000012, 0, -2.98023224E-8, 0, 1, 0, -2.98023224E-8, 0, 1.00000012),
  1360. CFrame.new(-0.499995083, -1.99999893, -1.18389726E-5, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718)
  1361. }, 0.3, false)
  1362. torsy.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-90), 0, 0)
  1363. hum.PlatformStand = true
  1364. torsy.Velocity = Vector3.new()
  1365. until xhold == false
  1366. so(200632136, RootPart, 0.9, 1)
  1367. do
  1368. local pato = Instance.new("Part", torsy)
  1369. pato.CFrame = torsy.CFrame
  1370. pato.Size = Vector3.new(4.1, 6.1, 1.1)
  1371. pato.Transparency = 1
  1372. pato.CanCollide = false
  1373. pato.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1374. local werudo = Instance.new("Weld", pato)
  1375. werudo.Part0 = pato
  1376. werudo.Part1 = torsy
  1377. torsy.Velocity = (Mouse.Hit.p - torsy.Position).unit * 100 + Vector3.new(0, 30, 0)
  1378. torsy.RotVelocity = Vector3.new(10, 10, 10)
  1379. coroutine.wrap(function()
  1380. while true do
  1381. swait()
  1382. hum.PlatformStand = true
  1383. end
  1384. end)
  1385. pato.Touched:connect(function(hit)
  1386. if hit:IsDescendantOf(chara) == false then
  1387. pato:Destroy()
  1388. killmortal(grab, 5)
  1389. so(260430079, torsy, 1, 5)
  1390. createSplatter(torsy.Position)
  1391. mdmg(torsy, 3, "Blunt")
  1392. Effects.Wave.Create(BrickColor.new("White"), CFrame.new(torsy.Position), 0, 0, 0, 1, 0.2, 1, 0.1)
  1393. end
  1394. end)
  1395. end
  1396. end
  1397. for i = 0, 1, 0.1 do
  1398. swait()
  1399. PlayAnimationFromTable({
  1400. CFrame.new(-0.0371780396, -4.76837158E-7, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  1401. CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845),
  1402. CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271E-7, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195),
  1403. CFrame.new(-1.59158015, 0.575855374, -7.62939453E-6, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1),
  1404. CFrame.new(0.500011563, -1.99999893, -2.07126141E-6, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1405. CFrame.new(-0.946406364, -1.97320735, -7.62939453E-6, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)
  1406. }, 0.3, false)
  1407. end
  1408. attack = false
  1409. Humanoid.WalkSpeed = 8
  1410. end
  1411. function thehead()
  1412. attack = true
  1413. Humanoid.WalkSpeed = 2
  1414. local grab, torsy
  1415. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1416. if v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1417. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1418. grab = v
  1419. end
  1420. end
  1421. if grab ~= nil and torsy ~= nil then
  1422. so(200632136, RootPart, 0.8, 1)
  1423. for i = 0, 2, 0.1 do
  1424. swait()
  1425. PlayAnimationFromTable({
  1426. CFrame.new(0, 0.00182705373, -0.0581560358, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661),
  1427. CFrame.new(0, 1.49941719, 0.0767186508, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661),
  1428. CFrame.new(1.1733681, 1.00347483, -0.438556999, 0.834721148, 0.546610475, 0.0667646676, 0.395648003, -0.510977745, -0.763128042, -0.383018494, 0.663414538, -0.642789304),
  1429. CFrame.new(-1.19234979, 1.02193367, -0.467352033, 0.879184604, -0.471780479, -0.0667649657, -0.349608243, -0.543515444, -0.763128519, 0.323741287, 0.694272459, -0.642788768),
  1430. CFrame.new(0.499997675, -1.9992758, -0.116536342, 0.965925872, 0, -0.258818984, -0.02255762, 0.996194661, -0.0841862038, 0.257834077, 0.087155968, 0.962250173),
  1431. CFrame.new(-0.50000006, -1.99927592, -0.116537228, 0.984807849, 0, 0.173647985, 0.0151344584, 0.996194661, -0.0858318806, -0.172987193, 0.087155968, 0.981060326)
  1432. }, 0.3, false)
  1433. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1434. torsy.Velocity = Vector3.new()
  1435. end
  1436. local armmod = Instance.new("Model", chara)
  1437. armmod.Name = grab.Name
  1438. Instance.new("Humanoid", armmod).Health = 0
  1439. for i, v in pairs(grab:GetChildren()) do
  1440. if v:IsA("Accoutrement") and v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1441. v.Handle.AccessoryWeld.Part1 = nil
  1442. end
  1443. end
  1444. local armp = grab:FindFirstChild("Head")
  1445. createSplatter(armp.Position)
  1446. killmortal(grab, 5)
  1447. armp.Parent = armmod
  1448. for i, v in pairs(grab:GetChildren()) do
  1449. if v:IsA("Accoutrement") and v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1450. v.Handle.AccessoryWeld.Part1 = armp
  1451. v.Parent = armmod
  1452. end
  1453. end
  1454. so(206082327, armp, 1, 5)
  1455. local bledp = Instance.new("Part", grab)
  1456. bledp.Size = Vector3.new(0, 0, 0)
  1457. bledp.Transparency = 1
  1458. bledp.CanCollide = false
  1459. local blpe = blpemit:Clone()
  1460. blpe.Parent = bledp
  1461. blpe.EmissionDirection = "Top"
  1462. blpe.VelocitySpread = 20
  1463. local wel = Instance.new("Weld", armp)
  1464. wel.Part0 = RightArm
  1465. wel.Part1 = armp
  1466. wel.C0 = CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-90), 0, 0)
  1467. local blape = bledp:Clone()
  1468. blape.Parent = armmod
  1469. blape.ParticleEmitter.EmissionDirection = "Bottom"
  1470. local bledw = Instance.new("Weld", bledp)
  1471. bledw.Part0 = torsy
  1472. bledw.Part1 = bledp
  1473. bledw.C0 = CFrame.new(0, 1, 0)
  1474. local bledw2 = Instance.new("Weld", blape)
  1475. bledw2.Part0 = armp
  1476. bledw2.Part1 = blape
  1477. bledw2.C0 = CFrame.new(0, -0.5, 0)
  1478. grabhead = true
  1479. heddo = armp
  1480. for i = 0, 1, 0.25 do
  1481. swait()
  1482. PlayAnimationFromTable({
  1483. CFrame.new(-0.37728107, 0.00182711286, -0.228351086, 0.707106352, 0.0616285279, -0.704416513, 0, 0.99619478, 0.0871558264, 0.707107365, -0.0616284423, 0.7044155),
  1484. CFrame.new(-9.90927219E-7, 1.49941754, 0.0767165273, 0.766044199, 0, 0.642788053, 0.0560227223, 0.99619478, -0.066765219, -0.640341938, 0.0871558264, 0.763129056),
  1485. CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704E-7, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876),
  1486. CFrame.new(-1.01654804, 1.22616923, -0.180458635, 0.525007069, -0.121539712, -0.8423751, -0.63483566, -0.715151966, -0.292475075, -0.566878796, 0.688320994, -0.452617407),
  1487. CFrame.new(0.499999106, -1.99927592, -0.116537355, 0.965925813, 0, -0.258819491, -0.0225576311, 0.99619478, -0.0841860622, 0.257834613, 0.0871558264, 0.962249994),
  1488. CFrame.new(-0.500003219, -1.99927604, -0.116538122, 0.984807849, 0, 0.173648447, 0.0151344724, 0.99619478, -0.0858317465, -0.17298761, 0.0871558264, 0.981060266)
  1489. }, 0.3, false)
  1490. end
  1491. swait(30)
  1492. end
  1493. attack = false
  1494. Humanoid.WalkSpeed = 8
  1495. end
  1496. function headthrow()
  1497. attack = true
  1498. Humanoid.WalkSpeed = 2
  1499. for i = 0, 2, 0.1 do
  1500. swait()
  1501. PlayAnimationFromTable({
  1502. CFrame.new(-0.00874902681, -4.76837158E-7, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
  1503. CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
  1504. CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224E-8, 0, 0, 0, -1, -2.98023224E-8, 1.00000012, 0),
  1505. CFrame.new(-1.54019761, 0.669612885, -6.12696294E-6, 0.499998331, 0.866026461, 1.87754631E-6, -0.866026402, 0.499998331, 2.13891599E-6, 8.94069672E-7, -2.71201134E-6, 1.00000012),
  1506. CFrame.new(0.500005782, -1.99999893, -3.82959888E-6, 1.00000012, 0, -2.98023224E-8, 0, 1, 0, -2.98023224E-8, 0, 1.00000012),
  1507. CFrame.new(-0.499995083, -1.99999893, -1.18389726E-5, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718)
  1508. }, 0.3, false)
  1509. end
  1510. so(200632136, RootPart, 0.8, 1)
  1511. local haea = heddo
  1512. haea.Weld:Destroy()
  1513. haea.Velocity = (Mouse.Hit.p - haea.Position).unit * 200 + Vector3.new(0, 30, 0)
  1514. haea.RotVelocity = Vector3.new(10, 10, 10)
  1515. haea.Touched:connect(function(hit)
  1516. if hit:IsDescendantOf(chara) == false and hit.Parent:FindFirstChildOfClass("Humanoid") and haea:FindFirstChild("HITA") == nil then
  1517. print("BOOBIES")
  1518. Instance.new("BoolValue", haea).Name = "HITA"
  1519. Effects.Wave.Create(BrickColor.new("White"), CFrame.new(haea.Position), 0, 0, 0, 1, 0.2, 1, 0.1)
  1520. killmortal(hit.Parent, 50)
  1521. so(386946017, haea, 0.95, 5)
  1522. swait(120)
  1523. for i = 0, 1, 0.05 do
  1524. haea.Transparency = i
  1525. swait()
  1526. end
  1527. haea.Parent:Destroy()
  1528. end
  1529. end)
  1530. heddo = nil
  1531. grabhead = false
  1532. for i = 0, 1, 0.1 do
  1533. swait()
  1534. PlayAnimationFromTable({
  1535. CFrame.new(-0.0371780396, -4.76837158E-7, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  1536. CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845),
  1537. CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271E-7, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195),
  1538. CFrame.new(-1.59158015, 0.575855374, -7.62939453E-6, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1),
  1539. CFrame.new(0.500011563, -1.99999893, -2.07126141E-6, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1540. CFrame.new(-0.946406364, -1.97320735, -7.62939453E-6, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)
  1541. }, 0.3, false)
  1542. end
  1543. attack = false
  1544. Humanoid.WalkSpeed = 8
  1545. end
  1546. function therip()
  1547. attack = true
  1548. Humanoid.WalkSpeed = 2
  1549. local grab, torsy, hum
  1550. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1551. if v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1552. hum = v:FindFirstChildOfClass("Humanoid")
  1553. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1554. grab = v
  1555. end
  1556. end
  1557. if grab ~= nil and torsy ~= nil then
  1558. so(200632136, RootPart, 0.8, 1)
  1559. for i = 0, 1.5, 0.1 do
  1560. swait()
  1561. PlayAnimationFromTable({
  1562. CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1563. CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1564. CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704E-7, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876),
  1565. CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1566. CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1567. CFrame.new(-0.499997556, -2, 1.63912773E-7, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557)
  1568. }, 0.3, false)
  1569. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1570. torsy.Velocity = Vector3.new()
  1571. end
  1572. so(240429615, torsy, 1, 1)
  1573. for i = 0, 1.5, 0.1 do
  1574. swait()
  1575. PlayAnimationFromTable({
  1576. CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1577. CFrame.new(0.0219391882, 1.50780332, -0.243838966, 0.852868617, 0.0296956748, -0.521280766, 0.173647985, 0.925416708, 0.336823881, 0.492404163, -0.377785802, 0.784102201),
  1578. CFrame.new(1.50000226, 0.469847411, -0.171007544, 0.939692974, -0.342019379, -5.81145287E-7, 0.116976947, 0.321393847, -0.939692736, 0.321393311, 0.883022606, 0.342019975),
  1579. CFrame.new(-1.50000036, 0, -3.81469818E-6, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1580. CFrame.new(0.500001073, -1.99999905, 7.15255737E-7, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1581. CFrame.new(-0.500000119, -1.99999905, -3.81469818E-6, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024)
  1582. }, 0.3, false)
  1583. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1584. torsy.Velocity = Vector3.new()
  1585. end
  1586. for i = 0, 3, 0.1 do
  1587. swait()
  1588. PlayAnimationFromTable({
  1589. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1590. CFrame.new(0, 1.4261663, 0.264408052, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  1591. CFrame.new(1.45148087, 1.32618856, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  1592. CFrame.new(-1.48567963, 1.22015762, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  1593. CFrame.new(0.500001848, -1.99999988, 1.62422657E-6, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1594. CFrame.new(-0.500001848, -1.99999988, 1.62422657E-6, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736)
  1595. }, 0.3, false)
  1596. torsy.CFrame = clerp(torsy.CFrame, RootPart.CFrame * CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.3)
  1597. hum.PlatformStand = true
  1598. torsy.Velocity = Vector3.new()
  1599. end
  1600. so(206082327, torsy, 1, 5)
  1601. createSplatter(torsy.Position)
  1602. if hum.RigType == Enum.HumanoidRigType.R6 then
  1603. do
  1604. local lleg = grab:FindFirstChild("Left Leg")
  1605. local rleg = grab:FindFirstChild("Right Leg")
  1606. local mad = Instance.new("Model", workspace)
  1607. Instance.new("Humanoid", mad).Health = 0
  1608. mad.Humanoid.MaxHealth = 0
  1609. if grab:FindFirstChildOfClass("Pants") then
  1610. grab:FindFirstChildOfClass("Pants"):Clone().Parent = mad
  1611. end
  1612. killmortal(grab, 0)
  1613. coroutine.wrap(function()
  1614. swait(2)
  1615. torsy.Velocity = RootPart.CFrame.rightVector * -30
  1616. lleg.Parent = mad
  1617. rleg.Parent = mad
  1618. lleg.CanCollide = true
  1619. rleg.CanCollide = true
  1620. lleg:BreakJoints()
  1621. rleg:BreakJoints()
  1622. lleg.Velocity = RootPart.CFrame.rightVector * 30
  1623. rleg.Velocity = RootPart.CFrame.rightVector * 30
  1624. local bledp = Instance.new("Part", mad)
  1625. bledp.Size = Vector3.new(0, 0, 0)
  1626. bledp.Transparency = 1
  1627. bledp.CanCollide = false
  1628. local blpe = blpemit:Clone()
  1629. blpe.Parent = bledp
  1630. blpe.EmissionDirection = "Top"
  1631. blpe.VelocitySpread = 20
  1632. local bledp2 = bledp:Clone()
  1633. bledp2.Parent = mad
  1634. local blape = bledp:Clone()
  1635. blape.Parent = mad
  1636. blape.ParticleEmitter.EmissionDirection = "Bottom"
  1637. blape.Size = Vector3.new(1.5, 0, 0)
  1638. local bledw = Instance.new("Weld", bledp)
  1639. bledw.Part0 = lleg
  1640. bledw.Part1 = bledp
  1641. bledw.C0 = CFrame.new(0, 1, 0)
  1642. local bledw2 = Instance.new("Weld", blape)
  1643. bledw2.Part0 = torsy
  1644. bledw2.Part1 = blape
  1645. bledw2.C0 = CFrame.new(0, -0.5, 0)
  1646. local bledw3 = Instance.new("Weld", bledp2)
  1647. bledw.Part0 = rleg
  1648. bledw.Part1 = bledp2
  1649. bledw.C0 = CFrame.new(0, 1, 0)
  1650. game:service("Debris"):AddItem(mad, 15)
  1651. end)()
  1652. end
  1653. elseif hum.RigType == Enum.HumanoidRigType.R15 then
  1654. do
  1655. local hip = grab:FindFirstChild("LowerTorso")
  1656. local lleg = grab:FindFirstChild("LeftUpperLeg")
  1657. local rleg = grab:FindFirstChild("RightUpperLeg")
  1658. killmortal(grab, 0)
  1659. coroutine.wrap(function()
  1660. swait(2)
  1661. hip:Destroy()
  1662. torsy.Velocity = RootPart.CFrame.rightVector * -60
  1663. lleg.Velocity = RootPart.CFrame.rightVector * 60
  1664. rleg.Velocity = RootPart.CFrame.rightVector * 60
  1665. local bledp = Instance.new("Part", torsy.Parent)
  1666. bledp.Size = Vector3.new(0, 0, 0)
  1667. bledp.Transparency = 1
  1668. bledp.CanCollide = false
  1669. local blpe = blpemit:Clone()
  1670. blpe.Parent = bledp
  1671. blpe.EmissionDirection = "Top"
  1672. blpe.VelocitySpread = 20
  1673. local bledp2 = bledp:Clone()
  1674. bledp2.Parent = torsy.Parent
  1675. local blape = bledp:Clone()
  1676. blape.Parent = torsy.Parent
  1677. blape.ParticleEmitter.EmissionDirection = "Bottom"
  1678. blape.Size = Vector3.new(1.5, 0, 0)
  1679. local bledw = Instance.new("Weld", bledp)
  1680. bledw.Part0 = lleg
  1681. bledw.Part1 = bledp
  1682. bledw.C0 = CFrame.new(0, 1, 0)
  1683. local bledw2 = Instance.new("Weld", blape)
  1684. bledw2.Part0 = torsy
  1685. bledw2.Part1 = blape
  1686. bledw2.C0 = CFrame.new(0, -0.5, 0)
  1687. local bledw3 = Instance.new("Weld", bledp2)
  1688. bledw.Part0 = rleg
  1689. bledw.Part1 = bledp2
  1690. bledw.C0 = CFrame.new(0, 1, 0)
  1691. end)()
  1692. end
  1693. end
  1694. for i = 0, 2, 0.1 do
  1695. swait()
  1696. PlayAnimationFromTable({
  1697. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1698. CFrame.new(0, 1.4261663, 0.264408052, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  1699. CFrame.new(1.45148087, 0.22618866, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1),
  1700. CFrame.new(-1.48567963, 0.220157385, 0, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  1701. CFrame.new(0.500001848, -1.99999988, 1.62422657E-6, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1702. CFrame.new(-0.499995321, -1.99999988, -2.78651714E-6, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736)
  1703. }, 0.3, false)
  1704. end
  1705. end
  1706. attack = false
  1707. Humanoid.WalkSpeed = 8
  1708. end
  1709. function thecrush()
  1710. attack = true
  1711. Humanoid.WalkSpeed = 0
  1712. local grab, torsy, heddo, hum
  1713. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1714. if v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1715. hum = v:FindFirstChildOfClass("Humanoid")
  1716. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1717. heddo = v:FindFirstChild("Head")
  1718. grab = v
  1719. end
  1720. end
  1721. if grab ~= nil and torsy ~= nil then
  1722. so(200632136, RootPart, 0.8, 1)
  1723. for i = 0, 1.5, 0.1 do
  1724. swait()
  1725. PlayAnimationFromTable({
  1726. CFrame.new(0, 0, 0, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1727. CFrame.new(0, 1.49999118, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1728. CFrame.new(1.50000226, 0.492404312, 0.086825721, 0.642795563, -0.766037941, -8.04662704E-7, -0.133022025, -0.111620016, -0.98480767, 0.754399955, 0.633030057, -0.17364876),
  1729. CFrame.new(-1.49999845, 0, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1730. CFrame.new(0.500000119, -2, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  1731. CFrame.new(-0.499997556, -2, 1.63912773E-7, 0.766044557, 0, 0.642787695, 0, 1, 0, -0.642787695, 0, 0.766044557)
  1732. }, 0.3, false)
  1733. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1734. torsy.Velocity = Vector3.new()
  1735. end
  1736. so(240429615, torsy, 1, 1)
  1737. if torsy.Name == "UpperTorso" then
  1738. heddo.CFrame = RootPart.CFrame * CFrame.new(-2, -3, -1) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1739. else
  1740. heddo.CFrame = RootPart.CFrame * CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1741. end
  1742. heddo.Anchored = true
  1743. for i = 0, 1.5, 0.1 do
  1744. swait()
  1745. PlayAnimationFromTable({
  1746. CFrame.new(0, 0, 0, 0.866025567, 3.5521316E-7, 0.500010252, 4.93042535E-6, 1.00000048, -7.94596781E-6, -0.50000006, -9.23901825E-6, 0.866042376),
  1747. CFrame.new(0.021950826, 1.50780511, -0.243860856, 0.852867603, 0.029702425, -0.521282434, 0.173647955, 0.925416946, 0.336825043, 0.492411494, -0.377797663, 0.784104764),
  1748. CFrame.new(0.956388712, -0.0409758762, -0.674532533, 0.766045928, 0.604021251, 0.219847187, -0.219834015, 0.567593455, -0.793417811, -0.604028642, 0.559465349, 0.567598879),
  1749. CFrame.new(-1.50000024, -1.14488239E-5, 8.18094031E-6, 1.00000012, 4.93042535E-6, 2.68220901E-7, 4.93042535E-6, 1.00000048, -7.94596781E-6, 2.68220901E-7, -7.94596781E-6, 1.00001991),
  1750. CFrame.new(0.499976635, -1.99998999, 3.24696302E-5, 0.866025567, 4.93042535E-6, -0.50000006, 3.5521316E-7, 1.00000048, -9.23901825E-6, 0.500010252, -7.94596781E-6, 0.866042376),
  1751. CFrame.new(-0.500013709, -2.00000167, 3.48316753E-5, 1.00000012, 4.93042535E-6, 2.68220901E-7, 4.93042535E-6, 1.00000048, -7.94596781E-6, 2.68220901E-7, -7.94596781E-6, 1.00001991)
  1752. }, 0.3, false)
  1753. end
  1754. for i = 0, 3, 0.1 do
  1755. swait()
  1756. PlayAnimationFromTable({
  1757. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1758. CFrame.new(0, 1.46578956, -0.0939694047, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1759. CFrame.new(1.52320564, 0.359808445, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1),
  1760. CFrame.new(-1.52320766, 0.359808564, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1),
  1761. CFrame.new(0.5, -1.19999838, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1762. CFrame.new(-0.5, -1.9999994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1763. }, 0.3, false)
  1764. end
  1765. so(206082327, torsy, 1, 5)
  1766. killmortal(grab, 0)
  1767. createSplatter(heddo.Position)
  1768. coroutine.wrap(function()
  1769. swait(3)
  1770. local passa = heddo.Position
  1771. heddo:Destroy()
  1772. for i = 1, 15 do
  1773. local bl = Instance.new("Part", torsy)
  1774. bl.CFrame = CFrame.new(passa) + Vector3.new(math.random(-10, 10) / 10, 0, math.random(-10, 10) / 10)
  1775. local rand = math.random(2, 7) / 10
  1776. bl.Size = Vector3.new(rand, rand, rand)
  1777. bl.BrickColor = BrickColor.new("Maroon")
  1778. bl.Material = "Granite"
  1779. end
  1780. end)()
  1781. for i = 0, 3, 0.1 do
  1782. swait()
  1783. PlayAnimationFromTable({
  1784. CFrame.new(0, -0.115425974, -0.607762575, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1785. CFrame.new(0, 1.46579063, -0.0939693749, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  1786. CFrame.new(1.52320361, 0.359808356, 2.34974073E-6, 0.86602509, -0.500000656, -3.33671437E-7, 0.500000715, 0.86602509, 2.08616257E-7, 1.78813934E-7, -3.87430191E-7, 1),
  1787. CFrame.new(-1.5232048, 0.359810114, 2.34974073E-6, 0.86602509, 0.500000656, 3.33671437E-7, -0.500000715, 0.86602509, 2.08616257E-7, -1.78813934E-7, -3.87430191E-7, 1),
  1788. CFrame.new(0.5, -1.6025629, -1.10711849, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1789. CFrame.new(-0.5, -1.99999857, 3.87430191E-6, 1, 0, 0, 0, 1, -2.98023224E-8, 0, -2.98023224E-8, 1)
  1790. }, 0.4, false)
  1791. end
  1792. end
  1793. attack = false
  1794. Humanoid.WalkSpeed = 8
  1795. end
  1796. function thehand()
  1797. attack = true
  1798. Humanoid.WalkSpeed = 2
  1799. local grab, torsy, totear, hum
  1800. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1801. if v:FindFirstChild("Head") and (v:FindFirstChild("Right Arm") or v:FindFirstChild("RightUpperArm")) and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1802. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1803. grab = v
  1804. totear = v:FindFirstChild("Right Arm") or v:FindFirstChild("RightUpperArm")
  1805. hum = v:FindFirstChildOfClass("Humanoid")
  1806. end
  1807. end
  1808. if grab ~= nil and torsy ~= nil and totear ~= nil and hum ~= nil then
  1809. so(200632136, RootPart, 0.8, 1)
  1810. for i = 0, 2, 0.1 do
  1811. swait()
  1812. PlayAnimationFromTable({
  1813. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1814. CFrame.new(0, 1.49999475, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1815. CFrame.new(1.0939827, 0.850001335, -0.515790701, 0, -0.342019916, 0.939692736, 1, 0, 0, 0, 0.939692736, 0.342019886),
  1816. CFrame.new(-0.900009155, 0.849995136, -0.549995422, 0, 0, -1, -1, 0, 0, 0, 1, 0),
  1817. CFrame.new(0.5, -1.99999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1818. CFrame.new(-0.5, -1.99999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1819. }, 0.3, false)
  1820. torsy.CFrame = RootPart.CFrame * CFrame.new(0, 0, -1.3)
  1821. torsy.Velocity = Vector3.new()
  1822. end
  1823. so(206082327, totear, 1, 5)
  1824. local bledp = Instance.new("Part", grab)
  1825. bledp.Size = Vector3.new(0, 0, 0)
  1826. bledp.Transparency = 1
  1827. bledp.CanCollide = false
  1828. local blpe = blpemit:Clone()
  1829. blpe.Parent = bledp
  1830. blpe.EmissionDirection = "Left"
  1831. local armmod = Instance.new("Model", chara)
  1832. armmod.Name = "TornArmdd"
  1833. Instance.new("Humanoid", armmod).MaxHealth = 0
  1834. for _, v in pairs(grab:GetChildren()) do
  1835. if v:IsA("Shirt") or v:IsA("CharacterMesh") then
  1836. v:Clone().Parent = armmod
  1837. end
  1838. end
  1839. local armp = totear
  1840. createSplatter(totear.Position)
  1841. armp:BreakJoints()
  1842. armp.Parent = armmod
  1843. so("206082327", armp, 1, 1)
  1844. local wel = Instance.new("Weld", armp)
  1845. wel.Part0 = RightArm
  1846. wel.Part1 = armp
  1847. wel.C0 = CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, 0)
  1848. local blape = bledp:Clone()
  1849. blape.Parent = armmod
  1850. local bledw = Instance.new("Weld", bledp)
  1851. bledw.Part0 = torsy
  1852. bledw.Part1 = bledp
  1853. local bledw2 = Instance.new("Weld", blape)
  1854. bledw2.Part0 = armp
  1855. bledw2.Part1 = blape
  1856. bledw.C0 = CFrame.new(1, 0.5, 0)
  1857. bledw2.C0 = CFrame.new(-0.5, 0.5, 0)
  1858. blpe.EmissionDirection = "Right"
  1859. grabhand = true
  1860. armo = armp
  1861. coroutine.wrap(function()
  1862. local currhp = hum.Health
  1863. for i = 1, currhp do
  1864. if hum.Health > 0 then
  1865. hum.Health = currhp - (i - 1)
  1866. swait(3)
  1867. end
  1868. end
  1869. if hum.Health > 0 then
  1870. killmortal(grab, 0)
  1871. end
  1872. end)()
  1873. for i = 0, 1, 0.25 do
  1874. swait()
  1875. PlayAnimationFromTable({
  1876. CFrame.new(0, 0, 0, 0.866021276, 0, -0.499997795, 0, 1, 0, 0.499997914, 0, 0.866021156),
  1877. CFrame.new(0, 1.49999189, 0, 0.866021276, 0, 0.499997914, 0, 1, 0, -0.499997795, 0, 0.866021156),
  1878. CFrame.new(1.50001729, 0.492406696, 0.0868175104, 0.642792583, -0.766034186, -7.97212124E-7, -0.133019835, -0.111618251, -0.984808207, 0.754396439, 0.633027494, -0.173645109),
  1879. CFrame.new(-1.38039482, 0.919607162, -0.300003946, 0, 0.500000179, -0.866022646, -1, 0, 0, 0, 0.866022587, 0.500000119),
  1880. CFrame.new(0.500005305, -1.99999964, -7.61445699E-6, 0.99999541, 0, 2.98023224E-8, 0, 1, 0, 2.98023224E-8, 0, 0.999995232),
  1881. CFrame.new(-0.499997407, -1.99999964, -5.43892384E-6, 0.766040862, 0, 0.642784715, 0, 1, 0, -0.642784536, 0, 0.766040802)
  1882. }, 0.3, false)
  1883. end
  1884. swait(30)
  1885. end
  1886. attack = false
  1887. Humanoid.WalkSpeed = 8
  1888. end
  1889. function armthrow()
  1890. attack = true
  1891. Humanoid.WalkSpeed = 2
  1892. for i = 0, 2, 0.1 do
  1893. swait()
  1894. PlayAnimationFromTable({
  1895. CFrame.new(-0.00874902681, -4.76837158E-7, -0.101877891, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
  1896. CFrame.new(0.0987267792, 1.49999189, 0.0266250018, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
  1897. CFrame.new(1.49999821, 0.499999046, -0.399993986, 1.00000012, -2.98023224E-8, 0, 0, 0, -1, -2.98023224E-8, 1.00000012, 0),
  1898. CFrame.new(-1.54019761, 0.669612885, -6.12696294E-6, 0.499998331, 0.866026461, 1.87754631E-6, -0.866026402, 0.499998331, 2.13891599E-6, 8.94069672E-7, -2.71201134E-6, 1.00000012),
  1899. CFrame.new(0.500005782, -1.99999893, -3.82959888E-6, 1.00000012, 0, -2.98023224E-8, 0, 1, 0, -2.98023224E-8, 0, 1.00000012),
  1900. CFrame.new(-0.499995083, -1.99999893, -1.18389726E-5, 0.17364721, 0, 0.984808028, 0, 1, 0, -0.984808028, 0, 0.17364718)
  1901. }, 0.3, false)
  1902. end
  1903. so(200632136, RootPart, 0.8, 1)
  1904. local haea = armo
  1905. haea.Weld:Destroy()
  1906. haea.Velocity = (Mouse.Hit.p - haea.Position).unit * 200 + Vector3.new(0, 30, 0)
  1907. haea.RotVelocity = Vector3.new(10, 10, 10)
  1908. haea.Touched:connect(function(hit)
  1909. if hit:IsDescendantOf(chara) == false and hit.Parent:FindFirstChildOfClass("Humanoid") and haea:FindFirstChild("HITA") == nil then
  1910. print("BOOBIES")
  1911. Instance.new("BoolValue", haea).Name = "HITA"
  1912. Effects.Wave.Create(BrickColor.new("White"), CFrame.new(haea.Position), 0, 0, 0, 1, 0.2, 1, 0.1)
  1913. killmortal(hit.Parent, 50)
  1914. so(386946017, haea, 0.95, 5)
  1915. swait(120)
  1916. for i = 0, 1, 0.05 do
  1917. haea.Transparency = i
  1918. swait()
  1919. end
  1920. haea.Parent:Destroy()
  1921. end
  1922. end)
  1923. armo = nil
  1924. grabhand = false
  1925. for i = 0, 1, 0.1 do
  1926. swait()
  1927. PlayAnimationFromTable({
  1928. CFrame.new(-0.0371780396, -4.76837158E-7, -0.0659790039, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  1929. CFrame.new(0.0118849091, 1.43262982, -0.187934548, 0.716230929, -0.163175121, -0.678518414, 0.349525958, 0.92541784, 0.146401539, 0.604023933, -0.342017084, 0.719846845),
  1930. CFrame.new(1.05005264, 0.0782932937, -0.664391041, 0.766043901, 0.642788291, -5.71537271E-7, -0.321393967, 0.383021057, -0.866025865, -0.556670964, 0.663414121, 0.499999195),
  1931. CFrame.new(-1.59158015, 0.575855374, -7.62939453E-6, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698, 0, 0, 0, 1),
  1932. CFrame.new(0.500011563, -1.99999893, -2.07126141E-6, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1933. CFrame.new(-0.946406364, -1.97320735, -7.62939453E-6, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)
  1934. }, 0.3, false)
  1935. end
  1936. attack = false
  1937. Humanoid.WalkSpeed = 8
  1938. end
  1939. function smek()
  1940. attack = true
  1941. for i = 0, 1, 0.2 do
  1942. swait()
  1943. PlayAnimationFromTable({
  1944. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  1945. CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  1946. CFrame.new(1.6195364, 0.256343663, -3.60019794E-6, 0.939692736, -0.342020124, -8.94069672E-8, 0.342020154, 0.939692676, -4.35416268E-7, 2.08616257E-7, 3.87430191E-7, 1),
  1947. CFrame.new(-1.65980804, 0.323206544, 5.72385352E-6, 0.866025329, 0.500000238, -2.98023224E-7, -0.500000179, 0.866025388, -1.34623383E-6, -4.47034836E-7, 1.29640102E-6, 1.00000012),
  1948. CFrame.new(0.500001073, -2.00000095, -1.57952309E-6, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616),
  1949. CFrame.new(-0.499998212, -2.00000095, 1.49011612E-6, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544)
  1950. }, 0.3, false)
  1951. end
  1952. Humanoid.WalkSpeed = 2
  1953. so(536642316, armo, 1, 1)
  1954. for i = 0, 1, 0.1 do
  1955. swait()
  1956. PlayAnimationFromTable({
  1957. CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
  1958. CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
  1959. CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854),
  1960. CFrame.new(-1.59605861, 0.10887894, 1.11486224E-6, 0.984807909, 0.173648059, -2.23517418E-6, -0.173648059, 0.984807849, 3.82394944E-7, 2.29477882E-6, 1.86264515E-8, 1),
  1961. CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368E-7, 0.336824894, -0.0593915246, 0.939692438),
  1962. CFrame.new(-0.499999702, -2.00000095, 8.68737698E-6, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511)
  1963. }, 0.3, false)
  1964. if armo ~= nil then
  1965. mdmg(armo, 3, "Arm")
  1966. end
  1967. end
  1968. swait(5)
  1969. Humanoid.WalkSpeed = 8
  1970. attack = false
  1971. end
  1972. function dash()
  1973. attack = true
  1974. so("235097614", Torso, 3, 1)
  1975. so("75356820", Torso, 2, 1)
  1976. Effects.Ring.Create(BrickColor.new("Persimmon"), RootPart.CFrame, 1, 1, 0, 1, 1, 0.2, 0.05)
  1977. PlayAnimationFromTable({
  1978. CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999998331, 0, 0, 0, 0.999998331) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-35), 0, 0),
  1979. CFrame.new(0, 1.49999368, 8.34463322E-7, 1, 0, 0, 0, 0.999998033, -2.38418579E-7, 0, 2.38418579E-7, 0.999998033) * CFrame.Angles(math.rad(15), 0, 0),
  1980. CFrame.new(0.663555026, 0.49231568, -0.850663185, 0.015370708, 0.692666352, 0.721096218, 0.999231637, 0.0153704779, -0.036063727, -0.0360642895, 0.721095979, -0.691897511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1981. CFrame.new(-1.57927585, 0.317291111, 0.397556216, 0.809802711, 0.208654553, 0.548345804, -0.517000973, 0.695623755, 0.498816311, -0.277362049, -0.687437952, 0.671192646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1982. CFrame.new(0.49999693, -1.99999774, -8.94069672E-8, 0.965925872, 3.7422879E-7, -0.258818924, 0.0449429974, 0.984807849, 0.167731062, 0.254886955, -0.173647881, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1983. CFrame.new(-0.486001939, -1.31615341, 0.112926364, 1.00000167, 1.25169754E-6, -1.87754631E-6, 8.64267349E-7, 0.573579729, 0.819149494, -4.61935997E-7, -0.819151759, 0.573578417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1984. }, 1, false)
  1985. for i = 1, 5 do
  1986. for _, v in pairs(chara:children()) do
  1987. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  1988. do
  1989. local p = v:clone()
  1990. p.Name = "trail"
  1991. p.Parent = EffectModel
  1992. p.Transparency = 0.5
  1993. p.Anchored = true
  1994. p.BrickColor = BrickColor.new("Really red")
  1995. p.Material = "Neon"
  1996. p:BreakJoints()
  1997. p.CanCollide = false
  1998. if v == Head then
  1999. for a, b in pairs(p:children()) do
  2000. if b:IsA("Sound") then
  2001. b:Destroy()
  2002. end
  2003. end
  2004. end
  2005. coroutine.resume(coroutine.create(function()
  2006. for i = 1, 50 do
  2007. swait()
  2008. p.Transparency = i / 50
  2009. end
  2010. p:Destroy()
  2011. end))
  2012. end
  2013. end
  2014. if v.className == "Accessory" then
  2015. end
  2016. end
  2017. RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 10
  2018. swait()
  2019. end
  2020. attack = false
  2021. end
  2022. function scream()
  2023. attack = true
  2024. Humanoid.WalkSpeed = 0
  2025. for i = 0, 1, 0.1 do
  2026. swait()
  2027. PlayAnimationFromTable({
  2028. CFrame.new(0, 0.0885660946, 0.326515794, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  2029. CFrame.new(0, 1.43158889, 0.18794021, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438),
  2030. CFrame.new(1.5, 0.099998951, 9.56654503E-7, 0, -1, 0, -1, 0, -2.98023224E-8, -2.98023224E-8, 0, -1),
  2031. CFrame.new(-1.5, 0.099998951, 9.56654503E-7, 0, 1, 0, 1, 0, -2.98023224E-8, 2.98023224E-8, 0, -1),
  2032. CFrame.new(0.696960211, -2.04165077, 0.395629227, 0.984807849, -0.173647985, 0, 0.163175747, 0.925416768, 0.342019916, -0.0593910627, -0.336823881, 0.939692736),
  2033. CFrame.new(-0.696963668, -2.04164839, 0.395628393, 0.984807849, 0.173647985, 0, -0.163175747, 0.925416768, 0.342019916, 0.0593910627, -0.336823881, 0.939692736)
  2034. }, 0.3, false)
  2035. end
  2036. so(51322486, Torso, 0.5, 5)
  2037. so(90696602, Torso, 0.5, 5)
  2038. for i = 1, 120 do
  2039. mdmg(Torso, 20, "Scream")
  2040. Effects.Ring.Create(BrickColor.new("Really black"), RootPart.CFrame * CFrame.Angles(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360))), 1, 1, 0, 2, 2, 0.2, 0.05)
  2041. Effects.Wave.Create(BrickColor.new("Really black"), RootPart.CFrame * CFrame.new(0, -3, 0) * CFrame.Angles(0, math.random(-50, 50), 0), 1, 0, 1, 2, 0.1, 2, 0.05)
  2042. swait()
  2043. end
  2044. Humanoid.WalkSpeed = 8
  2045. attack = false
  2046. end
  2047. function handcrack()
  2048. attack = true
  2049. Humanoid.WalkSpeed = 0
  2050. for i = 0, 1, 0.1 do
  2051. swait()
  2052. PlayAnimationFromTable({
  2053. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  2054. CFrame.new(0, 1.4657917, -0.0939691663, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2055. CFrame.new(0.849929154, 0.669377863, -0.285191476, 0.133021966, 0.754403889, 0.642790735, 0.989228785, -0.0610861331, -0.133022368, -0.0610869862, 0.65356195, -0.754403949),
  2056. CFrame.new(-0.949649334, 0.569002092, -0.378571123, 0, -0.866025269, -0.500000298, -0.984807849, 0.0868240297, -0.150383547, 0.173647985, 0.492404163, -0.852868497),
  2057. CFrame.new(0.499994665, -1.99999988, -9.83476639E-7, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  2058. CFrame.new(-0.500002503, -1.99999988, -1.78813934E-7, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736)
  2059. }, 0.3, false)
  2060. end
  2061. so(240428955, Head, 1, 5)
  2062. swait(10)
  2063. Humanoid.WalkSpeed = 8
  2064. attack = false
  2065. end
  2066. if Player.UserId ~= Player.UserId then
  2067. chara:BreakJoints()
  2068. end
  2069. Mouse.Button1Down:connect(function()
  2070. if attack == false then
  2071. if grabhead == true then
  2072. headthrow()
  2073. elseif grabhand == true then
  2074. smek()
  2075. end
  2076. end
  2077. end)
  2078. local sprintt = 0
  2079. if Player.UserId ~= Player.UserId then
  2080. chara:BreakJoints()
  2081. end
  2082. Mouse.KeyDown:connect(function(k)
  2083. k = k:lower()
  2084. if k == "m" then
  2085. if mus.IsPlaying == true then
  2086. mus:Stop()
  2087. elseif mus.IsPaused == true then
  2088. mus:Play()
  2089. end
  2090. end
  2091. if attack == false then
  2092. if k == "z" and grabhead == false and grabhand == false then
  2093. thenatsuki()
  2094. elseif k == "x" and grabhead == false and grabhand == false then
  2095. xhold = true
  2096. thesurou()
  2097. elseif k == "c" and grabhead == false and grabhand == false then
  2098. therip()
  2099. elseif k == "v" and grabhead == false and grabhand == false then
  2100. thecrush()
  2101. elseif k == "b" then
  2102. if grabhead == true then
  2103. headthrow()
  2104. else
  2105. thehead()
  2106. end
  2107. elseif k == "n" then
  2108. if grabhand == true then
  2109. armthrow()
  2110. else
  2111. thehand()
  2112. end
  2113. elseif k == "e" then
  2114. dash()
  2115. elseif k == "g" then
  2116. handcrack()
  2117. elseif k == "h" then
  2118. scream()
  2119. end
  2120. end
  2121. end)
  2122. Mouse.KeyUp:connect(function(k)
  2123. k = k:lower()
  2124. if k == "x" then
  2125. xhold = false
  2126. end
  2127. end)
  2128. if Player.UserId ~= Player.UserId then
  2129. chara:BreakJoints()
  2130. end
  2131. coroutine.wrap(function()
  2132. while true do
  2133. swait()
  2134. if doe <= 360 then
  2135. doe = doe + 2
  2136. else
  2137. doe = 0
  2138. end
  2139. end
  2140. end)()
  2141. while true do
  2142. swait()
  2143. for i, v in pairs(chara:GetChildren()) do
  2144. if v:IsA("Part") then
  2145. v.Material = "SmoothPlastic"
  2146. elseif v:IsA("Accessory") then
  2147. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2148. end
  2149. end
  2150. while true do
  2151. swait()
  2152. if sprintt >= 1 then
  2153. sprintt = sprintt - 1
  2154. end
  2155. if Player.UserId ~= Player.UserId then
  2156. chara:BreakJoints()
  2157. end
  2158. if Head:FindFirstChild("mus") == nil then
  2159. mus = Instance.new("Sound", Head)
  2160. mus.Name = "mus"
  2161. mus.SoundId = "rbxassetid://153384019"
  2162. mus.Looped = true
  2163. mus.Volume = 1
  2164. mus:Play()
  2165. end
  2166. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2167. velocity = RootPart.Velocity.y
  2168. sine = sine + change
  2169. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, chara)
  2170. if RootPart.Velocity.y > 1 and hit == nil then
  2171. Anim = "Jump"
  2172. if attack == false then
  2173. PlayAnimationFromTable({
  2174. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2175. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  2176. CFrame.new(1.20945489, -0.213504896, 3.55388607E-7, 0.939692736, 0.342019916, 1.53461215E-7, -0.342019945, 0.939692736, 1.93715096E-7, -8.56816769E-8, -2.23517418E-7, 1.00000012),
  2177. CFrame.new(-1.20945573, -0.213503733, 5.0439985E-7, 0.939692736, -0.342019916, -1.53461215E-7, 0.342019945, 0.939692736, 1.93715096E-7, 8.56816769E-8, -2.23517418E-7, 1.00000012),
  2178. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2179. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676)
  2180. }, 0.3, false)
  2181. end
  2182. elseif RootPart.Velocity.y < -1 and hit == nil then
  2183. Anim = "Fall"
  2184. if attack == false then
  2185. PlayAnimationFromTable({
  2186. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  2187. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  2188. CFrame.new(1.55285025, 0.466259956, -9.26282269E-8, 0.766043842, -0.642788351, -6.46188241E-8, 0.642788291, 0.766043961, -7.4505806E-8, 1.04308128E-7, 1.49011612E-8, 1.00000012),
  2189. CFrame.new(-1.5605253, 0.475036323, -2.10609159E-7, 0.766043842, 0.642788351, 6.46188241E-8, -0.642788291, 0.766043961, -7.4505806E-8, -1.04308128E-7, 1.49011612E-8, 1.00000012),
  2190. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2191. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855)
  2192. }, 0.3, false)
  2193. end
  2194. elseif Torsovelocity < 1 and hit ~= nil then
  2195. Anim = "Idle"
  2196. if attack == false then
  2197. change = 1
  2198. PlayAnimationFromTable({
  2199. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0.05 * math.cos(sine / 10), 0),
  2200. CFrame.new(0, 1.4657923, -0.0939692855, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2201. CFrame.new(1.20945823, -0.213502824, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  2202. CFrame.new(-1.20945406, -0.213503301, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  2203. CFrame.new(0.499998242, -1.99999988, 3.12924385E-7, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736) * CFrame.new(0, -0.05 * math.cos(sine / 10), 0),
  2204. CFrame.new(-0.500002503, -1.99999988, -1.78813934E-7, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736) * CFrame.new(0, -0.05 * math.cos(sine / 10), 0)
  2205. }, 0.3, false)
  2206. end
  2207. elseif Torsovelocity > 2 and hit ~= nil then
  2208. Anim = "Walk"
  2209. if attack == false then
  2210. PlayAnimationFromTable({
  2211. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - 0.08 * math.cos(sine / 5), 0) * CFrame.Angles(0, 0, 0),
  2212. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2213. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, -0.5 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos(sine / 10)), 0, 0),
  2214. CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0.5 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos(sine / 10)), 0, 0),
  2215. CFrame.new(0.540300786, -1.99793816, -9.82598067E-7, 0.998698533, -0.0510031395, 6.36324955E-7, 0.0510031395, 0.998698533, -1.00461093E-5, -8.35937328E-8, 1.08393433E-5, 1.00000024) * CFrame.new(0, 0, 0 + 0.5 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos(sine / 10)), 0, 0),
  2216. CFrame.new(-0.539563596, -1.99794078, 1.12228372E-6, 0.998635888, 0.0523072146, -1.77852357E-7, -0.0523072146, 0.998635888, -1.00715051E-5, -3.89727461E-7, 1.08406466E-5, 1.00000024) * CFrame.new(0, 0, 0 - 0.5 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos(sine / 10)), 0, 0)
  2217. }, 0.3, false)
  2218. end
  2219. end
  2220. if 0 < #Effects then
  2221. for e = 1, #Effects do
  2222. if Effects[e] ~= nil then
  2223. local Thing = Effects[e]
  2224. if Thing ~= nil then
  2225. local Part = Thing[1]
  2226. local Mode = Thing[2]
  2227. local Delay = Thing[3]
  2228. local IncX = Thing[4]
  2229. local IncY = Thing[5]
  2230. local IncZ = Thing[6]
  2231. if Thing[2] == "Shoot" then
  2232. local Look = Thing[1]
  2233. local move = 30
  2234. if Thing[8] == 3 then
  2235. move = 10
  2236. end
  2237. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  2238. if Thing[10] ~= nil then
  2239. da = pos
  2240. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  2241. cfa = CFrame.new(Thing[4], pos)
  2242. tehCF = cfa:lerp(cf2, 0.2)
  2243. Thing[1] = tehCF.lookVector
  2244. end
  2245. local mag = (Thing[4] - pos).magnitude
  2246. Effects.Head.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  2247. if Thing[8] == 2 then
  2248. Effects.Ring.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  2249. end
  2250. Thing[4] = Thing[4] + Look * move
  2251. Thing[3] = Thing[3] - 1
  2252. if 2 < Thing[5] then
  2253. Thing[5] = Thing[5] - 0.3
  2254. Thing[6] = Thing[6] - 0.3
  2255. end
  2256. if hit ~= nil then
  2257. Thing[3] = 0
  2258. if Thing[8] == 1 or Thing[8] == 3 then
  2259. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2260. elseif Thing[8] == 2 then
  2261. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2262. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil or hit.Parent.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2263. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2264. ref.Anchored = true
  2265. ref.CFrame = CFrame.new(pos)
  2266. CFuncs.Sound.Create("161006093", ref, 1, 1.2)
  2267. game:GetService("Debris"):AddItem(ref, 0.2)
  2268. Effects.Block.Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  2269. Effects.Ring.Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  2270. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  2271. end
  2272. end
  2273. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2274. ref.Anchored = true
  2275. ref.CFrame = CFrame.new(pos)
  2276. Effects.Sphere.Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  2277. game:GetService("Debris"):AddItem(ref, 1)
  2278. end
  2279. if Thing[3] <= 0 then
  2280. table.remove(Effects, e)
  2281. end
  2282. end
  2283. if Thing[2] == "FireWave" then
  2284. if Thing[3] <= Thing[4] then
  2285. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  2286. Thing[3] = Thing[3] + 1
  2287. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  2288. else
  2289. Part.Parent = nil
  2290. table.remove(Effects, e)
  2291. end
  2292. end
  2293. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  2294. if Thing[1].Transparency <= 1 then
  2295. if Thing[2] == "Block1" then
  2296. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2297. Mesh = Thing[7]
  2298. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2299. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2300. elseif Thing[2] == "Block2" then
  2301. Thing[1].CFrame = Thing[1].CFrame
  2302. Mesh = Thing[7]
  2303. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2304. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2305. elseif Thing[2] == "Fire" then
  2306. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  2307. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2308. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2309. elseif Thing[2] == "Cylinder" then
  2310. Mesh = Thing[7]
  2311. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2312. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2313. elseif Thing[2] == "Blood" then
  2314. Mesh = Thing[7]
  2315. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  2316. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2317. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2318. elseif Thing[2] == "Elec" then
  2319. Mesh = Thing[10]
  2320. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2321. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2322. elseif Thing[2] == "Disappear" then
  2323. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2324. elseif Thing[2] == "Shatter" then
  2325. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2326. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2327. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2328. Thing[6] = Thing[6] + Thing[5]
  2329. end
  2330. else
  2331. Part.Parent = nil
  2332. table.remove(Effects, e)
  2333. end
  2334. end
  2335. end
  2336. end
  2337. end
  2338. end
  2339. end
  2340. end
  2341.  
  2342. end))
  2343. LocalScript1.Name = "RagdollScript"
  2344. LocalScript1.Parent = LocalScript0
  2345. LocalScript1.Disabled = true
  2346. table.insert(cors,sandbox(LocalScript1,function()
  2347. wait()
  2348. if script.Parent.Humanoid.RigType ~= Enum.HumanoidRigType.R6 then
  2349. game.Debris:AddItem(script,1)
  2350. else
  2351. wait()
  2352. function getAttachment0(attachmentName)
  2353. for _,child in next,script.Parent:GetChildren() do
  2354. local attachment = child:FindFirstChild(attachmentName)
  2355. if attachment then
  2356. return attachment
  2357. end
  2358. end
  2359. end
  2360. script.Parent.Humanoid.Died:Connect(function(var)
  2361. local removeHRP = true
  2362. local head = script.Parent["Head"]
  2363. local leftarm = script.Parent["Left Arm"]
  2364. local leftleg = script.Parent["Left Leg"]
  2365. local rightleg = script.Parent["Right Leg"]
  2366. local rightarm = script.Parent["Right Arm"]
  2367. local torso = script.Parent.Torso
  2368. local root =script.Parent.HumanoidRootPart
  2369. if removeHRP == true then
  2370. root:Destroy()
  2371. end
  2372. local rootA =Instance.new("Attachment")
  2373. local HeadA = Instance.new("Attachment")
  2374. local LeftArmA = Instance.new("Attachment")
  2375. local LeftLegA = Instance.new("Attachment")
  2376. local RightArmA = Instance.new("Attachment")
  2377. local RightLegA = Instance.new("Attachment")
  2378. local TorsoA = Instance.new("Attachment")
  2379. local TorsoA1 = Instance.new("Attachment")
  2380. local TorsoA2 = Instance.new("Attachment")
  2381. local TorsoA3 = Instance.new("Attachment")
  2382. local TorsoA4 = Instance.new("Attachment")
  2383. local TorsoA5 = Instance.new("Attachment")
  2384. function set1()
  2385. HeadA.Name = "HeadA"
  2386. HeadA.Parent = head
  2387. HeadA.Position = Vector3.new(0, -0.5, 0)
  2388. HeadA.Rotation = Vector3.new(0, 0, 0)
  2389. HeadA.Axis = Vector3.new(1, 0, 0)
  2390. HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
  2391. LeftArmA.Name = "LeftArmA"
  2392. LeftArmA.Parent = leftarm
  2393. LeftArmA.Position = Vector3.new(0.5, 1, 0)
  2394. LeftArmA.Rotation = Vector3.new(0, 0, 0)
  2395. LeftArmA.Axis = Vector3.new(1, 0, 0)
  2396. LeftArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  2397. LeftLegA.Name = "LeftLegA"
  2398. LeftLegA.Parent = leftleg
  2399. LeftLegA.Position = Vector3.new(0, 1, 0)
  2400. LeftLegA.Rotation = Vector3.new(0, 0, 0)
  2401. LeftLegA.Axis = Vector3.new(1, 0, 0)
  2402. LeftLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  2403. RightArmA.Name = "RightArmA"
  2404. RightArmA.Parent = rightarm
  2405. RightArmA.Position = Vector3.new(-0.5, 1, 0)
  2406. RightArmA.Rotation = Vector3.new(0, 0, 0)
  2407. RightArmA.Axis = Vector3.new(1, 0, 0)
  2408. RightArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  2409. RightLegA.Name = "RightLegA"
  2410. RightLegA.Parent = rightleg
  2411. RightLegA.Position = Vector3.new(0, 1, 0)
  2412. RightLegA.Rotation = Vector3.new(0, 0, 0)
  2413. RightLegA.Axis = Vector3.new(1, 0, 0)
  2414. RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  2415. rootA.Name= "rootA"
  2416. rootA.Parent = root
  2417. rootA.Position = Vector3.new(0, 0, 0)
  2418. rootA.Rotation = Vector3.new(0, 90, 0)
  2419. rootA.Axis = Vector3.new(0, 0, -1)
  2420. rootA.SecondaryAxis = Vector3.new(0, 1, 0)
  2421. end
  2422. function set2()
  2423. TorsoA.Name = "TorsoA"
  2424. TorsoA.Parent = torso
  2425. TorsoA.Position = Vector3.new(0.5, -1, 0)
  2426. TorsoA.Rotation = Vector3.new(0, 0, 0)
  2427. TorsoA.Axis = Vector3.new(1, 0, 0)
  2428. TorsoA.SecondaryAxis = Vector3.new(0, 1, 0)
  2429. TorsoA1.Name = "TorsoA1"
  2430. TorsoA1.Parent = torso
  2431. TorsoA1.Position = Vector3.new(-0.5, -1, 0)
  2432. TorsoA1.Rotation = Vector3.new(0, 0, 0)
  2433. TorsoA1.Axis = Vector3.new(1, 0, 0)
  2434. TorsoA1.SecondaryAxis = Vector3.new(0, 1, 0)
  2435. TorsoA2.Name = "TorsoA2"
  2436. TorsoA2.Parent = torso
  2437. TorsoA2.Position = Vector3.new(-1, 1, 0)
  2438. TorsoA2.Rotation = Vector3.new(0, 0, 0)
  2439. TorsoA2.Axis = Vector3.new(1, 0, 0)
  2440. TorsoA2.SecondaryAxis = Vector3.new(0, 1, 0)
  2441. TorsoA3.Name = "TorsoA3"
  2442. TorsoA3.Parent = torso
  2443. TorsoA3.Position = Vector3.new(1, 1, 0)
  2444. TorsoA3.Rotation = Vector3.new(0, 0, 0)
  2445. TorsoA3.Axis = Vector3.new(1, 0, 0)
  2446. TorsoA3.SecondaryAxis = Vector3.new(0, 1, 0)
  2447. TorsoA4.Name = "TorsoA4"
  2448. TorsoA4.Parent = torso
  2449. TorsoA4.Position = Vector3.new(0, 1, 0)
  2450. TorsoA4.Rotation = Vector3.new(0, 0, 0)
  2451. TorsoA4.Axis = Vector3.new(1, 0, 0)
  2452. TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
  2453. TorsoA5.Name = "TorsoA5"
  2454. TorsoA5.Parent = torso
  2455. TorsoA5.Position = Vector3.new(0, 0, 0)
  2456. TorsoA5.Rotation = Vector3.new(0, 90, 0)
  2457. TorsoA5.Axis = Vector3.new(0, 0, -1)
  2458. TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
  2459. end
  2460. function set3()
  2461. end
  2462. spawn(set1);
  2463. spawn(set2);
  2464. local HA = Instance.new("HingeConstraint")
  2465. HA.Parent = head
  2466. HA.Attachment0 = HeadA
  2467. HA.Attachment1 = TorsoA4
  2468. HA.Enabled = true
  2469. HA.LimitsEnabled=true
  2470. HA.LowerAngle=0
  2471. HA.UpperAngle=0
  2472. local LAT = Instance.new("BallSocketConstraint")
  2473. LAT.Parent = leftarm
  2474. LAT.Attachment0 = LeftArmA
  2475. LAT.Attachment1 = TorsoA2
  2476. LAT.Enabled = true
  2477. LAT.LimitsEnabled=true
  2478. LAT.UpperAngle=90
  2479. local RAT = Instance.new("BallSocketConstraint")
  2480. RAT.Parent = rightarm
  2481. RAT.Attachment0 = RightArmA
  2482. RAT.Attachment1 = TorsoA3
  2483. RAT.Enabled = true
  2484. RAT.LimitsEnabled=true
  2485. RAT.UpperAngle=90
  2486. local HA = Instance.new("BallSocketConstraint")
  2487. HA.Parent = head
  2488. HA.Attachment0 = HeadA
  2489. HA.Attachment1 = TorsoA4
  2490. HA.Enabled = true
  2491. local TLL = Instance.new("BallSocketConstraint")
  2492. TLL.Parent = torso
  2493. TLL.Attachment0 = TorsoA1
  2494. TLL.Attachment1 = LeftLegA
  2495. TLL.Enabled = true
  2496. TLL.LimitsEnabled=true
  2497. TLL.UpperAngle=90
  2498. local TRL = Instance.new("BallSocketConstraint")
  2499. TRL.Parent = torso
  2500. TRL.Attachment0 = TorsoA
  2501. TRL.Attachment1 = RightLegA
  2502. TRL.Enabled = true
  2503. TRL.LimitsEnabled=true
  2504. TRL.UpperAngle=90
  2505. local RTA = Instance.new("BallSocketConstraint")
  2506. RTA.Parent = root
  2507. RTA.Attachment0 = rootA
  2508. RTA.Attachment1 = TorsoA5
  2509. RTA.Enabled = true
  2510. RTA.LimitsEnabled=true
  2511. RTA.UpperAngle=0
  2512. head.Velocity = head.CFrame.lookVector*30
  2513.  
  2514. for _,child in next,script.Parent:GetChildren() do
  2515. if child:IsA("Accoutrement") then
  2516. for _,part in next,child:GetChildren() do
  2517. if part:IsA("BasePart") then
  2518. part.Parent = script.Parent
  2519. child:remove()
  2520. local attachment1 = part:FindFirstChildOfClass("Attachment")
  2521. local attachment0 = getAttachment0(attachment1.Name)
  2522. if attachment0 and attachment1 then
  2523. local constraint = Instance.new("HingeConstraint")
  2524. constraint.Attachment0 = attachment0
  2525. constraint.Attachment1 = attachment1
  2526. constraint.LimitsEnabled = true
  2527. constraint.UpperAngle = 0
  2528. constraint.LowerAngle = 0
  2529. constraint.Parent = script.Parent
  2530. end
  2531. end
  2532. end
  2533. end
  2534. end
  2535. end)
  2536. end
  2537. end))
  2538. LocalScript2.Name = "R15RagdollScript"
  2539. LocalScript2.Parent = LocalScript0
  2540. LocalScript2.Disabled = true
  2541. table.insert(cors,sandbox(LocalScript2,function()
  2542. wait()
  2543. if script.Parent.Humanoid.RigType ~= Enum.HumanoidRigType.R15 then
  2544. game.Debris:AddItem(script,1)
  2545. else
  2546.  
  2547. local character = script.Parent
  2548.  
  2549. function recurse(root,callback,i)
  2550. i= i or 0
  2551. for _,v in pairs(root:GetChildren()) do
  2552. i = i + 1
  2553. callback(i,v)
  2554.  
  2555. if #v:GetChildren() > 0 then
  2556. i = recurse(v,callback,i)
  2557. end
  2558. end
  2559.  
  2560. return i
  2561. end
  2562.  
  2563. function ragdollJoint(part0, part1, attachmentName, className, properties)
  2564. attachmentName = attachmentName.."RigAttachment"
  2565. local constraint = Instance.new(className.."Constraint")
  2566. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  2567. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  2568. constraint.Name = "RagdollConstraint"..part1.Name
  2569.  
  2570. for _,propertyData in next,properties or {} do
  2571. constraint[propertyData[1]] = propertyData[2]
  2572. end
  2573.  
  2574. constraint.Parent = character
  2575. end
  2576.  
  2577. function getAttachment0(attachmentName)
  2578. for _,child in next,character:GetChildren() do
  2579. local attachment = child:FindFirstChild(attachmentName)
  2580. if attachment then
  2581. return attachment
  2582. end
  2583. end
  2584. end
  2585.  
  2586. character:WaitForChild("Humanoid").Died:connect(function()
  2587. local camera = workspace.CurrentCamera
  2588. if camera.CameraSubject == character.Humanoid then--If developer isn't controlling camera
  2589. camera.CameraSubject = character.UpperTorso
  2590. end
  2591. --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process
  2592. character.HumanoidRootPart.Anchored = true
  2593. character.HumanoidRootPart.CanCollide = false
  2594.  
  2595. --Helps to fix constraint spasms
  2596. recurse(character, function(_,v)
  2597. if v:IsA("Attachment") then
  2598. v.Axis = Vector3.new(0, 1, 0)
  2599. v.SecondaryAxis = Vector3.new(0, 0, 1)
  2600. v.Rotation = Vector3.new(0, 0, 0)
  2601. end
  2602. end)
  2603.  
  2604. for _,child in next,character:GetChildren() do
  2605. if child:IsA("Accoutrement") then
  2606. for _,part in next,child:GetChildren() do
  2607. if part:IsA("BasePart") then
  2608. part.Parent = character
  2609. child:remove()
  2610. local attachment1 = part:FindFirstChildOfClass("Attachment")
  2611. local attachment0 = getAttachment0(attachment1.Name)
  2612. if attachment0 and attachment1 then
  2613. local constraint = Instance.new("HingeConstraint")
  2614. constraint.Attachment0 = attachment0
  2615. constraint.Attachment1 = attachment1
  2616. constraint.LimitsEnabled = true
  2617. constraint.UpperAngle = 0
  2618. constraint.LowerAngle = 0
  2619. constraint.Parent = character
  2620. end
  2621. end
  2622. end
  2623. end
  2624. end
  2625.  
  2626. ragdollJoint(character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  2627. {"LimitsEnabled",true};
  2628. {"UpperAngle",5};
  2629. })
  2630. ragdollJoint(character.UpperTorso, character.Head, "Neck", "BallSocket", {
  2631. {"LimitsEnabled",true};
  2632. {"UpperAngle",15};
  2633. })
  2634.  
  2635. local handProperties = {
  2636. {"LimitsEnabled", true};
  2637. {"UpperAngle",0};
  2638. {"LowerAngle",0};
  2639. }
  2640. ragdollJoint(character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  2641. ragdollJoint(character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  2642.  
  2643. local shinProperties = {
  2644. {"LimitsEnabled", true};
  2645. {"UpperAngle", 0};
  2646. {"LowerAngle", -75};
  2647. }
  2648. ragdollJoint(character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  2649. ragdollJoint(character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  2650.  
  2651. local footProperties = {
  2652. {"LimitsEnabled", true};
  2653. {"UpperAngle", 15};
  2654. {"LowerAngle", -45};
  2655. }
  2656. ragdollJoint(character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  2657. ragdollJoint(character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  2658.  
  2659. --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped
  2660. ragdollJoint(character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  2661. ragdollJoint(character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  2662. ragdollJoint(character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  2663. ragdollJoint(character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  2664. ragdollJoint(character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  2665. ragdollJoint(character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  2666. end)
  2667. end
  2668. end))
  2669. for i,v in pairs(mas:GetChildren()) do
  2670. v.Parent = owner.Backpack
  2671. pcall(function() v:MakeJoints() end)
  2672. end
  2673. mas:Destroy()
  2674. for i,v in pairs(cors) do
  2675. spawn(function()
  2676. pcall(v)
  2677. end)
  2678. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement