Advertisement
wamandnj

Untitled

Jun 21st, 2019
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 : Exploding Noob ]]--
  144. -------------------------------------------------------
  145. --A script By makhail07
  146. --Footplanting added by Nebula_Zorua (Nebula the Zorua#6969)
  147. --some other stuufs added by kalepo36
  148.  
  149. --Discord Creterisk#2958
  150.  
  151. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY ####### IMAGINATION
  152. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  153. --DONT CALL IT A ####### BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  154. --YOU ####### #####,
  155. --For Those who log/decompile this, If you sell or trade this,
  156. --and I find out who you are, i will take massive action.
  157. -------------------------------------------------------
  158.  
  159. local FavIDs = {
  160. 340106355, --Nefl Crystals
  161. 927529620, --Dimension
  162. 876981900, --Fantasy
  163. 398987889, --Ordinary Days
  164. 1117396305, --Oh wait, it's you.
  165. 885996042, --Action Winter Journey
  166. 919231299, --Sprawling Idiot Effigy
  167. 743466274, --Good Day Sunshine
  168. 727411183, --Knife Fight
  169. 1402748531, --The Earth Is Counting On You!
  170. 595230126 --Robot Language
  171. }
  172.  
  173.  
  174.  
  175. --The reality of my life isn't real but a Universe -makhail07
  176. wait()
  177. local plr = game:service'Players'.LocalPlayer
  178. print('Local User is '..plr.Name)
  179. local char = plr.Character
  180. local hum = char.Humanoid
  181. local ra = char["Right Arm"]
  182. local la= char["Left Arm"]
  183. local rl= char["Right Leg"]
  184. local ll = char["Left Leg"]
  185. local hed = char.Head
  186. local root = char.HumanoidRootPart
  187. local rootj = root.RootJoint
  188. local tors = char.Torso
  189. local mouse = plr:GetMouse()
  190. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  191. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  192. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  193.  
  194. hed.face.Texture = "rbxassetid://641688284"
  195. -------------------------------------------------------
  196. --Start Good Stuff--
  197. -------------------------------------------------------
  198. CF = CFrame.new
  199. angles = CFrame.Angles
  200. attack = false
  201. Euler = CFrame.fromEulerAnglesXYZ
  202. Rad = math.rad
  203. IT = Instance.new
  204. BrickC = BrickColor.new
  205. Cos = math.cos
  206. Acos = math.acos
  207. Sin = math.sin
  208. Asin = math.asin
  209. Abs = math.abs
  210. Mrandom = math.random
  211. Floor = math.floor
  212. -------------------------------------------------------
  213. --End Good Stuff--
  214. -------------------------------------------------------
  215. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  216. RSH, LSH = nil, nil
  217. RW = Instance.new("Weld")
  218. LW = Instance.new("Weld")
  219. RH = tors["Right Hip"]
  220. LH = tors["Left Hip"]
  221. RSH = tors["Right Shoulder"]
  222. LSH = tors["Left Shoulder"]
  223. RSH.Parent = nil
  224. LSH.Parent = nil
  225. RW.Name = "RW"
  226. RW.Part0 = tors
  227. RW.C0 = CF(1.5, 0.5, 0)
  228. RW.C1 = CF(0, 0.5, 0)
  229. RW.Part1 = ra
  230. RW.Parent = tors
  231. LW.Name = "LW"
  232. LW.Part0 = tors
  233. LW.C0 = CF(-1.5, 0.5, 0)
  234. LW.C1 = CF(0, 0.5, 0)
  235. LW.Part1 = la
  236. LW.Parent = tors
  237. Effects = {}
  238.  
  239. -------------------------------------------------------
  240. --Start HeartBeat--
  241. -------------------------------------------------------
  242. ArtificialHB = Instance.new("BindableEvent", script)
  243. ArtificialHB.Name = "Heartbeat"
  244. script:WaitForChild("Heartbeat")
  245.  
  246. frame = 1 / 60
  247. tf = 0
  248. allowframeloss = false
  249. tossremainder = false
  250.  
  251.  
  252. lastframe = tick()
  253. script.Heartbeat:Fire()
  254.  
  255.  
  256. game:GetService("RunService").Heartbeat:connect(function(s, p)
  257. tf = tf + s
  258. if tf >= frame then
  259. if allowframeloss then
  260. script.Heartbeat:Fire()
  261. lastframe = tick()
  262. else
  263. for i = 1, math.floor(tf / frame) do
  264. script.Heartbeat:Fire()
  265. end
  266. lastframe = tick()
  267. end
  268. if tossremainder then
  269. tf = 0
  270. else
  271. tf = tf - frame * math.floor(tf / frame)
  272. end
  273. end
  274. end)
  275. -------------------------------------------------------
  276. --End HeartBeat--
  277. -------------------------------------------------------
  278.  
  279. -------------------------------------------------------
  280. --Start Important Functions--
  281. -------------------------------------------------------
  282.  
  283. function thread(f)
  284. coroutine.resume(coroutine.create(f))
  285. end
  286. function clerp(a, b, t)
  287. local qa = {
  288. QuaternionFromCFrame(a)
  289. }
  290. local qb = {
  291. QuaternionFromCFrame(b)
  292. }
  293. local ax, ay, az = a.x, a.y, a.z
  294. local bx, by, bz = b.x, b.y, b.z
  295. local _t = 1 - t
  296. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  297. end
  298. function QuaternionFromCFrame(cf)
  299. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  300. local trace = m00 + m11 + m22
  301. if trace > 0 then
  302. local s = math.sqrt(1 + trace)
  303. local recip = 0.5 / s
  304. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  305. else
  306. local i = 0
  307. if m00 < m11 then
  308. i = 1
  309. end
  310. if m22 > (i == 0 and m00 or m11) then
  311. i = 2
  312. end
  313. if i == 0 then
  314. local s = math.sqrt(m00 - m11 - m22 + 1)
  315. local recip = 0.5 / s
  316. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  317. elseif i == 1 then
  318. local s = math.sqrt(m11 - m22 - m00 + 1)
  319. local recip = 0.5 / s
  320. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  321. elseif i == 2 then
  322. local s = math.sqrt(m22 - m00 - m11 + 1)
  323. local recip = 0.5 / s
  324. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  325. end
  326. end
  327. end
  328. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  329. local xs, ys, zs = x + x, y + y, z + z
  330. local wx, wy, wz = w * xs, w * ys, w * zs
  331. local xx = x * xs
  332. local xy = x * ys
  333. local xz = x * zs
  334. local yy = y * ys
  335. local yz = y * zs
  336. local zz = z * zs
  337. 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))
  338. end
  339. function QuaternionSlerp(a, b, t)
  340. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  341. local startInterp, finishInterp
  342. if cosTheta >= 1.0E-4 then
  343. if 1 - cosTheta > 1.0E-4 then
  344. local theta = math.acos(cosTheta)
  345. local invSinTheta = 1 / Sin(theta)
  346. startInterp = Sin((1 - t) * theta) * invSinTheta
  347. finishInterp = Sin(t * theta) * invSinTheta
  348. else
  349. startInterp = 1 - t
  350. finishInterp = t
  351. end
  352. elseif 1 + cosTheta > 1.0E-4 then
  353. local theta = math.acos(-cosTheta)
  354. local invSinTheta = 1 / Sin(theta)
  355. startInterp = Sin((t - 1) * theta) * invSinTheta
  356. finishInterp = Sin(t * theta) * invSinTheta
  357. else
  358. startInterp = t - 1
  359. finishInterp = t
  360. end
  361. 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
  362. end
  363. function rayCast(Position, Direction, Range, Ignore)
  364. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  365. end
  366. local RbxUtility = LoadLibrary("RbxUtility")
  367. local Create = RbxUtility.Create
  368.  
  369.  
  370. local ArtificialHB = Instance.new("BindableEvent", script)
  371. ArtificialHB.Name = "Heartbeat"
  372.  
  373. script:WaitForChild("Heartbeat")
  374.  
  375. local tf = 0
  376. local allowframeloss = false
  377. local tossremainder = false
  378. local lastframe = tick()
  379. local frame = 1/60
  380. ArtificialHB:Fire()
  381.  
  382. game:GetService("RunService").Heartbeat:connect(function(s, p)
  383. tf = tf + s
  384. if tf >= frame then
  385. if allowframeloss then
  386. script.Heartbeat:Fire()
  387. lastframe = tick()
  388. else
  389. for i = 1, math.floor(tf / frame) do
  390. ArtificialHB:Fire()
  391. end
  392. lastframe = tick()
  393. end
  394. if tossremainder then
  395. tf = 0
  396. else
  397. tf = tf - frame * math.floor(tf / frame)
  398. end
  399. end
  400. end)
  401.  
  402. function swait(num)
  403. if num == 0 or num == nil then
  404. ArtificialHB.Event:wait()
  405. else
  406. for i = 0, num do
  407. ArtificialHB.Event:wait()
  408. end
  409. end
  410. end
  411.  
  412. -------------------------------------------------------
  413. --Start Damage Function--
  414. -------------------------------------------------------
  415. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  416. if hit.Parent == nil then
  417. return
  418. end
  419. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  420. for _, v in pairs(hit.Parent:children()) do
  421. if v:IsA("Humanoid") then
  422. h = v
  423. end
  424. end
  425. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  426.  
  427. hit.Parent:FindFirstChild("Head"):BreakJoints()
  428. end
  429.  
  430. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  431. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  432. if hit.Parent.DebounceHit.Value == true then
  433. return
  434. end
  435. end
  436. if insta == true then
  437. hit.Parent:FindFirstChild("Head"):BreakJoints()
  438. end
  439. local c = Create("ObjectValue"){
  440. Name = "creator",
  441. Value = game:service("Players").LocalPlayer,
  442. Parent = h,
  443. }
  444. game:GetService("Debris"):AddItem(c, .5)
  445. if HitSound ~= nil and HitPitch ~= nil then
  446. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  447. end
  448. local Damage = math.random(minim, maxim)
  449. local blocked = false
  450. local block = hit.Parent:findFirstChild("Block")
  451. if block ~= nil then
  452. if block.className == "IntValue" then
  453. if block.Value > 0 then
  454. blocked = true
  455. block.Value = block.Value - 1
  456. print(block.Value)
  457. end
  458. end
  459. end
  460. if blocked == false then
  461. h.Health = h.Health - Damage
  462. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  463. else
  464. h.Health = h.Health - (Damage / 2)
  465. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  466. end
  467. if Type == "Knockdown" then
  468. local hum = hit.Parent.Humanoid
  469. hum.PlatformStand = true
  470. coroutine.resume(coroutine.create(function(HHumanoid)
  471. swait(1)
  472. HHumanoid.PlatformStand = false
  473. end), hum)
  474. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  475. local bodvol = Create("BodyVelocity"){
  476. velocity = angle * knockback,
  477. P = 5000,
  478. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  479. Parent = hit,
  480. }
  481. local rl = Create("BodyAngularVelocity"){
  482. P = 3000,
  483. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  484. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  485. Parent = hit,
  486. }
  487. game:GetService("Debris"):AddItem(bodvol, .5)
  488. game:GetService("Debris"):AddItem(rl, .5)
  489. elseif Type == "Normal" then
  490. local vp = Create("BodyVelocity"){
  491. P = 500,
  492. maxForce = Vector3.new(math.huge, 0, math.huge),
  493. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  494. }
  495. if knockback > 0 then
  496. vp.Parent = hit.Parent.Torso
  497. end
  498. game:GetService("Debris"):AddItem(vp, .5)
  499. elseif Type == "Up" then
  500. local bodyVelocity = Create("BodyVelocity"){
  501. velocity = Vector3.new(0, 20, 0),
  502. P = 5000,
  503. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  504. Parent = hit,
  505. }
  506. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  507. elseif Type == "DarkUp" then
  508. coroutine.resume(coroutine.create(function()
  509. for i = 0, 1, 0.1 do
  510. swait()
  511. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  512. end
  513. end))
  514. local bodyVelocity = Create("BodyVelocity"){
  515. velocity = Vector3.new(0, 20, 0),
  516. P = 5000,
  517. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  518. Parent = hit,
  519. }
  520. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  521. elseif Type == "Snare" then
  522. local bp = Create("BodyPosition"){
  523. P = 2000,
  524. D = 100,
  525. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  526. position = hit.Parent.Torso.Position,
  527. Parent = hit.Parent.Torso,
  528. }
  529. game:GetService("Debris"):AddItem(bp, 1)
  530. elseif Type == "Freeze" then
  531. local BodPos = Create("BodyPosition"){
  532. P = 50000,
  533. D = 1000,
  534. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  535. position = hit.Parent.Torso.Position,
  536. Parent = hit.Parent.Torso,
  537. }
  538. local BodGy = Create("BodyGyro") {
  539. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  540. P = 20e+003,
  541. Parent = hit.Parent.Torso,
  542. cframe = hit.Parent.Torso.CFrame,
  543. }
  544. hit.Parent.Torso.Anchored = true
  545. coroutine.resume(coroutine.create(function(Part)
  546. swait(1.5)
  547. Part.Anchored = false
  548. end), hit.Parent.Torso)
  549. game:GetService("Debris"):AddItem(BodPos, 3)
  550. game:GetService("Debris"):AddItem(BodGy, 3)
  551. end
  552. local debounce = Create("BoolValue"){
  553. Name = "DebounceHit",
  554. Parent = hit.Parent,
  555. Value = true,
  556. }
  557. game:GetService("Debris"):AddItem(debounce, Delay)
  558. c = Create("ObjectValue"){
  559. Name = "creator",
  560. Value = Player,
  561. Parent = h,
  562. }
  563. game:GetService("Debris"):AddItem(c, .5)
  564. end
  565. end
  566. -------------------------------------------------------
  567. --End Damage Function--
  568. -------------------------------------------------------
  569.  
  570. -------------------------------------------------------
  571. --Start Damage Function Customization--
  572. -------------------------------------------------------
  573. function ShowDamage(Pos, Text, Time, Color)
  574. local Rate = (1 / 30)
  575. local Pos = (Pos or Vector3.new(0, 0, 0))
  576. local Text = (Text or "")
  577. local Time = (Time or 2)
  578. local Color = (Color or Color3.new(1, 0, 1))
  579. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  580. EffectPart.Anchored = true
  581. local BillboardGui = Create("BillboardGui"){
  582. Size = UDim2.new(3, 0, 3, 0),
  583. Adornee = EffectPart,
  584. Parent = EffectPart,
  585. }
  586. local TextLabel = Create("TextLabel"){
  587. BackgroundTransparency = 1,
  588. Size = UDim2.new(1, 0, 1, 0),
  589. Text = Text,
  590. Font = "Bodoni",
  591. TextColor3 = Color,
  592. TextScaled = true,
  593. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  594. Parent = BillboardGui,
  595. }
  596. game.Debris:AddItem(EffectPart, (Time))
  597. EffectPart.Parent = game:GetService("Workspace")
  598. delay(0, function()
  599. local Frames = (Time / Rate)
  600. for Frame = 1, Frames do
  601. wait(Rate)
  602. local Percent = (Frame / Frames)
  603. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  604. TextLabel.TextTransparency = Percent
  605. end
  606. if EffectPart and EffectPart.Parent then
  607. EffectPart:Destroy()
  608. end
  609. end)
  610. end
  611. -------------------------------------------------------
  612. --End Damage Function Customization--
  613. -------------------------------------------------------
  614.  
  615. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  616. for _, c in pairs(workspace:children()) do
  617. local hum = c:findFirstChild("Humanoid")
  618. if hum ~= nil then
  619. local head = c:findFirstChild("Head")
  620. if head ~= nil then
  621. local targ = head.Position - Part.Position
  622. local mag = targ.magnitude
  623. if magni >= mag and c.Name ~= plr.Name then
  624. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  625. end
  626. end
  627. end
  628. end
  629. end
  630.  
  631.  
  632. CFuncs = {
  633. Part = {
  634. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  635. local Part = Create("Part")({
  636. Parent = Parent,
  637. Reflectance = Reflectance,
  638. Transparency = Transparency,
  639. CanCollide = false,
  640. Locked = true,
  641. BrickColor = BrickColor.new(tostring(BColor)),
  642. Name = Name,
  643. Size = Size,
  644. Material = Material
  645. })
  646. RemoveOutlines(Part)
  647. return Part
  648. end
  649. },
  650. Mesh = {
  651. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  652. local Msh = Create(Mesh)({
  653. Parent = Part,
  654. Offset = OffSet,
  655. Scale = Scale
  656. })
  657. if Mesh == "SpecialMesh" then
  658. Msh.MeshType = MeshType
  659. Msh.MeshId = MeshId
  660. end
  661. return Msh
  662. end
  663. },
  664. Mesh = {
  665. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  666. local Msh = Create(Mesh)({
  667. Parent = Part,
  668. Offset = OffSet,
  669. Scale = Scale
  670. })
  671. if Mesh == "SpecialMesh" then
  672. Msh.MeshType = MeshType
  673. Msh.MeshId = MeshId
  674. end
  675. return Msh
  676. end
  677. },
  678. Weld = {
  679. Create = function(Parent, Part0, Part1, C0, C1)
  680. local Weld = Create("Weld")({
  681. Parent = Parent,
  682. Part0 = Part0,
  683. Part1 = Part1,
  684. C0 = C0,
  685. C1 = C1
  686. })
  687. return Weld
  688. end
  689. },
  690. Sound = {
  691. Create = function(id, par, vol, pit)
  692. coroutine.resume(coroutine.create(function()
  693. local S = Create("Sound")({
  694. Volume = vol,
  695. Pitch = pit or 1,
  696. SoundId = id,
  697. Parent = par or workspace
  698. })
  699. wait()
  700. S:play()
  701. game:GetService("Debris"):AddItem(S, 6)
  702. end))
  703. end
  704. },
  705. ParticleEmitter = {
  706. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  707. local fp = Create("ParticleEmitter")({
  708. Parent = Parent,
  709. Color = ColorSequence.new(Color1, Color2),
  710. LightEmission = LightEmission,
  711. Size = Size,
  712. Texture = Texture,
  713. Transparency = Transparency,
  714. ZOffset = ZOffset,
  715. Acceleration = Accel,
  716. Drag = Drag,
  717. LockedToPart = LockedToPart,
  718. VelocityInheritance = VelocityInheritance,
  719. EmissionDirection = EmissionDirection,
  720. Enabled = Enabled,
  721. Lifetime = LifeTime,
  722. Rate = Rate,
  723. Rotation = Rotation,
  724. RotSpeed = RotSpeed,
  725. Speed = Speed,
  726. VelocitySpread = VelocitySpread
  727. })
  728. return fp
  729. end
  730. }
  731. }
  732. function RemoveOutlines(part)
  733. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  734. end
  735. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  736. local Part = Create("Part")({
  737. formFactor = FormFactor,
  738. Parent = Parent,
  739. Reflectance = Reflectance,
  740. Transparency = Transparency,
  741. CanCollide = false,
  742. Locked = true,
  743. BrickColor = BrickColor.new(tostring(BColor)),
  744. Name = Name,
  745. Size = Size,
  746. Material = Material
  747. })
  748. RemoveOutlines(Part)
  749. return Part
  750. end
  751. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  752. local Msh = Create(Mesh)({
  753. Parent = Part,
  754. Offset = OffSet,
  755. Scale = Scale
  756. })
  757. if Mesh == "SpecialMesh" then
  758. Msh.MeshType = MeshType
  759. Msh.MeshId = MeshId
  760. end
  761. return Msh
  762. end
  763. function CreateWeld(Parent, Part0, Part1, C0, C1)
  764. local Weld = Create("Weld")({
  765. Parent = Parent,
  766. Part0 = Part0,
  767. Part1 = Part1,
  768. C0 = C0,
  769. C1 = C1
  770. })
  771. return Weld
  772. end
  773.  
  774.  
  775. -------------------------------------------------------
  776. --Start Effect Function--
  777. -------------------------------------------------------
  778. EffectModel = Instance.new("Model", char)
  779. Effects = {
  780. Block = {
  781. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  782. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  783. prt.Anchored = true
  784. prt.CFrame = cframe
  785. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  786. game:GetService("Debris"):AddItem(prt, 10)
  787. if Type == 1 or Type == nil then
  788. table.insert(Effects, {
  789. prt,
  790. "Block1",
  791. delay,
  792. x3,
  793. y3,
  794. z3,
  795. msh
  796. })
  797. elseif Type == 2 then
  798. table.insert(Effects, {
  799. prt,
  800. "Block2",
  801. delay,
  802. x3,
  803. y3,
  804. z3,
  805. msh
  806. })
  807. else
  808. table.insert(Effects, {
  809. prt,
  810. "Block3",
  811. delay,
  812. x3,
  813. y3,
  814. z3,
  815. msh
  816. })
  817. end
  818. end
  819. },
  820. Sphere = {
  821. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  822. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  823. prt.Anchored = true
  824. prt.CFrame = cframe
  825. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  826. game:GetService("Debris"):AddItem(prt, 10)
  827. table.insert(Effects, {
  828. prt,
  829. "Cylinder",
  830. delay,
  831. x3,
  832. y3,
  833. z3,
  834. msh
  835. })
  836. end
  837. },
  838. Cylinder = {
  839. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  840. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  841. prt.Anchored = true
  842. prt.CFrame = cframe
  843. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  844. game:GetService("Debris"):AddItem(prt, 10)
  845. table.insert(Effects, {
  846. prt,
  847. "Cylinder",
  848. delay,
  849. x3,
  850. y3,
  851. z3,
  852. msh
  853. })
  854. end
  855. },
  856. Wave = {
  857. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  858. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  859. prt.Anchored = true
  860. prt.CFrame = cframe
  861. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  862. game:GetService("Debris"):AddItem(prt, 10)
  863. table.insert(Effects, {
  864. prt,
  865. "Cylinder",
  866. delay,
  867. x3 / 60,
  868. y3 / 60,
  869. z3 / 60,
  870. msh
  871. })
  872. end
  873. },
  874. Ring = {
  875. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  876. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  877. prt.Anchored = true
  878. prt.CFrame = cframe
  879. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  880. game:GetService("Debris"):AddItem(prt, 10)
  881. table.insert(Effects, {
  882. prt,
  883. "Cylinder",
  884. delay,
  885. x3,
  886. y3,
  887. z3,
  888. msh
  889. })
  890. end
  891. },
  892. Break = {
  893. Create = function(brickcolor, cframe, x1, y1, z1)
  894. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  895. prt.Anchored = true
  896. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  897. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  898. local num = math.random(10, 50) / 1000
  899. game:GetService("Debris"):AddItem(prt, 10)
  900. table.insert(Effects, {
  901. prt,
  902. "Shatter",
  903. num,
  904. prt.CFrame,
  905. math.random() - math.random(),
  906. 0,
  907. math.random(50, 100) / 100
  908. })
  909. end
  910. },
  911. Spiral = {
  912. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  913. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  914. prt.Anchored = true
  915. prt.CFrame = cframe
  916. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  917. game:GetService("Debris"):AddItem(prt, 10)
  918. table.insert(Effects, {
  919. prt,
  920. "Cylinder",
  921. delay,
  922. x3,
  923. y3,
  924. z3,
  925. msh
  926. })
  927. end
  928. },
  929. Push = {
  930. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  931. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  932. prt.Anchored = true
  933. prt.CFrame = cframe
  934. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  935. game:GetService("Debris"):AddItem(prt, 10)
  936. table.insert(Effects, {
  937. prt,
  938. "Cylinder",
  939. delay,
  940. x3,
  941. y3,
  942. z3,
  943. msh
  944. })
  945. end
  946. }
  947. }
  948. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  949. local fp = IT("Part")
  950. fp.formFactor = formfactor
  951. fp.Parent = parent
  952. fp.Reflectance = reflectance
  953. fp.Transparency = transparency
  954. fp.CanCollide = false
  955. fp.Locked = true
  956. fp.BrickColor = brickcolor
  957. fp.Name = name
  958. fp.Size = size
  959. fp.Position = tors.Position
  960. RemoveOutlines(fp)
  961. fp.Material = "SmoothPlastic"
  962. fp:BreakJoints()
  963. return fp
  964. end
  965.  
  966. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  967. local mesh = IT(Mesh)
  968. mesh.Parent = part
  969. if Mesh == "SpecialMesh" then
  970. mesh.MeshType = meshtype
  971. if meshid ~= "nil" then
  972. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  973. end
  974. end
  975. mesh.Offset = offset
  976. mesh.Scale = scale
  977. return mesh
  978. end
  979.  
  980. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  981. local type = type
  982. local rng = Instance.new("Part", char)
  983. rng.Anchored = true
  984. rng.BrickColor = color
  985. rng.CanCollide = false
  986. rng.FormFactor = 3
  987. rng.Name = "Ring"
  988. rng.Material = "Neon"
  989. rng.Size = Vector3.new(1, 1, 1)
  990. rng.Transparency = 0
  991. rng.TopSurface = 0
  992. rng.BottomSurface = 0
  993. rng.CFrame = pos
  994. local rngm = Instance.new("SpecialMesh", rng)
  995. rngm.MeshType = MType
  996. rngm.Scale = scale
  997. local scaler2 = 1
  998. if type == "Add" then
  999. scaler2 = 1 * value
  1000. elseif type == "Divide" then
  1001. scaler2 = 1 / value
  1002. end
  1003. coroutine.resume(coroutine.create(function()
  1004. for i = 0, 10 / bonuspeed, 0.1 do
  1005. swait()
  1006. if type == "Add" then
  1007. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1008. elseif type == "Divide" then
  1009. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1010. end
  1011. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1012. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1013. end
  1014. rng:Destroy()
  1015. end))
  1016. end
  1017.  
  1018. function Eviscerate(dude)
  1019. if dude.Name ~= char then
  1020. local bgf = IT("BodyGyro", dude.Head)
  1021. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1022. local val = IT("BoolValue", dude)
  1023. val.Name = "IsHit"
  1024. local ds = coroutine.wrap(function()
  1025. dude:WaitForChild("Head"):BreakJoints()
  1026. wait(0.5)
  1027. target = nil
  1028. coroutine.resume(coroutine.create(function()
  1029. for i, v in pairs(dude:GetChildren()) do
  1030. if v:IsA("Accessory") then
  1031. v:Destroy()
  1032. end
  1033. if v:IsA("Humanoid") then
  1034. v:Destroy()
  1035. end
  1036. if v:IsA("CharacterMesh") then
  1037. v:Destroy()
  1038. end
  1039. if v:IsA("Model") then
  1040. v:Destroy()
  1041. end
  1042. if v:IsA("Part") or v:IsA("MeshPart") then
  1043. for x, o in pairs(v:GetChildren()) do
  1044. if o:IsA("Decal") then
  1045. o:Destroy()
  1046. end
  1047. end
  1048. coroutine.resume(coroutine.create(function()
  1049. v.Material = "Neon"
  1050. v.CanCollide = false
  1051. local PartEmmit1 = IT("ParticleEmitter", v)
  1052. PartEmmit1.LightEmission = 1
  1053. PartEmmit1.Texture = "rbxassetid://284205403"
  1054. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1055. PartEmmit1.Rate = 150
  1056. PartEmmit1.Lifetime = NumberRange.new(1)
  1057. PartEmmit1.Size = NumberSequence.new({
  1058. NumberSequenceKeypoint.new(0, 0.75, 0),
  1059. NumberSequenceKeypoint.new(1, 0, 0)
  1060. })
  1061. PartEmmit1.Transparency = NumberSequence.new({
  1062. NumberSequenceKeypoint.new(0, 0, 0),
  1063. NumberSequenceKeypoint.new(1, 1, 0)
  1064. })
  1065. PartEmmit1.Speed = NumberRange.new(0, 0)
  1066. PartEmmit1.VelocitySpread = 30000
  1067. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1068. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1069. local BodPoss = IT("BodyPosition", v)
  1070. BodPoss.P = 3000
  1071. BodPoss.D = 1000
  1072. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1073. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1074. v.Color = maincolor.Color
  1075. coroutine.resume(coroutine.create(function()
  1076. for i = 0, 49 do
  1077. swait(1)
  1078. v.Transparency = v.Transparency + 0.08
  1079. end
  1080. wait(0.5)
  1081. PartEmmit1.Enabled = false
  1082. wait(3)
  1083. v:Destroy()
  1084. dude:Destroy()
  1085. end))
  1086. end))
  1087. end
  1088. end
  1089. end))
  1090. end)
  1091. ds()
  1092. end
  1093. end
  1094.  
  1095. function FindNearestHead(Position, Distance, SinglePlayer)
  1096. if SinglePlayer then
  1097. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1098. end
  1099. local List = {}
  1100. for i, v in pairs(workspace:GetChildren()) do
  1101. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1102. table.insert(List, v)
  1103. end
  1104. end
  1105. return List
  1106. end
  1107.  
  1108. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1109. local type = type
  1110. local rng = Instance.new("Part", char)
  1111. rng.Anchored = true
  1112. rng.BrickColor = color
  1113. rng.CanCollide = false
  1114. rng.FormFactor = 3
  1115. rng.Name = "Ring"
  1116. rng.Material = "Neon"
  1117. rng.Size = Vector3.new(1, 1, 1)
  1118. rng.Transparency = 0
  1119. rng.TopSurface = 0
  1120. rng.BottomSurface = 0
  1121. rng.CFrame = pos
  1122. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1123. local rngm = Instance.new("SpecialMesh", rng)
  1124. rngm.MeshType = MType
  1125. rngm.Scale = Vector3.new(x1, y1, z1)
  1126. local scaler2 = 1
  1127. local speeder = FastSpeed
  1128. if type == "Add" then
  1129. scaler2 = 1 * value
  1130. elseif type == "Divide" then
  1131. scaler2 = 1 / value
  1132. end
  1133. coroutine.resume(coroutine.create(function()
  1134. for i = 0, 10 / bonuspeed, 0.1 do
  1135. swait()
  1136. if type == "Add" then
  1137. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1138. elseif type == "Divide" then
  1139. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1140. end
  1141. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1142. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1143. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1144. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1145. end
  1146. rng:Destroy()
  1147. end))
  1148. end
  1149.  
  1150. function SoulSteal(dude)
  1151. if dude.Name ~= char then
  1152. local bgf = IT("BodyGyro", dude.Head)
  1153. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1154. local val = IT("BoolValue", dude)
  1155. val.Name = "IsHit"
  1156. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1157. local soulst = coroutine.wrap(function()
  1158. local soul = Instance.new("Part",dude)
  1159. soul.Size = Vector3.new(1,1,1)
  1160. soul.CanCollide = false
  1161. soul.Anchored = false
  1162. soul.Position = torso.Position
  1163. soul.Transparency = 1
  1164. local PartEmmit1 = IT("ParticleEmitter", soul)
  1165. PartEmmit1.LightEmission = 1
  1166. PartEmmit1.Texture = "rbxassetid://569507414"
  1167. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1168. PartEmmit1.Rate = 250
  1169. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1170. PartEmmit1.Size = NumberSequence.new({
  1171. NumberSequenceKeypoint.new(0, 1, 0),
  1172. NumberSequenceKeypoint.new(1, 0, 0)
  1173. })
  1174. PartEmmit1.Transparency = NumberSequence.new({
  1175. NumberSequenceKeypoint.new(0, 0, 0),
  1176. NumberSequenceKeypoint.new(1, 1, 0)
  1177. })
  1178. PartEmmit1.Speed = NumberRange.new(0, 0)
  1179. PartEmmit1.VelocitySpread = 30000
  1180. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1181. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1182. local BodPoss = IT("BodyPosition", soul)
  1183. BodPoss.P = 3000
  1184. BodPoss.D = 1000
  1185. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1186. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1187. wait(1.6)
  1188. soul.Touched:connect(function(hit)
  1189. if hit.Parent == char then
  1190. soul:Destroy()
  1191. end
  1192. end)
  1193. wait(1.2)
  1194. while soul do
  1195. swait()
  1196. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1197. BodPoss.Position = tors.Position
  1198. end
  1199. end)
  1200. soulst()
  1201. end
  1202. end
  1203. function FaceMouse()
  1204. local Cam = workspace.CurrentCamera
  1205. return {
  1206. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1207. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1208. }
  1209. end
  1210. -------------------------------------------------------
  1211. --End Effect Function--
  1212. -------------------------------------------------------
  1213. function Cso(ID, PARENT, VOLUME, PITCH)
  1214. local NSound = nil
  1215. coroutine.resume(coroutine.create(function()
  1216. NSound = IT("Sound", PARENT)
  1217. NSound.Volume = VOLUME
  1218. NSound.Pitch = PITCH
  1219. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1220. swait()
  1221. NSound:play()
  1222. game:GetService("Debris"):AddItem(NSound, 10)
  1223. end))
  1224. return NSound
  1225. end
  1226.  
  1227. local BC = char["Body Colors"]
  1228. BC.HeadColor = BrickColor.new("Bright yellow")
  1229. BC.LeftArmColor = BrickColor.new("Bright yellow")
  1230. BC.LeftLegColor = BrickColor.new("Dark green")
  1231. BC.RightArmColor = BrickColor.new("Bright yellow")
  1232. BC.RightLegColor = BrickColor.new("Dark green")
  1233. BC.TorsoColor = BrickColor.new("Bright blue")
  1234.  
  1235. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1236. local Hitboxpart = Instance.new("Part", EffectModel)
  1237. RemoveOutlines(Hitboxpart)
  1238. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1239. Hitboxpart.CanCollide = false
  1240. Hitboxpart.Transparency = 1
  1241. Hitboxpart.Anchored = true
  1242. Hitboxpart.CFrame = Pose
  1243. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1244. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1245. end
  1246. -------------------------------------------------------
  1247. --End Important Functions--
  1248. -------------------------------------------------------
  1249.  
  1250.  
  1251. -------------------------------------------------------
  1252. --Start Music Option--
  1253. -------------------------------------------------------
  1254. local Music = Instance.new("Sound",hed)
  1255. Music.Volume = 5
  1256. Music.SoundId = "rbxassetid://1269180265"
  1257. Music.Looped = true
  1258. Music.Pitch = 1 --Pitcher
  1259. Music:Play()
  1260. -------------------------------------------------------
  1261. --End Music Option--
  1262. -------------------------------------------------------
  1263.  
  1264.  
  1265. -------------------------------------------------------
  1266. --Start Attacks N Stuff--
  1267. -------------------------------------------------------
  1268. local sine=0
  1269.  
  1270.  
  1271. -------------------------------------------------------
  1272. --End Attacks N Stuff--
  1273. -------------------------------------------------------
  1274. mouse.KeyDown:connect(function(key)
  1275. if attack == false then
  1276. if key == 'e' then
  1277. attack = true
  1278. hed.face.Texture = "http://www.roblox.com/asset/?id=2546735352"
  1279. Cso("1881610844",hed,2.5,1)
  1280. Cso("12221984",tors,5,1)
  1281. local Ex = Instance.new("Explosion")
  1282. Ex.Parent = tors
  1283. Ex.Position = tors.Position
  1284. end
  1285. end
  1286. end)
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293. -------------------------------------------------------
  1294. --Start Animations--
  1295. -------------------------------------------------------
  1296. local equipped = false
  1297. local idle = 0
  1298. local change = 1
  1299. local val = 0
  1300. local toim = 0
  1301. local idleanim = 0.4
  1302. hum.WalkSpeed = 35
  1303. hum.Animator.Parent = nil
  1304. while true do
  1305. swait()
  1306. sine = sine + change
  1307. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1308. local velderp = root.Velocity.y
  1309. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1310. if equipped == true or equipped == false then
  1311. if attack == false then
  1312. idle = idle + 1
  1313. else
  1314. idle = 0
  1315. end
  1316. local exactVel = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity))-- for footplanting
  1317. --you g00b my leg animations are complicated :joy:
  1318.  
  1319. if 1 < root.Velocity.y and hitfloor == nil then
  1320. Anim = "Jump"
  1321. if attack == false then
  1322. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1323. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 + -2.8 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1324. RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.5) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1325. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1326. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(10 + 4.5 * Sin(sine / 20))), 0.1)
  1327. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(-10 - 4.5 * Sin(sine / 20))), 0.1)
  1328. end
  1329. elseif -1 > root.Velocity.y and hitfloor == nil then
  1330. Anim = "Fall"
  1331. if attack == false then
  1332. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(0)), 0.15)
  1333. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 + -2.8 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1334. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-30), Rad(0), Rad(-30)), 0.15)
  1335. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-30), Rad(0), Rad(30)), 0.15)
  1336. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(170 + 4.5 * Sin(sine / 20))), 0.1)
  1337. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(-170 - 4.5 * Sin(sine / 20))), 0.1)
  1338. end
  1339. elseif torvel < 1 and hitfloor ~= nil then
  1340. Anim = "Idle"
  1341. change = .5
  1342. if attack == false then
  1343. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1344. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 + -2.8 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1345. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-20)), 0.15)
  1346. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(20)), 0.15)
  1347. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(10 + 4.5 * Sin(sine / 20))), 0.1)
  1348. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(-20), Rad(-.6), Rad(-10 - 4.5 * Sin(sine / 20))), 0.1)
  1349. end
  1350. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1351. Anim = "Walk"
  1352. change = .9
  1353. if attack == false then
  1354. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.375 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(-45 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1355. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-25 + -2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1356. RH.C0 = clerp(RH.C0, CF(1, -0.8, 0) * angles(Rad(-75 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1357. LH.C0 = clerp(LH.C0, CF(-1, -0.8, 0) * angles(Rad(75 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1358. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-110), Rad(0), Rad(10)), 0.1)
  1359. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-110), Rad(0), Rad(-10)), 0.1)
  1360. end
  1361. end
  1362. end
  1363. if 0 < #Effects then
  1364. for e = 1, #Effects do
  1365. if Effects[e] ~= nil then
  1366. local Thing = Effects[e]
  1367. if Thing ~= nil then
  1368. local Part = Thing[1]
  1369. local Mode = Thing[2]
  1370. local Delay = Thing[3]
  1371. local IncX = Thing[4]
  1372. local IncY = Thing[5]
  1373. local IncZ = Thing[6]
  1374. if 1 >= Thing[1].Transparency then
  1375. if Thing[2] == "Block1" then
  1376. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1377. local Mesh = Thing[1].Mesh
  1378. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1379. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1380. elseif Thing[2] == "Block2" then
  1381. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1382. local Mesh = Thing[7]
  1383. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1384. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1385. elseif Thing[2] == "Block3" then
  1386. 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)
  1387. local Mesh = Thing[7]
  1388. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1389. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1390. elseif Thing[2] == "Cylinder" then
  1391. local Mesh = Thing[1].Mesh
  1392. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1393. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1394. elseif Thing[2] == "Blood" then
  1395. local Mesh = Thing[7]
  1396. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1397. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1398. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1399. elseif Thing[2] == "Elec" then
  1400. local Mesh = Thing[1].Mesh
  1401. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1402. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1403. elseif Thing[2] == "Disappear" then
  1404. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1405. elseif Thing[2] == "Shatter" then
  1406. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1407. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1408. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1409. Thing[6] = Thing[6] + Thing[5]
  1410. end
  1411. else
  1412. Part.Parent = nil
  1413. table.remove(Effects, e)
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. end
  1420. -------------------------------------------------------
  1421. --End Animations And Script--
  1422. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement