Advertisement
RBLPlayer

No one's really around to HELP [FE]

Nov 19th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125. self._btrs[name] = self.Heartbeat:Connect(fun)
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143. -----------------------
  144. --[[ Name : Ņ̢̨͢͟ó͢ ̧͢ơ̶̶̶̢n͜͏ę̶̡͠'͏́́͞҉ş̨͏ ͜a͝҉r̵̷̛̛͟o̶̡͟͝ų̶̸̵͝ń͡͡͏̷d̀͜͟ ̵̡́́͜t̡̀͘o͏̀̕͡ ͢h͠͏e̵͢͜ļ̡͢͡ṕ̛͏.̷̧̨ ]]--
  145. -------------------------------------------------------
  146. --A script By makhail07
  147.  
  148. --Discord Creterisk#2958
  149.  
  150. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  151. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  152. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  153. --YOU FUCKING SKIDS,
  154. --For Those who log/decompile this, If you sell or trade this,
  155. --and I find out who you are, i will take massive action.
  156. -------------------------------------------------------
  157.  
  158. local FavIDs = {
  159. 340106355, --Nefl Crystals
  160. 927529620, --Dimension
  161. 876981900, --Fantasy
  162. 398987889, --Ordinary Days
  163. 1117396305, --Oh wait, it's you.
  164. 885996042, --Action Winter Journey
  165. 919231299, --Sprawling Idiot Effigy
  166. 743466274, --Good Day Sunshine
  167. 727411183, --Knife Fight
  168. 1402748531, --The Earth Is Counting On You!
  169. 595230126 --Robot Language
  170. }
  171.  
  172.  
  173.  
  174. --The reality of my life isn't real but a Universe -makhail07
  175. wait()
  176. local plr = game:service'Players'.LocalPlayer
  177. print('Local User is '..plr.Name)
  178. local char = plr.Character
  179. local hum = char.Humanoid
  180. local hed = char.Head
  181. local root = char.HumanoidRootPart
  182. local rootj = root.RootJoint
  183. local tors = char.Torso
  184. local ra = char["Right Arm"]
  185. local la = char["Left Arm"]
  186. local rl = char["Right Leg"]
  187. local ll = char["Left Leg"]
  188. local neck = tors["Neck"]
  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. local maincolor = BrickColor.new("Institutional white")
  194.  
  195. -------------------------------------------------------
  196. --Start Good Stuff--
  197. -------------------------------------------------------
  198. cam = game.Workspace.CurrentCamera
  199. CF = CFrame.new
  200. angles = CFrame.Angles
  201. attack = false
  202. Euler = CFrame.fromEulerAnglesXYZ
  203. Rad = math.rad
  204. IT = Instance.new
  205. BrickC = BrickColor.new
  206. Cos = math.cos
  207. Acos = math.acos
  208. Sin = math.sin
  209. Asin = math.asin
  210. Abs = math.abs
  211. Mrandom = math.random
  212. Floor = math.floor
  213. -------------------------------------------------------
  214. --End Good Stuff--
  215. -------------------------------------------------------
  216. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  217. RSH, LSH = nil, nil
  218. RW = Instance.new("Weld")
  219. LW = Instance.new("Weld")
  220. RH = tors["Right Hip"]
  221. LH = tors["Left Hip"]
  222. RSH = tors["Right Shoulder"]
  223. LSH = tors["Left Shoulder"]
  224. RSH.Parent = nil
  225. LSH.Parent = nil
  226. RW.Name = "RW"
  227. RW.Part0 = tors
  228. RW.C0 = CF(1.5, 0.5, 0)
  229. RW.C1 = CF(0, 0.5, 0)
  230. RW.Part1 = ra
  231. RW.Parent = tors
  232. LW.Name = "LW"
  233. LW.Part0 = tors
  234. LW.C0 = CF(-1.5, 0.5, 0)
  235. LW.C1 = CF(0, 0.5, 0)
  236. LW.Part1 = la
  237. LW.Parent = tors
  238. Effects = {}
  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. function swait(num)
  283. if num == 0 or num == nil then
  284. game:service("RunService").Stepped:wait(0)
  285. else
  286. for i = 0, num do
  287. game:service("RunService").Stepped:wait(0)
  288. end
  289. end
  290. end
  291. function thread(f)
  292. coroutine.resume(coroutine.create(f))
  293. end
  294. function clerp(a, b, t)
  295. local qa = {
  296. QuaternionFromCFrame(a)
  297. }
  298. local qb = {
  299. QuaternionFromCFrame(b)
  300. }
  301. local ax, ay, az = a.x, a.y, a.z
  302. local bx, by, bz = b.x, b.y, b.z
  303. local _t = 1 - t
  304. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  305. end
  306. function QuaternionFromCFrame(cf)
  307. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  308. local trace = m00 + m11 + m22
  309. if trace > 0 then
  310. local s = math.sqrt(1 + trace)
  311. local recip = 0.5 / s
  312. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  313. else
  314. local i = 0
  315. if m00 < m11 then
  316. i = 1
  317. end
  318. if m22 > (i == 0 and m00 or m11) then
  319. i = 2
  320. end
  321. if i == 0 then
  322. local s = math.sqrt(m00 - m11 - m22 + 1)
  323. local recip = 0.5 / s
  324. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  325. elseif i == 1 then
  326. local s = math.sqrt(m11 - m22 - m00 + 1)
  327. local recip = 0.5 / s
  328. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  329. elseif i == 2 then
  330. local s = math.sqrt(m22 - m00 - m11 + 1)
  331. local recip = 0.5 / s
  332. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  333. end
  334. end
  335. end
  336. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  337. local xs, ys, zs = x + x, y + y, z + z
  338. local wx, wy, wz = w * xs, w * ys, w * zs
  339. local xx = x * xs
  340. local xy = x * ys
  341. local xz = x * zs
  342. local yy = y * ys
  343. local yz = y * zs
  344. local zz = z * zs
  345. 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))
  346. end
  347. function QuaternionSlerp(a, b, t)
  348. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  349. local startInterp, finishInterp
  350. if cosTheta >= 1.0E-4 then
  351. if 1 - cosTheta > 1.0E-4 then
  352. local theta = math.acos(cosTheta)
  353. local invSinTheta = 1 / Sin(theta)
  354. startInterp = Sin((1 - t) * theta) * invSinTheta
  355. finishInterp = Sin(t * theta) * invSinTheta
  356. else
  357. startInterp = 1 - t
  358. finishInterp = t
  359. end
  360. elseif 1 + cosTheta > 1.0E-4 then
  361. local theta = math.acos(-cosTheta)
  362. local invSinTheta = 1 / Sin(theta)
  363. startInterp = Sin((t - 1) * theta) * invSinTheta
  364. finishInterp = Sin(t * theta) * invSinTheta
  365. else
  366. startInterp = t - 1
  367. finishInterp = t
  368. end
  369. 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
  370. end
  371. function rayCast(Position, Direction, Range, Ignore)
  372. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  373. end
  374. local RbxUtility = LoadLibrary("RbxUtility")
  375. local Create = RbxUtility.Create
  376.  
  377. -------------------------------------------------------
  378. --Start Damage Function--
  379. -------------------------------------------------------
  380. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  381. if hit.Parent == nil then
  382. return
  383. end
  384. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  385. for _, v in pairs(hit.Parent:children()) do
  386. if v:IsA("Humanoid") then
  387. h = v
  388. end
  389. end
  390. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  391.  
  392. hit.Parent:FindFirstChild("Head"):BreakJoints()
  393. end
  394.  
  395. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  396. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  397. if hit.Parent.DebounceHit.Value == true then
  398. return
  399. end
  400. end
  401. if insta == true then
  402. hit.Parent:FindFirstChild("Head"):BreakJoints()
  403. end
  404. local c = Create("ObjectValue"){
  405. Name = "creator",
  406. Value = game:service("Players").LocalPlayer,
  407. Parent = h,
  408. }
  409. game:GetService("Debris"):AddItem(c, .5)
  410. if HitSound ~= nil and HitPitch ~= nil then
  411. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  412. end
  413. local Damage = math.random(minim, maxim)
  414. local blocked = false
  415. local block = hit.Parent:findFirstChild("Block")
  416. if block ~= nil then
  417. if block.className == "IntValue" then
  418. if block.Value > 0 then
  419. blocked = true
  420. block.Value = block.Value - 1
  421. print(block.Value)
  422. end
  423. end
  424. end
  425. if blocked == false then
  426. h.Health = h.Health - Damage
  427. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  428. else
  429. h.Health = h.Health - (Damage / 2)
  430. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  431. end
  432. if Type == "Knockdown" then
  433. local hum = hit.Parent.Humanoid
  434. hum.PlatformStand = true
  435. coroutine.resume(coroutine.create(function(HHumanoid)
  436. swait(1)
  437. HHumanoid.PlatformStand = false
  438. end), hum)
  439. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  440. local bodvol = Create("BodyVelocity"){
  441. velocity = angle * knockback,
  442. P = 5000,
  443. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  444. Parent = hit,
  445. }
  446. local rl = Create("BodyAngularVelocity"){
  447. P = 3000,
  448. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  449. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  450. Parent = hit,
  451. }
  452. game:GetService("Debris"):AddItem(bodvol, .5)
  453. game:GetService("Debris"):AddItem(rl, .5)
  454. elseif Type == "Normal" then
  455. local vp = Create("BodyVelocity"){
  456. P = 500,
  457. maxForce = Vector3.new(math.huge, 0, math.huge),
  458. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  459. }
  460. if knockback > 0 then
  461. vp.Parent = hit.Parent.Torso
  462. end
  463. game:GetService("Debris"):AddItem(vp, .5)
  464. elseif Type == "Up" then
  465. local bodyVelocity = Create("BodyVelocity"){
  466. velocity = Vector3.new(0, 20, 0),
  467. P = 5000,
  468. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  469. Parent = hit,
  470. }
  471. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  472. elseif Type == "DarkUp" then
  473. coroutine.resume(coroutine.create(function()
  474. for i = 0, 1, 0.1 do
  475. swait()
  476. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  477. end
  478. end))
  479. local bodyVelocity = Create("BodyVelocity"){
  480. velocity = Vector3.new(0, 20, 0),
  481. P = 5000,
  482. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  483. Parent = hit,
  484. }
  485. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  486. elseif Type == "Snare" then
  487. local bp = Create("BodyPosition"){
  488. P = 2000,
  489. D = 100,
  490. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  491. position = hit.Parent.Torso.Position,
  492. Parent = hit.Parent.Torso,
  493. }
  494. game:GetService("Debris"):AddItem(bp, 1)
  495. elseif Type == "Freeze" then
  496. local BodPos = Create("BodyPosition"){
  497. P = 50000,
  498. D = 1000,
  499. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  500. position = hit.Parent.Torso.Position,
  501. Parent = hit.Parent.Torso,
  502. }
  503. local BodGy = Create("BodyGyro") {
  504. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  505. P = 20e+003,
  506. Parent = hit.Parent.Torso,
  507. cframe = hit.Parent.Torso.CFrame,
  508. }
  509. hit.Parent.Torso.Anchored = true
  510. coroutine.resume(coroutine.create(function(Part)
  511. swait(1.5)
  512. Part.Anchored = false
  513. end), hit.Parent.Torso)
  514. game:GetService("Debris"):AddItem(BodPos, 3)
  515. game:GetService("Debris"):AddItem(BodGy, 3)
  516. end
  517. local debounce = Create("BoolValue"){
  518. Name = "DebounceHit",
  519. Parent = hit.Parent,
  520. Value = true,
  521. }
  522. game:GetService("Debris"):AddItem(debounce, Delay)
  523. c = Create("ObjectValue"){
  524. Name = "creator",
  525. Value = Player,
  526. Parent = h,
  527. }
  528. game:GetService("Debris"):AddItem(c, .5)
  529. end
  530. end
  531. -------------------------------------------------------
  532. --End Damage Function--
  533. -------------------------------------------------------
  534.  
  535. -------------------------------------------------------
  536. --Start Damage Function Customization--
  537. -------------------------------------------------------
  538. function ShowDamage(Pos, Text, Time, Color)
  539. local Rate = (1 / 30)
  540. local Pos = (Pos or Vector3.new(0, 0, 0))
  541. local Text = (Text or "")
  542. local Time = (Time or 2)
  543. local Color = (Color or Color3.new(1, 0, 1))
  544. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  545. EffectPart.Anchored = true
  546. local BillboardGui = Create("BillboardGui"){
  547. Size = UDim2.new(3, 0, 3, 0),
  548. Adornee = EffectPart,
  549. Parent = EffectPart,
  550. }
  551. local TextLabel = Create("TextLabel"){
  552. BackgroundTransparency = 1,
  553. Size = UDim2.new(1, 0, 1, 0),
  554. Text = Text,
  555. Font = "Bodoni",
  556. TextColor3 = Color,
  557. TextScaled = true,
  558. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  559. Parent = BillboardGui,
  560. }
  561. game.Debris:AddItem(EffectPart, (Time))
  562. EffectPart.Parent = game:GetService("Workspace")
  563. delay(0, function()
  564. local Frames = (Time / Rate)
  565. for Frame = 1, Frames do
  566. wait(Rate)
  567. local Percent = (Frame / Frames)
  568. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  569. TextLabel.TextTransparency = Percent
  570. end
  571. if EffectPart and EffectPart.Parent then
  572. EffectPart:Destroy()
  573. end
  574. end)
  575. end
  576. -------------------------------------------------------
  577. --End Damage Function Customization--
  578. -------------------------------------------------------
  579.  
  580. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  581. for _, c in pairs(workspace:children()) do
  582. local hum = c:findFirstChild("Humanoid")
  583. if hum ~= nil then
  584. local head = c:findFirstChild("Head")
  585. if head ~= nil then
  586. local targ = head.Position - Part.Position
  587. local mag = targ.magnitude
  588. if magni >= mag and c.Name ~= plr.Name then
  589. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  590. end
  591. end
  592. end
  593. end
  594. end
  595.  
  596.  
  597. CFuncs = {
  598. Part = {
  599. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  600. local Part = Create("Part")({
  601. Parent = Parent,
  602. Reflectance = Reflectance,
  603. Transparency = Transparency,
  604. CanCollide = false,
  605. Locked = true,
  606. BrickColor = BrickColor.new(tostring(BColor)),
  607. Name = Name,
  608. Size = Size,
  609. Material = Material
  610. })
  611. RemoveOutlines(Part)
  612. return Part
  613. end
  614. },
  615. Mesh = {
  616. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  617. local Msh = Create(Mesh)({
  618. Parent = Part,
  619. Offset = OffSet,
  620. Scale = Scale
  621. })
  622. if Mesh == "SpecialMesh" then
  623. Msh.MeshType = MeshType
  624. Msh.MeshId = MeshId
  625. end
  626. return Msh
  627. end
  628. },
  629. Mesh = {
  630. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  631. local Msh = Create(Mesh)({
  632. Parent = Part,
  633. Offset = OffSet,
  634. Scale = Scale
  635. })
  636. if Mesh == "SpecialMesh" then
  637. Msh.MeshType = MeshType
  638. Msh.MeshId = MeshId
  639. end
  640. return Msh
  641. end
  642. },
  643. Weld = {
  644. Create = function(Parent, Part0, Part1, C0, C1)
  645. local Weld = Create("Weld")({
  646. Parent = Parent,
  647. Part0 = Part0,
  648. Part1 = Part1,
  649. C0 = C0,
  650. C1 = C1
  651. })
  652. return Weld
  653. end
  654. },
  655. Sound = {
  656. Create = function(id, par, vol, pit)
  657. coroutine.resume(coroutine.create(function()
  658. local S = Create("Sound")({
  659. Volume = vol,
  660. Pitch = pit or 1,
  661. SoundId = id,
  662. Parent = par or workspace
  663. })
  664. wait()
  665. S:play()
  666. game:GetService("Debris"):AddItem(S, 6)
  667. end))
  668. end
  669. },
  670. ParticleEmitter = {
  671. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  672. local fp = Create("ParticleEmitter")({
  673. Parent = Parent,
  674. Color = ColorSequence.new(Color1, Color2),
  675. LightEmission = LightEmission,
  676. Size = Size,
  677. Texture = Texture,
  678. Transparency = Transparency,
  679. ZOffset = ZOffset,
  680. Acceleration = Accel,
  681. Drag = Drag,
  682. LockedToPart = LockedToPart,
  683. VelocityInheritance = VelocityInheritance,
  684. EmissionDirection = EmissionDirection,
  685. Enabled = Enabled,
  686. Lifetime = LifeTime,
  687. Rate = Rate,
  688. Rotation = Rotation,
  689. RotSpeed = RotSpeed,
  690. Speed = Speed,
  691. VelocitySpread = VelocitySpread
  692. })
  693. return fp
  694. end
  695. }
  696. }
  697. function RemoveOutlines(part)
  698. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  699. end
  700. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  701. local Part = Create("Part")({
  702. formFactor = FormFactor,
  703. Parent = Parent,
  704. Reflectance = Reflectance,
  705. Transparency = Transparency,
  706. CanCollide = false,
  707. Locked = true,
  708. BrickColor = BrickColor.new(tostring(BColor)),
  709. Name = Name,
  710. Size = Size,
  711. Material = Material
  712. })
  713. RemoveOutlines(Part)
  714. return Part
  715. end
  716. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  717. local Msh = Create(Mesh)({
  718. Parent = Part,
  719. Offset = OffSet,
  720. Scale = Scale
  721. })
  722. if Mesh == "SpecialMesh" then
  723. Msh.MeshType = MeshType
  724. Msh.MeshId = MeshId
  725. end
  726. return Msh
  727. end
  728. function CreateWeld(Parent, Part0, Part1, C0, C1)
  729. local Weld = Create("Weld")({
  730. Parent = Parent,
  731. Part0 = Part0,
  732. Part1 = Part1,
  733. C0 = C0,
  734. C1 = C1
  735. })
  736. return Weld
  737. end
  738.  
  739.  
  740. -------------------------------------------------------
  741. --Start Effect Function--
  742. -------------------------------------------------------
  743. EffectModel = Instance.new("Model", char)
  744. Effects = {
  745. Block = {
  746. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  747. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  748. prt.Anchored = true
  749. prt.CFrame = cframe
  750. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  751. game:GetService("Debris"):AddItem(prt, 10)
  752. if Type == 1 or Type == nil then
  753. table.insert(Effects, {
  754. prt,
  755. "Block1",
  756. delay,
  757. x3,
  758. y3,
  759. z3,
  760. msh
  761. })
  762. elseif Type == 2 then
  763. table.insert(Effects, {
  764. prt,
  765. "Block2",
  766. delay,
  767. x3,
  768. y3,
  769. z3,
  770. msh
  771. })
  772. else
  773. table.insert(Effects, {
  774. prt,
  775. "Block3",
  776. delay,
  777. x3,
  778. y3,
  779. z3,
  780. msh
  781. })
  782. end
  783. end
  784. },
  785. Sphere = {
  786. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  787. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  788. prt.Anchored = true
  789. prt.CFrame = cframe
  790. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  791. game:GetService("Debris"):AddItem(prt, 10)
  792. table.insert(Effects, {
  793. prt,
  794. "Cylinder",
  795. delay,
  796. x3,
  797. y3,
  798. z3,
  799. msh
  800. })
  801. end
  802. },
  803. Cylinder = {
  804. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  805. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  806. prt.Anchored = true
  807. prt.CFrame = cframe
  808. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  809. game:GetService("Debris"):AddItem(prt, 10)
  810. table.insert(Effects, {
  811. prt,
  812. "Cylinder",
  813. delay,
  814. x3,
  815. y3,
  816. z3,
  817. msh
  818. })
  819. end
  820. },
  821. Wave = {
  822. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  823. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  824. prt.Anchored = true
  825. prt.CFrame = cframe
  826. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  827. game:GetService("Debris"):AddItem(prt, 10)
  828. table.insert(Effects, {
  829. prt,
  830. "Cylinder",
  831. delay,
  832. x3 / 60,
  833. y3 / 60,
  834. z3 / 60,
  835. msh
  836. })
  837. end
  838. },
  839. Ring = {
  840. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  841. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  842. prt.Anchored = true
  843. prt.CFrame = cframe
  844. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  845. game:GetService("Debris"):AddItem(prt, 10)
  846. table.insert(Effects, {
  847. prt,
  848. "Cylinder",
  849. delay,
  850. x3,
  851. y3,
  852. z3,
  853. msh
  854. })
  855. end
  856. },
  857. Break = {
  858. Create = function(brickcolor, cframe, x1, y1, z1)
  859. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  860. prt.Anchored = true
  861. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  862. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  863. local num = math.random(10, 50) / 1000
  864. game:GetService("Debris"):AddItem(prt, 10)
  865. table.insert(Effects, {
  866. prt,
  867. "Shatter",
  868. num,
  869. prt.CFrame,
  870. math.random() - math.random(),
  871. 0,
  872. math.random(50, 100) / 100
  873. })
  874. end
  875. },
  876. Spiral = {
  877. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  878. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  879. prt.Anchored = true
  880. prt.CFrame = cframe
  881. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  882. game:GetService("Debris"):AddItem(prt, 10)
  883. table.insert(Effects, {
  884. prt,
  885. "Cylinder",
  886. delay,
  887. x3,
  888. y3,
  889. z3,
  890. msh
  891. })
  892. end
  893. },
  894. Push = {
  895. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  896. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  897. prt.Anchored = true
  898. prt.CFrame = cframe
  899. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  900. game:GetService("Debris"):AddItem(prt, 10)
  901. table.insert(Effects, {
  902. prt,
  903. "Cylinder",
  904. delay,
  905. x3,
  906. y3,
  907. z3,
  908. msh
  909. })
  910. end
  911. }
  912. }
  913. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  914. local fp = IT("Part")
  915. fp.formFactor = formfactor
  916. fp.Parent = parent
  917. fp.Reflectance = reflectance
  918. fp.Transparency = transparency
  919. fp.CanCollide = false
  920. fp.Locked = true
  921. fp.BrickColor = brickcolor
  922. fp.Name = name
  923. fp.Size = size
  924. fp.Position = tors.Position
  925. RemoveOutlines(fp)
  926. fp.Material = "SmoothPlastic"
  927. fp:BreakJoints()
  928. return fp
  929. end
  930.  
  931. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  932. local mesh = IT(Mesh)
  933. mesh.Parent = part
  934. if Mesh == "SpecialMesh" then
  935. mesh.MeshType = meshtype
  936. if meshid ~= "nil" then
  937. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  938. end
  939. end
  940. mesh.Offset = offset
  941. mesh.Scale = scale
  942. return mesh
  943. end
  944.  
  945. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  946. local type = type
  947. local rng = Instance.new("Part", char)
  948. rng.Anchored = true
  949. rng.BrickColor = color
  950. rng.CanCollide = false
  951. rng.FormFactor = 3
  952. rng.Name = "Ring"
  953. rng.Material = "Neon"
  954. rng.Size = Vector3.new(1, 1, 1)
  955. rng.Transparency = 0
  956. rng.TopSurface = 0
  957. rng.BottomSurface = 0
  958. rng.CFrame = pos
  959. local rngm = Instance.new("SpecialMesh", rng)
  960. rngm.MeshType = MType
  961. rngm.Scale = scale
  962. local scaler2 = 1
  963. if type == "Add" then
  964. scaler2 = 1 * value
  965. elseif type == "Divide" then
  966. scaler2 = 1 / value
  967. end
  968. coroutine.resume(coroutine.create(function()
  969. for i = 0, 10 / bonuspeed, 0.1 do
  970. swait()
  971. if type == "Add" then
  972. scaler2 = scaler2 - 0.01 * value / bonuspeed
  973. elseif type == "Divide" then
  974. scaler2 = scaler2 - 0.01 / value * bonuspeed
  975. end
  976. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  977. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  978. end
  979. rng:Destroy()
  980. end))
  981. end
  982.  
  983. function Eviscerate(dude)
  984. if dude.Name ~= char then
  985. local bgf = IT("BodyGyro", dude.Head)
  986. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  987. local val = IT("BoolValue", dude)
  988. val.Name = "IsHit"
  989. local ds = coroutine.wrap(function()
  990. dude:WaitForChild("Head"):BreakJoints()
  991. wait(0.5)
  992. target = nil
  993. coroutine.resume(coroutine.create(function()
  994. for i, v in pairs(dude:GetChildren()) do
  995. if v:IsA("Accessory") then
  996. v:Destroy()
  997. end
  998. if v:IsA("Humanoid") then
  999. v:Destroy()
  1000. end
  1001. if v:IsA("CharacterMesh") then
  1002. v:Destroy()
  1003. end
  1004. if v:IsA("Model") then
  1005. v:Destroy()
  1006. end
  1007. if v:IsA("Part") or v:IsA("MeshPart") then
  1008. for x, o in pairs(v:GetChildren()) do
  1009. if o:IsA("Decal") then
  1010. o:Destroy()
  1011. end
  1012. end
  1013. coroutine.resume(coroutine.create(function()
  1014. v.Material = "Neon"
  1015. v.CanCollide = false
  1016. local PartEmmit1 = IT("ParticleEmitter", v)
  1017. PartEmmit1.LightEmission = 1
  1018. PartEmmit1.Texture = "rbxassetid://284205403"
  1019. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1020. PartEmmit1.Rate = 150
  1021. PartEmmit1.Lifetime = NumberRange.new(1)
  1022. PartEmmit1.Size = NumberSequence.new({
  1023. NumberSequenceKeypoint.new(0, 0.75, 0),
  1024. NumberSequenceKeypoint.new(1, 0, 0)
  1025. })
  1026. PartEmmit1.Transparency = NumberSequence.new({
  1027. NumberSequenceKeypoint.new(0, 0, 0),
  1028. NumberSequenceKeypoint.new(1, 1, 0)
  1029. })
  1030. PartEmmit1.Speed = NumberRange.new(0, 0)
  1031. PartEmmit1.VelocitySpread = 30000
  1032. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1033. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1034. local BodPoss = IT("BodyPosition", v)
  1035. BodPoss.P = 3000
  1036. BodPoss.D = 1000
  1037. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1038. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1039. v.Color = maincolor.Color
  1040. coroutine.resume(coroutine.create(function()
  1041. for i = 0, 49 do
  1042. swait(1)
  1043. v.Transparency = v.Transparency + 0.08
  1044. end
  1045. wait(0.5)
  1046. PartEmmit1.Enabled = false
  1047. wait(3)
  1048. v:Destroy()
  1049. dude:Destroy()
  1050. end))
  1051. end))
  1052. end
  1053. end
  1054. end))
  1055. end)
  1056. ds()
  1057. end
  1058. end
  1059.  
  1060. function FindNearestHead(Position, Distance, SinglePlayer)
  1061. if SinglePlayer then
  1062. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1063. end
  1064. local List = {}
  1065. for i, v in pairs(workspace:GetChildren()) do
  1066. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1067. table.insert(List, v)
  1068. end
  1069. end
  1070. return List
  1071. end
  1072.  
  1073. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1074. local type = type
  1075. local rng = Instance.new("Part", char)
  1076. rng.Anchored = true
  1077. rng.BrickColor = color
  1078. rng.CanCollide = false
  1079. rng.FormFactor = 3
  1080. rng.Name = "Ring"
  1081. rng.Material = "Neon"
  1082. rng.Size = Vector3.new(1, 1, 1)
  1083. rng.Transparency = 0
  1084. rng.TopSurface = 0
  1085. rng.BottomSurface = 0
  1086. rng.CFrame = pos
  1087. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1088. local rngm = Instance.new("SpecialMesh", rng)
  1089. rngm.MeshType = MType
  1090. rngm.Scale = Vector3.new(x1, y1, z1)
  1091. local scaler2 = 1
  1092. local speeder = FastSpeed
  1093. if type == "Add" then
  1094. scaler2 = 1 * value
  1095. elseif type == "Divide" then
  1096. scaler2 = 1 / value
  1097. end
  1098. coroutine.resume(coroutine.create(function()
  1099. for i = 0, 10 / bonuspeed, 0.1 do
  1100. swait()
  1101. if type == "Add" then
  1102. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1103. elseif type == "Divide" then
  1104. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1105. end
  1106. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1107. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1108. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1109. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1110. end
  1111. rng:Destroy()
  1112. end))
  1113. end
  1114.  
  1115. function SoulSteal(dude)
  1116. if dude.Name ~= char then
  1117. local bgf = IT("BodyGyro", dude.Head)
  1118. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1119. local val = IT("BoolValue", dude)
  1120. val.Name = "IsHit"
  1121. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1122. local soulst = coroutine.wrap(function()
  1123. local soul = Instance.new("Part",dude)
  1124. soul.Size = Vector3.new(1,1,1)
  1125. soul.CanCollide = false
  1126. soul.Anchored = false
  1127. soul.Position = torso.Position
  1128. soul.Transparency = 1
  1129. local PartEmmit1 = IT("ParticleEmitter", soul)
  1130. PartEmmit1.LightEmission = 1
  1131. PartEmmit1.Texture = "rbxassetid://569507414"
  1132. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1133. PartEmmit1.Rate = 250
  1134. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1135. PartEmmit1.Size = NumberSequence.new({
  1136. NumberSequenceKeypoint.new(0, 1, 0),
  1137. NumberSequenceKeypoint.new(1, 0, 0)
  1138. })
  1139. PartEmmit1.Transparency = NumberSequence.new({
  1140. NumberSequenceKeypoint.new(0, 0, 0),
  1141. NumberSequenceKeypoint.new(1, 1, 0)
  1142. })
  1143. PartEmmit1.Speed = NumberRange.new(0, 0)
  1144. PartEmmit1.VelocitySpread = 30000
  1145. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1146. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1147. local BodPoss = IT("BodyPosition", soul)
  1148. BodPoss.P = 3000
  1149. BodPoss.D = 1000
  1150. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1151. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1152. wait(1.6)
  1153. soul.Touched:connect(function(hit)
  1154. if hit.Parent == char then
  1155. soul:Destroy()
  1156. end
  1157. end)
  1158. wait(1.2)
  1159. while soul do
  1160. swait()
  1161. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1162. BodPoss.Position = tors.Position
  1163. end
  1164. end)
  1165. soulst()
  1166. end
  1167. end
  1168. function FaceMouse()
  1169. local Cam = workspace.CurrentCamera
  1170. return {
  1171. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1172. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1173. }
  1174. end
  1175. -------------------------------------------------------
  1176. --End Effect Function--
  1177. -------------------------------------------------------
  1178. function Cso(ID, PARENT, VOLUME, PITCH)
  1179. local NSound = nil
  1180. coroutine.resume(coroutine.create(function()
  1181. NSound = IT("Sound", PARENT)
  1182. NSound.Volume = VOLUME
  1183. NSound.Pitch = PITCH
  1184. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1185. swait()
  1186. NSound:play()
  1187. game:GetService("Debris"):AddItem(NSound, 10)
  1188. end))
  1189. return NSound
  1190. end
  1191. function CameraEnshaking(Length, Intensity)
  1192. coroutine.resume(coroutine.create(function()
  1193. local intensity = 1 * Intensity
  1194. local rotM = 0.01 * Intensity
  1195. for i = 0, Length, 0.1 do
  1196. swait()
  1197. intensity = intensity - 0.05 * Intensity / Length
  1198. rotM = rotM - 5.0E-4 * Intensity / Length
  1199. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1200. 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)
  1201. end
  1202. hum.CameraOffset = Vector3.new(0, 0, 0)
  1203. end))
  1204. end
  1205. -------------------------------------------------------
  1206. --End Important Functions--
  1207. -------------------------------------------------------
  1208.  
  1209.  
  1210. -------------------------------------------------------
  1211. --Start Customization--
  1212. -------------------------------------------------------
  1213. local Player_Size = 1
  1214. if Player_Size ~= 1 then
  1215. root.Size = root.Size * Player_Size
  1216. tors.Size = tors.Size * Player_Size
  1217. hed.Size = hed.Size * Player_Size
  1218. ra.Size = ra.Size * Player_Size
  1219. la.Size = la.Size * Player_Size
  1220. rl.Size = rl.Size * Player_Size
  1221. ll.Size = ll.Size * Player_Size
  1222. ----------------------------------------------------------------------------------
  1223. rootj.Parent = root
  1224. neck.Parent = tors
  1225. RW.Parent = tors
  1226. LW.Parent = tors
  1227. RH.Parent = tors
  1228. LH.Parent = tors
  1229. ----------------------------------------------------------------------------------
  1230. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1231. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1232. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1233. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1234. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1235. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1236. ----------------------------------------------------------------------------------
  1237. 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))
  1238. 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))
  1239. 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))
  1240. 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))
  1241. --hat.Parent = Character
  1242. end
  1243. ----------------------------------------------------------------------------------
  1244. local SONG = 1280408510
  1245. local SONG2 = 0
  1246. local Music = Instance.new("Sound",tors)
  1247. Music.Volume = 2.5
  1248. Music.Looped = true
  1249. Music.Pitch = 1 --Pitcher
  1250. ----------------------------------------------------------------------------------
  1251. local equipped = false
  1252. local idle = 0
  1253. local change = 1
  1254. local val = 0
  1255. local toim = 0
  1256. local idleanim = 0.4
  1257. local sine = 0
  1258. local Sit = 1
  1259. ----------------------------------------------------------------------------------
  1260. hum.WalkSpeed = 8
  1261. hum.JumpPower = 57
  1262. hum.Animator.Parent = nil
  1263. ----------------------------------------------------------------------------------
  1264. local r = 255
  1265. local g = 0
  1266. local b = 0
  1267. coroutine.resume(coroutine.create(function()
  1268. while wait() do
  1269. for i = 0, 50.8 do
  1270. swait()
  1271. g = g + 5
  1272. end
  1273. for i = 0, 50.8 do
  1274. swait()
  1275. r = r - 5
  1276. end
  1277. for i = 0, 50.8 do
  1278. swait()
  1279. b = b + 5
  1280. end
  1281. for i = 0, 50.8 do
  1282. swait()
  1283. g = g - 5
  1284. end
  1285. for i = 0, 50.8 do
  1286. swait()
  1287. r = r + 5
  1288. end
  1289. for i = 0, 50.8 do
  1290. swait()
  1291. b = b - 5
  1292. end
  1293. end
  1294. end))
  1295. ----------------------------------------------------------------------------------
  1296. local naeeym2 = IT("BillboardGui",char)
  1297. naeeym2.AlwaysOnTop = true
  1298. naeeym2.Size = UDim2.new(5,35,2,15)
  1299. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1300. naeeym2.MaxDistance = 75
  1301. naeeym2.Adornee = hed
  1302. naeeym2.Name = "Name"
  1303. local tecks2 = IT("TextLabel",naeeym2)
  1304. tecks2.BackgroundTransparency = 1
  1305. tecks2.TextScaled = true
  1306. tecks2.BorderSizePixel = 0
  1307. tecks2.Text = "No one's really around willing to HELP."
  1308. --tecks2.Font = "Fantasy"
  1309. tecks2.TextSize = 30
  1310. tecks2.TextStrokeTransparency = 0
  1311. tecks2.TextColor3 = Color3.new(1,1,1)
  1312. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1313. tecks2.Size = UDim2.new(1,0,0.5,0)
  1314. tecks2.Parent = naeeym2
  1315. hed.face.Texture = "rbxassetid://33752579"
  1316. ----------------------------------------------------------------------------------
  1317. Reaper = IT("Model")
  1318. Reaper.Parent = char
  1319. Reaper.Name = "Reaper"
  1320. RHe = IT("Part")
  1321. RHe.Parent = Reaper
  1322. RHe.BrickColor = BrickC("Really black")
  1323. RHe.Locked = true
  1324. RHe.CanCollide = false
  1325. RHe.Transparency = 0
  1326. PMesh = IT("SpecialMesh")
  1327. RHe.formFactor = "Symmetric"
  1328. PMesh.MeshType = "FileMesh"
  1329. PMesh.MeshId = "rbxassetid://1374148"
  1330. PMesh.TextureId = "rbxassetid://185703978"
  1331. PMesh.Scale = Vector3.new(1, 1, 1)
  1332. PMesh.Parent = RHe
  1333. local RWeld = IT("Weld")
  1334. RWeld.Parent = RHe
  1335. RWeld.Part0 = RHe
  1336. RWeld.Part1 = hed
  1337. RWeld.C0 = CF(0, -.7, 0) * angles(0, 0, 0)
  1338. -------------------------------------------------------
  1339. --End Customization--
  1340. -------------------------------------------------------
  1341.  
  1342.  
  1343. -------------------------------------------------------
  1344. --Start Attacks N Stuff--
  1345. -------------------------------------------------------
  1346.  
  1347. -------------------------------------------------------
  1348. --End Attacks N Stuff--
  1349. -------------------------------------------------------
  1350. mouse.KeyDown:connect(function(key)
  1351. if string.byte(key) == 48 then
  1352. Swing = 2
  1353. hum.WalkSpeed = 38.82
  1354. end
  1355. end)
  1356. mouse.KeyUp:connect(function(key)
  1357. if string.byte(key) == 48 then
  1358. Swing = 1
  1359. hum.WalkSpeed = 8
  1360. end
  1361. end)
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370. -------------------------------------------------------
  1371. --Start Animations--
  1372. -------------------------------------------------------
  1373. while true do
  1374. swait()
  1375. sine = sine + change
  1376. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1377. local velderp = root.Velocity.y
  1378. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1379. if equipped == true or equipped == false then
  1380. if attack == false then
  1381. idle = idle + 1
  1382. else
  1383. idle = 0
  1384. end
  1385. tecks2.TextStrokeColor3 = Color3.new(r / 255, g / 255, b / 255)
  1386. if 1 < root.Velocity.y and hitfloor == nil then
  1387. Anim = "Jump"
  1388. if attack == false then
  1389. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1390. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1391. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1392. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1393. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1394. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1395. end
  1396. elseif -1 > root.Velocity.y and hitfloor == nil then
  1397. Anim = "Fall"
  1398. if attack == false then
  1399. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1400. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1401. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1402. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1403. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1404. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1405. end
  1406. elseif torvel < 1 and hitfloor ~= nil then
  1407. Anim = "Idle"
  1408. change = .5
  1409. if attack == false then
  1410. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1411. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 3)), Rad(-4.5 * Sin(sine / 3)), Rad(0)), 0.3)
  1412. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 + 0.1 * Cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-5)), 0.15)
  1413. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1414. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.05 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1415. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(-30 * Sin(sine / 10)), Rad(0), Rad(-5 - 4.5 * Sin(sine / 20))), 0.1)
  1416. end
  1417. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1418. Anim = "Walk"
  1419. change = .9
  1420. if attack == false then
  1421. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1422. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1423. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1424. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1425. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1426. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1427. end
  1428. elseif torvel >= 25 and hitfloor ~= nil then
  1429. Anim = "Sprint"
  1430. change = 1.35
  1431. if attack == false then
  1432. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1433. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1434. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1435. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1436. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1437. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1438. end
  1439. end
  1440. end
  1441. Music.SoundId = "rbxassetid://"..SONG
  1442. Music.Looped = true
  1443. Music.Pitch = 1
  1444. Music.Volume = 5
  1445. Music.Parent = tors
  1446. Music:Resume()
  1447. if 0 < #Effects then
  1448. for e = 1, #Effects do
  1449. if Effects[e] ~= nil then
  1450. local Thing = Effects[e]
  1451. if Thing ~= nil then
  1452. local Part = Thing[1]
  1453. local Mode = Thing[2]
  1454. local Delay = Thing[3]
  1455. local IncX = Thing[4]
  1456. local IncY = Thing[5]
  1457. local IncZ = Thing[6]
  1458. if 1 >= Thing[1].Transparency then
  1459. if Thing[2] == "Block1" then
  1460. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1461. local Mesh = Thing[1].Mesh
  1462. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1463. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1464. elseif Thing[2] == "Block2" then
  1465. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1466. local Mesh = Thing[7]
  1467. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1468. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1469. elseif Thing[2] == "Block3" then
  1470. 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)
  1471. local Mesh = Thing[7]
  1472. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1473. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1474. elseif Thing[2] == "Cylinder" then
  1475. local Mesh = Thing[1].Mesh
  1476. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1477. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1478. elseif Thing[2] == "Blood" then
  1479. local Mesh = Thing[7]
  1480. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1481. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1482. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1483. elseif Thing[2] == "Elec" then
  1484. local Mesh = Thing[1].Mesh
  1485. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1486. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1487. elseif Thing[2] == "Disappear" then
  1488. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1489. elseif Thing[2] == "Shatter" then
  1490. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1491. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1492. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1493. Thing[6] = Thing[6] + Thing[5]
  1494. end
  1495. else
  1496. Part.Parent = nil
  1497. table.remove(Effects, e)
  1498. end
  1499. end
  1500. end
  1501. end
  1502. end
  1503. end
  1504. -------------------------------------------------------
  1505. --End Animations And Script--
  1506. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement