Advertisement
Guest User

FE wanderer script (roblox)

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