Advertisement
Cute_Sylveon

DEJA VU (TEST)

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