Advertisement
samuelrichter66

wanderer

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