DarkScriptZEditors

Chill

Jan 6th, 2019
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.40 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
  141.  
  142. -----------------------
  143. --[[ Name : Ema ]]--
  144. --[[ Description : Soothing ]]--
  145. --[[ \ None / ]]--
  146. -------------------------------------------------------
  147. --A script By Creterisk/makhail07
  148. --Discord Creterisk#2958
  149. -------------------------------------------------------
  150.  
  151. --Everything is Meaningless.....
  152.  
  153. wait(1 / 60)
  154.  
  155. local plr = game:service'Players'.LocalPlayer
  156. print('Local User is '..plr.Name)
  157. print('Ema Loaded')
  158. print('Just, a simple chill script.')
  159. local char = plr.Character
  160. local hum = char:FindFirstChildOfClass'Humanoid'
  161. local hed = char.Head
  162. local root = char:FindFirstChild'HumanoidRootPart'
  163. local rootj = root.RootJoint
  164. local tors = char.Torso
  165. local ra = char["Right Arm"]
  166. local la = char["Left Arm"]
  167. local rl = char["Right Leg"]
  168. local ll = char["Left Leg"]
  169. local neck = tors["Neck"]
  170. local mouse = plr:GetMouse()
  171. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  172. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  173. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  174. local maincolor = BrickColor.new("Institutional white")
  175. -------------------------------------------------------
  176. --Start Good Stuff--
  177. -------------------------------------------------------
  178. cam = game.Workspace.CurrentCamera
  179. CF = CFrame.new
  180. angles = CFrame.Angles
  181. attack = false
  182. Euler = CFrame.fromEulerAnglesXYZ
  183. Rad = math.rad
  184. IT = Instance.new
  185. BrickC = BrickColor.new
  186. Cos = math.cos
  187. Acos = math.acos
  188. Sin = math.sin
  189. Asin = math.asin
  190. Abs = math.abs
  191. Mrandom = math.random
  192. Floor = math.floor
  193. -------------------------------------------------------
  194. --End Good Stuff--
  195. -------------------------------------------------------
  196. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  197. RSH, LSH = nil, nil
  198. RW = Instance.new("Weld")
  199. LW = Instance.new("Weld")
  200. RH = tors["Right Hip"]
  201. LH = tors["Left Hip"]
  202. RSH = tors["Right Shoulder"]
  203. LSH = tors["Left Shoulder"]
  204. RSH.Parent = nil
  205. LSH.Parent = nil
  206. RW.Name = "RW"
  207. RW.Part0 = tors
  208. RW.C0 = CF(1.5, 0.5, 0)
  209. RW.C1 = CF(0, 0.5, 0)
  210. RW.Part1 = ra
  211. RW.Parent = tors
  212. LW.Name = "LW"
  213. LW.Part0 = tors
  214. LW.C0 = CF(-1.5, 0.5, 0)
  215. LW.C1 = CF(0, 0.5, 0)
  216. LW.Part1 = la
  217. LW.Parent = tors
  218. Effects = {}
  219. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  220. local wld = Instance.new("Weld", wp1)
  221. wld.Part0 = wp0
  222. wld.Part1 = wp1
  223. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  224. end
  225. newWeld(tors, ll, -0.5, -1, 0)
  226. ll.Weld.C1 = CFrame.new(0, 1, 0)
  227. newWeld(tors, rl, 0.5, -1, 0)
  228. rl.Weld.C1 = CFrame.new(0, 1, 0)
  229. -------------------------------------------------------
  230. --Start HeartBeat--
  231. -------------------------------------------------------
  232. ArtificialHB = Instance.new("BindableEvent", script)
  233. ArtificialHB.Name = "Heartbeat"
  234. script:WaitForChild("Heartbeat")
  235.  
  236. frame = 1 / 60
  237. tf = 0
  238. allowframeloss = false
  239. tossremainder = false
  240.  
  241.  
  242. lastframe = tick()
  243. script.Heartbeat:Fire()
  244.  
  245.  
  246. game:GetService("RunService").Heartbeat:connect(function(s, p)
  247. tf = tf + s
  248. if tf >= frame then
  249. if allowframeloss then
  250. script.Heartbeat:Fire()
  251. lastframe = tick()
  252. else
  253. for i = 1, math.floor(tf / frame) do
  254. script.Heartbeat:Fire()
  255. end
  256. lastframe = tick()
  257. end
  258. if tossremainder then
  259. tf = 0
  260. else
  261. tf = tf - frame * math.floor(tf / frame)
  262. end
  263. end
  264. end)
  265. -------------------------------------------------------
  266. --End HeartBeat--
  267. -------------------------------------------------------
  268.  
  269. -------------------------------------------------------
  270. --Start Important Functions--
  271. -------------------------------------------------------
  272. function swait(num)
  273. if num == 0 or num == nil then
  274. game:service("RunService").Stepped:wait(0)
  275. else
  276. for i = 0, num do
  277. game:service("RunService").Stepped:wait(0)
  278. end
  279. end
  280. end
  281. function thread(f)
  282. coroutine.resume(coroutine.create(f))
  283. end
  284. function clerp(a, b, t)
  285. local qa = {
  286. QuaternionFromCFrame(a)
  287. }
  288. local qb = {
  289. QuaternionFromCFrame(b)
  290. }
  291. local ax, ay, az = a.x, a.y, a.z
  292. local bx, by, bz = b.x, b.y, b.z
  293. local _t = 1 - t
  294. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  295. end
  296. function QuaternionFromCFrame(cf)
  297. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  298. local trace = m00 + m11 + m22
  299. if trace > 0 then
  300. local s = math.sqrt(1 + trace)
  301. local recip = 0.5 / s
  302. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  303. else
  304. local i = 0
  305. if m00 < m11 then
  306. i = 1
  307. end
  308. if m22 > (i == 0 and m00 or m11) then
  309. i = 2
  310. end
  311. if i == 0 then
  312. local s = math.sqrt(m00 - m11 - m22 + 1)
  313. local recip = 0.5 / s
  314. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  315. elseif i == 1 then
  316. local s = math.sqrt(m11 - m22 - m00 + 1)
  317. local recip = 0.5 / s
  318. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  319. elseif i == 2 then
  320. local s = math.sqrt(m22 - m00 - m11 + 1)
  321. local recip = 0.5 / s
  322. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  323. end
  324. end
  325. end
  326. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  327. local xs, ys, zs = x + x, y + y, z + z
  328. local wx, wy, wz = w * xs, w * ys, w * zs
  329. local xx = x * xs
  330. local xy = x * ys
  331. local xz = x * zs
  332. local yy = y * ys
  333. local yz = y * zs
  334. local zz = z * zs
  335. 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))
  336. end
  337. function QuaternionSlerp(a, b, t)
  338. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  339. local startInterp, finishInterp
  340. if cosTheta >= 1.0E-4 then
  341. if 1 - cosTheta > 1.0E-4 then
  342. local theta = math.acos(cosTheta)
  343. local invSinTheta = 1 / Sin(theta)
  344. startInterp = Sin((1 - t) * theta) * invSinTheta
  345. finishInterp = Sin(t * theta) * invSinTheta
  346. else
  347. startInterp = 1 - t
  348. finishInterp = t
  349. end
  350. elseif 1 + cosTheta > 1.0E-4 then
  351. local theta = math.acos(-cosTheta)
  352. local invSinTheta = 1 / Sin(theta)
  353. startInterp = Sin((t - 1) * theta) * invSinTheta
  354. finishInterp = Sin(t * theta) * invSinTheta
  355. else
  356. startInterp = t - 1
  357. finishInterp = t
  358. end
  359. 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
  360. end
  361. function rayCast(Position, Direction, Range, Ignore)
  362. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  363. end
  364. local RbxUtility = LoadLibrary("RbxUtility")
  365. local Create = RbxUtility.Create
  366.  
  367. -------------------------------------------------------
  368. --Start Damage Function--
  369. -------------------------------------------------------
  370. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  371. if hit.Parent == nil then
  372. return
  373. end
  374. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  375. for _, v in pairs(hit.Parent:children()) do
  376. if v:IsA("Humanoid") then
  377. h = v
  378. end
  379. end
  380. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  381.  
  382. hit.Parent:FindFirstChild("Head"):BreakJoints()
  383. end
  384.  
  385. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  386. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  387. if hit.Parent.DebounceHit.Value == true then
  388. return
  389. end
  390. end
  391. if insta == true then
  392. hit.Parent:FindFirstChild("Head"):BreakJoints()
  393. end
  394. local c = Create("ObjectValue"){
  395. Name = "creator",
  396. Value = game:service("Players").LocalPlayer,
  397. Parent = h,
  398. }
  399. game:GetService("Debris"):AddItem(c, .5)
  400. if HitSound ~= nil and HitPitch ~= nil then
  401. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  402. end
  403. local Damage = math.random(minim, maxim)
  404. local blocked = false
  405. local block = hit.Parent:findFirstChild("Block")
  406. if block ~= nil then
  407. if block.className == "IntValue" then
  408. if block.Value > 0 then
  409. blocked = true
  410. block.Value = block.Value - 1
  411. print(block.Value)
  412. end
  413. end
  414. end
  415. if blocked == false then
  416. h.Health = h.Health - Damage
  417. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  418. else
  419. h.Health = h.Health - (Damage / 2)
  420. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  421. end
  422. if Type == "Knockdown" then
  423. local hum = hit.Parent.Humanoid
  424. hum.PlatformStand = true
  425. coroutine.resume(coroutine.create(function(HHumanoid)
  426. swait(1)
  427. HHumanoid.PlatformStand = false
  428. end), hum)
  429. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  430. local bodvol = Create("BodyVelocity"){
  431. velocity = angle * knockback,
  432. P = 5000,
  433. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  434. Parent = hit,
  435. }
  436. local rl = Create("BodyAngularVelocity"){
  437. P = 3000,
  438. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  439. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  440. Parent = hit,
  441. }
  442. game:GetService("Debris"):AddItem(bodvol, .5)
  443. game:GetService("Debris"):AddItem(rl, .5)
  444. elseif Type == "Normal" then
  445. local vp = Create("BodyVelocity"){
  446. P = 500,
  447. maxForce = Vector3.new(math.huge, 0, math.huge),
  448. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  449. }
  450. if knockback > 0 then
  451. vp.Parent = hit.Parent.Torso
  452. end
  453. game:GetService("Debris"):AddItem(vp, .5)
  454. elseif Type == "Up" then
  455. local bodyVelocity = Create("BodyVelocity"){
  456. velocity = Vector3.new(0, 20, 0),
  457. P = 5000,
  458. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  459. Parent = hit,
  460. }
  461. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  462. elseif Type == "DarkUp" then
  463. coroutine.resume(coroutine.create(function()
  464. for i = 0, 1, 0.1 do
  465. swait()
  466. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  467. end
  468. end))
  469. local bodyVelocity = Create("BodyVelocity"){
  470. velocity = Vector3.new(0, 20, 0),
  471. P = 5000,
  472. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  473. Parent = hit,
  474. }
  475. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  476. elseif Type == "Snare" then
  477. local bp = Create("BodyPosition"){
  478. P = 2000,
  479. D = 100,
  480. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  481. position = hit.Parent.Torso.Position,
  482. Parent = hit.Parent.Torso,
  483. }
  484. game:GetService("Debris"):AddItem(bp, 1)
  485. elseif Type == "Freeze" then
  486. local BodPos = Create("BodyPosition"){
  487. P = 50000,
  488. D = 1000,
  489. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  490. position = hit.Parent.Torso.Position,
  491. Parent = hit.Parent.Torso,
  492. }
  493. local BodGy = Create("BodyGyro") {
  494. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  495. P = 20e+003,
  496. Parent = hit.Parent.Torso,
  497. cframe = hit.Parent.Torso.CFrame,
  498. }
  499. hit.Parent.Torso.Anchored = true
  500. coroutine.resume(coroutine.create(function(Part)
  501. swait(1.5)
  502. Part.Anchored = false
  503. end), hit.Parent.Torso)
  504. game:GetService("Debris"):AddItem(BodPos, 3)
  505. game:GetService("Debris"):AddItem(BodGy, 3)
  506. end
  507. local debounce = Create("BoolValue"){
  508. Name = "DebounceHit",
  509. Parent = hit.Parent,
  510. Value = true,
  511. }
  512. game:GetService("Debris"):AddItem(debounce, Delay)
  513. c = Create("ObjectValue"){
  514. Name = "creator",
  515. Value = Player,
  516. Parent = h,
  517. }
  518. game:GetService("Debris"):AddItem(c, .5)
  519. end
  520. end
  521. -------------------------------------------------------
  522. --End Damage Function--
  523. -------------------------------------------------------
  524.  
  525. -------------------------------------------------------
  526. --Start Damage Function Customization--
  527. -------------------------------------------------------
  528. function ShowDamage(Pos, Text, Time, Color)
  529. local Rate = (1 / 30)
  530. local Pos = (Pos or Vector3.new(0, 0, 0))
  531. local Text = (Text or "")
  532. local Time = (Time or 2)
  533. local Color = (Color or Color3.new(1, 0, 1))
  534. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  535. EffectPart.Anchored = true
  536. local BillboardGui = Create("BillboardGui"){
  537. Size = UDim2.new(3, 0, 3, 0),
  538. Adornee = EffectPart,
  539. Parent = EffectPart,
  540. }
  541. local TextLabel = Create("TextLabel"){
  542. BackgroundTransparency = 1,
  543. Size = UDim2.new(1, 0, 1, 0),
  544. Text = Text,
  545. Font = "Bodoni",
  546. TextColor3 = Color,
  547. TextScaled = true,
  548. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  549. Parent = BillboardGui,
  550. }
  551. game.Debris:AddItem(EffectPart, (Time))
  552. EffectPart.Parent = game:GetService("Workspace")
  553. delay(0, function()
  554. local Frames = (Time / Rate)
  555. for Frame = 1, Frames do
  556. wait(Rate)
  557. local Percent = (Frame / Frames)
  558. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  559. TextLabel.TextTransparency = Percent
  560. end
  561. if EffectPart and EffectPart.Parent then
  562. EffectPart:Destroy()
  563. end
  564. end)
  565. end
  566. -------------------------------------------------------
  567. --End Damage Function Customization--
  568. -------------------------------------------------------
  569.  
  570. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  571. for _, c in pairs(workspace:children()) do
  572. local hum = c:findFirstChild("Humanoid")
  573. if hum ~= nil then
  574. local head = c:findFirstChild("Head")
  575. if head ~= nil then
  576. local targ = head.Position - Part.Position
  577. local mag = targ.magnitude
  578. if magni >= mag and c.Name ~= plr.Name then
  579. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  580. end
  581. end
  582. end
  583. end
  584. end
  585.  
  586.  
  587. CFuncs = {
  588. Part = {
  589. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  590. local Part = Create("Part")({
  591. Parent = Parent,
  592. Reflectance = Reflectance,
  593. Transparency = Transparency,
  594. CanCollide = false,
  595. Locked = true,
  596. BrickColor = BrickColor.new(tostring(BColor)),
  597. Name = Name,
  598. Size = Size,
  599. Material = Material
  600. })
  601. RemoveOutlines(Part)
  602. return Part
  603. end
  604. },
  605. Mesh = {
  606. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  607. local Msh = Create(Mesh)({
  608. Parent = Part,
  609. Offset = OffSet,
  610. Scale = Scale
  611. })
  612. if Mesh == "SpecialMesh" then
  613. Msh.MeshType = MeshType
  614. Msh.MeshId = MeshId
  615. end
  616. return Msh
  617. end
  618. },
  619. Mesh = {
  620. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  621. local Msh = Create(Mesh)({
  622. Parent = Part,
  623. Offset = OffSet,
  624. Scale = Scale
  625. })
  626. if Mesh == "SpecialMesh" then
  627. Msh.MeshType = MeshType
  628. Msh.MeshId = MeshId
  629. end
  630. return Msh
  631. end
  632. },
  633. Weld = {
  634. Create = function(Parent, Part0, Part1, C0, C1)
  635. local Weld = Create("Weld")({
  636. Parent = Parent,
  637. Part0 = Part0,
  638. Part1 = Part1,
  639. C0 = C0,
  640. C1 = C1
  641. })
  642. return Weld
  643. end
  644. },
  645. Sound = {
  646. Create = function(id, par, vol, pit)
  647. coroutine.resume(coroutine.create(function()
  648. local S = Create("Sound")({
  649. Volume = vol,
  650. Pitch = pit or 1,
  651. SoundId = id,
  652. Parent = par or workspace
  653. })
  654. wait()
  655. S:play()
  656. game:GetService("Debris"):AddItem(S, 6)
  657. end))
  658. end
  659. },
  660. ParticleEmitter = {
  661. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  662. local fp = Create("ParticleEmitter")({
  663. Parent = Parent,
  664. Color = ColorSequence.new(Color1, Color2),
  665. LightEmission = LightEmission,
  666. Size = Size,
  667. Texture = Texture,
  668. Transparency = Transparency,
  669. ZOffset = ZOffset,
  670. Acceleration = Accel,
  671. Drag = Drag,
  672. LockedToPart = LockedToPart,
  673. VelocityInheritance = VelocityInheritance,
  674. EmissionDirection = EmissionDirection,
  675. Enabled = Enabled,
  676. Lifetime = LifeTime,
  677. Rate = Rate,
  678. Rotation = Rotation,
  679. RotSpeed = RotSpeed,
  680. Speed = Speed,
  681. VelocitySpread = VelocitySpread
  682. })
  683. return fp
  684. end
  685. }
  686. }
  687. function RemoveOutlines(part)
  688. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  689. end
  690. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  691. local Part = Create("Part")({
  692. formFactor = FormFactor,
  693. Parent = Parent,
  694. Reflectance = Reflectance,
  695. Transparency = Transparency,
  696. CanCollide = false,
  697. Locked = true,
  698. BrickColor = BrickColor.new(tostring(BColor)),
  699. Name = Name,
  700. Size = Size,
  701. Material = Material
  702. })
  703. RemoveOutlines(Part)
  704. return Part
  705. end
  706. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  707. local Msh = Create(Mesh)({
  708. Parent = Part,
  709. Offset = OffSet,
  710. Scale = Scale
  711. })
  712. if Mesh == "SpecialMesh" then
  713. Msh.MeshType = MeshType
  714. Msh.MeshId = MeshId
  715. end
  716. return Msh
  717. end
  718. function CreateWeld(Parent, Part0, Part1, C0, C1)
  719. local Weld = Create("Weld")({
  720. Parent = Parent,
  721. Part0 = Part0,
  722. Part1 = Part1,
  723. C0 = C0,
  724. C1 = C1
  725. })
  726. return Weld
  727. end
  728.  
  729.  
  730. -------------------------------------------------------
  731. --Start Effect Function--
  732. -------------------------------------------------------
  733. EffectModel = Instance.new("Model", char)
  734. Effects = {
  735. Block = {
  736. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  737. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  738. prt.Anchored = true
  739. prt.CFrame = cframe
  740. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. game:GetService("Debris"):AddItem(prt, 10)
  742. if Type == 1 or Type == nil then
  743. table.insert(Effects, {
  744. prt,
  745. "Block1",
  746. delay,
  747. x3,
  748. y3,
  749. z3,
  750. msh
  751. })
  752. elseif Type == 2 then
  753. table.insert(Effects, {
  754. prt,
  755. "Block2",
  756. delay,
  757. x3,
  758. y3,
  759. z3,
  760. msh
  761. })
  762. else
  763. table.insert(Effects, {
  764. prt,
  765. "Block3",
  766. delay,
  767. x3,
  768. y3,
  769. z3,
  770. msh
  771. })
  772. end
  773. end
  774. },
  775. Sphere = {
  776. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  777. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  778. prt.Anchored = true
  779. prt.CFrame = cframe
  780. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  781. game:GetService("Debris"):AddItem(prt, 10)
  782. table.insert(Effects, {
  783. prt,
  784. "Cylinder",
  785. delay,
  786. x3,
  787. y3,
  788. z3,
  789. msh
  790. })
  791. end
  792. },
  793. Cylinder = {
  794. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  795. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  796. prt.Anchored = true
  797. prt.CFrame = cframe
  798. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  799. game:GetService("Debris"):AddItem(prt, 10)
  800. table.insert(Effects, {
  801. prt,
  802. "Cylinder",
  803. delay,
  804. x3,
  805. y3,
  806. z3,
  807. msh
  808. })
  809. end
  810. },
  811. Wave = {
  812. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  813. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  814. prt.Anchored = true
  815. prt.CFrame = cframe
  816. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  817. game:GetService("Debris"):AddItem(prt, 10)
  818. table.insert(Effects, {
  819. prt,
  820. "Cylinder",
  821. delay,
  822. x3 / 60,
  823. y3 / 60,
  824. z3 / 60,
  825. msh
  826. })
  827. end
  828. },
  829. Ring = {
  830. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  831. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  832. prt.Anchored = true
  833. prt.CFrame = cframe
  834. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  835. game:GetService("Debris"):AddItem(prt, 10)
  836. table.insert(Effects, {
  837. prt,
  838. "Cylinder",
  839. delay,
  840. x3,
  841. y3,
  842. z3,
  843. msh
  844. })
  845. end
  846. },
  847. Break = {
  848. Create = function(brickcolor, cframe, x1, y1, z1)
  849. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  850. prt.Anchored = true
  851. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  852. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  853. local num = math.random(10, 50) / 1000
  854. game:GetService("Debris"):AddItem(prt, 10)
  855. table.insert(Effects, {
  856. prt,
  857. "Shatter",
  858. num,
  859. prt.CFrame,
  860. math.random() - math.random(),
  861. 0,
  862. math.random(50, 100) / 100
  863. })
  864. end
  865. },
  866. Spiral = {
  867. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  868. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  869. prt.Anchored = true
  870. prt.CFrame = cframe
  871. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  872. game:GetService("Debris"):AddItem(prt, 10)
  873. table.insert(Effects, {
  874. prt,
  875. "Cylinder",
  876. delay,
  877. x3,
  878. y3,
  879. z3,
  880. msh
  881. })
  882. end
  883. },
  884. Push = {
  885. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  886. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  887. prt.Anchored = true
  888. prt.CFrame = cframe
  889. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  890. game:GetService("Debris"):AddItem(prt, 10)
  891. table.insert(Effects, {
  892. prt,
  893. "Cylinder",
  894. delay,
  895. x3,
  896. y3,
  897. z3,
  898. msh
  899. })
  900. end
  901. }
  902. }
  903. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  904. local fp = IT("Part")
  905. fp.formFactor = formfactor
  906. fp.Parent = parent
  907. fp.Reflectance = reflectance
  908. fp.Transparency = transparency
  909. fp.CanCollide = false
  910. fp.Locked = true
  911. fp.BrickColor = brickcolor
  912. fp.Name = name
  913. fp.Size = size
  914. fp.Position = tors.Position
  915. RemoveOutlines(fp)
  916. fp.Material = "SmoothPlastic"
  917. fp:BreakJoints()
  918. return fp
  919. end
  920.  
  921. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  922. local mesh = IT(Mesh)
  923. mesh.Parent = part
  924. if Mesh == "SpecialMesh" then
  925. mesh.MeshType = meshtype
  926. if meshid ~= "nil" then
  927. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  928. end
  929. end
  930. mesh.Offset = offset
  931. mesh.Scale = scale
  932. return mesh
  933. end
  934.  
  935. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  936. local type = type
  937. local rng = Instance.new("Part", char)
  938. rng.Anchored = true
  939. rng.BrickColor = color
  940. rng.CanCollide = false
  941. rng.FormFactor = 3
  942. rng.Name = "Ring"
  943. rng.Material = "Neon"
  944. rng.Size = Vector3.new(1, 1, 1)
  945. rng.Transparency = 0
  946. rng.TopSurface = 0
  947. rng.BottomSurface = 0
  948. rng.CFrame = pos
  949. local rngm = Instance.new("SpecialMesh", rng)
  950. rngm.MeshType = MType
  951. rngm.Scale = scale
  952. local scaler2 = 1
  953. if type == "Add" then
  954. scaler2 = 1 * value
  955. elseif type == "Divide" then
  956. scaler2 = 1 / value
  957. end
  958. coroutine.resume(coroutine.create(function()
  959. for i = 0, 10 / bonuspeed, 0.1 do
  960. swait()
  961. if type == "Add" then
  962. scaler2 = scaler2 - 0.01 * value / bonuspeed
  963. elseif type == "Divide" then
  964. scaler2 = scaler2 - 0.01 / value * bonuspeed
  965. end
  966. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  967. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  968. end
  969. rng:Destroy()
  970. end))
  971. end
  972.  
  973. function Eviscerate(dude)
  974. if dude.Name ~= char then
  975. local bgf = IT("BodyGyro", dude.Head)
  976. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  977. local val = IT("BoolValue", dude)
  978. val.Name = "IsHit"
  979. local ds = coroutine.wrap(function()
  980. dude:WaitForChild("Head"):BreakJoints()
  981. wait(0.5)
  982. target = nil
  983. coroutine.resume(coroutine.create(function()
  984. for i, v in pairs(dude:GetChildren()) do
  985. if v:IsA("Accessory") then
  986. v:Destroy()
  987. end
  988. if v:IsA("Humanoid") then
  989. v:Destroy()
  990. end
  991. if v:IsA("CharacterMesh") then
  992. v:Destroy()
  993. end
  994. if v:IsA("Model") then
  995. v:Destroy()
  996. end
  997. if v:IsA("Part") or v:IsA("MeshPart") then
  998. for x, o in pairs(v:GetChildren()) do
  999. if o:IsA("Decal") then
  1000. o:Destroy()
  1001. end
  1002. end
  1003. coroutine.resume(coroutine.create(function()
  1004. v.Material = "Neon"
  1005. v.CanCollide = false
  1006. local PartEmmit1 = IT("ParticleEmitter", v)
  1007. PartEmmit1.LightEmission = 1
  1008. PartEmmit1.Texture = "rbxassetid://284205403"
  1009. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1010. PartEmmit1.Rate = 150
  1011. PartEmmit1.Lifetime = NumberRange.new(1)
  1012. PartEmmit1.Size = NumberSequence.new({
  1013. NumberSequenceKeypoint.new(0, 0.75, 0),
  1014. NumberSequenceKeypoint.new(1, 0, 0)
  1015. })
  1016. PartEmmit1.Transparency = NumberSequence.new({
  1017. NumberSequenceKeypoint.new(0, 0, 0),
  1018. NumberSequenceKeypoint.new(1, 1, 0)
  1019. })
  1020. PartEmmit1.Speed = NumberRange.new(0, 0)
  1021. PartEmmit1.VelocitySpread = 30000
  1022. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1023. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1024. local BodPoss = IT("BodyPosition", v)
  1025. BodPoss.P = 3000
  1026. BodPoss.D = 1000
  1027. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1028. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1029. v.Color = maincolor.Color
  1030. coroutine.resume(coroutine.create(function()
  1031. for i = 0, 49 do
  1032. swait(1)
  1033. v.Transparency = v.Transparency + 0.08
  1034. end
  1035. wait(0.5)
  1036. PartEmmit1.Enabled = false
  1037. wait(3)
  1038. v:Destroy()
  1039. dude:Destroy()
  1040. end))
  1041. end))
  1042. end
  1043. end
  1044. end))
  1045. end)
  1046. ds()
  1047. end
  1048. end
  1049.  
  1050. function FindNearestHead(Position, Distance, SinglePlayer)
  1051. if SinglePlayer then
  1052. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1053. end
  1054. local List = {}
  1055. for i, v in pairs(workspace:GetChildren()) do
  1056. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1057. table.insert(List, v)
  1058. end
  1059. end
  1060. return List
  1061. end
  1062.  
  1063. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1064. local type = type
  1065. local rng = Instance.new("Part", char)
  1066. rng.Anchored = true
  1067. rng.BrickColor = color
  1068. rng.CanCollide = false
  1069. rng.FormFactor = 3
  1070. rng.Name = "Ring"
  1071. rng.Material = "Neon"
  1072. rng.Size = Vector3.new(1, 1, 1)
  1073. rng.Transparency = 0
  1074. rng.TopSurface = 0
  1075. rng.BottomSurface = 0
  1076. rng.CFrame = pos
  1077. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1078. local rngm = Instance.new("SpecialMesh", rng)
  1079. rngm.MeshType = MType
  1080. rngm.Scale = Vector3.new(x1, y1, z1)
  1081. local scaler2 = 1
  1082. local speeder = FastSpeed
  1083. if type == "Add" then
  1084. scaler2 = 1 * value
  1085. elseif type == "Divide" then
  1086. scaler2 = 1 / value
  1087. end
  1088. coroutine.resume(coroutine.create(function()
  1089. for i = 0, 10 / bonuspeed, 0.1 do
  1090. swait()
  1091. if type == "Add" then
  1092. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1093. elseif type == "Divide" then
  1094. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1095. end
  1096. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1097. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1098. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1099. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1100. end
  1101. rng:Destroy()
  1102. end))
  1103. end
  1104.  
  1105. function SoulSteal(dude)
  1106. if dude.Name ~= char then
  1107. local bgf = IT("BodyGyro", dude.Head)
  1108. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1109. local val = IT("BoolValue", dude)
  1110. val.Name = "IsHit"
  1111. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1112. local soulst = coroutine.wrap(function()
  1113. local soul = Instance.new("Part",dude)
  1114. soul.Size = Vector3.new(1,1,1)
  1115. soul.CanCollide = false
  1116. soul.Anchored = false
  1117. soul.Position = torso.Position
  1118. soul.Transparency = 1
  1119. local PartEmmit1 = IT("ParticleEmitter", soul)
  1120. PartEmmit1.LightEmission = 1
  1121. PartEmmit1.Texture = "rbxassetid://569507414"
  1122. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1123. PartEmmit1.Rate = 250
  1124. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1125. PartEmmit1.Size = NumberSequence.new({
  1126. NumberSequenceKeypoint.new(0, 1, 0),
  1127. NumberSequenceKeypoint.new(1, 0, 0)
  1128. })
  1129. PartEmmit1.Transparency = NumberSequence.new({
  1130. NumberSequenceKeypoint.new(0, 0, 0),
  1131. NumberSequenceKeypoint.new(1, 1, 0)
  1132. })
  1133. PartEmmit1.Speed = NumberRange.new(0, 0)
  1134. PartEmmit1.VelocitySpread = 30000
  1135. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1136. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1137. local BodPoss = IT("BodyPosition", soul)
  1138. BodPoss.P = 3000
  1139. BodPoss.D = 1000
  1140. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1141. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1142. wait(1.6)
  1143. soul.Touched:connect(function(hit)
  1144. if hit.Parent == char then
  1145. soul:Destroy()
  1146. end
  1147. end)
  1148. wait(1.2)
  1149. while soul do
  1150. swait()
  1151. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1152. BodPoss.Position = tors.Position
  1153. end
  1154. end)
  1155. soulst()
  1156. end
  1157. end
  1158. function FaceMouse()
  1159. local Cam = workspace.CurrentCamera
  1160. return {
  1161. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1162. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1163. }
  1164. end
  1165. Effects = {
  1166. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  1167. local p = Instance.new("Part",EffectModel)
  1168. p.BrickColor = BrickColor.new(colour)
  1169. p.Size = partsize
  1170. p.Anchored = true
  1171. p.CanCollide = false
  1172. p.Material = matr
  1173. p.CFrame = cf
  1174. if inverse == true then
  1175. p.Transparency = 1
  1176. else
  1177. p.Transparency = 0
  1178. end
  1179. local m = Instance.new("BlockMesh",p)
  1180. m.Scale = meshstart
  1181. coroutine.wrap(function()
  1182. for i = 0, 1, factor do
  1183. swait()
  1184. if inverse == true then
  1185. p.Transparency = 1-i
  1186. else
  1187. p.Transparency = i
  1188. end
  1189. m.Scale = m.Scale + meshadd
  1190. if spin == true then
  1191. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1192. end
  1193. end
  1194. p:Destroy()
  1195. end)()
  1196. return p
  1197. end,
  1198. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1199. local p = Instance.new("Part",EffectModel)
  1200. p.BrickColor = BrickColor.new(colour)
  1201. p.Size = partsize
  1202. p.Anchored = true
  1203. p.CanCollide = false
  1204. p.Material = matr
  1205. p.CFrame = cf
  1206. if inverse == true then
  1207. p.Transparency = 1
  1208. else
  1209. p.Transparency = 0
  1210. end
  1211. local m = Instance.new("SpecialMesh",p)
  1212. m.MeshType = "Sphere"
  1213. m.Scale = meshstart
  1214. coroutine.wrap(function()
  1215. for i=0,1,factor do
  1216. swait()
  1217. if inverse == true then
  1218. p.Transparency = 1-i
  1219. else
  1220. p.Transparency = i
  1221. end
  1222. m.Scale = m.Scale + meshadd
  1223. end
  1224. p:Destroy()
  1225. end)()
  1226. return p
  1227. end,
  1228.  
  1229. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1230. local p = Instance.new("Part",EffectModel)
  1231. p.BrickColor = BrickColor.new(colour)
  1232. p.Size = partsize
  1233. p.Anchored = true
  1234. p.CanCollide = false
  1235. p.Material = matr
  1236. p.CFrame = cf
  1237. if inverse == true then
  1238. p.Transparency = 1
  1239. else
  1240. p.Transparency = 0
  1241. end
  1242. local m = Instance.new("CylinderMesh",p)
  1243. m.Scale = meshstart
  1244. coroutine.wrap(function()
  1245. for i=0,1,factor do
  1246. swait()
  1247. if inverse == true then
  1248. p.Transparency = 1-i
  1249. else
  1250. p.Transparency = i
  1251. end
  1252. m.Scale = m.Scale + meshadd
  1253. end
  1254. p:Destroy()
  1255. end)()
  1256. return p
  1257. end,
  1258.  
  1259. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  1260. local p = Instance.new("Part",EffectModel)
  1261. p.BrickColor = BrickColor.new(colour)
  1262. p.Size = Vector3.new()
  1263. p.Anchored = true
  1264. p.CanCollide = false
  1265. p.CFrame = cf
  1266. if inverse == true then
  1267. p.Transparency = 1
  1268. else
  1269. p.Transparency = 0
  1270. end
  1271. local m = Instance.new("SpecialMesh",p)
  1272. m.MeshId = "rbxassetid://20329976"
  1273. m.Scale = meshstart
  1274. coroutine.wrap(function()
  1275. for i=0,1,factor do
  1276. swait()
  1277. if inverse == true then
  1278. p.Transparency = 1-i
  1279. else
  1280. p.Transparency = i
  1281. end
  1282. m.Scale = m.Scale + meshadd
  1283. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  1284. end
  1285. p:Destroy()
  1286. end)()
  1287. return p
  1288. end,
  1289.  
  1290. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  1291. local p = Instance.new("Part",EffectModel)
  1292. p.BrickColor = BrickColor.new(colour)
  1293. p.Size = Vector3.new()
  1294. p.Anchored = true
  1295. p.CanCollide = false
  1296. p.CFrame = cf
  1297. if inverse == true then
  1298. p.Transparency = 1
  1299. else
  1300. p.Transparency = 0
  1301. end
  1302. local m = Instance.new("SpecialMesh",p)
  1303. m.MeshId = "rbxassetid://3270017"
  1304. m.Scale = meshstart
  1305. coroutine.wrap(function()
  1306. for i=0,1,factor do
  1307. swait()
  1308. if inverse == true then
  1309. p.Transparency = 1-i
  1310. else
  1311. p.Transparency = i
  1312. end
  1313. m.Scale = m.Scale + meshadd
  1314. end
  1315. p:Destroy()
  1316. end)()
  1317. return p
  1318. end,
  1319.  
  1320. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  1321. local p = Instance.new("Part",EffectModel)
  1322. p.BrickColor = BrickColor.new(colour)
  1323. p.Size = Vector3.new()
  1324. p.Anchored = true
  1325. p.CanCollide = false
  1326. p.CFrame = cf
  1327. if inverse == true then
  1328. p.Transparency = 1
  1329. else
  1330. p.Transparency = 0
  1331. end
  1332. local m = Instance.new("SpecialMesh",p)
  1333. m.MeshId = meshid
  1334. m.TextureId = textid
  1335. m.Scale = meshstart
  1336. coroutine.wrap(function()
  1337. for i=0,1,factor do
  1338. swait()
  1339. if inverse == true then
  1340. p.Transparency = 1-i
  1341. else
  1342. p.Transparency = i
  1343. end
  1344. m.Scale = m.Scale + meshadd
  1345. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  1346. end
  1347. p:Destroy()
  1348. end)()
  1349. return p
  1350. end,
  1351.  
  1352. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  1353. local p = Instance.new("Part",EffectModel)
  1354. p.BrickColor = BrickColor.new(colour)
  1355. p.Size = partsize
  1356. p.Anchored = true
  1357. p.CanCollide = false
  1358. p.Material = matr
  1359. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1360. if inverse == true then
  1361. p.Transparency = 1
  1362. else
  1363. p.Transparency = 0
  1364. end
  1365. local m = Instance.new("SpecialMesh",p)
  1366. m.MeshType = "Sphere"
  1367. m.Scale = meshstart
  1368. coroutine.wrap(function()
  1369. for i=0,1,factor do
  1370. swait()
  1371. if inverse == true then
  1372. p.Transparency = 1-i
  1373. else
  1374. p.Transparency = i
  1375. end
  1376. m.Scale = m.Scale + meshadd
  1377. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  1378. end
  1379. p:Destroy()
  1380. end)()
  1381. return p
  1382. end,
  1383.  
  1384. }
  1385. -------------------------------------------------------
  1386. --End Effect Function--
  1387. -------------------------------------------------------
  1388. function Cso(ID, PARENT, VOLUME, PITCH)
  1389. local NSound = nil
  1390. coroutine.resume(coroutine.create(function()
  1391. NSound = IT("Sound", PARENT)
  1392. NSound.Volume = VOLUME
  1393. NSound.Pitch = PITCH
  1394. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1395. swait()
  1396. NSound:play()
  1397. game:GetService("Debris"):AddItem(NSound, 10)
  1398. end))
  1399. return NSound
  1400. end
  1401. function CamShake(Length, Intensity)
  1402. coroutine.resume(coroutine.create(function()
  1403. local intensity = 1 * Intensity
  1404. local rotM = 0.01 * Intensity
  1405. for i = 0, Length, 0.1 do
  1406. swait()
  1407. intensity = intensity - 0.05 * Intensity / Length
  1408. rotM = rotM - 5.0E-4 * Intensity / Length
  1409. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1410. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1411. end
  1412. hum.CameraOffset = Vector3.new(0, 0, 0)
  1413. end))
  1414. end
  1415. NewInstance = function(instance,parent,properties)
  1416. local inst = Instance.new(instance)
  1417. inst.Parent = parent
  1418. if(properties)then
  1419. for i,v in next, properties do
  1420. pcall(function() inst[i] = v end)
  1421. end
  1422. end
  1423. return inst;
  1424. end
  1425.  
  1426. -------------------------------------------------------
  1427. --End Important Functions--
  1428. -------------------------------------------------------
  1429.  
  1430.  
  1431. -------------------------------------------------------
  1432. --Start Customization--
  1433. -------------------------------------------------------
  1434. local Player_Size = 1
  1435. if Player_Size ~= 1 then
  1436. root.Size = root.Size * Player_Size
  1437. tors.Size = tors.Size * Player_Size
  1438. hed.Size = hed.Size * Player_Size
  1439. ra.Size = ra.Size * Player_Size
  1440. la.Size = la.Size * Player_Size
  1441. rl.Size = rl.Size * Player_Size
  1442. ll.Size = ll.Size * Player_Size
  1443. ----------------------------------------------------------------------------------
  1444. rootj.Parent = root
  1445. neck.Parent = tors
  1446. RW.Parent = tors
  1447. LW.Parent = tors
  1448. RH.Parent = tors
  1449. LH.Parent = tors
  1450. ----------------------------------------------------------------------------------
  1451. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1452. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1453. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1454. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1455. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1456. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1457. ----------------------------------------------------------------------------------
  1458. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1459. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1460. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1461. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1462. --hat.Parent = Character
  1463. end
  1464. ----------------------------------------------------------------------------------
  1465. local SONG = 0
  1466. local SONG2 = 0
  1467. local Music = Instance.new("Sound",tors)
  1468. Music.Volume = 2.5
  1469. Music.Looped = true
  1470. Music.Pitch = 1 --Pitcher
  1471. ----------------------------------------------------------------------------------
  1472. local equipped = false
  1473. local idle = 0
  1474. local change = 1
  1475. local val = 0
  1476. local toim = 0
  1477. local idleanim = 0.4
  1478. local sine = 0
  1479. local Sit = 1
  1480. local movelegs = false
  1481. local Speed = 36
  1482. ----------------------------------------------------------------------------------
  1483. hum.JumpPower = 55
  1484. hum.Animator.Parent = nil
  1485. -------------------------------------------------------
  1486. --End Customization--
  1487. -------------------------------------------------------
  1488.  
  1489.  
  1490. -------------------------------------------------------
  1491. --Start Attacks N Stuff--
  1492. -------------------------------------------------------
  1493.  
  1494. -------------------------------------------------------
  1495. --End Attacks N Stuff--
  1496. -------------------------------------------------------
  1497. mouse.KeyDown:connect(function(key)
  1498. if attack == false then
  1499. if key == "1" then
  1500. SONG = 2039029608
  1501. Music:Play()
  1502. elseif key == "2" then
  1503. SONG = 492070484
  1504. Music:Play()
  1505. elseif key == "3" then
  1506. SONG = 1117396305
  1507. Music:Play()
  1508. elseif key == "4" then
  1509. SONG = 1352579034
  1510. Music:Play()
  1511. elseif key == "5" then
  1512. SONG = 936471491
  1513. Music:Play()
  1514. elseif key == "6" then
  1515. SONG = 985221372
  1516. Music:Play()
  1517. end
  1518. end
  1519. end)
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528. -------------------------------------------------------
  1529. --Start Animations--
  1530. -------------------------------------------------------
  1531. print("By Makhail07")
  1532. coroutine.resume(coroutine.create(function()
  1533. while true do
  1534. swait(15)
  1535. Effects.Block(ra.CFrame * CF(0, -1, 0),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Really red",true,false,.1)
  1536. Effects.Block(la.CFrame * CF(0, -1, 0),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Lime green",true,false,.1)
  1537. Effects.Block(rl.CFrame * CF(0, -1, 0),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright blue",true,false,.1)
  1538. Effects.Block(ll.CFrame * CF(0, -1, 0),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Royal purple",true,false,.1)
  1539. end
  1540. end))
  1541. while true do
  1542. swait()
  1543. sine = sine + change
  1544. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1545. local velderp = root.Velocity.y
  1546. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1547. if equipped == true or equipped == false then
  1548. if attack == false then
  1549. idle = idle + 1
  1550. else
  1551. idle = 0
  1552. end
  1553. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  1554. if torvel < 1 then
  1555. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.6 * Cos(sine / 20)) * angles(Rad(-40 + 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.15)
  1556. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1557. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(0), Rad(15), Rad(0)) * angles(Rad(-25 + 8 * Sin(sine / 20)), Rad(0), Rad(5)), 0.1)
  1558. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-20), Rad(0)) * angles(Rad(5 + 8 * Sin(sine / 20)), Rad(0), Rad(-5)), 0.1)
  1559. RW.C0 = clerp(RW.C0, CF(1.1, 0.8 + 0.1 * Sin(sine / 20), 0) * angles(Rad(-145), Rad(-20 - 7.5 * Sin(sine / 20)), Rad(-35 + 4.5 * Sin(sine / 20))), 0.1)
  1560. LW.C0 = clerp(LW.C0, CF(-1.1, 0.8 + 0.1 * Sin(sine / 20), 0) * angles(Rad(-145), Rad(20 + 7.5 * Sin(sine / 20)), Rad(35 - 4.5 * Sin(sine / 20))), 0.1)
  1561. elseif torvel > 1 then
  1562. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.6 * Cos(sine / 20)) * angles(Rad(45 + 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.15)
  1563. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-15 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1564. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(-25), Rad(0), Rad(5)), 0.1)
  1565. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(-25), Rad(0), Rad(-5)), 0.1)
  1566. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Sin(sine / 20), 0) * angles(Rad(-20 - 7.5 * Sin(sine / 20)), Rad(-20 - 7.5 * Sin(sine / 20)), Rad(23 + 4.5 * Sin(sine / 20))), 0.1)
  1567. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Sin(sine / 20), 0) * angles(Rad(-20 - 7.5 * Sin(sine / 20)), Rad(20 + 7.5 * Sin(sine / 20)), Rad(-23 - 4.5 * Sin(sine / 20))), 0.1)
  1568. end
  1569. end
  1570. hum.WalkSpeed = Speed
  1571. Music.SoundId = "rbxassetid://"..SONG
  1572. Music.Looped = true
  1573. Music.Pitch = 1
  1574. Music.Volume = 1.5
  1575. Music.Parent = tors
  1576. Music.Playing = true
  1577. if 0 < #Effects then
  1578. for e = 1, #Effects do
  1579. if Effects[e] ~= nil then
  1580. local Thing = Effects[e]
  1581. if Thing ~= nil then
  1582. local Part = Thing[1]
  1583. local Mode = Thing[2]
  1584. local Delay = Thing[3]
  1585. local IncX = Thing[4]
  1586. local IncY = Thing[5]
  1587. local IncZ = Thing[6]
  1588. if 1 >= Thing[1].Transparency then
  1589. if Thing[2] == "Block1" then
  1590. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1591. local Mesh = Thing[1].Mesh
  1592. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1593. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1594. elseif Thing[2] == "Block2" then
  1595. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1596. local Mesh = Thing[7]
  1597. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1598. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1599. elseif Thing[2] == "Block3" then
  1600. 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)
  1601. local Mesh = Thing[7]
  1602. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1603. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1604. elseif Thing[2] == "Cylinder" then
  1605. local Mesh = Thing[1].Mesh
  1606. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1607. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1608. elseif Thing[2] == "Blood" then
  1609. local Mesh = Thing[7]
  1610. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1611. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1612. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1613. elseif Thing[2] == "Elec" then
  1614. local Mesh = Thing[1].Mesh
  1615. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1616. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1617. elseif Thing[2] == "Disappear" then
  1618. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1619. elseif Thing[2] == "Shatter" then
  1620. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1621. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1622. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1623. Thing[6] = Thing[6] + Thing[5]
  1624. end
  1625. else
  1626. Part.Parent = nil
  1627. table.remove(Effects, e)
  1628. end
  1629. end
  1630. end
  1631. end
  1632. end
  1633. end
  1634. -------------------------------------------------------
  1635. --End Animations And Script--
  1636. -------------------------------------------------------
Add Comment
Please, Sign In to add comment