Advertisement
saba1517

Untitled

Aug 4th, 2018
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.75 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. print("FE Compatibility code by Mokiros")
  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. print("Made By : KillerDarkness1015")
  146. print("Edit By : Kermat161")
  147. print("Press e for best mates! \Updated/")
  148. Player = owner
  149. Character = Player.Character
  150. PlayerGui = Player.PlayerGui
  151. Backpack = Player.Backpack
  152. Torso = Character.Torso
  153. Head = Character.Head
  154. Humanoid = Character.Humanoid
  155. LeftArm = Character["Left Arm"]
  156. LeftLeg = Character["Left Leg"]
  157. RightArm = Character["Right Arm"]
  158. RightLeg = Character["Right Leg"]
  159. LS = Torso["Left Shoulder"]
  160. LH = Torso["Left Hip"]
  161. RS = Torso["Right Shoulder"]
  162. RH = Torso["Right Hip"]
  163. Face = Head.face
  164. Neck = Torso.Neck
  165. it = Instance.new
  166. attacktype = 1
  167. attacktype2 = 1
  168. vt = Vector3.new
  169. cf = CFrame.new
  170. cn = CFrame.new
  171. euler = CFrame.fromEulerAnglesXYZ
  172. angles = CFrame.Angles
  173. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  174. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  175. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  176. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  177. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  178. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  179. RootPart = Character.HumanoidRootPart
  180. RootJoint = RootPart.RootJoint
  181. RootCF = euler(-1.57, 0, 3.14)
  182. attack = false
  183. attackdebounce = false
  184. trispeed = 0.2
  185. attackmode = "none"
  186. local idle = 0
  187. local Anim = "Idle"
  188. stance = false
  189. local ff = 2
  190. noleg = false
  191. evadecooldown = false
  192. Humanoid.Animator.Parent = nil
  193. equip = false
  194. local Effects = {}
  195. attackspeed = 0.14
  196. df = false
  197. Swing = 1
  198. local sine = 0
  199. local change = 1
  200. local val = 0
  201. local rs = game:GetService("RunService").RenderStepped
  202. Humanoid.WalkSpeed = 5
  203. Humanoid.JumpPower = 60
  204. Swing = 1
  205. cam = workspace.CurrentCamera
  206. local RbxUtility = LoadLibrary("RbxUtility")
  207. local Create = RbxUtility.Create
  208. Head.face.Texture = "rbxassetid://164958099"
  209. Fornite = Instance.new("Sound", Torso)
  210. Fornite.Volume = 0.5
  211. Fornite.TimePosition = 0
  212. Fornite.Pitch = 1
  213. Fornite.SoundId = "rbxassetid://1360395950"
  214. Fornite.Looped = true
  215. Fornite:Play()
  216. k = Fornite
  217. bestmatess = Instance.new("Sound", Torso)
  218. bestmatess.Volume = 2
  219. bestmatess.TimePosition = 0
  220. bestmatess.Pitch = 1
  221. bestmatess.SoundId = "rbxassetid://1890957836"
  222. bestmatess.Looped = true
  223. skidfield = Instance.new("ForceField", Character)
  224. skidfield.Visible = false
  225. Humanoid.Name = "Truegod"
  226. Humanoid.MaxHealth = 1.0E298
  227. Humanoid.Health = 1.0E298
  228. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  229. if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then
  230. Humanoid.MaxHealth = 1.0E298
  231. Humanoid.Health = 1.0E298
  232. end
  233. end)
  234. function so(id, par, vol, pit)
  235. coroutine.resume(coroutine.create(function()
  236. local sou = Instance.new("Sound", par or workspace)
  237. sou.Volume = vol
  238. sou.Pitch = pit or 1
  239. sou.SoundId = id
  240. sou:play()
  241. game:GetService("Debris"):AddItem(sou, 8)
  242. end))
  243. end
  244. RSH, LSH = nil, nil
  245. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  246. RW.Name = "Right Shoulder"
  247. LW.Name = "Left Shoulder"
  248. LH = Torso["Left Hip"]
  249. RH = Torso["Right Hip"]
  250. TorsoColor = Torso.BrickColor
  251. function NoOutline(Part)
  252. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  253. end
  254. player = Player
  255. ch = Character
  256. RSH = ch.Torso["Right Shoulder"]
  257. LSH = ch.Torso["Left Shoulder"]
  258. RSH.Parent = nil
  259. LSH.Parent = nil
  260. RW.Name = "Right Shoulder"
  261. RW.Part0 = ch.Torso
  262. RW.C0 = cf(1.5, 0.5, 0)
  263. RW.C1 = cf(0, 0.5, 0)
  264. RW.Part1 = ch["Right Arm"]
  265. RW.Parent = ch.Torso
  266. LW.Name = "Left Shoulder"
  267. LW.Part0 = ch.Torso
  268. LW.C0 = cf(-1.5, 0.5, 0)
  269. LW.C1 = cf(0, 0.5, 0)
  270. LW.Part1 = ch["Left Arm"]
  271. LW.Parent = ch.Torso
  272. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  273. local wld = Instance.new("Weld", wp1)
  274. wld.Part0 = wp0
  275. wld.Part1 = wp1
  276. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  277. end
  278. local rs = game:GetService("RunService").RenderStepped
  279. newWeld(RootPart, Torso, 0, -1, 0)
  280. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  281. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  282. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  283. newWeld(Torso, RightLeg, 0.5, -1, 0)
  284. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  285. Player = game:GetService("Players").LocalPlayer
  286. Character = Player.Character
  287. mouse = Player:GetMouse()
  288. m = Instance.new("Model", Character)
  289. local weldBetween = function(a, b)
  290. local weldd = Instance.new("ManualWeld")
  291. weldd.Part0 = a
  292. weldd.Part1 = b
  293. weldd.C0 = CFrame.new()
  294. weldd.C1 = b.CFrame:inverse() * a.CFrame
  295. weldd.Parent = a
  296. return weldd
  297. end
  298. ArtificialHB = Instance.new("BindableEvent", script)
  299. ArtificialHB.Name = "Heartbeat"
  300. script:WaitForChild("Heartbeat")
  301. frame = 0.0125
  302. tf = 0
  303. allowframeloss = false
  304. tossremainder = false
  305. lastframe = tick()
  306. script.Heartbeat:Fire()
  307. game:GetService("RunService").Heartbeat:connect(function(s, p)
  308. tf = tf + s
  309. if tf >= frame then
  310. if allowframeloss then
  311. script.Heartbeat:Fire()
  312. lastframe = tick()
  313. else
  314. for i = 1, math.floor(tf / frame) do
  315. script.Heartbeat:Fire()
  316. end
  317. lastframe = tick()
  318. end
  319. if tossremainder then
  320. tf = 0
  321. else
  322. tf = tf - frame * math.floor(tf / frame)
  323. end
  324. end
  325. end)
  326. function swait(num)
  327. if num == 0 or num == nil then
  328. ArtificialHB.Event:wait()
  329. else
  330. for i = 0, num do
  331. ArtificialHB.Event:wait()
  332. end
  333. end
  334. end
  335. function RemoveOutlines(part)
  336. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  337. end
  338. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  339. local fp = it("Part")
  340. fp.formFactor = formfactor
  341. fp.Parent = parent
  342. fp.Reflectance = reflectance
  343. fp.Transparency = transparency
  344. fp.CanCollide = false
  345. fp.Locked = true
  346. fp.BrickColor = brickcolor
  347. fp.Name = name
  348. fp.Size = size
  349. fp.Position = Torso.Position
  350. NoOutline(fp)
  351. if fp.BrickColor == BrickColor.new("Dark indigo") then
  352. fp.Material = "Neon"
  353. elseif fp.BrickColor == BrickColor.new("Really black") then
  354. fp.BrickColor = BrickColor.new("Really black")
  355. fp.Material = "Metal"
  356. else
  357. fp.Material = "Glass"
  358. end
  359. fp:BreakJoints()
  360. return fp
  361. end
  362. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  363. local mesh = it(Mesh)
  364. mesh.Parent = part
  365. if Mesh == "SpecialMesh" then
  366. mesh.MeshType = meshtype
  367. mesh.MeshId = meshid
  368. end
  369. mesh.Offset = offset
  370. mesh.Scale = scale
  371. return mesh
  372. end
  373. function weld(parent, part0, part1, c0)
  374. local weld = it("Weld")
  375. weld.Parent = parent
  376. weld.Part0 = part0
  377. weld.Part1 = part1
  378. weld.C0 = c0
  379. return weld
  380. end
  381. F1 = Instance.new("Folder", Character)
  382. F1.Name = "Effects Folder"
  383. F2 = Instance.new("Folder", F1)
  384. F2.Name = "Effects"
  385. function Triangle(a, b, c)
  386. end
  387. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  388. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  389. prt.Anchored = true
  390. prt.CanCollide = false
  391. prt.CFrame = cframe
  392. prt.Name = "prt"
  393. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  394. game:GetService("Debris"):AddItem(prt, 5)
  395. table.insert(Effects, {
  396. prt,
  397. "Block1",
  398. delay,
  399. x3,
  400. y3,
  401. z3
  402. })
  403. end
  404. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  405. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  406. prt.Anchored = true
  407. prt.CanCollide = false
  408. prt.CFrame = cframe
  409. prt.Name = "prt"
  410. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  411. game:GetService("Debris"):AddItem(prt, 5)
  412. table.insert(Effects, {
  413. prt,
  414. "Cylinder",
  415. delay,
  416. x3,
  417. y3,
  418. z3
  419. })
  420. end
  421. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  422. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  423. prt.Anchored = true
  424. prt.CFrame = cframe
  425. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  426. game:GetService("Debris"):AddItem(prt, 5)
  427. table.insert(Effects, {
  428. prt,
  429. "Cylinder",
  430. delay,
  431. x3,
  432. y3,
  433. z3
  434. })
  435. end
  436. function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  437. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  438. prt.Anchored = true
  439. prt.CFrame = cframe
  440. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  441. game:GetService("Debris"):AddItem(prt, 5)
  442. Effects[#Effects + 1] = {
  443. prt,
  444. "Cylinder",
  445. delay,
  446. x3,
  447. y3,
  448. z3
  449. }
  450. end
  451. function MagicCylinder2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  452. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  453. prt.Anchored = true
  454. prt.CFrame = cframe
  455. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  456. game:GetService("Debris"):AddItem(prt, 5)
  457. Effects[#Effects + 1] = {
  458. prt,
  459. "Cylinder",
  460. delay,
  461. x3,
  462. y3,
  463. z3
  464. }
  465. end
  466. function MagicBlood(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  467. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  468. prt.Anchored = true
  469. prt.CFrame = cframe
  470. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  471. game:GetService("Debris"):AddItem(prt, 5)
  472. table.insert(Effects, {
  473. prt,
  474. "Blood",
  475. delay,
  476. x3,
  477. y3,
  478. z3
  479. })
  480. end
  481. function ElecEffect(cff, x, y, z)
  482. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  483. prt.Anchored = true
  484. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  485. prt.CFrame = cf(prt.Position)
  486. game:GetService("Debris"):AddItem(prt, 2)
  487. xval = math.random() / 2
  488. yval = math.random() / 2
  489. zval = math.random() / 2
  490. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  491. Effects[#Effects + 1] = {
  492. prt,
  493. "Elec",
  494. 0.1,
  495. x,
  496. y,
  497. z,
  498. xval,
  499. yval,
  500. zval
  501. }
  502. end
  503. function FindNearestTorso(Position, Distance, SinglePlayer)
  504. if SinglePlayer then
  505. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  506. end
  507. local List = {}
  508. for i, v in pairs(workspace:GetChildren()) do
  509. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  510. table.insert(List, v)
  511. end
  512. end
  513. return List
  514. end
  515. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  516. local Part = Create("Part")({
  517. Parent = Parent,
  518. Reflectance = Reflectance,
  519. Transparency = Transparency,
  520. CanCollide = false,
  521. Locked = true,
  522. BrickColor = BrickColor.new(tostring(BColor)),
  523. Name = Name,
  524. Size = Size,
  525. Material = Material
  526. })
  527. RemoveOutlines(Part)
  528. return Part
  529. end
  530. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  531. local Msh = Create(Mesh)({
  532. Parent = Part,
  533. Offset = OffSet,
  534. Scale = Scale
  535. })
  536. if Mesh == "SpecialMesh" then
  537. Msh.MeshType = MeshType
  538. Msh.MeshId = MeshId
  539. end
  540. return Msh
  541. end
  542. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  543. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  544. prt.Anchored = true
  545. prt.CFrame = cframe
  546. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  547. game:GetService("Debris"):AddItem(prt, 10)
  548. if Type == 1 or Type == nil then
  549. table.insert(Effects, {
  550. prt,
  551. "Block1",
  552. delay,
  553. x3,
  554. y3,
  555. z3,
  556. msh
  557. })
  558. elseif Type == 2 then
  559. table.insert(Effects, {
  560. prt,
  561. "Block2",
  562. delay,
  563. x3,
  564. y3,
  565. z3,
  566. msh
  567. })
  568. end
  569. end
  570. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  571. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  572. prt.Anchored = true
  573. prt.CFrame = cframe
  574. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  575. game:GetService("Debris"):AddItem(prt, 10)
  576. table.insert(Effects, {
  577. prt,
  578. "Cylinder",
  579. delay,
  580. x3,
  581. y3,
  582. z3,
  583. msh
  584. })
  585. end
  586. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  587. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  588. prt.Anchored = true
  589. prt.CFrame = cframe
  590. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  591. game:GetService("Debris"):AddItem(prt, 2)
  592. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  593. for i = 0, 1, delay do
  594. swait()
  595. Part.Transparency = i
  596. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  597. end
  598. Part.Parent = nil
  599. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  600. end
  601. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  602. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  603. prt.Anchored = true
  604. prt.CFrame = cframe
  605. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  606. game:GetService("Debris"):AddItem(prt, 10)
  607. table.insert(Effects, {
  608. prt,
  609. "Cylinder",
  610. delay,
  611. x3,
  612. y3,
  613. z3,
  614. msh
  615. })
  616. end
  617. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  618. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  619. prt.Anchored = true
  620. prt.CFrame = cframe
  621. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  622. game:GetService("Debris"):AddItem(prt, 10)
  623. table.insert(Effects, {
  624. prt,
  625. "Cylinder",
  626. delay,
  627. x3,
  628. y3,
  629. z3,
  630. msh
  631. })
  632. end
  633. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  634. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  635. prt.Anchored = true
  636. prt.CFrame = cframe
  637. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  638. game:GetService("Debris"):AddItem(prt, 10)
  639. table.insert(Effects, {
  640. prt,
  641. "Cylinder",
  642. delay,
  643. x3,
  644. y3,
  645. z3,
  646. msh
  647. })
  648. end
  649. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  650. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  651. prt.Anchored = true
  652. prt.CFrame = cframe
  653. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  654. game:GetService("Debris"):AddItem(prt, 10)
  655. table.insert(Effects, {
  656. prt,
  657. "Cylinder",
  658. delay,
  659. x3,
  660. y3,
  661. z3,
  662. msh
  663. })
  664. end
  665. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  666. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  667. prt.Anchored = true
  668. prt.CFrame = cframe
  669. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  670. game:GetService("Debris"):AddItem(prt, 10)
  671. table.insert(Effects, {
  672. prt,
  673. "Cylinder",
  674. delay,
  675. x3,
  676. y3,
  677. z3,
  678. msh
  679. })
  680. end
  681. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  682. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  683. prt.Anchored = true
  684. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  685. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  686. local num = math.random(10, 50) / 1000
  687. game:GetService("Debris"):AddItem(prt, 10)
  688. table.insert(Effects, {
  689. prt,
  690. "Shatter",
  691. num,
  692. prt.CFrame,
  693. math.random() - math.random(),
  694. 0,
  695. math.random(50, 100) / 100
  696. })
  697. end
  698. function clerp(a, b, t)
  699. local qa = {
  700. QuaternionFromCFrame(a)
  701. }
  702. local qb = {
  703. QuaternionFromCFrame(b)
  704. }
  705. local ax, ay, az = a.x, a.y, a.z
  706. local bx, by, bz = b.x, b.y, b.z
  707. local _t = 1 - t
  708. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  709. end
  710. function QuaternionFromCFrame(cf)
  711. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  712. local trace = m00 + m11 + m22
  713. if trace > 0 then
  714. local s = math.sqrt(1 + trace)
  715. local recip = 0.5 / s
  716. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  717. else
  718. local i = 0
  719. if m00 < m11 then
  720. i = 1
  721. end
  722. if m22 > (i == 0 and m00 or m11) then
  723. i = 2
  724. end
  725. if i == 0 then
  726. local s = math.sqrt(m00 - m11 - m22 + 1)
  727. local recip = 0.5 / s
  728. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  729. elseif i == 1 then
  730. local s = math.sqrt(m11 - m22 - m00 + 1)
  731. local recip = 0.5 / s
  732. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  733. elseif i == 2 then
  734. local s = math.sqrt(m22 - m00 - m11 + 1)
  735. local recip = 0.5 / s
  736. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  737. end
  738. end
  739. end
  740. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  741. local xs, ys, zs = x + x, y + y, z + z
  742. local wx, wy, wz = w * xs, w * ys, w * zs
  743. local xx = x * xs
  744. local xy = x * ys
  745. local xz = x * zs
  746. local yy = y * ys
  747. local yz = y * zs
  748. local zz = z * zs
  749. 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))
  750. end
  751. function QuaternionSlerp(a, b, t)
  752. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  753. local startInterp, finishInterp
  754. if cosTheta >= 1.0E-4 then
  755. if 1 - cosTheta > 1.0E-4 then
  756. local theta = math.acos(cosTheta)
  757. local invSinTheta = 1 / math.sin(theta)
  758. startInterp = math.sin((1 - t) * theta) * invSinTheta
  759. finishInterp = math.sin(t * theta) * invSinTheta
  760. else
  761. startInterp = 1 - t
  762. finishInterp = t
  763. end
  764. elseif 1 + cosTheta > 1.0E-4 then
  765. local theta = math.acos(-cosTheta)
  766. local invSinTheta = 1 / math.sin(theta)
  767. startInterp = math.sin((t - 1) * theta) * invSinTheta
  768. finishInterp = math.sin(t * theta) * invSinTheta
  769. else
  770. startInterp = t - 1
  771. finishInterp = t
  772. end
  773. 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
  774. end
  775. function weld5(part0, part1, c0, c1)
  776. weeld = Instance.new("Weld", part0)
  777. weeld.Part0 = part0
  778. weeld.Part1 = part1
  779. weeld.C0 = c0
  780. weeld.C1 = c1
  781. return weeld
  782. end
  783. function rayCast(Pos, Dir, Max, Ignore)
  784. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  785. end
  786. local bestmate = false
  787. function bestmates()
  788. attack = true
  789. bestmate = true
  790. Humanoid.WalkSpeed = 3
  791. Humanoid.JumpPower = 10
  792. bestmatess:Play()
  793. local light = Instance.new("PointLight", Torso)
  794. light.Color = Color3.new(0, 255, 255)
  795. k:Pause()
  796. Head.face.Texture = "rbxassetid://21024598"
  797. while bestmate == true do
  798. change = 0.8
  799. swait()
  800. light.Range = bestmatess.PlaybackLoudness / 8
  801. light.Brightness = bestmatess.PlaybackLoudness / 25
  802. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-35 + 7 * math.sin(sine / 3) + bestmatess.PlaybackLoudness / 39), math.rad(0), math.rad(0 + 12 * math.sin(sine / 6))), 0.2)
  803. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.44 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
  804. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2)
  805. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(0 + 58.05 * math.sin(sine / 6))), 0.2)
  806. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.6, -0.4 + 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(15), math.rad(-1 + 13.05 * math.cos(sine / 6))), 0.2)
  807. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -0.4 - 0.54 * math.cos(sine / 6), -0.2) * CFrame.Angles(math.rad(30), math.rad(-15), math.rad(1 + 13.05 * math.cos(sine / 6))), 0.2)
  808. end
  809. if bestmate == false then
  810. attack = false
  811. k:Resume()
  812. Humanoid.WalkSpeed = 5
  813. Humanoid.JumpPower = 60
  814. light:Destroy()
  815. bestmatess:Stop()
  816. Head.face.Texture = "rbxassetid://164958099"
  817. end
  818. end
  819. mouse.KeyDown:connect(function(key)
  820. if key == "r" and attack == true then
  821. bestmate = false
  822. end
  823. end)
  824. mouse.KeyDown:connect(function(key)
  825. if key == "e" and attack == false then
  826. bestmates()
  827. end
  828. end)
  829. while true do
  830. swait()
  831. sine = sine + change
  832. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  833. local velderp = RootPart.Velocity.y
  834. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  835. if attack == true or attack == false then
  836. if attack == false then
  837. idle = idle + 1
  838. else
  839. idle = 0
  840. end
  841. if not (idle >= 500) or attack == false then
  842. end
  843. look = 0
  844. if 1 < RootPart.Velocity.y and hitfloor == nil then
  845. Anim = "Jump"
  846. if attack == false then
  847. change = 1
  848. look = 0
  849. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  850. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -0.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
  851. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
  852. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(50 - 2.05 * math.cos(sine / 5))), 0.1)
  853. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 + 2.05 * math.cos(sine / 5)), math.rad(0), math.rad(-50 + 2.05 * math.cos(sine / 5))), 0.1)
  854. if attack == false then
  855. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25 + 3.05 * math.cos(sine / 5)), math.rad(0), math.rad(0)), 0.1)
  856. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.7) * CFrame.Angles(math.rad(-12 + 3.05 * math.cos(sine / 5)), math.rad(-3), math.rad(0)), 0.1)
  857. end
  858. end
  859. elseif -1 > RootPart.Velocity.y and hitfloor == nil then
  860. Anim = "Fall"
  861. change = 1
  862. look = 0
  863. if attack == false then
  864. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  865. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  866. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1)
  867. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(40), math.rad(0), math.rad(0)), 0.1)
  869. end
  870. if attack == false then
  871. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1)
  872. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  873. end
  874. elseif torvel < 1 and hitfloor ~= nil and look <= 800 then
  875. Anim = "Idle"
  876. change = 1.2
  877. if attack == false and equip == false then
  878. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  879. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.06)
  880. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-1 + 2 * math.sin(sine / 40)), math.rad(0), math.rad(0)), 0.06)
  881. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 + 4 * math.sin(sine / 40)), math.rad(2.3 + 0.2 * math.cos(sine / 40))), 0.06)
  882. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.02 * math.sin(sine / 40), 0) * angles(math.rad(0 + 2 * math.cos(sine / 40)), math.rad(0 - 4 * math.sin(sine / 40)), math.rad(-2.3 - 0.2 * math.cos(sine / 40))), 0.06)
  883. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-1)), 0.06)
  884. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.04 * math.cos(sine / 40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(1)), 0.06)
  885. end
  886. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  887. Anim = "Walk"
  888. change = 0.7
  889. look = 0
  890. if attack == false and equip == false then
  891. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  892. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 + 0.14 * math.cos(sine / 5), -0.3) * angles(math.rad(-3 + 2 * math.cos(sine / 5)), math.rad(0 + 2 * math.cos(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 46), 0.08)
  893. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0 - 6 * math.sin(sine / 3.5)), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 13), 0.08)
  894. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 10)) * angles(math.rad(0 - 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(2 + 0 * math.sin(sine / 10)) - RootPart.RotVelocity.Y / 34), 0.08)
  895. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 10)) * angles(math.rad(0 + 26 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-2 + 0 * math.sin(sine / 10)) + RootPart.RotVelocity.Y / -34), 0.08)
  896. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.21 * math.cos(sine / 10), -0.03 + 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 - 25 * math.sin(sine / 10)), math.rad(0) - RootPart.RotVelocity.Y / -24, math.rad(0) + RootPart.RotVelocity.Y / -34), 0.08)
  897. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.21 * math.cos(sine / 10), -0.03 - 0.19 * math.cos(sine / 10)) * CFrame.Angles(math.rad(-8 + 25 * math.sin(sine / 10)), math.rad(0) + RootPart.RotVelocity.Y / 24, math.rad(0) - RootPart.RotVelocity.Y / 34), 0.08)
  898. end
  899. elseif torvel >= 22 and hitfloor ~= nil then
  900. Anim = "Run"
  901. look = 0
  902. change = 0.67 + Character.Humanoid.WalkSpeed / 112
  903. if attack == false and equip == false then
  904. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  905. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1 - 0.42 * math.cos(sine / 2.5), -0.8) * angles(math.rad(-20), math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 26), 0.1)
  906. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 20 * math.sin(sine / 2.5)), math.rad(0), math.rad(0 + 5 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 13), 0.1)
  907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0 + 0.34 * math.sin(sine / 5)) * angles(math.rad(0 - 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(4 + 2 * math.sin(sine / 5)) - RootPart.RotVelocity.Y / 34), 0.15)
  908. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0 - 0.34 * math.sin(sine / 5)) * angles(math.rad(0 + 60 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-4 + 2 * math.sin(sine / 5)) + RootPart.RotVelocity.Y / -34), 0.15)
  909. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 - 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) + RootPart.RotVelocity.Y / -54), 0.3)
  910. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.24 * math.cos(sine / 5)) * CFrame.Angles(math.rad(-5 + 67 * math.sin(sine / 5)), math.rad(0) + RootPart.RotVelocity.Y / 42, math.rad(0) - RootPart.RotVelocity.Y / 54), 0.3)
  911. end
  912. if attack == true and noleg == false then
  913. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.24 * math.cos(sine / 5), 0 + 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 - 65 * math.sin(sine / 5)), math.rad(3), math.rad(0)), 0.2)
  914. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.24 * math.cos(sine / 5), 0 - 0.32 * math.sin(sine / 5)) * CFrame.Angles(math.rad(0 + 65 * math.sin(sine / 5)), math.rad(-3), math.rad(0)), 0.2)
  915. end
  916. end
  917. end
  918. if 0 < #Effects then
  919. for e = 1, #Effects do
  920. if Effects[e] ~= nil then
  921. local Thing = Effects[e]
  922. if Thing ~= nil then
  923. local Part = Thing[1]
  924. local Mode = Thing[2]
  925. local Delay = Thing[3]
  926. local IncX = Thing[4]
  927. local IncY = Thing[5]
  928. local IncZ = Thing[6]
  929. if Thing[1].Transparency <= 1 then
  930. if Thing[2] == "Block1" then
  931. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  932. Mesh = Thing[1]:FindFirstChild("Mesh")
  933. if not Mesh then
  934. Mesh = Instance.new("BlockMesh")
  935. end
  936. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  937. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  938. elseif Thing[2] == "Cylinder" then
  939. Mesh = Thing[1]:FindFirstChild("Mesh")
  940. if not Mesh then
  941. Mesh = Instance.new("BlockMesh")
  942. end
  943. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  944. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  945. elseif Thing[2] == "Blood" then
  946. Mesh = Thing[1]:FindFirstChild("Mesh")
  947. if not Mesh then
  948. Mesh = Instance.new("BlockMesh")
  949. end
  950. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  951. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  952. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  953. elseif Thing[2] == "Elec" then
  954. Mesh = Thing[1]:FindFirstChild("Mesh")
  955. if not Mesh then
  956. Mesh = Instance.new("BlockMesh")
  957. end
  958. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  960. elseif Thing[2] == "Disappear" then
  961. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  962. end
  963. else
  964. Part.Parent = nil
  965. game:GetService("Debris"):AddItem(Part, 0)
  966. table.remove(Effects, e)
  967. end
  968. end
  969. end
  970. end
  971. end
  972. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement