Advertisement
vibrantsinger423

fef

Jun 21st, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.59 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  5. local runServ = game:GetService("RunService").RenderStepped
  6.  
  7. local Player=game.Players.LocalPlayer
  8. repeat wait() until Player
  9. local Character=Player.Character
  10. repeat wait() until Character
  11. PlayerGui=Player.PlayerGui
  12. Backpack=Player.Backpack
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character.Humanoid
  16. if Humanoid.Health ~= Humanoid.MaxHealth then
  17. Humanoid.MaxHealth = 200
  18. end
  19.  
  20. Humanoid.JumpPower = 90
  21. LeftArm=Character:WaitForChild("Left Arm")
  22. LeftLeg=Character:WaitForChild("Left Leg")
  23. RightArm=Character:WaitForChild("Right Arm")
  24. RightLeg=Character:WaitForChild("Left Arm")
  25. LS=Torso:WaitForChild("Left Shoulder")
  26. LH=Torso:WaitForChild("Left Hip")
  27. RS=Torso:WaitForChild("Right Shoulder")
  28. RH=Torso:WaitForChild("Right Hip")
  29. Neck=Torso.Neck
  30. it=Instance.new
  31. vt=Vector3.new
  32. cf=CFrame.new
  33. local runServ = game:GetService("RunService").RenderStepped
  34. local TextTable = {}
  35. euler=CFrame.fromEulerAnglesXYZ
  36. angles=CFrame.Angles
  37. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  38. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  39. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  40. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  41. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  42. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  43. RootPart=Character.HumanoidRootPart
  44. RootJoint=RootPart.RootJoint
  45. RootCF=euler(-1.57,0,3.14)
  46. attack=false
  47. attackdebounce=false
  48. MMouse=Player:GetMouse()
  49. combo=0
  50. local Effects={}
  51. equipped=false
  52. local idle=0
  53. local hold=false
  54. local con1=nil
  55. local con2=nil
  56. local Mode="Binary"
  57. local idleanim=0
  58. local idleanim2=false
  59. local impulse=1
  60. local hitfloor,posfloor=nil,nil
  61. local damcount=0
  62. local guard=false
  63. local damagebonus = 1
  64. --player
  65. player=nil
  66. --save shoulders
  67. RSH, LSH=nil, nil
  68. --welds
  69. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  70. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  71. LH=Torso["Left Hip"]
  72. RH=Torso["Right Hip"]
  73. Asset="http://www.roblox.com/asset/?id="
  74. Health=200
  75.  
  76. ---HEALTHBAR
  77.  
  78. ---REST OF THE SCRIPT IS LIRON
  79.  
  80. local p = game.Players.LocalPlayer--48103735
  81. local char = p.Character
  82. local mouse = p:GetMouse()
  83. local larm = char["Left Arm"]
  84. local rarm = char["Right Arm"]
  85. local lleg = char["Left Leg"]
  86. local rleg = char["Right Leg"]
  87. local hed = char.Head
  88. local torso = char.Torso
  89. local hum = char.Humanoid
  90. local cam = game.Workspace.CurrentCamera
  91. local root = char.HumanoidRootPart
  92. local rj = root.RootJoint
  93. local deb = false
  94. local l = game:GetService("Lighting")
  95. local rs = game:GetService("RunService").RenderStepped
  96. local hb = game:GetService("RunService").Heartbeat
  97. local Stepped = game:GetService("RunService").Stepped
  98. math.randomseed(os.time())
  99. --arm effects--
  100.  
  101. Player=game:GetService("Players").LocalPlayer
  102. Character=Player.Character
  103. PlayerGui=Player.PlayerGui
  104. Backpack=Player.Backpack
  105. Torso=Character.Torso
  106. Head=Character.Head
  107. Humanoid=Character.Humanoid
  108. m=Instance.new('Model',Character)
  109. LeftArm=Character["Left Arm"]
  110. LeftLeg=Character["Left Leg"]
  111. RightArm=Character["Right Arm"]
  112. RightLeg=Character["Right Leg"]
  113. local mouse=Player:GetMouse()
  114. local PE = Instance.new("ParticleEmitter", LeftArm)
  115. PE.Name = "Flame"
  116. local c1 = Color3.fromRGB (0,0,0)
  117. local c2 = Color3.fromRGB (0,0,150)
  118. PE.Color = ColorSequence.new(c1)
  119. PE.EmissionDirection = "Bottom"
  120. PE.Texture = "rbxassetid://242201991"
  121. PE.LightEmission = 0.850
  122. PE.Speed = NumberRange.new(0)
  123. PE.RotSpeed = NumberRange.new(250)
  124. PE.Size = NumberSequence.new(.5)
  125. PE.Lifetime = NumberRange.new(0.2)
  126. PE.Rate = 200
  127. PE.VelocitySpread = 50
  128.  
  129.  
  130. local PE = Instance.new("ParticleEmitter", RightArm)
  131. PE.Name = "Flame"
  132. local c1 = Color3.fromRGB (0,0,0)
  133. local c2 = Color3.fromRGB (0,0,150)
  134. PE.Color = ColorSequence.new(c1)
  135. PE.EmissionDirection = "Bottom"
  136. PE.Texture = "rbxassetid://242201991"
  137. PE.LightEmission = 0.850
  138. PE.Speed = NumberRange.new(0)
  139. PE.RotSpeed = NumberRange.new(250)
  140. PE.Size = NumberSequence.new(.5)
  141. PE.Lifetime = NumberRange.new(0.2)
  142. PE.Rate = 200
  143. PE.VelocitySpread = 50
  144. ------------------------------------------Magic----
  145. Magik = function()
  146. Spawn(function()
  147. local function lerp(a,b,c)
  148. return a+(b-a)*c
  149. end
  150. local function rndRange(rng)
  151. return math.random(-rng*1000,rng*1000)/1000
  152. end
  153. local magik = Instance.new("Part", LeftArm)
  154. local Colors = {"Dark blue", "Light blue"}
  155. local Material = {"Granite","Granite"}
  156. magik.Anchored = true
  157. magik.Material = "Granite"
  158. magik.Locked = true
  159. magik.FormFactor = "Custom"
  160. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  161. magik.TopSurface = "Smooth"
  162. magik.BottomSurface = "Smooth"
  163. magik.Transparency = 0
  164. magik.CanCollide = false
  165. magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  166. magik.Material = (Material[math.random(1,#Material)])
  167. local mr = math.rad
  168. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  169. local cf = LeftArm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  170. magik.CFrame = cf
  171. for i = 0, 1, .05 do
  172. local newTrans = lerp(0.5, 1, i)
  173. local ns = lerp(1,1.2,i)
  174. magik.Transparency = newTrans
  175. magik.Size = Vector3.new(ns,ns,ns)
  176. magik.CFrame = cf
  177. wait()
  178. end
  179. magik:Destroy()
  180. wait()
  181. end)
  182. end
  183.  
  184.  
  185. Spawn(function()
  186. while wait (.05) do
  187. Magik()
  188. end
  189. end)
  190.  
  191. local p = game.Players.LocalPlayer
  192. local char = p.Character
  193. local mouse = p:GetMouse()
  194. local larm = char["Left Arm"]
  195. local rarm = char["Right Arm"]
  196. local lleg = char["Left Leg"]
  197. local rleg = char["Right Leg"]
  198. local hed = char.Head
  199. local torso = char.Torso
  200. local hum = char.Humanoid
  201. local cam = game.Workspace.CurrentCamera
  202. local root = char.HumanoidRootPart
  203. local deb = false
  204. local CanAttack = true
  205. local shot = 0
  206. local l = game:GetService("Lighting")
  207. local rs = game:GetService("RunService").RenderStepped
  208. math.randomseed(os.time())
  209. hum.MaxHealth = 9001
  210. wait(1)
  211. hum.Health = 9001
  212.  
  213. for i,v in pairs (hed:GetChildren()) do
  214. if v:IsA("Sound") then
  215. v:Destroy()
  216. end
  217. end
  218. --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char
  219. --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813"
  220.  
  221.  
  222. ----------------------------------------------------
  223. --[[Additional Functions]]
  224.  
  225. cf=CFrame.new
  226. vt=Vector3.new
  227.  
  228. function swait(num)
  229. if num==0 or num==nil then
  230. game:service'RunService'.Stepped:wait(0)
  231. else
  232. for i=0,num do
  233. game:service'RunService'.Stepped:wait(0)
  234. end
  235. end
  236. end
  237.  
  238. so = function(id,par,vol,pit)
  239. coroutine.resume(coroutine.create(function()
  240. local sou = Instance.new("Sound",par or workspace)
  241. sou.Volume=vol
  242. sou.Pitch=pit or 1
  243. sou.SoundId=id
  244. swait()
  245. sou:play()
  246. game:GetService("Debris"):AddItem(sou,6)
  247. end))
  248. end
  249.  
  250.  
  251.  
  252.  
  253.  
  254. ----------------------------------------------------
  255. Debounces = {
  256. CanAttack = true;
  257. CanJoke = true;
  258. NoIdl = false;
  259. Slashing = false;
  260. Slashed = false;
  261. Slapping = false;
  262. Slapped = false;
  263. ks = false;
  264. }
  265.  
  266. local Touche = {char.Name, }
  267. ----------------------------------------------------
  268. function HasntTouched(plrname)
  269. local ret = true
  270. for _, v in pairs(Touche) do
  271. if v == plrname then
  272. ret = false
  273. end
  274. end
  275. return ret
  276. end
  277. ----------------------------------------------------
  278. function weld5(part0, part1, c0, c1)
  279. weeld=Instance.new("Weld", part0)
  280. weeld.Part0=part0
  281. weeld.Part1=part1
  282. weeld.C0=c0
  283. weeld.C1=c1
  284. return weeld
  285. end
  286. ----------------------------------------------------
  287.  
  288. function FindNearestTorso(Position,Distance,SinglePlayer)
  289. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  290. local List = {}
  291. for i,v in pairs(workspace:GetChildren())do
  292. if v:IsA("Model")then
  293. if v:findFirstChild("Torso")then
  294. if v ~= char then
  295. if(v.Torso.Position -Position).magnitude <= Distance then
  296. table.insert(List,v)
  297. end
  298. end
  299. end
  300. end
  301. end
  302. return List
  303. end
  304. ----------------------------------------------------
  305. function lerp(a, b, t) -- Linear interpolation
  306. return a + (b - a)*t
  307. end
  308.  
  309. function slerp(a, b, t) --Spherical interpolation
  310. dot = a:Dot(b)
  311. if dot > 0.99999 or dot < -0.99999 then
  312. return t <= 0.5 and a or b
  313. else
  314. r = math.acos(dot)
  315. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  316. end
  317. end
  318.  
  319. function matrixInterpolate(a, b, t)
  320. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  321. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  322. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  323. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  324. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  325. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  326. local t = v1:Dot(v2)
  327. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  328. return CFrame.new()
  329. end
  330. return CFrame.new(
  331. v0.x, v0.y, v0.z,
  332. v1.x, v1.y, v1.z,
  333. v2.x, v2.y, v2.z,
  334. v3.x, v3.y, v3.z)
  335. end
  336. ----------------------------------------------------
  337. function genWeld(a,b)
  338. local w = Instance.new("Weld",a)
  339. w.Part0 = a
  340. w.Part1 = b
  341. return w
  342. end
  343. function weld(a, b)
  344. local weld = Instance.new("Weld")
  345. weld.Name = "W"
  346. weld.Part0 = a
  347. weld.Part1 = b
  348. weld.C0 = a.CFrame:inverse() * b.CFrame
  349. weld.Parent = a
  350. return weld;
  351. end
  352. ----------------------------------------------------
  353. function Lerp(c1,c2,al)
  354. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  355. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  356. for i,v in pairs(com1) do
  357. com1[i] = v+(com2[i]-v)*al
  358. end
  359. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  360. end
  361. ----------------------------------------------------[[Dissolve function]]
  362. function Dissolve(ret)
  363.  
  364. ret.BrickColor = BrickColor.new("Really black")
  365. for i = 1, 10 do wait()
  366. for i,v in pairs(ret:GetChildren()) do
  367. if v:IsA("Part") or v:IsA("WedgePart") then
  368. v.Transparency = v.Transparency + 0.1
  369.  
  370. end
  371. end
  372. end
  373. ret:Destroy()
  374. end
  375.  
  376. ----------------------------------------------------
  377. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  378. local wld = Instance.new("Weld", wp1)
  379. wld.Part0 = wp0
  380. wld.Part1 = wp1
  381. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  382. end
  383.  
  384.  
  385. --newcape
  386.  
  387. local verlet = {}
  388. verlet.step_time = 1 / 50
  389. verlet.gravity = Vector3.new(0, -150, 0) --//
  390.  
  391. local char = game.Players.LocalPlayer.Character
  392. local torso = game.Workspace[game.Players.LocalPlayer.Name].Torso
  393. local parts = {}
  394. local render = game:GetService("RunService").RenderStepped
  395.  
  396. wait()
  397.  
  398. local point = {}
  399. local link = {}
  400. local rope = {}
  401.  
  402. local function ccw(A,B,C)
  403. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  404. end
  405.  
  406. local function intersect(A,B,C,D)
  407. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  408. end
  409.  
  410. local function vec2(v)
  411. return Vector2.new(v.x, v.z)
  412. end
  413.  
  414. function point:step()
  415. if not self.fixed then
  416. local derivative = (self.position - self.last_position) * 0.95
  417. self.last_position = self.position
  418. self.position = self.position + derivative + ((verlet.gravity + (torso.CFrame.lookVector * -90)) * verlet.step_time ^ 2) --//
  419. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  420. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  421. local pointE = self.position + torso.CFrame.lookVector * 100
  422. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  423. if not doIntersect then
  424. self.postition = self.position - torso.CFrame.lookVector * 10
  425. end]]
  426. end
  427. end
  428.  
  429. function link:step()
  430. for i = 1, 1 do
  431. local distance = self.point1.position - self.point2.position
  432. local magnitude = distance.magnitude
  433. local differance = (self.length - magnitude) / magnitude
  434. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  435. if not self.point1.fixed then
  436. self.point1.position = self.point1.position + translation
  437. end
  438. if not self.point2.fixed then
  439. self.point2.position = self.point2.position - translation
  440. end
  441. end
  442. end
  443.  
  444. function verlet.new(class, a, b, c)
  445. if class == "Point" then
  446. local new = {}
  447. setmetatable(new, {__index = point})
  448. new.class = class
  449. new.position = a or Vector3.new()
  450. new.last_position = new.position
  451. new.velocity = verlet.gravity
  452. new.fixed = false
  453. return new
  454. elseif class == "Link" then
  455. local new = {}
  456. setmetatable(new, {__index = link})
  457. new.class = class
  458. new.point1 = a
  459. new.point2 = b
  460. new.length = c or (a.position - b.position).magnitude
  461. return new
  462. elseif class == "Rope" then
  463. local new = {}
  464. setmetatable(new, {__index = link})
  465. new.class = class
  466. new.start_point = a
  467. new.finish_point = b
  468. new.points = {}
  469. new.links = {}
  470. local inc = (b - a) / 10
  471. for i = 0, 10 do
  472. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  473. end
  474. for i = 2, #new.points do
  475. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  476. end
  477. return new
  478. end
  479. end
  480.  
  481. local tris = {}
  482. local triParts = {}
  483.  
  484. local function GetDiscoColor(hue)
  485. local section = hue % 1 * 3
  486. local secondary = 0.5 * math.pi * (section % 1)
  487. if section < 1 then
  488. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  489. elseif section < 2 then
  490. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  491. else
  492. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  493. end
  494. end
  495.  
  496. local function setupPart(part)
  497. part.Anchored = true
  498. part.FormFactor = 3
  499. part.CanCollide = false
  500. part.TopSurface = 10
  501. part.BottomSurface = 10
  502. part.LeftSurface = 10
  503. part.RightSurface = 10
  504. part.FrontSurface = 10
  505. part.BackSurface = 10
  506. part.Material = "Granite"
  507. local m = Instance.new("SpecialMesh", part)
  508. m.MeshType = "Wedge"
  509. m.Scale = Vector3.new(0.2, 1, 1)
  510. return part
  511. end
  512.  
  513. local function CFrameFromTopBack(at, top, back)
  514. local right = top:Cross(back)
  515. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  516. end
  517.  
  518. local function drawTri(parent, a, b, c)
  519. local this = {}
  520. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  521. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  522. function this:Set(a, b, c)
  523. local ab, bc, ca = b-a, c-b, a-c
  524. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  525. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  526. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  527. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  528. if edg1 < edg2 then
  529. if edg1 >= edg3 then
  530. a, b, c = c, a, b
  531. ab, bc, ca = ca, ab, bc
  532. abm = cam
  533. end
  534. else
  535. if edg2 < edg3 then
  536. a, b, c = b, c, a
  537. ab, bc, ca = bc, ca, ab
  538. abm = bcm
  539. else
  540. a, b, c = c, a, b
  541. ab, bc, ca = ca, ab, bc
  542. abm = cam
  543. end
  544. end
  545.  
  546. local len1 = -ca:Dot(ab)/abm
  547. local len2 = abm - len1
  548. local width = (ca + ab.unit*len1).magnitude
  549.  
  550. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  551.  
  552. if len1 > 0.2 then
  553. mPart1.Parent = parent
  554. mPart1.Size = Vector3.new(0.2, width, len1)
  555. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  556. else
  557. mPart1.Parent = nil
  558. end
  559.  
  560. if len2 > 0.2 then
  561. mPart2.Parent = parent
  562. mPart2.Size = Vector3.new(0.2, width, len2)
  563. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  564. else
  565. mPart2.Parent = nil
  566. end
  567. end
  568. function this:SetProperty(prop, value)
  569. mPart1[prop] = value
  570. mPart2[prop] = value
  571. end
  572. this:Set(a, b, c)
  573. function this:Destroy()
  574. mPart1:Destroy()
  575. mPart2:Destroy()
  576. end
  577. this.p1 = mPart1
  578. this.p2 = mPart2
  579. this.p1.BrickColor = BrickColor.new "Dark blue"
  580. this.p2.BrickColor = BrickColor.new "Light blue"
  581. return this
  582. end
  583.  
  584. function verlet.draw(object, id)
  585. if object.class == "Point" then
  586. local part = parts[id]
  587. part.BrickColor = BrickColor.new(1, 1, 1)
  588. part.Transparency = 0
  589. part.formFactor = 3
  590. part.Anchored = true
  591. part.CanCollide = false
  592. part.TopSurface = 0
  593. part.BottomSurface = 0
  594. part.Size = Vector3.new(0.35, 0.35, 0.35)
  595. part.Material = "Neon"
  596. part.CFrame = CFrame.new(object.position)
  597. part.Parent = torso
  598. return part
  599. elseif object.class == "Link" then
  600. local part = parts[id]
  601. local dist = (object.point1.position - object.point2.position).magnitude
  602. part.Size = Vector3.new(0.2, 0.2, dist)
  603. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  604. part.Parent = torso
  605. return part
  606. end
  607. end
  608.  
  609. function verlet.clear()
  610. for _, v in pairs(workspace:GetChildren()) do
  611. if v.Name == "Part" then
  612. v:Destroy()
  613. end
  614. end
  615. end
  616.  
  617. local points = {}
  618. local links = {}
  619.  
  620. for x = 0, 2 do
  621. points[x] = {}
  622. for y = 0, 3 do
  623. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  624. points[x][y].fixed = y == 0
  625. end
  626. end
  627.  
  628. for x = 1, 2 do
  629. for y = 0, 3 do
  630. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  631. end
  632. end
  633.  
  634. for x = 0, 2 do
  635. for y = 1, 3 do
  636. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  637. end
  638. end
  639.  
  640. render:connect(function()
  641. for x = 0, 2 do
  642. for y = 0, 3 do
  643. if y == 0 then
  644. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  645. else
  646. points[x][y]:step()
  647. end
  648. end
  649. end
  650. for i = 1, #links do
  651. links[i]:step()
  652. end
  653. for i = 1, #tris do
  654. triParts[#triParts + 1] = tris[i].p1
  655. triParts[#triParts + 1] = tris[i].p2
  656. end
  657. tris = {}
  658. for x = 1, 2 do
  659. for y = 1, 3 do
  660. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  661. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  662. end
  663. end
  664. end)
  665.  
  666.  
  667. local cor6 = Instance.new("Part", torso.Cloak)
  668. cor6.Name = "Thingy"
  669. cor6.Locked = true
  670. cor6.BottomSurface = 0
  671. cor6.CanCollide = false
  672. cor6.Size = Vector3.new(1,1,1)
  673. cor6.Transparency = 1
  674. cor6.TopSurface = 0
  675. corw6 = Instance.new("Weld", cor6)
  676. corw6.Part0 = torso
  677. corw6.Part1 = cor6
  678. corw6.C0 = CFrame.new(0, 1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  679. corw6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  680. weld6 = Instance.new("Weld", torso.Cloak.NeckPart)
  681. weld6.Part0 = cor6
  682. weld6.Part1 = torso.Cloak.NeckPart
  683. weld6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  684. --Amulet
  685. m7 = Instance.new("Model")
  686. m7.Name = "Amulet"
  687. p1 = Instance.new("Part", m7)
  688. p1.BrickColor = BrickColor.new("Crimson")
  689. p1.Material = Enum.Material.Neon
  690. p1.Name = "Center"
  691. p1.CFrame = CFrame.new(-1.0658141e-014, 14.4125643, 0, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  692. p1.CanCollide = false
  693. p1.Locked = true
  694. p1.FormFactor = Enum.FormFactor.Custom
  695. p1.Shape = Enum.PartType.Cylinder
  696. p1.Size = Vector3.new(0.5, 0.5, 0.5)
  697. p1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  698. p1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  699. p1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  700. p1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  701. p1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  702. p1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  703. p2 = Instance.new("Part", m7)
  704. p2.BrickColor = BrickColor.new("Really black")
  705. p2.Material = Enum.Material.Metal
  706. p2.Name = "Bottom"
  707. p2.CFrame = CFrame.new(1.19209318e-007, 14.1625719, 0, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  708. p2.CanCollide = false
  709. p2.Locked = true
  710. p2.FormFactor = Enum.FormFactor.Custom
  711. p2.Size = Vector3.new(0.200000003, 0.649999976, 0.649999976)
  712. p2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  713. p2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  714. p2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  715. p2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  716. p2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  717. p2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  718. b1 = Instance.new("SpecialMesh", p2)
  719. b1.MeshType = Enum.MeshType.Cylinder
  720. b1.Name = "Mesh"
  721. p3 = Instance.new("Part", m7)
  722. p3.BrickColor = BrickColor.new("Really black")
  723. p3.Material = Enum.Material.Metal
  724. p3.CFrame = CFrame.new(1.23580463e-007, 14.4625673, -0.280000001, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  725. p3.CanCollide = false
  726. p3.Locked = true
  727. p3.FormFactor = Enum.FormFactor.Custom
  728. p3.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  729. p3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  730. p3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  731. p3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  732. p3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  733. p3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  734. p3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  735. b2 = Instance.new("SpecialMesh", p3)
  736. b2.MeshType = Enum.MeshType.Brick
  737. b2.Name = "Mesh"
  738. b2.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  739. p4 = Instance.new("Part", m7)
  740. p4.BrickColor = BrickColor.new("Really black")
  741. p4.Material = Enum.Material.Metal
  742. p4.CFrame = CFrame.new(1.19209318e-007, 14.4625673, 0.280000001, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  743. p4.CanCollide = false
  744. p4.Locked = true
  745. p4.FormFactor = Enum.FormFactor.Custom
  746. p4.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  747. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  748. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  749. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  750. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  751. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  752. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  753. b3 = Instance.new("SpecialMesh", p4)
  754. b3.MeshType = Enum.MeshType.Brick
  755. b3.Name = "Mesh"
  756. b3.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  757. p5 = Instance.new("Part", m7)
  758. p5.BrickColor = BrickColor.new("Really black")
  759. p5.Material = Enum.Material.Metal
  760. p5.CFrame = CFrame.new(0.14000012, 14.4625673, -0.242487118, -3.78551732e-008, -0.866025388, -0.5, 1, -4.37113883e-008, 0, -2.18556941e-008, -0.5, 0.866025388)
  761. p5.CanCollide = false
  762. p5.Locked = true
  763. p5.FormFactor = Enum.FormFactor.Custom
  764. p5.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  765. p5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  766. p5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  767. p5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  768. p5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  769. p5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  770. p5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  771. b4 = Instance.new("SpecialMesh", p5)
  772. b4.MeshType = Enum.MeshType.Brick
  773. b4.Name = "Mesh"
  774. b4.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  775. p6 = Instance.new("Part", m7)
  776. p6.BrickColor = BrickColor.new("Really black")
  777. p6.Material = Enum.Material.Metal
  778. p6.CFrame = CFrame.new(-0.139999881, 14.4625673, 0.242487103, -3.78551732e-008, -0.866025388, -0.5, 1, -4.37113883e-008, 0, -2.18556941e-008, -0.5, 0.866025388)
  779. p6.CanCollide = false
  780. p6.Locked = true
  781. p6.FormFactor = Enum.FormFactor.Custom
  782. p6.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  783. p6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  784. p6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  785. p6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  786. p6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  787. p6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  788. p6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  789. b5 = Instance.new("SpecialMesh", p6)
  790. b5.MeshType = Enum.MeshType.Brick
  791. b5.Name = "Mesh"
  792. b5.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  793. p7 = Instance.new("Part", m7)
  794. p7.BrickColor = BrickColor.new("Really black")
  795. p7.Material = Enum.Material.Metal
  796. p7.CFrame = CFrame.new(-0.242486984, 14.4625673, 0.139999986, -2.18556924e-008, -0.5, -0.866025388, 1, -4.37113847e-008, 0, -3.78551732e-008, -0.866025388, 0.5)
  797. p7.CanCollide = false
  798. p7.Locked = true
  799. p7.FormFactor = Enum.FormFactor.Custom
  800. p7.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  801. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  802. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  803. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  804. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  805. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  806. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  807. b6 = Instance.new("SpecialMesh", p7)
  808. b6.MeshType = Enum.MeshType.Brick
  809. b6.Name = "Mesh"
  810. b6.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  811. p8 = Instance.new("Part", m7)
  812. p8.BrickColor = BrickColor.new("Really black")
  813. p8.Material = Enum.Material.Metal
  814. p8.CFrame = CFrame.new(0.242487192, 14.4625673, -0.139999971, -2.18556924e-008, -0.5, -0.866025388, 1, -4.37113847e-008, 0, -3.78551732e-008, -0.866025388, 0.5)
  815. p8.CanCollide = false
  816. p8.Locked = true
  817. p8.FormFactor = Enum.FormFactor.Custom
  818. p8.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  819. p8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  820. p8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  821. p8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  822. p8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  823. p8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  824. p8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  825. b7 = Instance.new("SpecialMesh", p8)
  826. b7.MeshType = Enum.MeshType.Brick
  827. b7.Name = "Mesh"
  828. b7.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  829. p9 = Instance.new("Part", m7)
  830. p9.BrickColor = BrickColor.new("Really black")
  831. p9.Material = Enum.Material.Metal
  832. p9.CFrame = CFrame.new(0.280000091, 14.4625673, -1.64313008e-014, 0, 0, -1, 1, -4.37113847e-008, 0, -4.37113847e-008, -1, 0)
  833. p9.CanCollide = false
  834. p9.Locked = true
  835. p9.FormFactor = Enum.FormFactor.Custom
  836. p9.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  837. p9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  838. p9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  839. p9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  840. p9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  841. p9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  842. p9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  843. b8 = Instance.new("SpecialMesh", p9)
  844. b8.MeshType = Enum.MeshType.Brick
  845. b8.Name = "Mesh"
  846. b8.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  847. p10 = Instance.new("Part", m7)
  848. p10.BrickColor = BrickColor.new("Really black")
  849. p10.Material = Enum.Material.Metal
  850. p10.CFrame = CFrame.new(-0.279999852, 14.4625673, -1.49011772e-008, 0, 0, -1, 1, -4.37113847e-008, 0, -4.37113847e-008, -1, 0)
  851. p10.CanCollide = false
  852. p10.Locked = true
  853. p10.FormFactor = Enum.FormFactor.Custom
  854. p10.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  855. p10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  856. p10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  857. p10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  858. p10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  859. p10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  860. p10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  861. b9 = Instance.new("SpecialMesh", p10)
  862. b9.MeshType = Enum.MeshType.Brick
  863. b9.Name = "Mesh"
  864. b9.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  865. p11 = Instance.new("Part", m7)
  866. p11.BrickColor = BrickColor.new("Really black")
  867. p11.Material = Enum.Material.Metal
  868. p11.CFrame = CFrame.new(-0.242486984, 14.4625673, -0.139999986, 2.18556906e-008, 0.5, -0.866025388, 1, -4.37113847e-008, 0, -3.78551697e-008, -0.866025388, -0.5)
  869. p11.CanCollide = false
  870. p11.Locked = true
  871. p11.FormFactor = Enum.FormFactor.Custom
  872. p11.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  873. p11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  874. p11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  875. p11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  876. p11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  877. p11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  878. p11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  879. b10 = Instance.new("SpecialMesh", p11)
  880. b10.MeshType = Enum.MeshType.Brick
  881. b10.Name = "Mesh"
  882. b10.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  883. p12 = Instance.new("Part", m7)
  884. p12.BrickColor = BrickColor.new("Really black")
  885. p12.Material = Enum.Material.Metal
  886. p12.CFrame = CFrame.new(0.242487192, 14.4625673, 0.139999971, 2.18556906e-008, 0.5, -0.866025388, 1, -4.37113847e-008, 0, -3.78551697e-008, -0.866025388, -0.5)
  887. p12.CanCollide = false
  888. p12.Locked = true
  889. p12.FormFactor = Enum.FormFactor.Custom
  890. p12.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  891. p12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  892. p12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  893. p12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  894. p12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  895. p12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  896. p12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  897. b11 = Instance.new("SpecialMesh", p12)
  898. b11.MeshType = Enum.MeshType.Brick
  899. b11.Name = "Mesh"
  900. b11.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  901. p13 = Instance.new("Part", m7)
  902. p13.BrickColor = BrickColor.new("Really black")
  903. p13.Material = Enum.Material.Metal
  904. p13.CFrame = CFrame.new(-0.139999866, 14.4625673, -0.242487073, 3.78551732e-008, 0.866025388, -0.5, 1, -4.37113812e-008, 1.77635684e-015, -2.18556924e-008, -0.5, -0.866025388)
  905. p13.CanCollide = false
  906. p13.Locked = true
  907. p13.FormFactor = Enum.FormFactor.Custom
  908. p13.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  909. p13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  910. p13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  911. p13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  912. p13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  913. p13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  914. p13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  915. b12 = Instance.new("SpecialMesh", p13)
  916. b12.MeshType = Enum.MeshType.Brick
  917. b12.Name = "Mesh"
  918. b12.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  919. p14 = Instance.new("Part", m7)
  920. p14.BrickColor = BrickColor.new("Really black")
  921. p14.Material = Enum.Material.Metal
  922. p14.CFrame = CFrame.new(0.14000012, 14.4625673, 0.242487073, 3.78551732e-008, 0.866025388, -0.5, 1, -4.37113812e-008, 1.77635684e-015, -2.18556924e-008, -0.5, -0.866025388)
  923. p14.CanCollide = false
  924. p14.Locked = true
  925. p14.FormFactor = Enum.FormFactor.Custom
  926. p14.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  927. p14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  928. p14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  929. p14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  930. p14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  931. p14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  932. p14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  933. b13 = Instance.new("SpecialMesh", p14)
  934. b13.MeshType = Enum.MeshType.Brick
  935. b13.Name = "Mesh"
  936. b13.Scale = Vector3.new(1, 0.300000012, 0.200000003)
  937. p15 = Instance.new("Part", m7)
  938. p15.BrickColor = BrickColor.new("Really black")
  939. p15.Material = Enum.Material.Metal
  940. p15.Name = "Top"
  941. p15.CFrame = CFrame.new(0, 14.7125645, 0, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  942. p15.CanCollide = false
  943. p15.Locked = true
  944. p15.FormFactor = Enum.FormFactor.Custom
  945. p15.Size = Vector3.new(0.200000003, 0.649999976, 0.649999976)
  946. p15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  947. p15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  948. p15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  949. p15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  950. p15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  951. p15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  952. b14 = Instance.new("SpecialMesh", p15)
  953. b14.MeshType = Enum.MeshType.Cylinder
  954. b14.Name = "Mesh"
  955. w1 = Instance.new("Weld", p1)
  956. w1.Name = "Joint"
  957. w1.Part0 = p1
  958. w1.C0 = CFrame.new(0.300000191, -1.31134357e-008, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  959. w1.Part1 = p15
  960. w1.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  961. w2 = Instance.new("Weld", p2)
  962. w2.Name = "Joint"
  963. w2.Part0 = p2
  964. w2.C0 = CFrame.new(0.249992371, 1.08281824e-007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  965. w2.Part1 = p1
  966. w2.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  967. w3 = Instance.new("Weld", p3)
  968. w3.Name = "Joint"
  969. w3.Part0 = p3
  970. w3.C0 = CFrame.new(-0.0500030518, 1.25766178e-007, 0.280000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  971. w3.Part1 = p1
  972. w3.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  973. w4 = Instance.new("Weld", p4)
  974. w4.Name = "Joint"
  975. w4.Part0 = p4
  976. w4.C0 = CFrame.new(-0.0500030518, 1.21395033e-007, -0.280000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  977. w4.Part1 = p1
  978. w4.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  979. w5 = Instance.new("Weld", p5)
  980. w5.Name = "Joint"
  981. w5.Part0 = p5
  982. w5.C0 = CFrame.new(-0.0500030518, 1.00163732e-007, 0.280000061, 1, -5.85621507e-009, -2.18556941e-008, -5.85621507e-009, 0.866025388, -0.5, 2.18556941e-008, 0.5, 0.866025388)
  983. w5.Part1 = p1
  984. w5.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  985. w6 = Instance.new("Weld", p6)
  986. w6.Name = "Joint"
  987. w6.Part0 = p6
  988. w6.C0 = CFrame.new(-0.0500030518, 1.00163732e-007, -0.279999942, 1, -5.85621507e-009, -2.18556941e-008, -5.85621507e-009, 0.866025388, -0.5, 2.18556941e-008, 0.5, 0.866025388)
  989. w6.Part1 = p1
  990. w6.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  991. w7 = Instance.new("Weld", p7)
  992. w7.Name = "Joint"
  993. w7.Part0 = p7
  994. w7.C0 = CFrame.new(-0.0500030518, 5.54602479e-008, -0.279999882, 1, -2.18556959e-008, -3.78551732e-008, -2.18556906e-008, 0.5, -0.866025388, 3.78551732e-008, 0.866025388, 0.5)
  995. w7.Part1 = p1
  996. w7.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  997. w8 = Instance.new("Weld", p8)
  998. w8.Name = "Joint"
  999. w8.Part0 = p8
  1000. w8.C0 = CFrame.new(-0.0500030518, 7.03614091e-008, 0.280000061, 1, -2.18556959e-008, -3.78551732e-008, -2.18556906e-008, 0.5, -0.866025388, 3.78551732e-008, 0.866025388, 0.5)
  1001. w8.Part1 = p1
  1002. w8.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1003. w9 = Instance.new("Weld", p9)
  1004. w9.Name = "Joint"
  1005. w9.Part0 = p9
  1006. w9.C0 = CFrame.new(-0.0500030518, 2.1856863e-009, 0.280000091, 1, -4.37113883e-008, -4.37113847e-008, -4.37113847e-008, 1.91068525e-015, -1, 4.37113883e-008, 1, 0)
  1007. w9.Part1 = p1
  1008. w9.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1009. w10 = Instance.new("Weld", p10)
  1010. w10.Name = "Joint"
  1011. w10.Part0 = p10
  1012. w10.C0 = CFrame.new(-0.0500030518, -1.27154749e-008, -0.279999852, 1, -4.37113883e-008, -4.37113847e-008, -4.37113847e-008, 1.91068525e-015, -1, 4.37113883e-008, 1, 0)
  1013. w10.Part1 = p1
  1014. w10.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1015. w11 = Instance.new("Weld", p11)
  1016. w11.Name = "Joint"
  1017. w11.Part0 = p11
  1018. w11.C0 = CFrame.new(-0.0500030518, -5.6298461e-008, -0.279999882, 1, -6.55670789e-008, -3.78551697e-008, -6.55670789e-008, -0.5, -0.866025388, 3.78551732e-008, 0.866025388, -0.5)
  1019. w11.Part1 = p1
  1020. w11.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1021. w12 = Instance.new("Weld", p12)
  1022. w12.Name = "Joint"
  1023. w12.Part0 = p12
  1024. w12.C0 = CFrame.new(-0.0500030518, -6.37490416e-008, 0.280000061, 1, -6.55670789e-008, -3.78551697e-008, -6.55670789e-008, -0.5, -0.866025388, 3.78551732e-008, 0.866025388, -0.5)
  1025. w12.Part1 = p1
  1026. w12.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1027. w13 = Instance.new("Weld", p13)
  1028. w13.Name = "Joint"
  1029. w13.Part0 = p13
  1030. w13.C0 = CFrame.new(-0.0500030518, -1.01001945e-007, -0.279999912, 1, -8.15665615e-008, -2.18556924e-008, -8.15665544e-008, -0.866025388, -0.5, 2.18556959e-008, 0.5, -0.866025388)
  1031. w13.Part1 = p1
  1032. w13.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1033. w14 = Instance.new("Weld", p14)
  1034. w14.Name = "Joint"
  1035. w14.Part0 = p14
  1036. w14.C0 = CFrame.new(-0.0500030518, -1.08452525e-007, 0.280000031, 1, -8.15665615e-008, -2.18556924e-008, -8.15665544e-008, -0.866025388, -0.5, 2.18556959e-008, 0.5, -0.866025388)
  1037. w14.Part1 = p1
  1038. w14.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1039. m7.Parent = torso
  1040. m7:MakeJoints()
  1041. ----------------------------------------------------
  1042. local cor7 = Instance.new("Part", torso)
  1043. cor7.Name = "Thingy"
  1044. cor7.Locked = true
  1045. cor7.BottomSurface = 0
  1046. cor7.CanCollide = false
  1047. cor7.Size = Vector3.new(1, 1, 1)
  1048. cor7.Transparency = 1
  1049. cor7.TopSurface = 0
  1050. corw7 = Instance.new("Weld", cor7)
  1051. corw7.Part0 = torso.Torso.Connection
  1052. corw7.Part1 = cor7
  1053. corw7.C0 = CFrame.new(0, 0.26, 0.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0))
  1054. corw7.C1 = CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(140))
  1055. weld7 = Instance.new("Weld", torso.Amulet)
  1056. weld7.Part0 = cor7
  1057. weld7.Part1 = torso.Amulet.Top
  1058. weld7.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1059. --SWORD
  1060. Player=game:GetService("Players").LocalPlayer
  1061. Character=Player.Character
  1062. PlayerGui=Player.PlayerGui
  1063. Backpack=Player.Backpack
  1064. Torso=Character.Torso
  1065. Head=Character.Head
  1066. Humanoid=Character.Humanoid
  1067. m8=Instance.new('Model',Character)
  1068. LeftArm=Character["Left Arm"]
  1069. LeftLeg=Character["Left Leg"]
  1070. RightArm=Character["Right Arm"]
  1071. RightLeg=Character["Right Leg"]
  1072. it=Instance.new
  1073.  
  1074. Player=game:GetService('Players').LocalPlayer
  1075. Character=Player.Character
  1076. Mouse=Player:GetMouse()
  1077. m8=Instance.new('Model',Character)
  1078. it=Instance.new
  1079. function nooutline(part)
  1080. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1081. end
  1082. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1083. local fp=it("Part")
  1084. fp.formFactor=formfactor
  1085. fp.Parent=parent
  1086. fp.Reflectance=reflectance
  1087. fp.Transparency=transparency
  1088. fp.CanCollide=false
  1089. fp.Locked=true
  1090. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1091. fp.Name=name
  1092. fp.Size=size
  1093. fp.Position=Character.Torso.Position
  1094. nooutline(fp)
  1095. fp.Material=material
  1096. fp:BreakJoints()
  1097. return fp
  1098. end
  1099. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1100. local mesh=it(Mesh)
  1101. mesh.Parent=part
  1102. if Mesh=="SpecialMesh" then
  1103. mesh.MeshType=meshtype
  1104. mesh.MeshId=meshid
  1105. end
  1106. mesh.Offset=offset
  1107. mesh.Scale=scale
  1108. return mesh
  1109. end
  1110. function weld(parent,part0,part1,c0,c1)
  1111. local weld=it("Weld")
  1112. weld.Parent=parent
  1113. weld.Part0=part0
  1114. weld.Part1=part1
  1115. weld.C0=c0
  1116. weld.C1=c1
  1117. return weld
  1118. end
  1119.  
  1120.  
  1121. char.Humanoid.WalkSpeed = 50
  1122. CR = torso.Cloak.Rotater
  1123. CR2 = torso.Cloak.CapeLevel1
  1124. CR3 = torso.Cloak.CapeLevel2
  1125. CR4 = torso.Cloak.CapeLevel3
  1126. CR5 = torso.Cloak.CapeLevel4
  1127. jump = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement