Advertisement
McSans

Wanderer fe by me

Mar 11th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- READ THIS PART
  2. -- TO GET THIS TO WORK JUST PASTE IT AT THE TOP OF YOUR SCRIPT AND SAVE IT
  3. -- NOW DELETE THESE LINES IF YOU WANT
  4.  
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. warn("FE Compatibility code by retram")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  56. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  57. end
  58. for _,t in pairs(CAS.Actions) do
  59. for _,k in pairs(t.Keys) do
  60. if k==io.KeyCode then
  61. t.Function(t.Name,io.UserInputState,io)
  62. end
  63. end
  64. end
  65. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  66. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  67. end
  68. end)
  69. Event.Parent = NLS([==[
  70. local Player = game:GetService("Players").LocalPlayer
  71. local Event = script:WaitForChild("UserInput_Event")
  72. local Mouse = Player:GetMouse()
  73. local UIS = game:GetService("UserInputService")
  74. local input = function(io,a)
  75. if a then return end
  76. --Since InputObject is a client-side instance, we create and pass table instead
  77. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  78. end
  79. UIS.InputBegan:Connect(input)
  80. UIS.InputEnded:Connect(input)
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then
  100. return typeof(s[k])=="function"
  101. and function(_,...)return s[k](s,...)end or s[k]
  102. end
  103. end,
  104. __newindex = function(self,k,v)
  105. local s = rawget(self,"_RealService")
  106. if s then s[k]=v end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return rawget(self,s) or _rg:GetService(s)
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. RunService = FakeService({
  125. _btrs = {},
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137. FakeService(g,game)
  138. --Changing owner to fake player object to support owner:GetMouse()
  139. game,owner = g,g.Players.LocalPlayer
  140. end -----------------------
  141. --[[ Name : Wanderer ]]--
  142. -------------------------------------------------------
  143. --A script By makhail07
  144.  
  145. --Discord Creterisk#2958
  146.  
  147. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  148. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  149. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  150. --YOU FUCKING SKIDS,
  151. --For Those who log/decompile this, If you sell or trade this,
  152. --and I find out who you are, i will take massive action.
  153.  
  154. -------------------------------------------------------
  155.  
  156. local FavIDs = {
  157. 340106355, --Nefl Crystals
  158. 927529620, --Dimension
  159. 876981900, --Fantasy
  160. 398987889, --Ordinary Days
  161. 1117396305, --Oh wait, it's you.
  162. 885996042, --Action Winter Journey
  163. 919231299, --Sprawling Idiot Effigy
  164. 743466274, --Good Day Sunshine
  165. 727411183, --Knife Fight
  166. 1402748531, --The Earth Is Counting On You!
  167. 595230126 --Robot Language
  168. }
  169.  
  170.  
  171.  
  172. --The reality of my life isn't real but a Universe -makhail07
  173. wait(0.2)
  174. local plr = game:service'Players'.LocalPlayer
  175. print('Local User is '..plr.Name)
  176. print('Wanderer Loaded')
  177. print('A lone Wanderer searching for hope.')
  178. local char = plr.Character
  179. local hum = char.Humanoid
  180. local hed = char.Head
  181. local root = char.HumanoidRootPart
  182. local rootj = root.RootJoint
  183. local tors = char.Torso
  184. local ra = char["Right Arm"]
  185. local la = char["Left Arm"]
  186. local rl = char["Right Leg"]
  187. local ll = char["Left Leg"]
  188. local neck = tors["Neck"]
  189. local mouse = plr:GetMouse()
  190. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  191. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  192. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  193. local maincolor = BrickColor.new("Cool yellow")
  194.  
  195. -------------------------------------------------------
  196. --Start Good Stuff--
  197. -------------------------------------------------------
  198. cam = game.Workspace.CurrentCamera
  199. CF = CFrame.new
  200. angles = CFrame.Angles
  201. attack = false
  202. Euler = CFrame.fromEulerAnglesXYZ
  203. Rad = math.rad
  204. IT = Instance.new
  205. BrickC = BrickColor.new
  206. Cos = math.cos
  207. Acos = math.acos
  208. Sin = math.sin
  209. Asin = math.asin
  210. Abs = math.abs
  211. Mrandom = math.random
  212. Floor = math.floor
  213. -------------------------------------------------------
  214. --End Good Stuff--
  215. -------------------------------------------------------
  216. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  217. RSH, LSH = nil, nil
  218. RW = Instance.new("Weld")
  219. LW = Instance.new("Weld")
  220. RH = tors["Right Hip"]
  221. LH = tors["Left Hip"]
  222. RSH = tors["Right Shoulder"]
  223. LSH = tors["Left Shoulder"]
  224. RSH.Parent = nil
  225. LSH.Parent = nil
  226. RW.Name = "RW"
  227. RW.Part0 = tors
  228. RW.C0 = CF(1.5, 0.5, 0)
  229. RW.C1 = CF(0, 0.5, 0)
  230. RW.Part1 = ra
  231. RW.Parent = tors
  232. LW.Name = "LW"
  233. LW.Part0 = tors
  234. LW.C0 = CF(-1.5, 0.5, 0)
  235. LW.C1 = CF(0, 0.5, 0)
  236. LW.Part1 = la
  237. LW.Parent = tors
  238. Effects = {}
  239. -------------------------------------------------------
  240. --Start HeartBeat--
  241. -------------------------------------------------------
  242. ArtificialHB = Instance.new("BindableEvent", script)
  243. ArtificialHB.Name = "Heartbeat"
  244. script:WaitForChild("Heartbeat")
  245.  
  246. frame = 1 / 60
  247. tf = 0
  248. allowframeloss = false
  249. tossremainder = false
  250.  
  251.  
  252. lastframe = tick()
  253. script.Heartbeat:Fire()
  254.  
  255.  
  256. game:GetService("RunService").Heartbeat:connect(function(s, p)
  257. tf = tf + s
  258. if tf >= frame then
  259. if allowframeloss then
  260. script.Heartbeat:Fire()
  261. lastframe = tick()
  262. else
  263. for i = 1, math.floor(tf / frame) do
  264. script.Heartbeat:Fire()
  265. end
  266. lastframe = tick()
  267. end
  268. if tossremainder then
  269. tf = 0
  270. else
  271. tf = tf - frame * math.floor(tf / frame)
  272. end
  273. end
  274. end)
  275. -------------------------------------------------------
  276. --End HeartBeat--
  277. -------------------------------------------------------
  278.  
  279. -------------------------------------------------------
  280. --Start Important Functions--
  281. -------------------------------------------------------
  282. function swait(num)
  283. if num == 0 or num == nil then
  284. game:service("RunService").Stepped:wait(0)
  285. else
  286. for i = 0, num do
  287. game:service("RunService").Stepped:wait(0)
  288. end
  289. end
  290. end
  291. function thread(f)
  292. coroutine.resume(coroutine.create(f))
  293. end
  294. function clerp(a, b, t)
  295. local qa = {
  296. QuaternionFromCFrame(a)
  297. }
  298. local qb = {
  299. QuaternionFromCFrame(b)
  300. }
  301. local ax, ay, az = a.x, a.y, a.z
  302. local bx, by, bz = b.x, b.y, b.z
  303. local _t = 1 - t
  304. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  305. end
  306. function QuaternionFromCFrame(cf)
  307. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  308. local trace = m00 + m11 + m22
  309. if trace > 0 then
  310. local s = math.sqrt(1 + trace)
  311. local recip = 0.5 / s
  312. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  313. else
  314. local i = 0
  315. if m00 < m11 then
  316. i = 1
  317. end
  318. if m22 > (i == 0 and m00 or m11) then
  319. i = 2
  320. end
  321. if i == 0 then
  322. local s = math.sqrt(m00 - m11 - m22 + 1)
  323. local recip = 0.5 / s
  324. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  325. elseif i == 1 then
  326. local s = math.sqrt(m11 - m22 - m00 + 1)
  327. local recip = 0.5 / s
  328. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  329. elseif i == 2 then
  330. local s = math.sqrt(m22 - m00 - m11 + 1)
  331. local recip = 0.5 / s
  332. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  333. end
  334. end
  335. end
  336. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  337. local xs, ys, zs = x + x, y + y, z + z
  338. local wx, wy, wz = w * xs, w * ys, w * zs
  339. local xx = x * xs
  340. local xy = x * ys
  341. local xz = x * zs
  342. local yy = y * ys
  343. local yz = y * zs
  344. local zz = z * zs
  345. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  346. end
  347. function QuaternionSlerp(a, b, t)
  348. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  349. local startInterp, finishInterp
  350. if cosTheta >= 1.0E-4 then
  351. if 1 - cosTheta > 1.0E-4 then
  352. local theta = math.acos(cosTheta)
  353. local invSinTheta = 1 / Sin(theta)
  354. startInterp = Sin((1 - t) * theta) * invSinTheta
  355. finishInterp = Sin(t * theta) * invSinTheta
  356. else
  357. startInterp = 1 - t
  358. finishInterp = t
  359. end
  360. elseif 1 + cosTheta > 1.0E-4 then
  361. local theta = math.acos(-cosTheta)
  362. local invSinTheta = 1 / Sin(theta)
  363. startInterp = Sin((t - 1) * theta) * invSinTheta
  364. finishInterp = Sin(t * theta) * invSinTheta
  365. else
  366. startInterp = t - 1
  367. finishInterp = t
  368. end
  369. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  370. end
  371. function rayCast(Position, Direction, Range, Ignore)
  372. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  373. end
  374. local RbxUtility = LoadLibrary("RbxUtility")
  375. local Create = RbxUtility.Create
  376.  
  377. -------------------------------------------------------
  378. --Start Damage Function--
  379. -------------------------------------------------------
  380. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  381. if hit.Parent == nil then
  382. return
  383. end
  384. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  385. for _, v in pairs(hit.Parent:children()) do
  386. if v:IsA("Humanoid") then
  387. h = v
  388. end
  389. end
  390. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  391.  
  392. hit.Parent:FindFirstChild("Head"):BreakJoints()
  393. end
  394.  
  395. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  396. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  397. if hit.Parent.DebounceHit.Value == true then
  398. return
  399. end
  400. end
  401. if insta == true then
  402. hit.Parent:FindFirstChild("Head"):BreakJoints()
  403. end
  404. local c = Create("ObjectValue"){
  405. Name = "creator",
  406. Value = game:service("Players").LocalPlayer,
  407. Parent = h,
  408. }
  409. game:GetService("Debris"):AddItem(c, .5)
  410. if HitSound ~= nil and HitPitch ~= nil then
  411. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  412. end
  413. local Damage = math.random(minim, maxim)
  414. local blocked = false
  415. local block = hit.Parent:findFirstChild("Block")
  416. if block ~= nil then
  417. if block.className == "IntValue" then
  418. if block.Value > 0 then
  419. blocked = true
  420. block.Value = block.Value - 1
  421. print(block.Value)
  422. end
  423. end
  424. end
  425. if blocked == false then
  426. h.Health = h.Health - Damage
  427. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  428. else
  429. h.Health = h.Health - (Damage / 2)
  430. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  431. end
  432. if Type == "Knockdown" then
  433. local hum = hit.Parent.Humanoid
  434. hum.PlatformStand = true
  435. coroutine.resume(coroutine.create(function(HHumanoid)
  436. swait(1)
  437. HHumanoid.PlatformStand = false
  438. end), hum)
  439. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  440. local bodvol = Create("BodyVelocity"){
  441. velocity = angle * knockback,
  442. P = 5000,
  443. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  444. Parent = hit,
  445. }
  446. local rl = Create("BodyAngularVelocity"){
  447. P = 3000,
  448. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  449. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  450. Parent = hit,
  451. }
  452. game:GetService("Debris"):AddItem(bodvol, .5)
  453. game:GetService("Debris"):AddItem(rl, .5)
  454. elseif Type == "Normal" then
  455. local vp = Create("BodyVelocity"){
  456. P = 500,
  457. maxForce = Vector3.new(math.huge, 0, math.huge),
  458. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  459. }
  460. if knockback > 0 then
  461. vp.Parent = hit.Parent.Torso
  462. end
  463. game:GetService("Debris"):AddItem(vp, .5)
  464. elseif Type == "Up" then
  465. local bodyVelocity = Create("BodyVelocity"){
  466. velocity = Vector3.new(0, 20, 0),
  467. P = 5000,
  468. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  469. Parent = hit,
  470. }
  471. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  472. elseif Type == "Firedmg" then
  473. coroutine.resume(coroutine.create(function()
  474. for i = 1, 18 do
  475. if hit.Parent:FindFirstChild("Torso") ~= nil then
  476. BlockEffect(BrickColor.new("Daisy orange"), hit.Parent.Head.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 1)
  477. wait()
  478. end
  479. end
  480. end))
  481. elseif Type == "DarkUp" then
  482. coroutine.resume(coroutine.create(function()
  483. for i = 0, 1, 0.1 do
  484. swait()
  485. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  486. end
  487. end))
  488. local bodyVelocity = Create("BodyVelocity"){
  489. velocity = Vector3.new(0, 20, 0),
  490. P = 5000,
  491. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  492. Parent = hit,
  493. }
  494. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  495. elseif Type == "Snare" then
  496. local bp = Create("BodyPosition"){
  497. P = 2000,
  498. D = 100,
  499. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  500. position = hit.Parent.Torso.Position,
  501. Parent = hit.Parent.Torso,
  502. }
  503. game:GetService("Debris"):AddItem(bp, 1)
  504. elseif Type == "Freeze" then
  505. local BodPos = Create("BodyPosition"){
  506. P = 50000,
  507. D = 1000,
  508. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  509. position = hit.Parent.Torso.Position,
  510. Parent = hit.Parent.Torso,
  511. }
  512. local BodGy = Create("BodyGyro") {
  513. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  514. P = 20e+003,
  515. Parent = hit.Parent.Torso,
  516. cframe = hit.Parent.Torso.CFrame,
  517. }
  518. hit.Parent.Torso.Anchored = true
  519. coroutine.resume(coroutine.create(function(Part)
  520. swait(1.5)
  521. Part.Anchored = false
  522. end), hit.Parent.Torso)
  523. game:GetService("Debris"):AddItem(BodPos, 3)
  524. game:GetService("Debris"):AddItem(BodGy, 3)
  525. end
  526. local debounce = Create("BoolValue"){
  527. Name = "DebounceHit",
  528. Parent = hit.Parent,
  529. Value = true,
  530. }
  531. game:GetService("Debris"):AddItem(debounce, Delay)
  532. c = Create("ObjectValue"){
  533. Name = "creator",
  534. Value = Player,
  535. Parent = h,
  536. }
  537. game:GetService("Debris"):AddItem(c, .5)
  538. end
  539. end
  540. -------------------------------------------------------
  541. --End Damage Function--
  542. -------------------------------------------------------
  543.  
  544. -------------------------------------------------------
  545. --Start Damage Function Customization--
  546. -------------------------------------------------------
  547. function ShowDamage(Pos, Text, Time, Color)
  548. local Rate = (1 / 30)
  549. local Pos = (Pos or Vector3.new(0, 0, 0))
  550. local Text = (Text or "")
  551. local Time = (Time or 2)
  552. local Color = (Color or Color3.new(1, 0, 1))
  553. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  554. EffectPart.Anchored = true
  555. local BillboardGui = Create("BillboardGui"){
  556. Size = UDim2.new(3, 0, 3, 0),
  557. Adornee = EffectPart,
  558. Parent = EffectPart,
  559. }
  560. local TextLabel = Create("TextLabel"){
  561. BackgroundTransparency = 1,
  562. Size = UDim2.new(1, 0, 1, 0),
  563. Text = Text,
  564. Font = "Bodoni",
  565. TextColor3 = Color,
  566. TextScaled = true,
  567. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  568. Parent = BillboardGui,
  569. }
  570. game.Debris:AddItem(EffectPart, (Time))
  571. EffectPart.Parent = game:GetService("Workspace")
  572. delay(0, function()
  573. local Frames = (Time / Rate)
  574. for Frame = 1, Frames do
  575. wait(Rate)
  576. local Percent = (Frame / Frames)
  577. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  578. TextLabel.TextTransparency = Percent
  579. end
  580. if EffectPart and EffectPart.Parent then
  581. EffectPart:Destroy()
  582. end
  583. end)
  584. end
  585. -------------------------------------------------------
  586. --End Damage Function Customization--
  587. -------------------------------------------------------
  588.  
  589. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  590. for _, c in pairs(workspace:children()) do
  591. local hum = c:findFirstChild("Humanoid")
  592. if hum ~= nil then
  593. local head = c:findFirstChild("Head")
  594. if head ~= nil then
  595. local targ = head.Position - Part.Position
  596. local mag = targ.magnitude
  597. if magni >= mag and c.Name ~= plr.Name then
  598. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  599. end
  600. end
  601. end
  602. end
  603. end
  604.  
  605.  
  606. CFuncs = {
  607. Part = {
  608. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  609. local Part = Create("Part")({
  610. Parent = Parent,
  611. Reflectance = Reflectance,
  612. Transparency = Transparency,
  613. CanCollide = false,
  614. Locked = true,
  615. BrickColor = BrickColor.new(tostring(BColor)),
  616. Name = Name,
  617. Size = Size,
  618. Material = Material
  619. })
  620. RemoveOutlines(Part)
  621. return Part
  622. end
  623. },
  624. Mesh = {
  625. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  626. local Msh = Create(Mesh)({
  627. Parent = Part,
  628. Offset = OffSet,
  629. Scale = Scale
  630. })
  631. if Mesh == "SpecialMesh" then
  632. Msh.MeshType = MeshType
  633. Msh.MeshId = MeshId
  634. end
  635. return Msh
  636. end
  637. },
  638. Mesh = {
  639. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  640. local Msh = Create(Mesh)({
  641. Parent = Part,
  642. Offset = OffSet,
  643. Scale = Scale
  644. })
  645. if Mesh == "SpecialMesh" then
  646. Msh.MeshType = MeshType
  647. Msh.MeshId = MeshId
  648. end
  649. return Msh
  650. end
  651. },
  652. Weld = {
  653. Create = function(Parent, Part0, Part1, C0, C1)
  654. local Weld = Create("Weld")({
  655. Parent = Parent,
  656. Part0 = Part0,
  657. Part1 = Part1,
  658. C0 = C0,
  659. C1 = C1
  660. })
  661. return Weld
  662. end
  663. },
  664. Sound = {
  665. Create = function(id, par, vol, pit)
  666. coroutine.resume(coroutine.create(function()
  667. local S = Create("Sound")({
  668. Volume = vol,
  669. Pitch = pit or 1,
  670. SoundId = id,
  671. Parent = par or workspace
  672. })
  673. wait()
  674. S:play()
  675. game:GetService("Debris"):AddItem(S, 6)
  676. end))
  677. end
  678. },
  679. ParticleEmitter = {
  680. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  681. local fp = Create("ParticleEmitter")({
  682. Parent = Parent,
  683. Color = ColorSequence.new(Color1, Color2),
  684. LightEmission = LightEmission,
  685. Size = Size,
  686. Texture = Texture,
  687. Transparency = Transparency,
  688. ZOffset = ZOffset,
  689. Acceleration = Accel,
  690. Drag = Drag,
  691. LockedToPart = LockedToPart,
  692. VelocityInheritance = VelocityInheritance,
  693. EmissionDirection = EmissionDirection,
  694. Enabled = Enabled,
  695. Lifetime = LifeTime,
  696. Rate = Rate,
  697. Rotation = Rotation,
  698. RotSpeed = RotSpeed,
  699. Speed = Speed,
  700. VelocitySpread = VelocitySpread
  701. })
  702. return fp
  703. end
  704. }
  705. }
  706. function RemoveOutlines(part)
  707. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  708. end
  709. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  710. local Part = Create("Part")({
  711. formFactor = FormFactor,
  712. Parent = Parent,
  713. Reflectance = Reflectance,
  714. Transparency = Transparency,
  715. CanCollide = false,
  716. Locked = true,
  717. BrickColor = BrickColor.new(tostring(BColor)),
  718. Name = Name,
  719. Size = Size,
  720. Material = Material
  721. })
  722. RemoveOutlines(Part)
  723. return Part
  724. end
  725. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  726. local Msh = Create(Mesh)({
  727. Parent = Part,
  728. Offset = OffSet,
  729. Scale = Scale
  730. })
  731. if Mesh == "SpecialMesh" then
  732. Msh.MeshType = MeshType
  733. Msh.MeshId = MeshId
  734. end
  735. return Msh
  736. end
  737. function CreateWeld(Parent, Part0, Part1, C0, C1)
  738. local Weld = Create("Weld")({
  739. Parent = Parent,
  740. Part0 = Part0,
  741. Part1 = Part1,
  742. C0 = C0,
  743. C1 = C1
  744. })
  745. return Weld
  746. end
  747.  
  748.  
  749. -------------------------------------------------------
  750. --Start Effect Function--
  751. -------------------------------------------------------
  752. EffectModel = Instance.new("Model", char)
  753. Effects = {
  754. Block = {
  755. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  756. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  757. prt.Anchored = true
  758. prt.CFrame = cframe
  759. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  760. game:GetService("Debris"):AddItem(prt, 10)
  761. if Type == 1 or Type == nil then
  762. table.insert(Effects, {
  763. prt,
  764. "Block1",
  765. delay,
  766. x3,
  767. y3,
  768. z3,
  769. msh
  770. })
  771. elseif Type == 2 then
  772. table.insert(Effects, {
  773. prt,
  774. "Block2",
  775. delay,
  776. x3,
  777. y3,
  778. z3,
  779. msh
  780. })
  781. else
  782. table.insert(Effects, {
  783. prt,
  784. "Block3",
  785. delay,
  786. x3,
  787. y3,
  788. z3,
  789. msh
  790. })
  791. end
  792. end
  793. },
  794. Sphere = {
  795. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  796. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  797. prt.Anchored = true
  798. prt.CFrame = cframe
  799. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  800. game:GetService("Debris"):AddItem(prt, 10)
  801. table.insert(Effects, {
  802. prt,
  803. "Cylinder",
  804. delay,
  805. x3,
  806. y3,
  807. z3,
  808. msh
  809. })
  810. end
  811. },
  812. Cylinder = {
  813. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  814. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  815. prt.Anchored = true
  816. prt.CFrame = cframe
  817. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  818. game:GetService("Debris"):AddItem(prt, 10)
  819. table.insert(Effects, {
  820. prt,
  821. "Cylinder",
  822. delay,
  823. x3,
  824. y3,
  825. z3,
  826. msh
  827. })
  828. end
  829. },
  830. Wave = {
  831. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  832. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  833. prt.Anchored = true
  834. prt.CFrame = cframe
  835. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  836. game:GetService("Debris"):AddItem(prt, 10)
  837. table.insert(Effects, {
  838. prt,
  839. "Cylinder",
  840. delay,
  841. x3 / 60,
  842. y3 / 60,
  843. z3 / 60,
  844. msh
  845. })
  846. end
  847. },
  848. Ring = {
  849. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  850. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  851. prt.Anchored = true
  852. prt.CFrame = cframe
  853. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  854. game:GetService("Debris"):AddItem(prt, 10)
  855. table.insert(Effects, {
  856. prt,
  857. "Cylinder",
  858. delay,
  859. x3,
  860. y3,
  861. z3,
  862. msh
  863. })
  864. end
  865. },
  866. Break = {
  867. Create = function(brickcolor, cframe, x1, y1, z1)
  868. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  869. prt.Anchored = true
  870. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  871. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  872. local num = math.random(10, 50) / 1000
  873. game:GetService("Debris"):AddItem(prt, 10)
  874. table.insert(Effects, {
  875. prt,
  876. "Shatter",
  877. num,
  878. prt.CFrame,
  879. math.random() - math.random(),
  880. 0,
  881. math.random(50, 100) / 100
  882. })
  883. end
  884. },
  885. Spiral = {
  886. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  887. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  888. prt.Anchored = true
  889. prt.CFrame = cframe
  890. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  891. game:GetService("Debris"):AddItem(prt, 10)
  892. table.insert(Effects, {
  893. prt,
  894. "Cylinder",
  895. delay,
  896. x3,
  897. y3,
  898. z3,
  899. msh
  900. })
  901. end
  902. },
  903. Push = {
  904. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  905. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  906. prt.Anchored = true
  907. prt.CFrame = cframe
  908. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  909. game:GetService("Debris"):AddItem(prt, 10)
  910. table.insert(Effects, {
  911. prt,
  912. "Cylinder",
  913. delay,
  914. x3,
  915. y3,
  916. z3,
  917. msh
  918. })
  919. end
  920. }
  921. }
  922. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  923. local fp = IT("Part")
  924. fp.formFactor = formfactor
  925. fp.Parent = parent
  926. fp.Reflectance = reflectance
  927. fp.Transparency = transparency
  928. fp.CanCollide = false
  929. fp.Locked = true
  930. fp.BrickColor = brickcolor
  931. fp.Name = name
  932. fp.Size = size
  933. fp.Position = tors.Position
  934. RemoveOutlines(fp)
  935. fp.Material = "SmoothPlastic"
  936. fp:BreakJoints()
  937. return fp
  938. end
  939.  
  940. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  941. local mesh = IT(Mesh)
  942. mesh.Parent = part
  943. if Mesh == "SpecialMesh" then
  944. mesh.MeshType = meshtype
  945. if meshid ~= "nil" then
  946. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  947. end
  948. end
  949. mesh.Offset = offset
  950. mesh.Scale = scale
  951. return mesh
  952. end
  953.  
  954. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  955. local type = type
  956. local rng = Instance.new("Part", char)
  957. rng.Anchored = true
  958. rng.BrickColor = color
  959. rng.CanCollide = false
  960. rng.FormFactor = 3
  961. rng.Name = "Ring"
  962. rng.Material = "Neon"
  963. rng.Size = Vector3.new(1, 1, 1)
  964. rng.Transparency = 0
  965. rng.TopSurface = 0
  966. rng.BottomSurface = 0
  967. rng.CFrame = pos
  968. local rngm = Instance.new("SpecialMesh", rng)
  969. rngm.MeshType = MType
  970. rngm.Scale = scale
  971. local scaler2 = 1
  972. if type == "Add" then
  973. scaler2 = 1 * value
  974. elseif type == "Divide" then
  975. scaler2 = 1 / value
  976. end
  977. coroutine.resume(coroutine.create(function()
  978. for i = 0, 10 / bonuspeed, 0.1 do
  979. swait()
  980. if type == "Add" then
  981. scaler2 = scaler2 - 0.01 * value / bonuspeed
  982. elseif type == "Divide" then
  983. scaler2 = scaler2 - 0.01 / value * bonuspeed
  984. end
  985. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  986. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  987. end
  988. rng:Destroy()
  989. end))
  990. end
  991.  
  992. function Eviscerate(dude)
  993. if dude.Name ~= char then
  994. local bgf = IT("BodyGyro", dude.Head)
  995. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  996. local val = IT("BoolValue", dude)
  997. val.Name = "IsHit"
  998. local ds = coroutine.wrap(function()
  999. dude:WaitForChild("Head"):BreakJoints()
  1000. wait(0.5)
  1001. target = nil
  1002. coroutine.resume(coroutine.create(function()
  1003. for i, v in pairs(dude:GetChildren()) do
  1004. if v:IsA("Accessory") then
  1005. v:Destroy()
  1006. end
  1007. if v:IsA("Humanoid") then
  1008. v:Destroy()
  1009. end
  1010. if v:IsA("CharacterMesh") then
  1011. v:Destroy()
  1012. end
  1013. if v:IsA("Model") then
  1014. v:Destroy()
  1015. end
  1016. if v:IsA("Part") or v:IsA("MeshPart") then
  1017. for x, o in pairs(v:GetChildren()) do
  1018. if o:IsA("Decal") then
  1019. o:Destroy()
  1020. end
  1021. end
  1022. coroutine.resume(coroutine.create(function()
  1023. v.Material = "Neon"
  1024. v.CanCollide = false
  1025. local PartEmmit1 = IT("ParticleEmitter", v)
  1026. PartEmmit1.LightEmission = 1
  1027. PartEmmit1.Texture = "rbxassetid://284205403"
  1028. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1029. PartEmmit1.Rate = 150
  1030. PartEmmit1.Lifetime = NumberRange.new(1)
  1031. PartEmmit1.Size = NumberSequence.new({
  1032. NumberSequenceKeypoint.new(0, 0.75, 0),
  1033. NumberSequenceKeypoint.new(1, 0, 0)
  1034. })
  1035. PartEmmit1.Transparency = NumberSequence.new({
  1036. NumberSequenceKeypoint.new(0, 0, 0),
  1037. NumberSequenceKeypoint.new(1, 1, 0)
  1038. })
  1039. PartEmmit1.Speed = NumberRange.new(0, 0)
  1040. PartEmmit1.VelocitySpread = 30000
  1041. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1042. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1043. local BodPoss = IT("BodyPosition", v)
  1044. BodPoss.P = 3000
  1045. BodPoss.D = 1000
  1046. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1047. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1048. v.Color = maincolor.Color
  1049. coroutine.resume(coroutine.create(function()
  1050. for i = 0, 49 do
  1051. swait(1)
  1052. v.Transparency = v.Transparency + 0.08
  1053. end
  1054. wait(0.5)
  1055. PartEmmit1.Enabled = false
  1056. wait(3)
  1057. v:Destroy()
  1058. dude:Destroy()
  1059. end))
  1060. end))
  1061. end
  1062. end
  1063. end))
  1064. end)
  1065. ds()
  1066. end
  1067. end
  1068.  
  1069. function FindNearestHead(Position, Distance, SinglePlayer)
  1070. if SinglePlayer then
  1071. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1072. end
  1073. local List = {}
  1074. for i, v in pairs(workspace:GetChildren()) do
  1075. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1076. table.insert(List, v)
  1077. end
  1078. end
  1079. return List
  1080. end
  1081.  
  1082. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1083. local type = type
  1084. local rng = Instance.new("Part", char)
  1085. rng.Anchored = true
  1086. rng.BrickColor = color
  1087. rng.CanCollide = false
  1088. rng.FormFactor = 3
  1089. rng.Name = "Ring"
  1090. rng.Material = "Neon"
  1091. rng.Size = Vector3.new(1, 1, 1)
  1092. rng.Transparency = 0
  1093. rng.TopSurface = 0
  1094. rng.BottomSurface = 0
  1095. rng.CFrame = pos
  1096. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1097. local rngm = Instance.new("SpecialMesh", rng)
  1098. rngm.MeshType = MType
  1099. rngm.Scale = Vector3.new(x1, y1, z1)
  1100. local scaler2 = 1
  1101. local speeder = FastSpeed
  1102. if type == "Add" then
  1103. scaler2 = 1 * value
  1104. elseif type == "Divide" then
  1105. scaler2 = 1 / value
  1106. end
  1107. coroutine.resume(coroutine.create(function()
  1108. for i = 0, 10 / bonuspeed, 0.1 do
  1109. swait()
  1110. if type == "Add" then
  1111. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1112. elseif type == "Divide" then
  1113. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1114. end
  1115. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1116. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1117. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1118. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1119. end
  1120. rng:Destroy()
  1121. end))
  1122. end
  1123.  
  1124. function SoulSteal(dude)
  1125. if dude.Name ~= char then
  1126. local bgf = IT("BodyGyro", dude.Head)
  1127. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1128. local val = IT("BoolValue", dude)
  1129. val.Name = "IsHit"
  1130. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1131. local soulst = coroutine.wrap(function()
  1132. local soul = Instance.new("Part",dude)
  1133. soul.Size = Vector3.new(1,1,1)
  1134. soul.CanCollide = false
  1135. soul.Anchored = false
  1136. soul.Position = torso.Position
  1137. soul.Transparency = 1
  1138. local PartEmmit1 = IT("ParticleEmitter", soul)
  1139. PartEmmit1.LightEmission = 1
  1140. PartEmmit1.Texture = "rbxassetid://569507414"
  1141. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1142. PartEmmit1.Rate = 250
  1143. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1144. PartEmmit1.Size = NumberSequence.new({
  1145. NumberSequenceKeypoint.new(0, 1, 0),
  1146. NumberSequenceKeypoint.new(1, 0, 0)
  1147. })
  1148. PartEmmit1.Transparency = NumberSequence.new({
  1149. NumberSequenceKeypoint.new(0, 0, 0),
  1150. NumberSequenceKeypoint.new(1, 1, 0)
  1151. })
  1152. PartEmmit1.Speed = NumberRange.new(0, 0)
  1153. PartEmmit1.VelocitySpread = 30000
  1154. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1155. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1156. local BodPoss = IT("BodyPosition", soul)
  1157. BodPoss.P = 3000
  1158. BodPoss.D = 1000
  1159. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1160. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1161. wait(1.6)
  1162. soul.Touched:connect(function(hit)
  1163. if hit.Parent == char then
  1164. soul:Destroy()
  1165. end
  1166. end)
  1167. wait(1.2)
  1168. while soul do
  1169. swait()
  1170. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1171. BodPoss.Position = tors.Position
  1172. end
  1173. end)
  1174. soulst()
  1175. end
  1176. end
  1177. function FaceMouse()
  1178. local Cam = workspace.CurrentCamera
  1179. return {
  1180. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1181. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1182. }
  1183. end
  1184. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1185. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1186. prt.Anchored = true
  1187. prt.CFrame = cframe
  1188. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1189. game:GetService("Debris"):AddItem(prt, 10)
  1190. if Type == 1 or Type == nil then
  1191. table.insert(Effects, {
  1192. prt,
  1193. "Block1",
  1194. delay,
  1195. x3,
  1196. y3,
  1197. z3,
  1198. msh
  1199. })
  1200. elseif Type == 2 then
  1201. table.insert(Effects, {
  1202. prt,
  1203. "Block2",
  1204. delay,
  1205. x3,
  1206. y3,
  1207. z3,
  1208. msh
  1209. })
  1210. elseif Type == 3 then
  1211. table.insert(Effects, {
  1212. prt,
  1213. "Block3",
  1214. delay,
  1215. x3,
  1216. y3,
  1217. z3,
  1218. msh
  1219. })
  1220. end
  1221. end
  1222. -------------------------------------------------------
  1223. --End Effect Function--
  1224. -------------------------------------------------------
  1225. function Cso(ID, PARENT, VOLUME, PITCH)
  1226. local NSound = nil
  1227. coroutine.resume(coroutine.create(function()
  1228. NSound = IT("Sound", PARENT)
  1229. NSound.Volume = VOLUME
  1230. NSound.Pitch = PITCH
  1231. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1232. swait()
  1233. NSound:play()
  1234. game:GetService("Debris"):AddItem(NSound, 10)
  1235. end))
  1236. return NSound
  1237. end
  1238. function CameraEnshaking(Length, Intensity)
  1239. coroutine.resume(coroutine.create(function()
  1240. local intensity = 1 * Intensity
  1241. local rotM = 0.01 * Intensity
  1242. for i = 0, Length, 0.1 do
  1243. swait()
  1244. intensity = intensity - 0.05 * Intensity / Length
  1245. rotM = rotM - 5.0E-4 * Intensity / Length
  1246. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1247. 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)
  1248. end
  1249. hum.CameraOffset = Vector3.new(0, 0, 0)
  1250. end))
  1251. end
  1252. -------------------------------------------------------
  1253. --End Important Functions--
  1254. -------------------------------------------------------
  1255.  
  1256. --[[
  1257. Thanks for using Build-To-Lua by jarredbcv.
  1258. ]]--
  1259.  
  1260. New = function(Object, Parent, Name, Data)
  1261. local Object = Instance.new(Object)
  1262. for Index, Value in pairs(Data or {}) do
  1263. Object[Index] = Value
  1264. end
  1265. Object.Parent = Parent
  1266. Object.Name = Name
  1267. return Object
  1268. end
  1269.  
  1270. Lamp = New("Model",char,"Lamp",{})
  1271. Handle = New("Part",Lamp,"Handle",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.600000024, 0.610000014, 0.539999962),CFrame = CFrame.new(-109.839981, 1.79380095, -43.7700005, 0.999977291, -2.22814856e-06, -2.28935824e-06, -7.29543899e-07, -0.999977469, -5.85511816e-06, 1.10829581e-06, 4.96105622e-06, -1.00000715),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  1272. Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  1273. Lampo = New("Part",Lamp,"Lampo",{BrickColor = BrickColor.new("Cool yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-109.859985, 1.05100787, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.992157, 0.917647, 0.552941),})
  1274. Mesh = New("CylinderMesh",Lampo,"Mesh",{Scale = Vector3.new(0.800000012, 1, 0.800000012),})
  1275. mot = New("Motor",Lampo,"mot",{Part0 = Lampo,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-0.0200042725, 0.742809892, -0.00999450684, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1276. --PointLight = New("PointLight",Lampo,"PointLight",{Color = Color3.new(1, 0.835294, 0),Brightness = 34.9849996566772,Range = 25.060000419617,})
  1277. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 1.55099273, -43.7600021, 0.99998486, -4.99542864e-07, -1.13255635e-06, 4.99542864e-07, -0.99998498, -2.98074156e-07, 1.13255635e-06, -2.98074156e-07, -1.00000477),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1278. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  1279. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 0.242813706, -0.00999832153, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1280. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 0.551022768, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1281. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  1282. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 1.2428062, -0.00999069214, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1283. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.280014, 1.05100274, -43.7900009, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1284. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1285. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.440040588, 0.742815137, 0.0200042725, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1286. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.400032, 1.05100369, -43.75, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1287. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1288. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.439964294, 0.742813826, -0.0199966431, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1289. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.120018, 1.05100298, -43.409996, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1290. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1291. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.280044556, 0.742816925, -0.359996796, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1292. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.600037, 1.05100322, -44.1300087, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1293. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1294. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.239952087, 0.742812157, 0.36000824, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1295. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.060028, 1.05100274, -44.1500092, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1296. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1297. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.220046997, 0.742812872, 0.380008698, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1298. Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.65004, 1.05100369, -43.359993, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  1299. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
  1300. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.189949036, 0.742816329, -0.409999847, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
  1301.  
  1302. local NewInstance = function(instance,parent,properties)
  1303. local inst = Instance.new(instance,parent)
  1304. if(properties)then
  1305. for i,v in next, properties do
  1306. pcall(function() inst[i] = v end)
  1307. end
  1308. end
  1309. return inst;
  1310. end
  1311.  
  1312. --local HW = NewInstance('Weld',char,{Part0 = tors, Part1 = Handle, C0 = CF(1, -0.8, -0.2) * angles(Rad(180), Rad(60), Rad(-40))})
  1313. local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CF(0, -0.8, 0.6) * angles(Rad(90), Rad(0), Rad(0))})
  1314.  
  1315. -------------------------------------------------------
  1316. --Start Customization--
  1317. -------------------------------------------------------
  1318. local Player_Size = 1
  1319. if Player_Size ~= 1 then
  1320. root.Size = root.Size * Player_Size
  1321. tors.Size = tors.Size * Player_Size
  1322. hed.Size = hed.Size * Player_Size
  1323. ra.Size = ra.Size * Player_Size
  1324. la.Size = la.Size * Player_Size
  1325. rl.Size = rl.Size * Player_Size
  1326. ll.Size = ll.Size * Player_Size
  1327. ----------------------------------------------------------------------------------
  1328. rootj.Parent = root
  1329. neck.Parent = tors
  1330. RW.Parent = tors
  1331. LW.Parent = tors
  1332. RH.Parent = tors
  1333. LH.Parent = tors
  1334. ----------------------------------------------------------------------------------
  1335. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1336. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1337. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1338. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1339. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1340. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1341. ----------------------------------------------------------------------------------
  1342. 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))
  1343. 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))
  1344. 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))
  1345. 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))
  1346. --hat.Parent = Character
  1347. end
  1348. ----------------------------------------------------------------------------------
  1349. local SONG = 999743730
  1350. local SONG2 = 0
  1351. local Music = Instance.new("Sound",tors)
  1352. Music.Volume = 2.5
  1353. Music.Looped = true
  1354. Music.Pitch = 1 --Pitcher
  1355. ----------------------------------------------------------------------------------
  1356. local equipped = false
  1357. local idle = 0
  1358. local change = 1
  1359. local val = 0
  1360. local toim = 0
  1361. local idleanim = 0.4
  1362. local sine = 0
  1363. local Sit = 1
  1364. local Mode = "Latern"
  1365. ----------------------------------------------------------------------------------
  1366. hum.WalkSpeed = 12
  1367. hum.JumpPower = 57
  1368. local ROBLOXIDLEANIMATION = IT("Animation")
  1369. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1370. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1371. local ANIMATOR = hum.Animator
  1372. local ANIMATE = char.Animate
  1373. ANIMATE.Parent = nil
  1374. ----------------------------------------------------------------------------------
  1375. local naeeym2 = Instance.new("BillboardGui",char)
  1376. naeeym2.AlwaysOnTop = true
  1377. naeeym2.Size = UDim2.new(5,35,2,35)
  1378. naeeym2.StudsOffset = Vector3.new(0,1,0)
  1379. naeeym2.Adornee = hed
  1380. naeeym2.Name = "Name"
  1381. local tecks2 = Instance.new("TextLabel",naeeym2)
  1382. tecks2.BackgroundTransparency = 1
  1383. tecks2.TextScaled = true
  1384. tecks2.BorderSizePixel = 0
  1385. tecks2.Text = "Wanderer"
  1386. tecks2.Font = "Fantasy"
  1387. tecks2.TextSize = 30
  1388. tecks2.TextTransparency = 0
  1389. tecks2.TextStrokeTransparency = 0
  1390. tecks2.TextColor3 = Color3.fromRGB(253, 234, 141)
  1391. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1392. tecks2.Size = UDim2.new(1,0,0.5,0)
  1393. tecks2.Parent = naeeym2
  1394. ----------------------------------------------------------------------------------
  1395. game:service'Lighting'.TimeOfDay = "00:00:00"
  1396. local light = Instance.new("PointLight", Lampo)
  1397. light.Name = "Light"
  1398. light.Range = 8
  1399. light.Brightness = 35
  1400. light.Shadows = true
  1401. ----------------------------------------------------------------------------------
  1402. Reaper = IT("Model")
  1403. Reaper.Parent = char
  1404. Reaper.Name = "Reaper"
  1405. RHe = IT("Part")
  1406. RHe.Parent = Reaper
  1407. RHe.BrickColor = BrickColor.new("Dark stone grey")
  1408. RHe.Locked = true
  1409. RHe.CanCollide = false
  1410. RHe.Transparency = 0
  1411. PMesh = IT("SpecialMesh")
  1412. RHe.formFactor = "Symmetric"
  1413. PMesh.MeshType = "FileMesh"
  1414. PMesh.MeshId = "rbxassetid://77353021"
  1415. --PMesh.TextureId = "rbxassetid://116524836"
  1416. PMesh.Scale = Vector3.new(1.5, 1.5, 1.5)
  1417. PMesh.Parent = RHe
  1418. local RWeld = IT("Weld")
  1419. RWeld.Parent = RHe
  1420. RWeld.Part0 = RHe
  1421. RWeld.Part1 = tors
  1422. RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90))
  1423. -------------------------------------------------------
  1424. --End Customization--
  1425. -------------------------------------------------------
  1426.  
  1427.  
  1428. -------------------------------------------------------
  1429. --Start Attacks N Stuff--
  1430. -------------------------------------------------------
  1431. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1432. local Hitboxpart = Instance.new("Part", EffectModel)
  1433. RemoveOutlines(Hitboxpart)
  1434. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1435. Hitboxpart.CanCollide = false
  1436. Hitboxpart.Transparency = 1
  1437. Hitboxpart.Anchored = true
  1438. Hitboxpart.CFrame = Pose
  1439. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1440. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1441. end
  1442. function LaternSmack()
  1443. attack = true
  1444. hum.WalkSpeed = 3.01
  1445. for i = 0, 1.4, 0.1 do
  1446. swait()
  1447. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-6), Rad(0), Rad(0)), 0.15)
  1448. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1449. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1450. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1451. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(186), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1452. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1453. HW.C0 = clerp(HW.C0, CF(0, -1, -0.4) * angles(Rad(235), Rad(-.6), Rad(0)), 0.2)
  1454. end
  1455. local Flame = Cso("213656638", Lampo, 1.7, .9)
  1456. if Flame then
  1457. Flame.TimePosition = .5
  1458. end
  1459. Cso("145878848", Lampo, 3, 1)
  1460. HitboxFunction(Lampo.CFrame * CF(0, 0, 1), 0.01, 1, 1, 1, 7, 10, 20, 3, "Firedmg")
  1461. for i = 0, 1.7, 0.1 do
  1462. swait()
  1463. BlockEffect(maincolor, Lampo.CFrame, 21, 41, 21, -3.5, -3.5, -3.5, 0.08, 3)
  1464. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(10)), 0.15)
  1465. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(21 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-10)), 0.3)
  1466. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(9)), 0.15)
  1467. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(26)), 0.15)
  1468. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-18 + 4.5 * Sin(sine / 20))), 0.2)
  1469. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.2)
  1470. HW.C0 = clerp(HW.C0, CF(0, -1.1, 0) * angles(Rad(148 + 4.5 * Cos(sine / 20)), Rad(-.6), Rad(0)), 0.2)
  1471. end
  1472. attack = false
  1473. hum.WalkSpeed = 12
  1474. end
  1475. function LaternSpin()
  1476. attack = true
  1477. end
  1478. function Taunt()
  1479. attack = true
  1480. hum.WalkSpeed = 1.01
  1481. coroutine.resume(coroutine.create(function()
  1482. for i = 0, 0.3, 0.1 do
  1483. swait(35)
  1484. Cso("145878848", Lampo, 3, 1)
  1485. end
  1486. end))
  1487. for i = 0, 16, 0.1 do
  1488. swait()
  1489. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1490. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
  1491. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1492. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1493. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125 + 25 * Cos(sine / 7)), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1494. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1495. HW.C0 = clerp(HW.C0, CF(0, -0.6, 0.6) * angles(Rad(67 + 35 * Cos(sine / 7)), Rad(-.6), Rad(0)), 0.1)
  1496. end
  1497. hum.WalkSpeed = 12
  1498. attack = false
  1499. end
  1500. function EquipBlade()
  1501. attack = true
  1502. hum.WalkSpeed = 0
  1503. for i = 0, 4, 0.1 do
  1504. swait()
  1505. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1506. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
  1507. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1508. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1509. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.1)
  1510. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1511. HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
  1512. end
  1513. coroutine.resume(coroutine.create(function()
  1514. HW.Part0 = tors
  1515. for i = 0, 3, 0.1 do
  1516. swait()
  1517. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 4.5 * Sin(sine / 20)), Rad(60), Rad(-40)), 0.15)
  1518. end
  1519. end))
  1520. for i = 0, 5, 0.1 do
  1521. swait()
  1522. RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90))
  1523. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15)
  1524. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.3)
  1525. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1526. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1527. RW.C0 = clerp(RW.C0, CF(0.9* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, -1.1* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.1)
  1528. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1529. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1530. end
  1531. RWeld.Part1 = ra
  1532. for i = 0, 5, 0.1 do
  1533. swait()
  1534. RWeld.C0 = CF(-1, 0, -1.9) * angles(Rad(-90), Rad(0), Rad(90))
  1535. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1536. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1537. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1538. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1539. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
  1540. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1541. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1542. end
  1543. attack = false
  1544. Mode = "Blade"
  1545. hum.WalkSpeed = 12
  1546. end
  1547. function DequipBlade()
  1548. attack = true
  1549. hum.WalkSpeed = 0
  1550. RWeld.Part1 = tors
  1551. for i = 0, 5, 0.1 do
  1552. swait()
  1553. RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90))
  1554. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15)
  1555. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.15)
  1556. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1557. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1558. RW.C0 = clerp(RW.C0, CF(0.9* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, -1.1* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.15)
  1559. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.15)
  1560. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1561. end
  1562. HW.Part0 = ra
  1563. RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90))
  1564. for i = 0, 4, 0.1 do
  1565. swait()
  1566. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1567. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
  1568. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1569. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1570. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.15)
  1571. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1572. HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
  1573. end
  1574. attack = false
  1575. Mode = "Latern"
  1576. hum.WalkSpeed = 12
  1577. end
  1578. -------------------------------------------------------
  1579. --End Attacks N Stuff--
  1580. -------------------------------------------------------
  1581. mouse.Button1Down:connect(function(key)
  1582. if attack == false then
  1583. if Mode == "Latern" then
  1584. LaternSmack()
  1585. end
  1586. end
  1587. end)
  1588. mouse.KeyDown:connect(function(key)
  1589. if attack == false then
  1590. if key == 't' and Mode == "Latern" then
  1591. Taunt()
  1592. elseif key == 'p' and Mode == "Latern" then
  1593. EquipBlade()
  1594. elseif key == 'p' and Mode == "Blade" then
  1595. DequipBlade()
  1596. end
  1597. end
  1598. end)
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606. -------------------------------------------------------
  1607. --Start Animations--
  1608. -------------------------------------------------------
  1609. print("By Makhail07")
  1610. while true do
  1611. swait()
  1612. sine = sine + change
  1613. --ANIMATE.Parent = nil
  1614. --local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
  1615. --IDLEANIMATION:Play()
  1616. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1617. local velderp = root.Velocity.y
  1618. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1619. if equipped == true or equipped == false then
  1620. if attack == false then
  1621. idle = idle + 1
  1622. else
  1623. idle = 0
  1624. end
  1625. if 1 < root.Velocity.y and hitfloor == nil then
  1626. Anim = "Jump"
  1627. if attack == false then
  1628. if Mode == "Latern" then
  1629. 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)
  1630. 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)
  1631. 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)
  1632. 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)
  1633. 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)
  1634. 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)
  1635. HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(147), Rad(0), Rad(0)), 0.1)
  1636. elseif Mode == "Blade" then
  1637. 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)
  1638. 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)
  1639. 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)
  1640. 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)
  1641. 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)
  1642. 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)
  1643. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1644. end
  1645. end
  1646. elseif -1 > root.Velocity.y and hitfloor == nil then
  1647. Anim = "Fall"
  1648. if attack == false then
  1649. if Mode == "Latern" then
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. 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)
  1655. 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)
  1656. HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
  1657. elseif Mode == "Blade" then
  1658. 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)
  1659. 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)
  1660. 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)
  1661. 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)
  1662. 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)
  1663. 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)
  1664. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(195 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1665. end
  1666. end
  1667. elseif torvel < 1 and hitfloor ~= nil then
  1668. Anim = "Idle"
  1669. change = 1
  1670. if attack == false then
  1671. if Mode == "Latern" then
  1672. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1673. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1674. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1675. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1676. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1677. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1678. HW.C0 = clerp(HW.C0, CF(0, -0.8, 0.6) * angles(Rad(67), Rad(-.6), Rad(10 * Cos(sine / 20))), 0.1)
  1679. elseif Mode == "Blade" then
  1680. RWeld.C0 = CF(-1, 0, -2.1) * angles(Rad(-180), Rad(0), Rad(90))
  1681. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
  1682. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1683. 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(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
  1684. 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
  1685. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
  1686. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1687. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
  1688. end
  1689. end
  1690. elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
  1691. Anim = "Walk"
  1692. change = 1
  1693. if attack == false then
  1694. if Mode == "Latern" then
  1695. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15)
  1696. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1697. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1698. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1699. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 12)), Rad(13 + 4.5 * Sin(sine / 12))), 0.1)
  1700. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1701. HW.C0 = clerp(HW.C0, CF(0, -0.7, 0.6) * angles(Rad(67 + 8 * Cos(sine / 7)), Rad(0), Rad(18 * Cos(sine / 7))), 0.1)
  1702. elseif Mode == "Blade" then
  1703. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15)
  1704. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1705. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1706. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1707. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
  1708. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1709. HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 15 * Cos(sine / 3.5)), Rad(60), Rad(-40)), 0.1)
  1710. end
  1711. end
  1712. end
  1713. end
  1714. Music.SoundId = "rbxassetid://"..SONG
  1715. Music.Looped = true
  1716. Music.Pitch = 1
  1717. Music.Volume = 2.5
  1718. Music.Parent = tors
  1719. Music:Resume()
  1720. if 0 < #Effects then
  1721. for e = 1, #Effects do
  1722. if Effects[e] ~= nil then
  1723. local Thing = Effects[e]
  1724. if Thing ~= nil then
  1725. local Part = Thing[1]
  1726. local Mode = Thing[2]
  1727. local Delay = Thing[3]
  1728. local IncX = Thing[4]
  1729. local IncY = Thing[5]
  1730. local IncZ = Thing[6]
  1731. if 1 >= Thing[1].Transparency then
  1732. if Thing[2] == "Block1" then
  1733. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1734. local Mesh = Thing[1].Mesh
  1735. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1736. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1737. elseif Thing[2] == "Block2" then
  1738. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1739. local Mesh = Thing[7]
  1740. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1741. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1742. elseif Thing[2] == "Block3" then
  1743. 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)
  1744. local Mesh = Thing[7]
  1745. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1746. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1747. elseif Thing[2] == "Cylinder" then
  1748. local Mesh = Thing[1].Mesh
  1749. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1750. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1751. elseif Thing[2] == "Blood" then
  1752. local Mesh = Thing[7]
  1753. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1754. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1755. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1756. elseif Thing[2] == "Elec" then
  1757. local Mesh = Thing[1].Mesh
  1758. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1759. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1760. elseif Thing[2] == "Disappear" then
  1761. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1762. elseif Thing[2] == "Shatter" then
  1763. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1764. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1765. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1766. Thing[6] = Thing[6] + Thing[5]
  1767. end
  1768. else
  1769. Part.Parent = nil
  1770. table.remove(Effects, e)
  1771. end
  1772. end
  1773. end
  1774. end
  1775. end
  1776. end
  1777. -------------------------------------------------------
  1778. --End Animations And Script--
  1779. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement