Advertisement
idkwhatiam

meem attak

Jun 15th, 2019
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.49 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. warn("meemdude")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. local cansilence = true
  146.  
  147. function SHUTUPXDD()
  148. if cansilence then
  149. cansilence = false
  150. local function search(instance)
  151. for i,v in pairs(instance:GetChildren()) do
  152. search(v)
  153. if v.ClassName == "Sound" then
  154. if v.Parent ~= game.Players.LocalPlayer.Character then
  155. v.Volume = 0
  156. end
  157. end
  158. end
  159. end
  160. search(workspace)
  161. wait(3)
  162. cansilence = false
  163. end
  164. end
  165.  
  166. game:GetService("RunService").RenderStepped:connect(SHUTUPXDD)
  167.  
  168. Player_Size = 1 --Size of the player.
  169.  
  170. wait()
  171. local Player = owner
  172. local Character = Player.Character
  173. local plr = owner
  174. local Humanoid = Character.Humanoid
  175. local char = plr.Character
  176. local hum = char.Humanoid
  177. local ra = char["Right Arm"]
  178. local la= char["Left Arm"]
  179. local rl= char["Right Leg"]
  180. local ll = char["Left Leg"]
  181. local hed = char.Head
  182. local root = char.HumanoidRootPart
  183. local rootj = root.RootJoint
  184. local tors = char.Torso
  185. local LeftArm = Character["Left Arm"]
  186. local RightArm = Character["Right Arm"]
  187. local LeftLeg = Character["Left Leg"]
  188. local RightLeg = Character["Right Leg"]
  189. local Head = Character.Head
  190. local Torso = Character.Torso
  191. local mouse = plr:GetMouse()
  192. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  193. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  194. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  195. local cam = game.Workspace.CurrentCamera
  196. trazx = Instance.new("ParticleEmitter")
  197. local sine=0
  198.  
  199. hum.MaxHealth = "Inf"
  200. hum.Health = "Inf"
  201.  
  202. local forcefield = Instance.new("ForceField",char)
  203. forcefield.Name = "lol"
  204. forcefield.Visible = false
  205.  
  206. -------------------------------------------------------
  207. CF = CFrame.new
  208. angles = CFrame.Angles
  209. attack = false
  210. timetofly = true
  211. Euler = CFrame.fromEulerAnglesXYZ
  212. Rad = math.rad
  213. IT = Instance.new
  214. BrickC = BrickColor.new
  215. Cos = math.cos
  216. Acos = math.acos
  217. Sin = math.sin
  218. Asin = math.asin
  219. Abs = math.abs
  220. Mrandom = math.random
  221. Floor = math.floor
  222. random = math.random
  223. radian = math.rad
  224. Vec3 = Vector3.new
  225. cFrame = CFrame.new
  226. Euler = CFrame.fromEulerAnglesXYZ
  227. -------------------------------------------------------
  228.  
  229. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  230. RSH, LSH = nil, nil
  231. RW = Instance.new("Weld")
  232. LW = Instance.new("Weld")
  233. RH = tors["Right Hip"]
  234. LH = tors["Left Hip"]
  235. RSH = tors["Right Shoulder"]
  236. LSH = tors["Left Shoulder"]
  237. RSH.Parent = nil
  238. LSH.Parent = nil
  239. RW.Name = "RW"
  240. RW.Part0 = tors
  241. RW.C0 = CF(1.5, 0.5, 0)
  242. RW.C1 = CF(0, 0.5, 0)
  243. RW.Part1 = ra
  244. RW.Parent = tors
  245. LW.Name = "LW"
  246. LW.Part0 = tors
  247. LW.C0 = CF(-1.5, 0.5, 0)
  248. LW.C1 = CF(0, 0.5, 0)
  249. LW.Part1 = la
  250. LW.Parent = tors
  251. Effects = {}
  252.  
  253. -------------------------------------------------------
  254. h = char.Head
  255. t = char.Torso
  256. rh = tors["Right Hip"]
  257. lh = tors["Left Hip"]
  258. nec = tors.Neck
  259. rut = char.HumanoidRootPart
  260. rutj = rut.RootJoint
  261. it = Instance.new
  262.  
  263. attack = false
  264.  
  265. function SoulSteal(dude)
  266. if dude.Name ~= char then
  267. local bgf = IT("BodyGyro", dude.Head)
  268. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  269. local val = IT("BoolValue", dude)
  270. val.Name = "IsHit"
  271. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  272. local soulst = coroutine.wrap(function()
  273. local soul = Instance.new("Part",dude)
  274. soul.Size = Vector3.new(1,1,1)
  275. soul.CanCollide = false
  276. soul.Anchored = false
  277. soul.Position = torso.Position
  278. soul.Transparency = 1
  279. local PartEmmit1 = IT("ParticleEmitter", soul)
  280. PartEmmit1.LightEmission = 1
  281. PartEmmit1.Texture = "rbxassetid://569507414"
  282. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  283. PartEmmit1.Rate = 250
  284. PartEmmit1.Lifetime = NumberRange.new(1.6)
  285. PartEmmit1.Size = NumberSequence.new({
  286. NumberSequenceKeypoint.new(0, 1, 0),
  287. NumberSequenceKeypoint.new(1, 0, 0)
  288. })
  289. PartEmmit1.Transparency = NumberSequence.new({
  290. NumberSequenceKeypoint.new(0, 0, 0),
  291. NumberSequenceKeypoint.new(1, 1, 0)
  292. })
  293. PartEmmit1.Speed = NumberRange.new(0, 0)
  294. PartEmmit1.VelocitySpread = 30000
  295. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  296. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  297. local BodPoss = IT("BodyPosition", soul)
  298. BodPoss.P = 3000
  299. BodPoss.D = 1000
  300. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  301. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  302. wait(1.6)
  303. soul.Touched:connect(function(hit)
  304. if hit.Parent == char then
  305. soul:Destroy()
  306. end
  307. end)
  308. wait(1.2)
  309. while soul do
  310. swait()
  311. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  312. BodPoss.Position = tors.Position
  313. end
  314. end)
  315. soulst()
  316. end
  317. end
  318. function FaceMouse()
  319. local Cam = workspace.CurrentCamera
  320. return {
  321. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  322. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  323. }
  324. end
  325.  
  326. function Eviscerate(dude)
  327. if dude.Name ~= char then
  328. local bgf = IT("BodyGyro", dude.Head)
  329. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  330. local val = IT("BoolValue", dude)
  331. val.Name = "IsHit"
  332. local ds = coroutine.wrap(function()
  333. dude:WaitForChild("Head"):BreakJoints()
  334. wait(0.5)
  335. target = nil
  336. coroutine.resume(coroutine.create(function()
  337. for i, v in pairs(dude:GetChildren()) do
  338. if v:IsA("Accessory") then
  339. v:Destroy()
  340. end
  341. if v:IsA("Humanoid") then
  342. v:Destroy()
  343. end
  344. if v:IsA("CharacterMesh") then
  345. v:Destroy()
  346. end
  347. if v:IsA("Model") then
  348. v:Destroy()
  349. end
  350. if v:IsA("Part") or v:IsA("MeshPart") then
  351. for x, o in pairs(v:GetChildren()) do
  352. if o:IsA("Decal") then
  353. o:Destroy()
  354. end
  355. end
  356. coroutine.resume(coroutine.create(function()
  357. v.Material = "Neon"
  358. v.CanCollide = false
  359. local PartEmmit1 = IT("ParticleEmitter", v)
  360. PartEmmit1.LightEmission = 1
  361. PartEmmit1.Texture = "rbxassetid://284205403"
  362. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  363. PartEmmit1.Rate = 150
  364. PartEmmit1.Lifetime = NumberRange.new(1)
  365. PartEmmit1.Size = NumberSequence.new({
  366. NumberSequenceKeypoint.new(0, 0.75, 0),
  367. NumberSequenceKeypoint.new(1, 0, 0)
  368. })
  369. PartEmmit1.Transparency = NumberSequence.new({
  370. NumberSequenceKeypoint.new(0, 0, 0),
  371. NumberSequenceKeypoint.new(1, 1, 0)
  372. })
  373. PartEmmit1.Speed = NumberRange.new(0, 0)
  374. PartEmmit1.VelocitySpread = 30000
  375. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  376. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  377. local BodPoss = IT("BodyPosition", v)
  378. BodPoss.P = 3000
  379. BodPoss.D = 1000
  380. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  381. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  382. v.Color = maincolor.Color
  383. coroutine.resume(coroutine.create(function()
  384. for i = 0, 49 do
  385. swait(1)
  386. v.Transparency = v.Transparency + 0.08
  387. end
  388. wait(0.5)
  389. PartEmmit1.Enabled = false
  390. wait(3)
  391. v:Destroy()
  392. dude:Destroy()
  393. end))
  394. end))
  395. end
  396. end
  397. end))
  398. end)
  399. ds()
  400. end
  401. end
  402.  
  403. function ragdoll(model)
  404. local char = model
  405. torso = char.HumanoidRootPart
  406. torso2 = char.Torso
  407. LW.Parent = nil
  408. RW.Parent = nil
  409. LH.Parent = nil
  410. RH.Parent = nil
  411. if hum ~= nil then
  412. hum.PlatformStand = true
  413. end
  414.  
  415. local Head = char:FindFirstChild("Head")
  416. if Head then
  417. local Neck = Instance.new("Weld")
  418. Neck.Name = "Neck"
  419. Neck.Part0 = torso
  420. Neck.Part1 = Head
  421. Neck.C0 = CFrame.new(0, 1.5, 0)
  422. Neck.C1 = CFrame.new()
  423. Neck.Parent = torso
  424. end
  425. local Limb = char:FindFirstChild("Right Arm")
  426. if Limb then
  427.  
  428. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  429. local Joint = Instance.new("Glue")
  430. Joint.Name = "RightShoulder"
  431. Joint.Part0 = torso
  432. Joint.Part1 = Limb
  433. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  434. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  435. Joint.Parent = torso
  436.  
  437. local B = Instance.new("Part")
  438. B.TopSurface = 0
  439. B.BottomSurface = 0
  440. B.formFactor = "Symmetric"
  441. B.Size = Vector3.new(1, 1, 1)
  442. B.Transparency = 1
  443. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  444. B.Parent = char
  445. local W = Instance.new("Weld")
  446. W.Part0 = Limb
  447. W.Part1 = B
  448. W.C0 = CFrame.new(0, -0.5, 0)
  449. W.Parent = Limb
  450.  
  451. end
  452. local Limb = char:FindFirstChild("Left Arm")
  453. if Limb then
  454.  
  455. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  456. local Joint = Instance.new("Glue")
  457. Joint.Name = "LeftShoulder"
  458. Joint.Part0 = torso
  459. Joint.Part1 = Limb
  460. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  461. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  462. Joint.Parent = torso
  463.  
  464. local B = Instance.new("Part")
  465. B.TopSurface = 0
  466. B.BottomSurface = 0
  467. B.formFactor = "Symmetric"
  468. B.Size = Vector3.new(1, 1, 1)
  469. B.Transparency = 1
  470. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  471. B.Parent = char
  472. local W = Instance.new("Weld")
  473. W.Part0 = Limb
  474. W.Part1 = B
  475. W.C0 = CFrame.new(0, -0.5, 0)
  476. W.Parent = Limb
  477.  
  478. end
  479. local Limb = char:FindFirstChild("Right Leg")
  480. if Limb then
  481.  
  482. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  483. local Joint = Instance.new("Glue")
  484. Joint.Name = "RightHip"
  485. Joint.Part0 = torso
  486. Joint.Part1 = Limb
  487. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  488. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  489. Joint.Parent = torso
  490.  
  491. local B = Instance.new("Part")
  492. B.TopSurface = 0
  493. B.BottomSurface = 0
  494. B.formFactor = "Symmetric"
  495. B.Size = Vector3.new(1, 1, 1)
  496. B.Transparency = 1
  497. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  498. B.Parent = char
  499. local W = Instance.new("Weld")
  500. W.Part0 = Limb
  501. W.Part1 = B
  502. W.C0 = CFrame.new(0, -0.5, 0)
  503. W.Parent = Limb
  504.  
  505. end
  506. local Limb = char:FindFirstChild("Left Leg")
  507. if Limb then
  508.  
  509. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  510. local Joint = Instance.new("Glue")
  511. Joint.Name = "LeftHip"
  512. Joint.Part0 = torso
  513. Joint.Part1 = Limb
  514. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  515. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  516. Joint.Parent = torso
  517.  
  518. local B = Instance.new("Part")
  519. B.TopSurface = 0
  520. B.BottomSurface = 0
  521. B.formFactor = "Symmetric"
  522. B.Size = Vector3.new(1, 1, 1)
  523. B.Transparency = 1
  524. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  525. B.Parent = char
  526. local W = Instance.new("Weld")
  527. W.Part0 = Limb
  528. W.Part1 = B
  529. W.C0 = CFrame.new(0, -0.5, 0)
  530. W.Parent = Limb
  531.  
  532. end
  533. --[
  534. local Bar = Instance.new("Part")
  535. Bar.TopSurface = 0
  536. Bar.BottomSurface = 0
  537. Bar.formFactor = "Symmetric"
  538. Bar.Size = Vector3.new(1, 1, 1)
  539. Bar.Transparency = 1
  540. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  541. Bar.Parent = char
  542. local Weld = Instance.new("Weld")
  543. Weld.Part0 = torso
  544. Weld.Part1 = Bar
  545. Weld.C0 = CFrame.new(0, 0.5, 0)
  546. Weld.Parent = torso
  547. --]]
  548.  
  549. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  550.  
  551. end
  552.  
  553. --important--
  554.  
  555. function swait(num)
  556. if num == 0 or num == nil then
  557. game:service("RunService").Stepped:wait(0)
  558. else
  559. for i = 0, num do
  560. game:service("RunService").Stepped:wait(0)
  561. end
  562. end
  563. end
  564. function thread(f)
  565. coroutine.resume(coroutine.create(f))
  566. end
  567. function clerp(a, b, t)
  568. local qa = {
  569. QuaternionFromCFrame(a)
  570. }
  571. local qb = {
  572. QuaternionFromCFrame(b)
  573. }
  574. local ax, ay, az = a.x, a.y, a.z
  575. local bx, by, bz = b.x, b.y, b.z
  576. local _t = 1 - t
  577. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  578. end
  579. function QuaternionFromCFrame(cf)
  580. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  581. local trace = m00 + m11 + m22
  582. if trace > 0 then
  583. local s = math.sqrt(1 + trace)
  584. local recip = 0.5 / s
  585. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  586. else
  587. local i = 0
  588. if m00 < m11 then
  589. i = 1
  590. end
  591. if m22 > (i == 0 and m00 or m11) then
  592. i = 2
  593. end
  594. if i == 0 then
  595. local s = math.sqrt(m00 - m11 - m22 + 1)
  596. local recip = 0.5 / s
  597. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  598. elseif i == 1 then
  599. local s = math.sqrt(m11 - m22 - m00 + 1)
  600. local recip = 0.5 / s
  601. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  602. elseif i == 2 then
  603. local s = math.sqrt(m22 - m00 - m11 + 1)
  604. local recip = 0.5 / s
  605. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  606. end
  607. end
  608. end
  609. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  610. local xs, ys, zs = x + x, y + y, z + z
  611. local wx, wy, wz = w * xs, w * ys, w * zs
  612. local xx = x * xs
  613. local xy = x * ys
  614. local xz = x * zs
  615. local yy = y * ys
  616. local yz = y * zs
  617. local zz = z * zs
  618. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  619. end
  620. function QuaternionSlerp(a, b, t)
  621. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  622. local startInterp, finishInterp
  623. if cosTheta >= 1.0E-4 then
  624. if 1 - cosTheta > 1.0E-4 then
  625. local theta = math.acos(cosTheta)
  626. local invSinTheta = 1 / Sin(theta)
  627. startInterp = Sin((1 - t) * theta) * invSinTheta
  628. finishInterp = Sin(t * theta) * invSinTheta
  629. else
  630. startInterp = 1 - t
  631. finishInterp = t
  632. end
  633. elseif 1 + cosTheta > 1.0E-4 then
  634. local theta = math.acos(-cosTheta)
  635. local invSinTheta = 1 / Sin(theta)
  636. startInterp = Sin((t - 1) * theta) * invSinTheta
  637. finishInterp = Sin(t * theta) * invSinTheta
  638. else
  639. startInterp = t - 1
  640. finishInterp = t
  641. end
  642. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  643. end
  644. function rayCast(Position, Direction, Range, Ignore)
  645. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  646. end
  647. local RbxUtility = LoadLibrary("RbxUtility")
  648. local Create = RbxUtility.Create
  649. local insta = true
  650.  
  651. function ShowDamage(Pos, Text, Time, Color)
  652. local Rate = (1 / 30)
  653. local Pos = (Pos or Vector3.new(0, 0, 0))
  654. local Text = (Text or "")
  655. local Time = (Time or 2)
  656. local Color = (Color or Color3.new(1, 0, 1))
  657. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  658. EffectPart.Anchored = true
  659. local BillboardGui = Create("BillboardGui"){
  660. Size = UDim2.new(3, 0, 3, 0),
  661. Adornee = EffectPart,
  662. Parent = EffectPart,
  663. }
  664. local TextLabel = Create("TextLabel"){
  665. BackgroundTransparency = 1,
  666. Size = UDim2.new(1, 0, 1, 0),
  667. Text = Text,
  668. Font = "Bodoni",
  669. TextColor3 = Color,
  670. TextScaled = true,
  671. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  672. Parent = BillboardGui,
  673. }
  674. game.Debris:AddItem(EffectPart, (Time))
  675. EffectPart.Parent = game:GetService("Workspace")
  676. delay(0, function()
  677. local Frames = (Time / Rate)
  678. for Frame = 1, Frames do
  679. wait(Rate)
  680. local Percent = (Frame / Frames)
  681. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  682. TextLabel.TextTransparency = Percent
  683. end
  684. if EffectPart and EffectPart.Parent then
  685. EffectPart:Destroy()
  686. end
  687. end)
  688. end
  689.  
  690. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  691. if hit.Parent == nil then
  692. return
  693. end
  694. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  695. for _, v in pairs(hit.Parent:children()) do
  696. if v:IsA("Humanoid") then
  697. h = v
  698. end
  699. end
  700. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  701. hit.Parent:FindFirstChild("Head"):BreakJoints()
  702. end
  703.  
  704. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  705. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  706. if hit.Parent.DebounceHit.Value == true then
  707. return
  708. end
  709. end
  710. if insta == true then
  711. hit.Parent:FindFirstChild("Head"):BreakJoints()
  712. end
  713. local c = Create("ObjectValue"){
  714. Name = "creator",
  715. Value = game:service("Players").LocalPlayer,
  716. Parent = h,
  717. }
  718. game:GetService("Debris"):AddItem(c, .5)
  719. CreateSound("958257111", hit, 10, 1)
  720. local Damage = math.random(minim, maxim)
  721. hit.Parent:FindFirstChild("Head"):BreakJoints()
  722. local blocked = false
  723. local block = hit.Parent:findFirstChild("Block")
  724. if block ~= nil then
  725. if block.className == "IntValue" then
  726. if block.Value > 0 then
  727. blocked = true
  728. block.Value = block.Value - 1
  729. end
  730. end
  731. end
  732. if blocked == false then
  733. h.Health = h.Health - Damage
  734. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "rekt", 1.5, tors.BrickColor.Color)
  735. else
  736. h.Health = h.Health - (Damage / 2)
  737. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "ez kill", 1.5, tors.BrickColor.Color)
  738. end
  739. if Type == "Knockdown" then
  740. local hum = hit.Parent.Humanoid
  741. hum.PlatformStand = true
  742. coroutine.resume(coroutine.create(function(HHumanoid)
  743. swait(1)
  744. HHumanoid.PlatformStand = false
  745. end), hum)
  746. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  747. local bodvol = Create("BodyVelocity"){
  748. velocity = angle * knockback,
  749. P = 5000,
  750. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  751. Parent = hit,
  752. }
  753. local rl = Create("BodyAngularVelocity"){
  754. P = 3000,
  755. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  756. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  757. Parent = hit,
  758. }
  759. game:GetService("Debris"):AddItem(bodvol, .5)
  760. game:GetService("Debris"):AddItem(rl, .5)
  761. elseif Type == "Normal" then
  762. local vp = Create("BodyVelocity"){
  763. P = 500,
  764. maxForce = Vector3.new(math.huge, 0, math.huge),
  765. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  766. }
  767. if knockback > 0 then
  768. vp.Parent = hit.Parent.Torso
  769. end
  770. game:GetService("Debris"):AddItem(vp, .5)
  771. elseif Type == "Up" then
  772. local bodyVelocity = Create("BodyVelocity"){
  773. velocity = Vector3.new(0, 20, 0),
  774. P = 5000,
  775. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  776. Parent = hit,
  777. }
  778. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  779. elseif Type == "DarkUp" then
  780. coroutine.resume(coroutine.create(function()
  781. for i = 0, 1, 0.1 do
  782. swait()
  783. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  784. end
  785. end))
  786. local bodyVelocity = Create("BodyVelocity"){
  787. velocity = Vector3.new(0, 20, 0),
  788. P = 5000,
  789. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  790. Parent = hit,
  791. }
  792. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  793. elseif Type == "Snare" then
  794. local bp = Create("BodyPosition"){
  795. P = 2000,
  796. D = 100,
  797. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  798. position = hit.Parent.Torso.Position,
  799. Parent = hit.Parent.Torso,
  800. }
  801. game:GetService("Debris"):AddItem(bp, 1)
  802. elseif Type == "Freeze" then
  803. local BodPos = Create("BodyPosition"){
  804. P = 50000,
  805. D = 1000,
  806. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  807. position = hit.Parent.Torso.Position,
  808. Parent = hit.Parent.Torso,
  809. }
  810. local BodGy = Create("BodyGyro") {
  811. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  812. P = 20e+003,
  813. Parent = hit.Parent.Torso,
  814. cframe = hit.Parent.Torso.CFrame,
  815. }
  816. hit.Parent.Torso.Anchored = true
  817. coroutine.resume(coroutine.create(function(Part)
  818. swait(1.5)
  819. Part.Anchored = false
  820. end), hit.Parent.Torso)
  821. game:GetService("Debris"):AddItem(BodPos, 3)
  822. game:GetService("Debris"):AddItem(BodGy, 3)
  823. end
  824. local debounce = Create("BoolValue"){
  825. Name = "DebounceHit",
  826. Parent = hit.Parent,
  827. Value = true,
  828. }
  829. game:GetService("Debris"):AddItem(debounce, Delay)
  830. c = Create("ObjectValue"){
  831. Name = "creator",
  832. Value = Player,
  833. Parent = h,
  834. }
  835. game:GetService("Debris"):AddItem(c, .5)
  836. end
  837. end
  838.  
  839. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  840. for _, c in pairs(workspace:children()) do
  841. local hum = c:findFirstChild("Humanoid")
  842. if hum ~= nil then
  843. local head = c:findFirstChild("Head")
  844. if head ~= nil then
  845. local targ = head.Position - Part.Position
  846. local mag = targ.magnitude
  847. if magni >= mag and c.Name ~= plr.Name then
  848.  
  849. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  850. end
  851. end
  852. end
  853. end
  854. end
  855.  
  856. function RemoveOutlines(part)
  857. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  858. end
  859.  
  860. EffectModel = Instance.new("Model", char)
  861.  
  862. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  863. local Hitboxpart = Instance.new("Part", EffectModel)
  864. RemoveOutlines(Hitboxpart)
  865. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  866. Hitboxpart.CanCollide = false
  867. Hitboxpart.Transparency = 1
  868. Hitboxpart.Anchored = true
  869. Hitboxpart.CFrame = Pose
  870. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  871. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  872. end
  873. wait2 = false
  874. combo = 1
  875.  
  876. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  877. local NSound = nil
  878. coroutine.resume(coroutine.create(function()
  879. NSound = Instance.new("Sound", PARENT)
  880. NSound.Volume = VOLUME
  881. NSound.Pitch = PITCH
  882. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  883. swait()
  884. NSound:play()
  885. game:GetService("Debris"):AddItem(NSound, 10)
  886. end))
  887. return NSound
  888. end
  889.  
  890. mouse.Button1Down:connect(function(key)
  891. if attack == false then
  892. attack = true
  893. hum.WalkSpeed = 3.01
  894. if combo == 1 then
  895. for i = 0, 1.2, 0.1 do
  896. swait()
  897. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-65)), 0.3)
  898. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(-65)), 0.1)
  899. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  900. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(40)), 0.3)
  901. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  902. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  903. end
  904. CreateSound("608537390", ra, 3, .8)
  905. local sude = Instance.new("Part", ra)
  906. sude.Size = Vector3.new(1, 1, 1)
  907. sude:BreakJoints()
  908. sude.Transparency = 1
  909. sude.CanCollide = false
  910. local dmgweld = Instance.new("Weld", sude)
  911. dmgweld.Part0 = ra
  912. dmgweld.Part1 = sude
  913. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1.5)
  914. local function death(part)
  915. local tor = part.Parent:findFirstChild("Torso")
  916. if tor ~= nil then
  917. CreateSound("1615641704", ra, 7, 1)
  918. local heds = part.Parent:findFirstChild("Head")
  919. local vel = Instance.new("BodyVelocity", tor)
  920. vel.Velocity = tor.CFrame.lookVector * -754
  921. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  922. local vels = Instance.new("BodyVelocity", heds)
  923. vels.Velocity = heds.CFrame.lookVector * -546745
  924. vels.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  925. tor:BreakJoints()
  926. if tor then
  927. tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  928. tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  929. end
  930. wait(1.4)
  931. sude:destroy()
  932. end
  933. end
  934. sude.Touched:connect(death)
  935. for i = 0, 1.2, 0.1 do
  936. swait()
  937. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  938. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  939. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  940. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  941. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3)
  942. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  943. end
  944. end
  945. hum.WalkSpeed = 40
  946. wait2 = false
  947. attack = false
  948. end
  949. end)
  950.  
  951. local equipped = false
  952. local idle = 0
  953. local change = 1
  954. local val = 0
  955. local toim = 0
  956. local idleanim = 0.4
  957. hum.Animator.Parent = nil
  958. while true do
  959. swait()
  960. sine = sine + change
  961. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  962. local velderp = root.Velocity.y
  963. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  964. if equipped == true or equipped == false then
  965. if attack == false then
  966. idle = idle + 1
  967. else
  968. idle = 0
  969. end
  970. if 1 < root.Velocity.y and hitfloor == nil then
  971. Anim = "Jump"
  972. if attack == false then
  973. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  974. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-40), Rad(0), Rad(0)), 0.3)
  975. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  976. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  977. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  978. RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3)
  979. end
  980. elseif -1 > root.Velocity.y and hitfloor == nil then
  981. Anim = "Fall"
  982. if attack == false then
  983. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  984. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(40), Rad(0), Rad(0)), 0.3)
  985. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  986. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  987. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  988. RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3)
  989. end
  990. elseif torvel < 1 and hitfloor ~= nil then
  991. Anim = "Idle"
  992. change = 1
  993. if attack == false then
  994. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  995. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  996. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  997. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  998. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(180)), 0.1)
  999. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(180)), 0.1)
  1000. end
  1001. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1002. Anim = "Walk"
  1003. change = 1
  1004. if attack == false then
  1005. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1006. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3)
  1007. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * RHCF * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1008. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * LHCF * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1009. RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1010. LW.C0 = clerp(LW.C0, CF(-1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1011. end
  1012. end
  1013. end
  1014. if 0 < #Effects then
  1015. for e = 1, #Effects do
  1016. if Effects[e] ~= nil then
  1017. local Thing = Effects[e]
  1018. if Thing ~= nil then
  1019. local Part = Thing[1]
  1020. local Mode = Thing[2]
  1021. local Delay = Thing[3]
  1022. local IncX = Thing[4]
  1023. local IncY = Thing[5]
  1024. local IncZ = Thing[6]
  1025. if 1 >= Thing[1].Transparency then
  1026. if Thing[2] == "Block1" then
  1027. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1028. local Mesh = Thing[1].Mesh
  1029. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1030. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1031. elseif Thing[2] == "Block2" then
  1032. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1033. local Mesh = Thing[7]
  1034. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1035. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1036. elseif Thing[2] == "Block3" then
  1037. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1038. local Mesh = Thing[7]
  1039. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1040. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1041. elseif Thing[2] == "Cylinder" then
  1042. local Mesh = Thing[1].Mesh
  1043. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1044. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1045. elseif Thing[2] == "Blood" then
  1046. local Mesh = Thing[7]
  1047. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1048. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1049. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1050. elseif Thing[2] == "Elec" then
  1051. local Mesh = Thing[1].Mesh
  1052. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1053. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1054. elseif Thing[2] == "Disappear" then
  1055. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1056. elseif Thing[2] == "Shatter" then
  1057. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1058. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1059. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1060. Thing[6] = Thing[6] + Thing[5]
  1061. end
  1062. else
  1063. Part.Parent = nil
  1064. table.remove(Effects, e)
  1065. end
  1066. end
  1067. end
  1068. end
  1069. end
  1070. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement