Advertisement
Guest User

Wanderer Script (roblox Fe)

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