Advertisement
Guest User

Untitled

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