Advertisement
doryna2281337

Untitled

Oct 20th, 2019
190
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. Player = owner
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character.Humanoid
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightShoulder = Torso["Right Shoulder"]
  161. LeftShoulder = Torso["Left Shoulder"]
  162. RightHip = Torso["Right Hip"]
  163. LeftHip = Torso["Left Hip"]
  164.  
  165. Character = Player.Character
  166. Humanoid = Character.Humanoid
  167.  
  168. -------------------------------------------------------
  169.  
  170. local FavIDs = {
  171. 340106355, --Nefl Crystals
  172. 927529620, --Dimension
  173. 876981900, --Fantasy
  174. 398987889, --Ordinary Days
  175. 1117396305, --Oh wait, it's you.
  176. 885996042, --Action Winter Journey
  177. 919231299, --Sprawling Idiot Effigy
  178. 743466274, --Good Day Sunshine
  179. 727411183, --Knife Fight
  180. 1402748531, --The Earth Is Counting On You!
  181. 595230126 --Robot Language
  182. }
  183.  
  184.  
  185.  
  186. wait(0.2)
  187. local plr = game:service'Players'.LocalPlayer
  188. local char = plr.Character
  189. local hum = char.Humanoid
  190. local hed = char.Head
  191. local root = char.HumanoidRootPart
  192. local rootj = root.RootJoint
  193. local tors = char.Torso
  194. local ra = char["Right Arm"]
  195. local la = char["Left Arm"]
  196. local rl = char["Right Leg"]
  197. local ll = char["Left Leg"]
  198. local neck = tors["Neck"]
  199. local mouse = plr:GetMouse()
  200. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  201. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  202. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  203. local maincolor = BrickColor.new("Really grey")
  204.  
  205. -------------------------------------------------------
  206. --Start Good Stuff--
  207. -------------------------------------------------------
  208. cam = game.Workspace.CurrentCamera
  209. CF = CFrame.new
  210. angles = CFrame.Angles
  211. attack = false
  212. Euler = CFrame.fromEulerAnglesXYZ
  213. Rad = math.rad
  214. IT = Instance.new
  215. BrickC = BrickColor.new
  216. Cos = math.cos
  217. Acos = math.acos
  218. Sin = math.sin
  219. Asin = math.asin
  220. Abs = math.abs
  221. Mrandom = math.random
  222. Floor = math.floor
  223. -------------------------------------------------------
  224. --End Good Stuff--
  225. -------------------------------------------------------
  226. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  227. RSH, LSH = nil, nil
  228. RW = Instance.new("Weld")
  229. LW = Instance.new("Weld")
  230. RH = tors["Right Hip"]
  231. LH = tors["Left Hip"]
  232. RSH = tors["Right Shoulder"]
  233. LSH = tors["Left Shoulder"]
  234. RSH.Parent = nil
  235. LSH.Parent = nil
  236. RW.Name = "RW"
  237. RW.Part0 = tors
  238. RW.C0 = CF(1.5, 0.5, 0)
  239. RW.C1 = CF(0, 0.5, 0)
  240. RW.Part1 = ra
  241. RW.Parent = tors
  242. LW.Name = "LW"
  243. LW.Part0 = tors
  244. LW.C0 = CF(-1.5, 0.5, 0)
  245. LW.C1 = CF(0, 0.5, 0)
  246. LW.Part1 = la
  247. LW.Parent = tors
  248. Effects = {}
  249. -------------------------------------------------------
  250. --Start HeartBeat--
  251. -------------------------------------------------------
  252. ArtificialHB = Instance.new("BindableEvent", script)
  253. ArtificialHB.Name = "Heartbeat"
  254. script:WaitForChild("Heartbeat")
  255.  
  256. frame = 1 / 60
  257. tf = 0
  258. allowframeloss = false
  259. tossremainder = false
  260.  
  261.  
  262. lastframe = tick()
  263. script.Heartbeat:Fire()
  264.  
  265.  
  266. game:GetService("RunService").Heartbeat:connect(function(s, p)
  267. tf = tf + s
  268. if tf >= frame then
  269. if allowframeloss then
  270. script.Heartbeat:Fire()
  271. lastframe = tick()
  272. else
  273. for i = 1, math.floor(tf / frame) do
  274. script.Heartbeat:Fire()
  275. end
  276. lastframe = tick()
  277. end
  278. if tossremainder then
  279. tf = 0
  280. else
  281. tf = tf - frame * math.floor(tf / frame)
  282. end
  283. end
  284. end)
  285. -------------------------------------------------------
  286. --End HeartBeat--
  287. -------------------------------------------------------
  288.  
  289. -------------------------------------------------------
  290. --Start Important Functions--
  291. -------------------------------------------------------
  292. function swait(num)
  293. if num == 0 or num == nil then
  294. game:service("RunService").Stepped:wait(0)
  295. else
  296. for i = 0, num do
  297. game:service("RunService").Stepped:wait(0)
  298. end
  299. end
  300. end
  301. function thread(f)
  302. coroutine.resume(coroutine.create(f))
  303. end
  304. function clerp(a, b, t)
  305. local qa = {
  306. QuaternionFromCFrame(a)
  307. }
  308. local qb = {
  309. QuaternionFromCFrame(b)
  310. }
  311. local ax, ay, az = a.x, a.y, a.z
  312. local bx, by, bz = b.x, b.y, b.z
  313. local _t = 1 - t
  314. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  315. end
  316. function QuaternionFromCFrame(cf)
  317. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  318. local trace = m00 + m11 + m22
  319. if trace > 0 then
  320. local s = math.sqrt(1 + trace)
  321. local recip = 0.5 / s
  322. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  323. else
  324. local i = 0
  325. if m00 < m11 then
  326. i = 1
  327. end
  328. if m22 > (i == 0 and m00 or m11) then
  329. i = 2
  330. end
  331. if i == 0 then
  332. local s = math.sqrt(m00 - m11 - m22 + 1)
  333. local recip = 0.5 / s
  334. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  335. elseif i == 1 then
  336. local s = math.sqrt(m11 - m22 - m00 + 1)
  337. local recip = 0.5 / s
  338. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  339. elseif i == 2 then
  340. local s = math.sqrt(m22 - m00 - m11 + 1)
  341. local recip = 0.5 / s
  342. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  343. end
  344. end
  345. end
  346. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  347. local xs, ys, zs = x + x, y + y, z + z
  348. local wx, wy, wz = w * xs, w * ys, w * zs
  349. local xx = x * xs
  350. local xy = x * ys
  351. local xz = x * zs
  352. local yy = y * ys
  353. local yz = y * zs
  354. local zz = z * zs
  355. 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))
  356. end
  357. function QuaternionSlerp(a, b, t)
  358. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  359. local startInterp, finishInterp
  360. if cosTheta >= 1.0E-4 then
  361. if 1 - cosTheta > 1.0E-4 then
  362. local theta = math.acos(cosTheta)
  363. local invSinTheta = 1 / Sin(theta)
  364. startInterp = Sin((1 - t) * theta) * invSinTheta
  365. finishInterp = Sin(t * theta) * invSinTheta
  366. else
  367. startInterp = 1 - t
  368. finishInterp = t
  369. end
  370. elseif 1 + cosTheta > 1.0E-4 then
  371. local theta = math.acos(-cosTheta)
  372. local invSinTheta = 1 / Sin(theta)
  373. startInterp = Sin((t - 1) * theta) * invSinTheta
  374. finishInterp = Sin(t * theta) * invSinTheta
  375. else
  376. startInterp = t - 1
  377. finishInterp = t
  378. end
  379. 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
  380. end
  381. function rayCast(Position, Direction, Range, Ignore)
  382. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  383. end
  384. local RbxUtility = LoadLibrary("RbxUtility")
  385. local Create = RbxUtility.Create
  386.  
  387. -------------------------------------------------------
  388. --Start Damage Function--
  389. -------------------------------------------------------
  390. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  391. if hit.Parent == nil then
  392. return
  393. end
  394. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  395. for _, v in pairs(hit.Parent:children()) do
  396. if v:IsA("Humanoid") then
  397. h = v
  398. end
  399. end
  400. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  401.  
  402. hit.Parent:FindFirstChild("Head"):BreakJoints()
  403. end
  404.  
  405. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  406. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  407. if hit.Parent.DebounceHit.Value == true then
  408. return
  409. end
  410. end
  411. if insta == true then
  412. hit.Parent:FindFirstChild("Head"):BreakJoints()
  413. end
  414. local c = Create("ObjectValue"){
  415. Name = "creator",
  416. Value = game:service("Players").LocalPlayer,
  417. Parent = h,
  418. }
  419. game:GetService("Debris"):AddItem(c, .5)
  420. if HitSound ~= nil and HitPitch ~= nil then
  421. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  422. end
  423. local Damage = math.random(minim, maxim)
  424. local blocked = false
  425. local block = hit.Parent:findFirstChild("Block")
  426. if block ~= nil then
  427. if block.className == "IntValue" then
  428. if block.Value > 0 then
  429. blocked = true
  430. block.Value = block.Value - 1
  431. print(block.Value)
  432. end
  433. end
  434. end
  435. if blocked == false then
  436. h.Health = h.Health - Damage
  437. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  438. else
  439. h.Health = h.Health - (Damage / 2)
  440. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  441. end
  442. if Type == "Knockdown" then
  443. local hum = hit.Parent.Humanoid
  444. hum.PlatformStand = true
  445. coroutine.resume(coroutine.create(function(HHumanoid)
  446. swait(1)
  447. HHumanoid.PlatformStand = false
  448. end), hum)
  449. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  450. local bodvol = Create("BodyVelocity"){
  451. velocity = angle * knockback,
  452. P = 5000,
  453. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  454. Parent = hit,
  455. }
  456. local rl = Create("BodyAngularVelocity"){
  457. P = 3000,
  458. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  459. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  460. Parent = hit,
  461. }
  462. game:GetService("Debris"):AddItem(bodvol, .5)
  463. game:GetService("Debris"):AddItem(rl, .5)
  464. elseif Type == "Normal" then
  465. local vp = Create("BodyVelocity"){
  466. P = 500,
  467. maxForce = Vector3.new(math.huge, 0, math.huge),
  468. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  469. }
  470. if knockback > 0 then
  471. vp.Parent = hit.Parent.Torso
  472. end
  473. game:GetService("Debris"):AddItem(vp, .5)
  474. elseif Type == "Up" then
  475. local bodyVelocity = Create("BodyVelocity"){
  476. velocity = Vector3.new(0, 20, 0),
  477. P = 5000,
  478. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  479. Parent = hit,
  480. }
  481. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  482. elseif Type == "DarkUp" then
  483. coroutine.resume(coroutine.create(function()
  484. for i = 0, 1, 0.1 do
  485. swait()
  486. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  487. end
  488. end))
  489. local bodyVelocity = Create("BodyVelocity"){
  490. velocity = Vector3.new(0, 20, 0),
  491. P = 5000,
  492. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  493. Parent = hit,
  494. }
  495. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  496. elseif Type == "Snare" then
  497. local bp = Create("BodyPosition"){
  498. P = 2000,
  499. D = 100,
  500. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  501. position = hit.Parent.Torso.Position,
  502. Parent = hit.Parent.Torso,
  503. }
  504. game:GetService("Debris"):AddItem(bp, 1)
  505. elseif Type == "Freeze" then
  506. local BodPos = Create("BodyPosition"){
  507. P = 50000,
  508. D = 1000,
  509. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  510. position = hit.Parent.Torso.Position,
  511. Parent = hit.Parent.Torso,
  512. }
  513. local BodGy = Create("BodyGyro") {
  514. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  515. P = 20e+003,
  516. Parent = hit.Parent.Torso,
  517. cframe = hit.Parent.Torso.CFrame,
  518. }
  519. hit.Parent.Torso.Anchored = true
  520. coroutine.resume(coroutine.create(function(Part)
  521. swait(1.5)
  522. Part.Anchored = false
  523. end), hit.Parent.Torso)
  524. game:GetService("Debris"):AddItem(BodPos, 3)
  525. game:GetService("Debris"):AddItem(BodGy, 3)
  526. end
  527. local debounce = Create("BoolValue"){
  528. Name = "DebounceHit",
  529. Parent = hit.Parent,
  530. Value = true,
  531. }
  532. game:GetService("Debris"):AddItem(debounce, Delay)
  533. c = Create("ObjectValue"){
  534. Name = "creator",
  535. Value = Player,
  536. Parent = h,
  537. }
  538. game:GetService("Debris"):AddItem(c, .5)
  539. end
  540. end
  541. -------------------------------------------------------
  542. --End Damage Function--
  543. -------------------------------------------------------
  544.  
  545. -------------------------------------------------------
  546. --Start Damage Function Customization--
  547. -------------------------------------------------------
  548. function ShowDamage(Pos, Text, Time, Color)
  549. local Rate = (1 / 30)
  550. local Pos = (Pos or Vector3.new(0, 0, 0))
  551. local Text = (Text or "")
  552. local Time = (Time or 2)
  553. local Color = (Color or Color3.new(17, 17, 17))
  554. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  555. EffectPart.Anchored = true
  556. local BillboardGui = Create("BillboardGui"){
  557. Size = UDim2.new(3, 0, 3, 0),
  558. Adornee = EffectPart,
  559. Parent = EffectPart,
  560. }
  561. local TextLabel = Create("TextLabel"){
  562. BackgroundTransparency = 1,
  563. Size = UDim2.new(1, 0, 1, 0),
  564. Text = Text,
  565. Font = "Bodoni",
  566. TextColor3 = Color,
  567. TextScaled = true,
  568. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  569. Parent = BillboardGui,
  570. }
  571. game.Debris:AddItem(EffectPart, (Time))
  572. EffectPart.Parent = game:GetService("Workspace")
  573. delay(0, function()
  574. local Frames = (Time / Rate)
  575. for Frame = 1, Frames do
  576. wait(Rate)
  577. local Percent = (Frame / Frames)
  578. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  579. TextLabel.TextTransparency = Percent
  580. end
  581. if EffectPart and EffectPart.Parent then
  582. EffectPart:Destroy()
  583. end
  584. end)
  585. end
  586. -------------------------------------------------------
  587. --End Damage Function Customization--
  588. -------------------------------------------------------
  589.  
  590. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  591. for _, c in pairs(workspace:children()) do
  592. local hum = c:findFirstChild("Humanoid")
  593. if hum ~= nil then
  594. local head = c:findFirstChild("Head")
  595. if head ~= nil then
  596. local targ = head.Position - Part.Position
  597. local mag = targ.magnitude
  598. if magni >= mag and c.Name ~= plr.Name then
  599. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  600. end
  601. end
  602. end
  603. end
  604. end
  605.  
  606.  
  607. CFuncs = {
  608. Part = {
  609. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  610. local Part = Create("Part")({
  611. Parent = Parent,
  612. Reflectance = Reflectance,
  613. Transparency = Transparency,
  614. CanCollide = false,
  615. Locked = true,
  616. BrickColor = BrickColor.new(tostring(BColor)),
  617. Name = Name,
  618. Size = Size,
  619. Material = Material
  620. })
  621. RemoveOutlines(Part)
  622. return Part
  623. end
  624. },
  625. Mesh = {
  626. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  627. local Msh = Create(Mesh)({
  628. Parent = Part,
  629. Offset = OffSet,
  630. Scale = Scale
  631. })
  632. if Mesh == "SpecialMesh" then
  633. Msh.MeshType = MeshType
  634. Msh.MeshId = MeshId
  635. end
  636. return Msh
  637. end
  638. },
  639. Mesh = {
  640. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  641. local Msh = Create(Mesh)({
  642. Parent = Part,
  643. Offset = OffSet,
  644. Scale = Scale
  645. })
  646. if Mesh == "SpecialMesh" then
  647. Msh.MeshType = MeshType
  648. Msh.MeshId = MeshId
  649. end
  650. return Msh
  651. end
  652. },
  653. Weld = {
  654. Create = function(Parent, Part0, Part1, C0, C1)
  655. local Weld = Create("Weld")({
  656. Parent = Parent,
  657. Part0 = Part0,
  658. Part1 = Part1,
  659. C0 = C0,
  660. C1 = C1
  661. })
  662. return Weld
  663. end
  664. },
  665. Sound = {
  666. Create = function(id, par, vol, pit)
  667. coroutine.resume(coroutine.create(function()
  668. local S = Create("Sound")({
  669. Volume = vol,
  670. Pitch = pit or 1,
  671. SoundId = id,
  672. Parent = par or workspace
  673. })
  674. wait()
  675. S:play()
  676. game:GetService("Debris"):AddItem(S, 6)
  677. end))
  678. end
  679. },
  680. ParticleEmitter = {
  681. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  682. local fp = Create("ParticleEmitter")({
  683. Parent = Parent,
  684. Color = ColorSequence.new(Color1, Color2),
  685. LightEmission = LightEmission,
  686. Size = Size,
  687. Texture = Texture,
  688. Transparency = Transparency,
  689. ZOffset = ZOffset,
  690. Acceleration = Accel,
  691. Drag = Drag,
  692. LockedToPart = LockedToPart,
  693. VelocityInheritance = VelocityInheritance,
  694. EmissionDirection = EmissionDirection,
  695. Enabled = Enabled,
  696. Lifetime = LifeTime,
  697. Rate = Rate,
  698. Rotation = Rotation,
  699. RotSpeed = RotSpeed,
  700. Speed = Speed,
  701. VelocitySpread = VelocitySpread
  702. })
  703. return fp
  704. end
  705. }
  706. }
  707. function RemoveOutlines(part)
  708. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  709. end
  710. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  711. local Part = Create("Part")({
  712. formFactor = FormFactor,
  713. Parent = Parent,
  714. Reflectance = Reflectance,
  715. Transparency = Transparency,
  716. CanCollide = false,
  717. Locked = true,
  718. BrickColor = BrickColor.new(tostring(BColor)),
  719. Name = Name,
  720. Size = Size,
  721. Material = Material
  722. })
  723. RemoveOutlines(Part)
  724. return Part
  725. end
  726. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  727. local Msh = Create(Mesh)({
  728. Parent = Part,
  729. Offset = OffSet,
  730. Scale = Scale
  731. })
  732. if Mesh == "SpecialMesh" then
  733. Msh.MeshType = MeshType
  734. Msh.MeshId = MeshId
  735. end
  736. return Msh
  737. end
  738. function CreateWeld(Parent, Part0, Part1, C0, C1)
  739. local Weld = Create("Weld")({
  740. Parent = Parent,
  741. Part0 = Part0,
  742. Part1 = Part1,
  743. C0 = C0,
  744. C1 = C1
  745. })
  746. return Weld
  747. end
  748.  
  749.  
  750. -------------------------------------------------------
  751. --Start Effect Function--
  752. -------------------------------------------------------
  753. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  754. local NEWWELD = IT(TYPE)
  755. NEWWELD.Part0 = PART0
  756. NEWWELD.Part1 = PART1
  757. NEWWELD.C0 = C0
  758. NEWWELD.C1 = C1
  759. NEWWELD.Parent = PARENT
  760. return NEWWELD
  761. end
  762. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  763. local NEWMESH = IT(MESH)
  764. if MESH == "SpecialMesh" then
  765. NEWMESH.MeshType = MESHTYPE
  766. if MESHID ~= "nil" and MESHID ~= "" then
  767. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  768. end
  769. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  770. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  771. end
  772. end
  773. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  774. NEWMESH.Scale = SCALE
  775. NEWMESH.Parent = PARENT
  776. return NEWMESH
  777. end
  778.  
  779. EffectModel = Instance.new("Model", char)
  780. Effects = {
  781. Block = {
  782. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  783. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  784. prt.Anchored = true
  785. prt.CFrame = cframe
  786. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  787. game:GetService("Debris"):AddItem(prt, 10)
  788. if Type == 1 or Type == nil then
  789. table.insert(Effects, {
  790. prt,
  791. "Block1",
  792. delay,
  793. x3,
  794. y3,
  795. z3,
  796. msh
  797. })
  798. elseif Type == 2 then
  799. table.insert(Effects, {
  800. prt,
  801. "Block2",
  802. delay,
  803. x3,
  804. y3,
  805. z3,
  806. msh
  807. })
  808. else
  809. table.insert(Effects, {
  810. prt,
  811. "Block3",
  812. delay,
  813. x3,
  814. y3,
  815. z3,
  816. msh
  817. })
  818. end
  819. end
  820. },
  821. Sphere = {
  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, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  827. game:GetService("Debris"):AddItem(prt, 10)
  828. table.insert(Effects, {
  829. prt,
  830. "Cylinder",
  831. delay,
  832. x3,
  833. y3,
  834. z3,
  835. msh
  836. })
  837. end
  838. },
  839. Cylinder = {
  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("CylinderMesh", prt, "", "", 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. Wave = {
  858. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  859. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  860. prt.Anchored = true
  861. prt.CFrame = cframe
  862. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  863. Cso("2755928629", tors, 10, 1)
  864. chatfunc("print (''you got that'')", BrickColor.new("Really red").Color)
  865. wait(0,35)
  866. game:GetService("Debris"):AddItem(prt, 10)
  867. table.insert(Effects, {
  868. prt,
  869. "Cylinder",
  870. delay,
  871. x3 / 60,
  872. y3 / 60,
  873. z3 / 60,
  874. msh
  875. })
  876. end
  877. },
  878. Ring = {
  879. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  880. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  881. prt.Anchored = true
  882. prt.CFrame = cframe
  883. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. table.insert(Effects, {
  886. prt,
  887. "Cylinder",
  888. delay,
  889. x3,
  890. y3,
  891. z3,
  892. msh
  893. })
  894. end
  895. },
  896. Break = {
  897. Create = function(brickcolor, cframe, x1, y1, z1)
  898. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  899. prt.Anchored = true
  900. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  901. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  902. local num = math.random(10, 50) / 1000
  903. game:GetService("Debris"):AddItem(prt, 10)
  904. table.insert(Effects, {
  905. prt,
  906. "Shatter",
  907. num,
  908. prt.CFrame,
  909. math.random() - math.random(),
  910. 0,
  911. math.random(50, 100) / 100
  912. })
  913. end
  914. },
  915. Spiral = {
  916. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  917. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  918. prt.Anchored = true
  919. prt.CFrame = cframe
  920. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  921. game:GetService("Debris"):AddItem(prt, 10)
  922. table.insert(Effects, {
  923. prt,
  924. "Cylinder",
  925. delay,
  926. x3,
  927. y3,
  928. z3,
  929. msh
  930. })
  931. end
  932. },
  933. Push = {
  934. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  935. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  939. game:GetService("Debris"):AddItem(prt, 10)
  940. table.insert(Effects, {
  941. prt,
  942. "Cylinder",
  943. delay,
  944. x3,
  945. y3,
  946. z3,
  947. msh
  948. })
  949. end
  950. }
  951. }
  952. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  953. local fp = IT("Part")
  954. fp.formFactor = formfactor
  955. fp.Parent = parent
  956. fp.Reflectance = reflectance
  957. fp.Transparency = transparency
  958. fp.CanCollide = false
  959. fp.Locked = true
  960. fp.BrickColor = brickcolor
  961. fp.Name = name
  962. fp.Size = size
  963. fp.Position = tors.Position
  964. RemoveOutlines(fp)
  965. fp.Material = "SmoothPlastic"
  966. fp:BreakJoints()
  967. return fp
  968. end
  969.  
  970. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  971. local mesh = IT(Mesh)
  972. mesh.Parent = part
  973. if Mesh == "SpecialMesh" then
  974. mesh.MeshType = meshtype
  975. if meshid ~= "nil" then
  976. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  977. end
  978. end
  979. mesh.Offset = offset
  980. mesh.Scale = scale
  981. return mesh
  982. end
  983.  
  984. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  985. local type = type
  986. local rng = Instance.new("Part", char)
  987. rng.Anchored = true
  988. rng.BrickColor = color
  989. rng.CanCollide = false
  990. rng.FormFactor = 3
  991. rng.Name = "Ring"
  992. rng.Material = "Neon"
  993. rng.Size = Vector3.new(1, 1, 1)
  994. rng.Transparency = 0
  995. rng.TopSurface = 0
  996. rng.BottomSurface = 0
  997. rng.CFrame = pos
  998. local rngm = Instance.new("SpecialMesh", rng)
  999. rngm.MeshType = MType
  1000. rngm.Scale = scale
  1001. local scaler2 = 1
  1002. if type == "Add" then
  1003. scaler2 = 1 * value
  1004. elseif type == "Divide" then
  1005. scaler2 = 1 / value
  1006. end
  1007. coroutine.resume(coroutine.create(function()
  1008. for i = 0, 10 / bonuspeed, 0.1 do
  1009. swait()
  1010. if type == "Add" then
  1011. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1012. elseif type == "Divide" then
  1013. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1014. end
  1015. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1016. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1017. end
  1018. rng:Destroy()
  1019. end))
  1020. end
  1021.  
  1022. function Eviscerate(dude)
  1023. if dude.Name ~= char then
  1024. local bgf = IT("BodyGyro", dude.Head)
  1025. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1026. local val = IT("BoolValue", dude)
  1027. val.Name = "IsHit"
  1028. local ds = coroutine.wrap(function()
  1029. dude:WaitForChild("Head"):BreakJoints()
  1030. wait(0.5)
  1031. target = nil
  1032. coroutine.resume(coroutine.create(function()
  1033. for i, v in pairs(dude:GetChildren()) do
  1034. if v:IsA("Accessory") then
  1035. v:Destroy()
  1036. end
  1037. if v:IsA("Humanoid") then
  1038. v:Destroy()
  1039. end
  1040. if v:IsA("CharacterMesh") then
  1041. v:Destroy()
  1042. end
  1043. if v:IsA("Model") then
  1044. v:Destroy()
  1045. end
  1046. if v:IsA("Part") or v:IsA("MeshPart") then
  1047. for x, o in pairs(v:GetChildren()) do
  1048. if o:IsA("Decal") then
  1049. o:Destroy()
  1050. end
  1051. end
  1052. coroutine.resume(coroutine.create(function()
  1053. v.Material = "Neon"
  1054. v.CanCollide = false
  1055. local PartEmmit1 = IT("ParticleEmitter", v)
  1056. PartEmmit1.LightEmission = 1
  1057. PartEmmit1.Texture = "rbxassetid://284205403"
  1058. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1059. PartEmmit1.Rate = 150
  1060. PartEmmit1.Lifetime = NumberRange.new(1)
  1061. PartEmmit1.Size = NumberSequence.new({
  1062. NumberSequenceKeypoint.new(0, 0.75, 0),
  1063. NumberSequenceKeypoint.new(1, 0, 0)
  1064. })
  1065. PartEmmit1.Transparency = NumberSequence.new({
  1066. NumberSequenceKeypoint.new(0, 0, 0),
  1067. NumberSequenceKeypoint.new(1, 1, 0)
  1068. })
  1069. PartEmmit1.Speed = NumberRange.new(0, 0)
  1070. PartEmmit1.VelocitySpread = 30000
  1071. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1072. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1073. local BodPoss = IT("BodyPosition", v)
  1074. BodPoss.P = 3000
  1075. BodPoss.D = 1000
  1076. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1077. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1078. v.Color = maincolor.Color
  1079. coroutine.resume(coroutine.create(function()
  1080. for i = 0, 49 do
  1081. swait(1)
  1082. v.Transparency = v.Transparency + 0.08
  1083. end
  1084. wait(0.5)
  1085. PartEmmit1.Enabled = false
  1086. wait(3)
  1087. v:Destroy()
  1088. dude:Destroy()
  1089. end))
  1090. end))
  1091. end
  1092. end
  1093. end))
  1094. end)
  1095. ds()
  1096. end
  1097. end
  1098.  
  1099. function FindNearestHead(Position, Distance, SinglePlayer)
  1100. if SinglePlayer then
  1101. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1102. end
  1103. local List = {}
  1104. for i, v in pairs(workspace:GetChildren()) do
  1105. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1106. table.insert(List, v)
  1107. end
  1108. end
  1109. return List
  1110. end
  1111.  
  1112. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1113. local type = type
  1114. local rng = Instance.new("Part", char)
  1115. rng.Anchored = true
  1116. rng.BrickColor = color
  1117. rng.CanCollide = false
  1118. rng.FormFactor = 3
  1119. rng.Name = "Ring"
  1120. rng.Material = "Neon"
  1121. rng.Size = Vector3.new(1, 1, 1)
  1122. rng.Transparency = 0
  1123. rng.TopSurface = 0
  1124. rng.BottomSurface = 0
  1125. rng.CFrame = pos
  1126. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1127. local rngm = Instance.new("SpecialMesh", rng)
  1128. rngm.MeshType = MType
  1129. rngm.Scale = Vector3.new(x1, y1, z1)
  1130. local scaler2 = 1
  1131. local speeder = FastSpeed
  1132. if type == "Add" then
  1133. scaler2 = 1 * value
  1134. elseif type == "Divide" then
  1135. scaler2 = 1 / value
  1136. end
  1137. coroutine.resume(coroutine.create(function()
  1138. for i = 0, 10 / bonuspeed, 0.1 do
  1139. swait()
  1140. if type == "Add" then
  1141. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1142. elseif type == "Divide" then
  1143. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1144. end
  1145. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1146. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1147. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1148. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1149. end
  1150. rng:Destroy()
  1151. end))
  1152. end
  1153.  
  1154. function SoulSteal(dude)
  1155. if dude.Name ~= char then
  1156. local bgf = IT("BodyGyro", dude.Head)
  1157. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1158. local val = IT("BoolValue", dude)
  1159. val.Name = "IsHit"
  1160. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1161. local soulst = coroutine.wrap(function()
  1162. local soul = Instance.new("Part",dude)
  1163. soul.Size = Vector3.new(1,1,1)
  1164. soul.CanCollide = false
  1165. soul.Anchored = false
  1166. soul.Position = torso.Position
  1167. soul.Transparency = 1
  1168. local PartEmmit1 = IT("ParticleEmitter", soul)
  1169. PartEmmit1.LightEmission = 1
  1170. PartEmmit1.Texture = "rbxassetid://569507414"
  1171. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1172. PartEmmit1.Rate = 250
  1173. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1174. PartEmmit1.Size = NumberSequence.new({
  1175. NumberSequenceKeypoint.new(0, 1, 0),
  1176. NumberSequenceKeypoint.new(1, 0, 0)
  1177. })
  1178. PartEmmit1.Transparency = NumberSequence.new({
  1179. NumberSequenceKeypoint.new(0, 0, 0),
  1180. NumberSequenceKeypoint.new(1, 1, 0)
  1181. })
  1182. PartEmmit1.Speed = NumberRange.new(0, 0)
  1183. PartEmmit1.VelocitySpread = 30000
  1184. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1185. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1186. local BodPoss = IT("BodyPosition", soul)
  1187. BodPoss.P = 3000
  1188. BodPoss.D = 1000
  1189. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1190. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1191. wait(1.6)
  1192. soul.Touched:connect(function(hit)
  1193. if hit.Parent == char then
  1194. soul:Destroy()
  1195. end
  1196. end)
  1197. wait(1.2)
  1198. while soul do
  1199. swait()
  1200. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1201. BodPoss.Position = tors.Position
  1202. end
  1203. end)
  1204. soulst()
  1205. end
  1206. end
  1207. function FaceMouse()
  1208. local Cam = workspace.CurrentCamera
  1209. return {
  1210. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1211. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1212. }
  1213. end
  1214.  
  1215. ------------------------------------------------------
  1216. --End Effect Function--
  1217. -------------------------------------------------------
  1218. function Cso(ID, PARENT, VOLUME, PITCH)
  1219. local NSound = nil
  1220. coroutine.resume(coroutine.create(function()
  1221. NSound = IT("Sound", PARENT)
  1222. NSound.Volume = VOLUME
  1223. NSound.Pitch = PITCH
  1224. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1225. swait()
  1226. NSound:play()
  1227. game:GetService("Debris"):AddItem(NSound, 50)
  1228. end))
  1229. return NSound
  1230. end
  1231. function CameraEnshaking(Length, Intensity)
  1232. coroutine.resume(coroutine.create(function()
  1233. local intensity = 1 * Intensity
  1234. local rotM = 0.01 * Intensity
  1235. for i = 0, Length, 0.1 do
  1236. swait()
  1237. intensity = intensity - 0.05 * Intensity / Length
  1238. rotM = rotM - 5.0E-4 * Intensity / Length
  1239. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1240. 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)
  1241. end
  1242. hum.CameraOffset = Vector3.new(0, 0, 0)
  1243. end))
  1244. end
  1245. -------------------------------------------------------
  1246. --End Important Functions--
  1247. -------------------------------------------------------
  1248.  
  1249.  
  1250. -------------------------------------------------------
  1251. --Start Customization--
  1252. -------------------------------------------------------
  1253. local Player_Size = 1
  1254. if Player_Size ~= 1 then
  1255. root.Size = root.Size * Player_Size
  1256. tors.Size = tors.Size * Player_Size
  1257. hed.Size = hed.Size * Player_Size
  1258. ra.Size = ra.Size * Player_Size
  1259. la.Size = la.Size * Player_Size
  1260. rl.Size = rl.Size * Player_Size
  1261. ll.Size = ll.Size * Player_Size
  1262. ----------------------------------------------------------------------------------
  1263. rootj.Parent = root
  1264. neck.Parent = tors
  1265. RW.Parent = tors
  1266. LW.Parent = tors
  1267. RH.Parent = tors
  1268. LH.Parent = tors
  1269. ----------------------------------------------------------------------------------
  1270. rootj.C0 = RootCF * CF(5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1271. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1272. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((5 * Player_Size) - 5)) * angles(Rad(0), Rad(0), Rad(0))
  1273. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1274. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1275. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1276. ----------------------------------------------------------------------------------
  1277. RH.C0 = CF(5 * Player_Size, -5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1278. LH.C0 = CF(-5 * Player_Size, -5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1279. RH.C1 = CF(5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1280. LH.C1 = CF(-5 * Player_Size, 5 * Player_Size, 5 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1281. --hat.Parent = Character
  1282. end
  1283. ----------------------------------------------------------------------------------
  1284. ----------------------------------------------------------------------------------
  1285. local equipped = false
  1286. local idle = 0
  1287. local change = 1
  1288. local val = 0
  1289. local toim = 0
  1290. local idleanim = 0.4
  1291. local sine = 0
  1292. local Sit = 1
  1293. ----------------------------------------------------------------------------------
  1294. hum.WalkSpeed = 8
  1295. hum.JumpPower = 57
  1296. hum.Animator.Parent = nil
  1297. ----------------------------------------------------------------------------------
  1298. local Blob = Instance.new("Part", char)
  1299. Blob.Name = "Bloby"
  1300. Blob.CanCollide = false
  1301. Blob.BrickColor = BrickColor.new("Really black")
  1302. Blob.Transparency = 0
  1303. Blob.Material = "Plastic"
  1304. Blob.Size = Vector3.new(1, 1, 2)
  1305. Blob.TopSurface = Enum.SurfaceType.Smooth
  1306. Blob.BottomSurface = Enum.SurfaceType.Smooth
  1307.  
  1308. local Weld = Instance.new("Weld", Blob)
  1309. Weld.Part0 = ra
  1310. Weld.Part1 = Blob
  1311. Weld.C1 = CFrame.new(0, -2, 1.1)
  1312. Weld.C0 = CFrame.Angles(Rad(-86),0,0)
  1313.  
  1314. local M2 = Instance.new("SpecialMesh")
  1315. M2.Parent = Blob
  1316. M2.MeshId = "http://www.roblox.com/asset/?id=432791411"
  1317. M2.TextureId = "http://www.roblox.com/asset/?id=160810181"
  1318. M2.Scale = Vector3.new(2, 2, 2)
  1319.  
  1320. --[[local naeeym2 = Instance.new("BillboardGui",char)
  1321. naeeym2.AlwaysOnTop = true
  1322. naeeym2.Size = UDim2.new(5,35,2,15)
  1323. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1324. naeeym2.Adornee = hed
  1325. naeeym2.Name = "Name"
  1326. --naeeym2.PlayerToHideFrom = Player
  1327. local tecks2 = Instance.new("TextLabel",naeeym2)
  1328. tecks2.BackgroundTransparency = 1
  1329. tecks2.TextScaled = true
  1330. tecks2.BorderSizePixel = 0
  1331. tecks2.Text = "Fight Me"
  1332. tecks2.Font = Enum.Font.Bodoni
  1333. tecks2.TextSize = 30
  1334. tecks2.TextStrokeTransparency = 0
  1335. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1336. tecks2.TextStrokeColor3 = Color3.new(205, 84, 75)
  1337. tecks2.Size = UDim2.new(1,0,0.5,0)
  1338. tecks2.Parent = naeeym2]]
  1339. -------------------------------------------------------
  1340. --End Customization--
  1341. -------------------------------------------------------
  1342.  
  1343. -------------------------------------------------------
  1344. --Start Attacks N Stuff--
  1345. -------------------------------------------------------
  1346. local naeeym2 = Instance.new("BillboardGui",char)
  1347. naeeym2.AlwaysOnTop = true
  1348. naeeym2.Size = UDim2.new(5,35,2,35)
  1349. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1350. naeeym2.Adornee = hed
  1351. naeeym2.Name = "Name"
  1352.  
  1353. local tecks2 = Instance.new("TextLabel",naeeym2)
  1354. CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
  1355. tecks2.BackgroundTransparency = 1
  1356. tecks2.TextScaled = true
  1357. tecks2.BorderSizePixel = 0
  1358. tecks2.Text = ""
  1359. tecks2.Font = "Fantasy"
  1360. tecks2.TextSize = 30
  1361. tecks2.TextStrokeTransparency = 0
  1362. tecks2.TextColor3 = BrickColor.new('Really red').Color
  1363. tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
  1364. tecks2.Size = UDim2.new(1,0,0.5,0)
  1365. tecks2.Parent = naeeym2
  1366. textfag = tecks2
  1367. CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
  1368. tecks2.Text = ""
  1369. CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1)
  1370. tecks2.Text = "script by xdielivex"
  1371. wait(0.5)
  1372. tecks2.Text = "Rosarian"
  1373. wait(0.5)
  1374. CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
  1375. tecks2.Text = ""
  1376. coroutine.resume(coroutine.create(function()
  1377. while textfag ~= nil do
  1378. swait()
  1379. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  1380. textfag.Rotation = math.random(-3,3)
  1381. end
  1382. end))
  1383.  
  1384. hed.face.Texture = "http://www.roblox.com/asset/?id=0"
  1385. for i,v in pairs(char:children()) do
  1386. if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
  1387. v:Remove()
  1388. end
  1389. end
  1390. shirt = Instance.new("Shirt", char)
  1391. shirt.Name = "Shirt"
  1392. pants = Instance.new("Pants", char)
  1393. pants.Name = "Pants"
  1394. char.Shirt.ShirtTemplate = "rbxassetid://2018917293"
  1395. char.Pants.PantsTemplate = "rbxassetid://398633812"
  1396. local Hair2 = Instance.new("Part", char)
  1397. Hair2.Name = "Hair2"
  1398. Hair2.CanCollide = false
  1399. Hair2.BrickColor = BrickColor.new("CGA brown")
  1400. Hair2.Transparency = 0
  1401. Hair2.Material = "Plastic"
  1402. Hair2.Size = Vector3.new(1, 1, 2)
  1403. Hair2.TopSurface = Enum.SurfaceType.Smooth
  1404. Hair2.BottomSurface = Enum.SurfaceType.Smooth
  1405.  
  1406. local Weld = Instance.new("Weld", Hair2)
  1407. Weld.Part0 = hed
  1408. Weld.Part1 = Hair2
  1409. Weld.C1 = CFrame.new(0,-0.1,0.60)
  1410. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1411.  
  1412. local M2 = Instance.new("SpecialMesh")
  1413. M2.Parent = Hair2
  1414. M2.MeshId = "http://www.roblox.com/asset/?id=1703946602"
  1415. M2.TextureId = "http://www.roblox.com/asset/?id=916236071"
  1416. M2.Scale = Vector3.new(1, 1, 1)
  1417. local AddInstance = function(Object, ...)
  1418. local Obj = Instance.new(Object)
  1419. for i,v in next,(...) do
  1420. Obj[i] = v
  1421. end
  1422. return Obj
  1423. end
  1424. ----------------------------------------------------
  1425. local Reaper = AddInstance("Part",{
  1426. Parent = hed,
  1427. CFrame = hed.CFrame,
  1428. formFactor = "Symmetric",
  1429. Size = Vector3.new(1, 1, 1),
  1430. CanCollide = false,
  1431. TopSurface = "Smooth",
  1432. BottomSurface = "Smooth",
  1433. Locked = true,
  1434. })
  1435. local Weld = AddInstance("Weld",{
  1436. Parent = Reaper,
  1437. Part0 = hed,
  1438. C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
  1439. Part1 = Reaper,
  1440. })
  1441. local Mesh = AddInstance("SpecialMesh",{
  1442. Parent = Reaper,
  1443. MeshId = "rbxassetid://0",
  1444. TextureId = "rbxassetid://0",
  1445. Scale = Vector3.new(1.1, 1.1, 1.1),
  1446. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1447. })
  1448. -------------------------------------------------------
  1449. wait()
  1450. plr = game.Players.LocalPlayer
  1451. char = plr.Character
  1452. mouse = plr:GetMouse()
  1453. epicmode = false
  1454. normal = true
  1455. for i,v in pairs(char:GetChildren()) do
  1456. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  1457. v:Destroy()
  1458. end
  1459. end
  1460. for i,v in pairs(char:GetChildren()) do
  1461. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  1462. v:Destroy()
  1463. end
  1464. end
  1465. ----------------------------------------------------------------------
  1466. Circle = nil
  1467. CircleParts = {}
  1468. Equipped = false
  1469.  
  1470. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1471. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1472. end
  1473. Equipped = true
  1474. Circle = Instance.new("Model")
  1475. Circle.Name = "Circle"
  1476. Angle = 0
  1477. for i = 1, 1 do
  1478. local CirclePart = Instance.new("Part")
  1479. CirclePart.Name = "CirclePart"
  1480. CirclePart.Transparency = 1
  1481. CirclePart.BrickColor = BrickColor.new("Really black")
  1482. CirclePart.Material = Enum.Material.Plastic
  1483. CirclePart.Shape = Enum.PartType.Block
  1484. CirclePart.FormFactor = Enum.FormFactor.Custom
  1485. CirclePart.TopSurface = Enum.SurfaceType.Smooth
  1486. CirclePart.BottomSurface = Enum.SurfaceType.Smooth
  1487. CirclePart.Anchored = true
  1488. CirclePart.CanCollide = false
  1489. CirclePart.Locked = true
  1490. CirclePart.Size = Vector3.new(10, 0.2, 10)
  1491. local Aura = Instance.new('ParticleEmitter')
  1492. Aura.Name = "Aura"
  1493. Aura.Texture = "rbxassetid://0"
  1494. Aura.Parent = CirclePart
  1495. Aura.LightEmission = 0
  1496. Aura.Transparency = NumberSequence.new(0.2,0.4,1)
  1497. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200))
  1498. Aura.Size = NumberSequence.new(0.9,0.5,0.3)
  1499. Aura.LockedToPart = false
  1500. Aura.Lifetime = NumberRange.new(1)
  1501. Aura.Rate = 50
  1502. Aura.Speed = NumberRange.new(2.5)
  1503. Aura.SpreadAngle = Vector2.new(80,80)
  1504. local BlockMesh = Instance.new("BlockMesh")
  1505. BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
  1506. BlockMesh.Parent = CirclePart
  1507. CirclePart.Parent = Circle
  1508. local Star = Instance.new("Decal", CirclePart)
  1509. Star.Texture = "http://www.roblox.com/asset/?id=124339739"
  1510. Star.Face = "Top"
  1511. local Light = Instance.new("PointLight", CirclePart)
  1512. Light.Color = Color3.new(.20,0,0)
  1513. Light.Brightness = 100
  1514. Light.Range = 15
  1515. table.insert(CircleParts, CirclePart)
  1516. end
  1517. Spawn(function()
  1518. while Equipped and Humanoid.Parent and Torso.Parent do
  1519. if Angle == 360 then
  1520. Angle = 0
  1521. end
  1522. Angle = Angle + 0.05
  1523. local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
  1524. if Hit then
  1525. if not Circle.Parent then
  1526. Circle.Parent = Character
  1527. end
  1528. for i, v in pairs(CircleParts) do
  1529. v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  1530. end
  1531. else
  1532. Circle.Parent = nil
  1533. end
  1534. wait()
  1535. end
  1536. end)
  1537.  
  1538. function chatfunc(text, color)
  1539. local chat = coroutine.wrap(function()
  1540. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1541. char:FindFirstChild("TalkingBillBoard"):destroy()
  1542. end
  1543. local naeeym2 = Instance.new("BillboardGui", char)
  1544. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1545. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  1546. naeeym2.Adornee = hed
  1547. naeeym2.Name = "TalkingBillBoard"
  1548. local tecks2 = Instance.new("TextLabel", naeeym2)
  1549. tecks2.BackgroundTransparency = 1
  1550. tecks2.BorderSizePixel = 0
  1551. tecks2.Text = ""
  1552. tecks2.Font = "Fantasy"
  1553. tecks2.TextSize = 30
  1554. tecks2.TextStrokeTransparency = 0
  1555. tecks2.TextColor3 = color
  1556. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1557. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1558. local tecks3 = Instance.new("TextLabel", naeeym2)
  1559. tecks3.BackgroundTransparency = 1
  1560. tecks3.BorderSizePixel = 0
  1561. tecks3.Text = ""
  1562. tecks3.Font = "Fantasy"
  1563. tecks3.TextSize = 30
  1564. tecks3.TextStrokeTransparency = 0
  1565. tecks3.TextColor3 = Color3.new(0, 0, 0)
  1566. tecks3.TextStrokeColor3 = color
  1567. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  1568. coroutine.resume(coroutine.create(function()
  1569. while true do
  1570. swait(1)
  1571. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1572. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1573. tecks2.Rotation = math.random(-5, 5)
  1574. tecks3.Rotation = math.random(-5, 5)
  1575. end
  1576. end))
  1577. for i = 1, string.len(text) do
  1578. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  1579. tecks2.Text = string.sub(text, 1, i)
  1580. tecks3.Text = string.sub(text, 1, i)
  1581. swait(1)
  1582. end
  1583. wait(1)
  1584. local randomrot = math.random(1, 2)
  1585. if randomrot == 1 then
  1586. for i = 1, 50 do
  1587. swait()
  1588. tecks2.Rotation = tecks2.Rotation - 0.75
  1589. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1590. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1591. tecks3.Rotation = tecks2.Rotation + 0.75
  1592. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1593. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1594. end
  1595. elseif randomrot == 2 then
  1596. for i = 1, 50 do
  1597. swait()
  1598. tecks2.Rotation = tecks2.Rotation + 0.75
  1599. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1600. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1601. tecks3.Rotation = tecks2.Rotation - 0.75
  1602. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1603. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1604. end
  1605. end
  1606. naeeym2:Destroy()
  1607. end)
  1608. chat()
  1609. end
  1610. ---------------------------------------------------------
  1611.  
  1612. wait()
  1613. local Hair = AddInstance("Part",{
  1614. Parent = hed,
  1615. CFrame = hed.CFrame,
  1616. formFactor = "Symmetric",
  1617. Size = Vector3.new(1, 1, 1),
  1618. CanCollide = false,
  1619. TopSurface = "Smooth",
  1620. BottomSurface = "Smooth",
  1621. Locked = true,
  1622. })
  1623. local Weld = AddInstance("Weld",{
  1624. Parent = Hair,
  1625. Part0 = hed,
  1626. C0 = CFrame.new(0, 0.5, 0)*CFrame.Angles(0, 0.5, 0),
  1627. Part1 = Hair,
  1628. })
  1629. local Mesh = AddInstance("SpecialMesh",{
  1630. Parent = Hair,
  1631. MeshId = "rbxassetid://1031109404",
  1632. TextureId = "rbxassetid://1031109414",
  1633. Scale = Vector3.new(1, 1, 1),
  1634. VertexColor = Vector3.new(1, 1, 1),
  1635. })
  1636. -------------------------------------------------------
  1637. local Cape = AddInstance("Part",{
  1638. Parent = hed,
  1639. CFrame = hed.CFrame,
  1640. formFactor = "Symmetric",
  1641. Size = Vector3.new(1, 1, 1),
  1642. CanCollide = false,
  1643. TopSurface = "Smooth",
  1644. BottomSurface = "Smooth",
  1645. Locked = true,
  1646. })
  1647. local Weld = AddInstance("Weld",{
  1648. Parent = Cape,
  1649. Part0 = hed,
  1650. C0 = CFrame.new(0, -0.15, -0.55)*CFrame.Angles(0, 0, 1.4),
  1651. Part1 = Cape,
  1652. })
  1653. local Mesh = AddInstance("SpecialMesh",{
  1654. Parent = Cape,
  1655. MeshId = "rbxassetid://430356779",
  1656. TextureId = "rbxassetid://430356811",
  1657. Scale = Vector3.new(0.02,0.02,0.02),
  1658. VertexColor = Vector3.new(1, 1, 1),
  1659. })
  1660. BTAUNT = Instance.new("Sound", tors)
  1661. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=379861893"
  1662. BTAUNT.Volume = 10
  1663. BTAUNT.Pitch = 1
  1664. BTAUNT.Looped = true
  1665. BTAUNT.TimePosition = 0.2
  1666. BTAUNT:Play()
  1667. for i,v in pairs(char:GetChildren()) do
  1668. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  1669. v:Destroy()
  1670. end
  1671. local shirt = Instance.new("Shirt",char)
  1672. shirt.ShirtTemplate = "rbxassetid://268316000"
  1673. local pants = Instance.new("Pants",char)
  1674. pants.PantsTemplate = "rbxassetid://268949770"
  1675. for i,v in pairs(char:GetChildren()) do
  1676. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  1677. v:Destroy()
  1678. end
  1679. end
  1680. end
  1681. local BC = char["Body Colors"]
  1682. BC.HeadColor = BrickColor.new("Really black")
  1683. BC.LeftArmColor = BrickColor.new("Really black")
  1684. BC.LeftLegColor = BrickColor.new("Really black")
  1685. BC.RightArmColor = BrickColor.new("Really black")
  1686. BC.RightLegColor = BrickColor.new("Really black")
  1687. BC.TorsoColor = BrickColor.new("Really black")
  1688.  
  1689. TAUNT = Instance.new("Sound", tors)
  1690. TAUNT.SoundId = "http://www.roblox.com/asset/?id=1535994137"
  1691. TAUNT.Volume = 10
  1692. TAUNT.Pitch = 1
  1693. TAUNT.Looped = false
  1694. TAUNT.TimePosition = 0.12
  1695.  
  1696. function Taunt()
  1697. attack = true
  1698. hum.WalkSpeed = 0
  1699. TAUNT:Play()
  1700. repeat
  1701. swait()
  1702. TAUNT.Parent = tors
  1703. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(25)), 0.15)
  1704. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-3 - 1.5 * Cos(sine / 7)), Rad(0), Rad(-25)), 0.3)
  1705. RH.C0 = clerp(RH.C0, CF(.8* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, .2* Player_Size) * angles(Rad(0), Rad(45), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1706. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1707. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-20), Rad(25)), 0.1)
  1708. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(78 + 3.5 * Cos(sine / 20)), Rad(-25), Rad(-20)), 0.1)
  1709. until TAUNT.Playing == false
  1710. attack = false
  1711. hum.WalkSpeed = 8
  1712. end
  1713. ---------------------------------------------------------
  1714.  
  1715. mouse.KeyDown:connect(function(key)
  1716. if attack == false then
  1717. if key == "t" then
  1718. Taunt()
  1719. end
  1720. elseif key == "q" then
  1721. local Reape = AddInstance("Part",{
  1722. Parent = hed,
  1723. CFrame = hed.CFrame,
  1724. formFactor = "Symmetric",
  1725. Size = Vector3.new(1, 1, 1),
  1726. CanCollide = false,
  1727. TopSurface = "Smooth",
  1728. BottomSurface = "Smooth",
  1729. Locked = true,
  1730. })
  1731. local Weld = AddInstance("Weld",{
  1732. Parent = Reape,
  1733. Part0 = tors,
  1734. C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
  1735. Part1 = Reape,
  1736. })
  1737. local Mesh = AddInstance("SpecialMesh",{
  1738. Parent = Reape,
  1739. MeshId = "rbxassetid://843574398",
  1740. TextureId = "rbxassetid://843574413",
  1741. Scale = Vector3.new(0.15, 0.15, 0.15),
  1742. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1743. })
  1744. end
  1745. end)
  1746.  
  1747. -----------------------STUFF HERE------------------------
  1748.  
  1749.  
  1750.  
  1751. ---------------------------------------------------------
  1752.  
  1753. -------------------------------------------------------
  1754. --Start Animations--
  1755. -------------------------------------------------------
  1756. while true do
  1757. swait()
  1758. sine = sine + change
  1759. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1760. local velderp = root.Velocity.y
  1761. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1762. if equipped == true or equipped == false then
  1763. if attack == false then
  1764. idle = idle + 1
  1765. else
  1766. idle = 0
  1767. end
  1768. if 1 < root.Velocity.y and hitfloor == nil then
  1769. Anim = "Jump"
  1770. if attack == false then
  1771. 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)
  1772. 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)
  1773. 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)
  1774. 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)
  1775. 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)
  1776. 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)
  1777. end
  1778. elseif -1 > root.Velocity.y and hitfloor == nil then
  1779. Anim = "Fall"
  1780. if attack == false then
  1781. 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)
  1782. 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)
  1783. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1784. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1785. 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)
  1786. 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)
  1787. end
  1788. elseif torvel < 1 and hitfloor ~= nil then
  1789. Anim = "Idle"
  1790. change = 1
  1791. if attack == false then
  1792. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08)
  1793. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
  1794. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
  1795. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
  1796. RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08)
  1797. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  1798. end
  1799. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1800. Anim = "Walk"
  1801. change = 1
  1802. if attack == false then
  1803. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15)
  1804. 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)
  1805. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * 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)
  1806. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * 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)
  1807. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1)
  1808. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1)
  1809. end
  1810. elseif torvel >= 25 and hitfloor ~= nil then
  1811. Anim = "Sprint"
  1812. change = 1.35
  1813. if attack == false then
  1814. 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)
  1815. 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)
  1816. 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)
  1817. 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)
  1818. 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)
  1819. 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)
  1820. end
  1821. end
  1822. end
  1823. if 0 < #Effects then
  1824. for e = 1, #Effects do
  1825. if Effects[e] ~= nil then
  1826. local Thing = Effects[e]
  1827. if Thing ~= nil then
  1828. local Part = Thing[1]
  1829. local Mode = Thing[2]
  1830. local Delay = Thing[3]
  1831. local IncX = Thing[4]
  1832. local IncY = Thing[5]
  1833. local IncZ = Thing[6]
  1834. if 1 >= Thing[1].Transparency then
  1835. if Thing[2] == "Block1" then
  1836. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1837. local Mesh = Thing[1].Mesh
  1838. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1839. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1840. elseif Thing[2] == "Block2" then
  1841. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1842. local Mesh = Thing[7]
  1843. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1844. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1845. elseif Thing[2] == "Block3" then
  1846. 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)
  1847. local Mesh = Thing[7]
  1848. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1849. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1850. elseif Thing[2] == "Cylinder" then
  1851. local Mesh = Thing[1].Mesh
  1852. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1853. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1854. elseif Thing[2] == "Blood" then
  1855. local Mesh = Thing[7]
  1856. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1857. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1858. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1859. elseif Thing[2] == "Elec" then
  1860. local Mesh = Thing[1].Mesh
  1861. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1862. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1863. elseif Thing[2] == "Disappear" then
  1864. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1865. elseif Thing[2] == "Shatter" then
  1866. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1867. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1868. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1869. Thing[6] = Thing[6] + Thing[5]
  1870. end
  1871. else
  1872. Part.Parent = nil
  1873. table.remove(Effects, e)
  1874. end
  1875. end
  1876. end
  1877. end
  1878. end
  1879. end
  1880. -------------------------------------------------------
  1881. --End Animations And Script--
  1882. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement