Advertisement
zed_isJayTheLionJR

new immortal one

Jun 9th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.60 KB | None | 0 0
  1.  
  2. -- Dirk
  3.  
  4. Player = game.Players.LocalPlayer
  5. Character = Player.Character
  6. Humanoid = Character.Humanoid
  7. HumanoidRoot = Humanoid.Torso
  8. RootJoint = HumanoidRoot.RootJoint
  9. Mouse = Player:GetMouse()
  10.  
  11. function rwait()
  12. game:service("RunService").RenderStepped:wait()
  13. end
  14.  
  15. function Weld(Part1,Part0,CFrame0,CFrame1,skippos)
  16. if not skippos then
  17. Part1.Position = Part0.Position
  18. end
  19. local we = Instance.new("Weld",Part1)
  20. we.Part1 = Part1
  21. we.Part0 = Part0
  22. we.C0 = CFrame0 or CFrame.new()
  23. we.C1 = CFrame1 or CFrame.new()
  24. Instance.new("BoolValue",we).Name = "Cancel"
  25. local c0o = Instance.new("CFrameValue",we)
  26. c0o.Name = "c0o"
  27. c0o.Value = we.C0
  28. local c1o = Instance.new("CFrameValue",we)
  29. c1o.Name = "c1o"
  30. c1o.Value = we.C1
  31. return we
  32. end
  33.  
  34. function Co(fun) Delay(0,fun) end
  35.  
  36. function CheckI(Item,Blacklist,Specific)
  37. for _,v in pairs(Item:children()) do
  38. if not Specific then
  39. if v:IsA(Blacklist) or v.Name:match(Blacklist) then
  40. v:Destroy()
  41. end
  42. else
  43. if v:IsA(Blacklist) or v.Name == Blacklist then
  44. v:Destroy()
  45. end
  46. end
  47. end
  48. end
  49.  
  50. function Tween(weld, c0, c1, dur, canc)
  51. Co(function()
  52. if not weld:FindFirstChild("Cancel") then
  53. Instance.new("BoolValue",weld).Name = "Cancel"
  54. end
  55. if canc then
  56. weld.Cancel.Value = true
  57. rwait()
  58. weld.Cancel.Value = false
  59. end
  60. local c0sp,c0sa,c0p,c0a,c1sp,c1sa,c1p,c1a
  61. if c0 then
  62. c0sp = weld.C0.p
  63. c0sa = Vector3.new(weld.C0:toEulerAnglesXYZ())
  64. c0p = c0.p - c0sp
  65. c0a = Vector3.new(c0:toEulerAnglesXYZ()) - c0sa
  66. end
  67. if c1 then
  68. c1sp = weld.C1.p
  69. c1sa = Vector3.new(weld.C1:toEulerAnglesXYZ())
  70. c1p = c1.p - c1sp
  71. c1a = Vector3.new(c1:toEulerAnglesXYZ()) - c1sa
  72. end
  73.  
  74. for ni = 0, 1, (1/60)/dur do
  75. if not weld.Cancel.Value then
  76. if c0 then
  77. weld.C0 = CFrame.new(c0sp.x + (c0p.x*ni), c0sp.y + (c0p.y*ni), c0sp.z + (c0p.z*ni)) * CFrame.Angles(c0sa.x + (c0a.x*ni), c0sa.y + (c0a.y*ni), c0sa.z + (c0a.z*ni))
  78. end
  79. if c1 then
  80. weld.C1 = CFrame.new(c1sp.x + (c1p.x*ni), c1sp.y + (c1p.y*ni), c1sp.z + (c1p.z*ni)) * CFrame.Angles(c1sa.x + (c1a.x*ni), c1sa.y + (c1a.y*ni), c1sa.z + (c1a.z*ni))
  81. end
  82. rwait()
  83. else
  84. return
  85. end
  86. end
  87. if c0 ~= nil then weld.C0 = c0 end
  88. if c1 ~= nil then weld.C1 = c1 end
  89. end)
  90. end
  91.  
  92. function Part(Parent)
  93. local part = Instance.new("Part",Parent)
  94. part.Material = "Neon"
  95. part.formFactor = 3
  96. part.Size = Vector3.new()
  97. part.TopSurface = 10
  98. part.BottomSurface = 10
  99. part.RightSurface = 10
  100. part.LeftSurface = 10
  101. part.FrontSurface = 10
  102. part.BackSurface = 10
  103. part.CanCollide = false
  104. return part
  105. end
  106.  
  107. function Sound(Parent,SoundId,Pitch,Volume)
  108. local so = Instance.new("Sound",Parent)
  109. so.SoundId = "rbxassetid://"..tostring(SoundId)
  110. so.Pitch = Pitch or 1
  111. so.Volume = Volume or 1
  112. so:Play()
  113. Co(function()
  114. repeat rwait() until not so.IsPlaying
  115. so:Destroy()
  116. end)
  117. end
  118.  
  119. --CheckI(Character,"Clothing")
  120. --CheckI(Character.Head,"Decal")
  121. --CheckI(Character,"Hat")
  122. CheckI(Character,"Dirk")
  123. --CheckI(Character,"ShirtGraphic")
  124. --CheckI(Character.Torso,"Decal")
  125. CheckI(Player.Backpack,"Katana")
  126.  
  127. OLeftS = Character.Torso["Left Shoulder"]
  128. ORightS = Character.Torso["Right Shoulder"]
  129. local LeftS
  130. local RightS
  131.  
  132. OLeftH = Character.Torso["Left Hip"]
  133. ORightH = Character.Torso["Right Hip"]
  134. local LeftH
  135. local RightH
  136.  
  137. local Neck = Character.Torso.Neck
  138. Neck.C0 = CFrame.new(0,1.45,0)
  139. Neck.C1 = CFrame.new(0,-0.05,0)
  140.  
  141. local LSC0 = OLeftS.C0
  142. local LSC1 = OLeftS.C1
  143. local RSC0 = ORightS.C0
  144. local RSC1 = ORightS.C1
  145.  
  146. function Arms(on)
  147. if on then
  148. OLeftS.Part1 = nil
  149. ORightS.Part1 = nil
  150. LeftS = Weld(Character["Left Arm"],Character.Torso,OLeftS.C0,OLeftS.C1,true)
  151. RightS = Weld(Character["Right Arm"],Character.Torso,ORightS.C0,ORightS.C1,true)
  152. else
  153. RightS:Destroy()
  154. RightS = nil
  155. LeftS:Destroy()
  156. LeftS = nil
  157. OLeftS.Part1 = Character["Left Arm"]
  158. ORightS.Part1 = Character["Right Arm"]
  159. end
  160. end
  161.  
  162. local LHC0 = OLeftH.C0
  163. local LHC1 = OLeftH.C1
  164. local RHC0 = ORightH.C0
  165. local RHC1 = ORightH.C1
  166.  
  167. function Legs(on)
  168. if on then
  169. OLeftH.Part1 = nil
  170. ORightH.Part1 = nil
  171. LeftH = Weld(Character["Left Leg"],Character.Torso,OLeftH.C0,OLeftH.C1,true)
  172. RightH = Weld(Character["Right Leg"],Character.Torso,ORightH.C0,ORightH.C1,true)
  173. else
  174. RightH:Destroy()
  175. RightH = nil
  176. LeftH:Destroy()
  177. LeftH = nil
  178. OLeftH.Part1 = Character["Left Leg"]
  179. ORightH.Part1 = Character["Right Leg"]
  180. end
  181. end
  182.  
  183. local Block = Instance.new("IntValue",Character)
  184. Block.Name = "Block"
  185. Block.Value = 0
  186.  
  187. local KatanaHop = Instance.new("HopperBin",Player.Backpack)
  188. KatanaHop.Name = "Katana"
  189.  
  190. local Model = Instance.new("Model",Character)
  191. Model.Name = "Dirk"
  192.  
  193. --[[local Shirt = Instance.new("Shirt",Character)
  194. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=73681617"
  195.  
  196. local Pants = Instance.new("Pants",Character)
  197. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=73681639"
  198.  
  199. local Face = Instance.new("Decal",Character.Head)
  200. Face.Texture = "http://www.roblox.com/asset/?id=13038247"
  201.  
  202. for i = 1,6 do
  203. local Hair = Part(Model)
  204. local HairMesh = Instance.new("SpecialMesh",Hair)
  205. HairMesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  206. Hair.BrickColor = BrickColor.new("Cool yellow")
  207. HairMesh.Scale = Vector3.new(1,1.5,1)
  208. Weld(Hair,Character.Head,CFrame.new((i-4)*0.015,0.5,0.25),CFrame.Angles(math.rad(-10*i),math.rad((i-4)*10),0))
  209. end
  210.  
  211. local Hair = Part(Model)
  212. Hair.BrickColor = BrickColor.new("Cool yellow")
  213. local HairMesh = Instance.new("SpecialMesh",Hair)
  214. HairMesh.MeshId = "http://www.roblox.com/asset/?id=15730710"
  215. HairMesh.Scale = Vector3.new(1.05,1,1)
  216. Weld(Hair,Character.Head,CFrame.new(0,0.4,0.01))
  217.  
  218. local ShadeCenter = Part(Model)
  219. ShadeCenter.Transparency = 1
  220. Weld(ShadeCenter,Character.Head,CFrame.new(0,0.3,-0.65))
  221. for i = -1,1,2 do
  222. local Shade1 = Part(Model)
  223. Shade1.Reflectance = 0.2
  224. Shade1.BrickColor = BrickColor.new("Really black")
  225. Shade1Mesh = Instance.new("SpecialMesh",Shade1)
  226. Shade1Mesh.MeshType = "Wedge"
  227. Shade1Mesh.Scale = Vector3.new(0.075,2,2.8)
  228. Weld(Shade1,ShadeCenter,CFrame.new(i*0.3,0,0),CFrame.Angles(math.rad(-45),math.rad(90*i),0))
  229. end--]]--
  230.  
  231. function create(tab)
  232. local obj = Instance.new(tab[1])
  233. for i, v in pairs(tab) do
  234. if i ~= 1 then
  235. obj[i] = v
  236. end
  237. end
  238. return obj
  239. end
  240.  
  241. function drawTriangle(p)
  242. local g, v = 0
  243. for s = 1, 3 do
  244. local l = (p[1+(s+1)%3]-p[1+s%3]).magnitude
  245. g, v = l > g and l or g, l > g and {p[1+(s-1)%3],p[1+(s)%3],p[1+(s+1)%3]} or v
  246. end
  247. local d = v[2] + (v[3] - v[2]).unit * ( (v[3] - v[2]).unit:Dot(v[1]-v[2]))
  248. local c,b = (d - v[1]).unit,(v[2]-v[3]).unit
  249. local a = b:Cross(c)
  250.  
  251. local p1 = create{"WedgePart", Transparency = 0.8, FormFactor = "Custom", Size = Vector3.new(0.2, 0.2, 0.2), CanCollide = false, Anchored = true, BrickColor = BrickColor.White()}
  252. local p2 = create{"WedgePart", Transparency = 0.8, FormFactor = "Custom", Size = Vector3.new(0.2, 0.2, 0.2), CanCollide = false, Anchored = true, BrickColor = BrickColor.White()}
  253. local m1 = create{"SpecialMesh", Parent = p1, MeshType = "Wedge", Scale = Vector3.new(0, (v[2]-d).magnitude, (v[1]-d).magnitude)/0.2}
  254. local m2 = create{"SpecialMesh", Parent = p2, MeshType = "Wedge", Scale = Vector3.new(0, (v[3]-d).magnitude, (v[1]-d).magnitude)/0.2}
  255.  
  256. p1.CFrame = CFrame.new(0,0,0,a.x,b.x,c.x,a.y,b.y,c.y,a.z,b.z,c.z)+(v[1]+v[2])/2
  257. p2.CFrame = CFrame.new(0,0,0,-a.x,-b.x,c.x,-a.y,-b.y,c.y,-a.z,-b.z,c.z)+(v[1]+v[3])/2
  258.  
  259. p1.Parent = script
  260. p2.Parent = script
  261.  
  262. return p1, p2, m1, m2
  263. end
  264.  
  265. local currentDamage = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  266.  
  267. function HitCounter(pos,dmg)
  268. local hitmo = Instance.new("Model")
  269. hitmo.Name = dmg
  270. local hc = Part(hitmo)
  271. hc.Name = "Head"
  272. hc.Size = Vector3.new(0.5,0.2,0.5)
  273. hc.BrickColor = BrickColor.Red()
  274. Instance.new("Humanoid",hitmo).MaxHealth = 0
  275. Co(function()
  276. for i = 0,1.5,0.05 do
  277. hc.CFrame = CFrame.new(pos)*CFrame.new(0,i,0)*CFrame.Angles(0,i,0)
  278. rwait()
  279. end
  280. hitmo:Destroy()
  281. end)
  282. hitmo.Parent = workspace
  283. game:service("Debris"):AddItem(hitmo,3)
  284. end
  285.  
  286. function CreateKatana(part,c0,c1)
  287. KatanaModel = Instance.new("Model",Model)
  288. local KatanaHandle = Part(KatanaModel)
  289. KatanaHandle.Reflectance = 0.1
  290. KatanaHandle.Size = Vector3.new(0.2,1.6,0.25)
  291. KatanaHandle.BrickColor = BrickColor.new("Really black")
  292. local KatanaWeld = Weld(KatanaHandle,part,c0,c1)
  293. for i = -1,1 do
  294. local stud = Part(KatanaModel)
  295. Instance.new("CylinderMesh",stud).Scale = Vector3.new(0.7,1,0.7)
  296. stud.Reflectance = 0.3
  297. stud.Size = Vector3.new(0.2,0.21,0.2)
  298. Weld(stud,KatanaHandle,CFrame.new(0,i*0.5,0),CFrame.Angles(math.rad(90),math.rad(90),0))
  299. end
  300. local KatanaHilt = Part(KatanaModel)
  301. Instance.new("BlockMesh",KatanaHilt).Scale = Vector3.new(1,0.3,1)
  302. KatanaHilt.Size = Vector3.new(0.3,0.2,0.7)
  303. KatanaHilt.Reflectance = 0.1
  304. KatanaHilt.BrickColor = BrickColor.new("Gold")
  305. Weld(KatanaHilt,KatanaHandle,CFrame.new(0,0.8,0))
  306. local KatanaBlade1 = Part(KatanaModel)
  307. KatanaBlade1.Name = "Blade"
  308. KatanaBlade1.BrickColor = BrickColor.White()
  309. KatanaBlade1.Reflectance = 0.3
  310. Instance.new("BlockMesh",KatanaBlade1).Scale = Vector3.new(0.08,1,0.15)
  311. KatanaBlade1.Size = Vector3.new(1,7,1)
  312. Weld(KatanaBlade1,KatanaHilt,CFrame.new(0,1.5,0.025))
  313.  
  314. local hithums = {Character.Humanoid}
  315. KatanaBlade1.Touched:connect(function(hit)
  316. if not damaging then return end
  317. local hum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  318. local HitPar = hit.Parent:FindFirstChild("Torso") or hit.Parent.Parent:FindFirstChild("Torso")
  319. local block = hit.Parent:FindFirstChild("Block") or hit.Parent.Parent:FindFirstChild("Block")
  320. if hum then
  321. for _,v in pairs(hithums) do
  322. if v == hum then
  323. return
  324. end
  325. end
  326. table.insert(hithums,hum)
  327. Co(function()
  328. wait(0.2)
  329. for i,v in pairs(hithums) do
  330. if v == hum then
  331. table.remove(hithums,i)
  332. end
  333. end
  334. end)
  335. print("hi ho")
  336. if block then
  337. if block:IsA("BoolValue") then
  338. if block.Value then
  339. block.Value = false
  340. return
  341. end
  342. else
  343. if block.Value > 0 then
  344. block.Value = block.Value - 1
  345. return
  346. end
  347. end
  348. end
  349. local calcdamage = currentDamage+math.random(-3,3)
  350. hum:TakeDamage(calcdamage)
  351. HitCounter(HitPar.Position+Vector3.new(0,4,0),calcdamage)
  352. end
  353. end)
  354.  
  355. local KatanaEdge1 = Part(KatanaModel)
  356. KatanaEdge1.Size = Vector3.new(0.2,3,0.2)
  357. local katedgemesh = Instance.new("SpecialMesh",KatanaEdge1)
  358. katedgemesh.MeshType = "Wedge"
  359. katedgemesh.Scale = Vector3.new(0.4,1,0.25)
  360. KatanaEdge1.BrickColor = BrickColor.White()
  361. KatanaEdge1.Reflectance = 0.3
  362. Weld(KatanaEdge1,KatanaBlade1,CFrame.new(0,0,-0.1))
  363. local KatanaEdge2 = Part(KatanaModel)
  364. KatanaEdge2.BrickColor = BrickColor.White()
  365. KatanaEdge2.Reflectance = 0.3
  366. KatanaEdge2.Size = Vector3.new(0.2,0.6,0.2)
  367. local katedgemesh = Instance.new("SpecialMesh",KatanaEdge2)
  368. katedgemesh.MeshType = "Wedge"
  369. katedgemesh.Scale = Vector3.new(0.4,1,0.75)
  370. Weld(KatanaEdge2,KatanaBlade1,CFrame.new(0,1.8,0))
  371. return KatanaWeld
  372. end
  373.  
  374. local equipped = false
  375. KatanaHop.Selected:connect(function()
  376. equipped = true
  377. Arms(true)
  378. Tween(RightS,RSC0*CFrame.new(0,0.1,-0.9),RSC1*CFrame.Angles(math.rad(-50),0,math.rad(-45)),0.2,true)
  379. Tween(LeftS,LSC0,LSC1*CFrame.Angles(math.rad(10),0,math.rad(-20)),0.2,true)
  380. wait(0.25)
  381. if equipped then
  382. KatanaModel:Destroy()
  383. KatWeld = CreateKatana(Character["Right Arm"],CFrame.new(0,-1,0.2),CFrame.Angles(math.rad(270),0,0))
  384. Tween(RightS,RSC0*CFrame.new(0,-0.25,0),RSC1*CFrame.Angles(math.rad(-20),math.rad(-45),math.rad(-70)),0.2,true)
  385. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(20),0,math.rad(20)),0.2,true)
  386. Tween(KatWeld,nil,CFrame.Angles(math.rad(90),0,0),0.2,true)
  387. Tween(RootJoint,CFrame.new(),CFrame.new(),0.2,true)
  388. Tween(Neck,nil,CFrame.new(0,-0.05,0),0.2,true)
  389. Co(function()
  390. for i = 285,90,-15 do
  391. if not equipped then
  392. break
  393. end
  394. KatWeld.C1 = CFrame.Angles(math.rad(i),0,0)
  395. rwait()
  396. end
  397. end)
  398. end
  399. end)
  400.  
  401. RootJoint.C0 = CFrame.new()
  402. RootJoint.C1 = CFrame.new()
  403.  
  404. local alternate = 0
  405. local attacking = false
  406. Mouse.Button1Down:connect(function()
  407. if equipped and not attacking then
  408. attacking = true
  409. currentDamage = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  410. if alternate == 0 then
  411. alternate = 1
  412. Tween(RightS,RSC0*CFrame.new(0,-0.5,-0.2)*CFrame.Angles(math.rad(-70),0,math.rad(20)),RSC1*CFrame.new(0,0.4,0),0.2,true)
  413. Tween(LeftS,LSC0*CFrame.new(0,-0.1,0),LSC1*CFrame.Angles(math.rad(20),0,math.rad(-30)),0.2,true)
  414. Tween(KatWeld,nil,CFrame.Angles(math.rad(150),math.rad(180),0),0.2,true)
  415. Tween(RootJoint,CFrame.Angles(0,math.rad(-70),0),CFrame.new(),0.2,true)
  416. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(0,math.rad(-60),0),0.2,true)
  417. wait(0.3)
  418. Sound(KatanaModel.Blade,45885030,1,1)
  419. damaging = true
  420. Tween(RightS,RSC0*CFrame.new(0,-0.5,-0.2)*CFrame.Angles(math.rad(-90),0,math.rad(0)),RSC1*CFrame.new(0,0.4,0),0.2,true)
  421. Tween(LeftS,LSC0*CFrame.new(0,-0.1,0),LSC1*CFrame.Angles(math.rad(20),0,math.rad(-30)),0.2,true)
  422. Tween(KatWeld,nil,CFrame.Angles(math.rad(230),math.rad(180),0),0.2,true)
  423. Tween(RootJoint,CFrame.Angles(0,math.rad(80),0),CFrame.Angles(0,math.rad(-45),0),0.2,true)
  424. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(0,math.rad(70),0),0.2,true)
  425. wait(0.3)
  426. damaging = false
  427. Tween(RightS,RSC0*CFrame.new(0,-0.25,0),RSC1*CFrame.Angles(math.rad(-20),math.rad(-45),math.rad(-70)),0.2,true)
  428. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(20),0,math.rad(20)),0.2,true)
  429. Tween(KatWeld,nil,CFrame.Angles(math.rad(90),0,0),0.2,true)
  430. Tween(RootJoint,CFrame.new(),CFrame.new(),0.2,true)
  431. Tween(Neck,nil,CFrame.new(0,-0.05,0),0.2,true)
  432. wait(0.2)
  433. else
  434. alternate = 0
  435. Tween(RightS,RSC0*CFrame.new(0,-0.5,-0.2)*CFrame.Angles(math.rad(-70),0,math.rad(20)),RSC1*CFrame.new(0,0.4,0),0.2,true)
  436. Tween(LeftS,LSC0*CFrame.new(0,-0.1,0),LSC1*CFrame.Angles(math.rad(20),0,math.rad(-30)),0.2,true)
  437. Tween(KatWeld,nil,CFrame.Angles(math.rad(-150),0,0),0.2,true)
  438. Tween(RootJoint,CFrame.Angles(0,math.rad(80),0),CFrame.Angles(0,math.rad(-65),0),0.2,true)
  439. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(0,math.rad(60),0),0.2,true)
  440. wait(0.3)
  441. Sound(KatanaModel.Blade,45885030,1,1)
  442. damaging = true
  443. Tween(RightS,RSC0*CFrame.new(0,-0.5,-0.2)*CFrame.Angles(math.rad(-90),0,math.rad(0)),RSC1*CFrame.new(0,0.4,0),0.2,true)
  444. Tween(LeftS,LSC0*CFrame.new(0,-0.1,0),LSC1*CFrame.Angles(math.rad(20),0,math.rad(-30)),0.2,true)
  445. Tween(KatWeld,nil,CFrame.Angles(math.rad(-150),0,0),0.2,true)
  446. Tween(RootJoint,CFrame.Angles(0,math.rad(-80),0),CFrame.Angles(0,0,0),0.2,true)
  447. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(0,math.rad(-70),0),0.2,true)
  448. wait(0.3)
  449. damaging = false
  450. Tween(RightS,RSC0*CFrame.new(0,-0.25,0),RSC1*CFrame.Angles(math.rad(-20),math.rad(-45),math.rad(-70)),0.2,true)
  451. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(20),0,math.rad(20)),0.2,true)
  452. Tween(KatWeld,nil,CFrame.Angles(math.rad(90),0,0),0.2,true)
  453. Tween(RootJoint,CFrame.new(),CFrame.new(),0.2,true)
  454. Tween(Neck,nil,CFrame.new(0,-0.05,0),0.2,true)
  455. wait(0.2)
  456. end
  457. attacking = false
  458. end
  459. end)
  460.  
  461.  
  462. local fdown = false
  463. Mouse.KeyDown:connect(function(key)
  464. if key == "q" then
  465. local lastpos = Character.Torso.CFrame
  466. Character.Archivable = true
  467. local charclone = Character:clone()
  468. Character.Archivable = false
  469. charclone.Torso.CFrame = lastpos
  470. charclone.Parent = workspace
  471. for _,v in pairs(charclone:children()) do
  472. if v:IsA("Part") then
  473. if v.Name == "Head" then v.Name="" v:Destroy() end
  474. if v.Name == "HumanoidRootPart" then v:Destroy() end
  475. v.Anchored = true
  476. v.CanCollide = false
  477. Co(function()
  478. local trans = v.Transparency
  479. for i = 0,1.1,0.1 do
  480. v.Transparency = i
  481. wait()
  482. end
  483. charclone:Destroy()
  484. end)
  485. elseif v:IsA("Model") then
  486. for _,v in pairs(v:children()) do
  487. if v:IsA("Part") then
  488. Co(function()
  489. local trans = v.Transparency
  490. for i = trans,1.1,0.1 do
  491. v.Transparency = i
  492. wait()
  493. end
  494. end)
  495. else
  496. v:Destroy()
  497. end
  498. end
  499. end
  500. end
  501. local x,y,z = CFrame.new(HumanoidRoot.Position,Mouse.Hit.p):toEulerAnglesXYZ()
  502. local dir = CFrame.Angles(x,y,z).lookVector
  503. Character.Torso.CFrame = Character.Torso.CFrame+Vector3.new(dir.x*10,0,dir.z*10)
  504. elseif key == "e" then
  505. if attacking then return end
  506. if not equipped then return end
  507. currentDamage = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  508. attacking = true
  509. Legs(true)
  510. Humanoid.WalkSpeed = 0
  511. Tween(RightH,RHC0*CFrame.new(0,0,0),RHC1,0.2,true)
  512. Tween(LeftH,LHC0*CFrame.new(-0.4,0.4,0),LHC1*CFrame.Angles(math.rad(-3),0,math.rad(-20)),0.2,true)
  513. Tween(RightS,RSC0*CFrame.new(0,-0.1,-0.2),RSC1*CFrame.Angles(math.rad(30),0,math.rad(-50)),0.2,true)
  514. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(30),0,math.rad(50)),0.2,true)
  515. Tween(KatWeld,nil,CFrame.Angles(math.rad(170),0,0),0.2,true)
  516. Tween(RootJoint,CFrame.new(0,5,0),CFrame.new(),0.2,true)
  517. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(math.rad(15),0,0),0.2,true)
  518. Sound(KatanaModel.Blade,158475221,1,1)
  519. wait(0.2)
  520. Co(function()
  521. for i = 0,359,15 do
  522. RootJoint.C1 = CFrame.Angles(math.rad(i),0,0)
  523. rwait()
  524. end
  525. RootJoint.C1 = CFrame.new()
  526. end)
  527. Tween(RightH,RHC0*CFrame.new(0.5,0.7,0),RHC1*CFrame.Angles(math.rad(-3),0,math.rad(20)),0.2,true)
  528. Tween(LeftH,LHC0*CFrame.new(-0.5,0.7,0),LHC1*CFrame.Angles(math.rad(-3),0,math.rad(-20)),0.2,true)
  529. Tween(RightS,RSC0*CFrame.new(0,-0.1,-0.2),RSC1*CFrame.Angles(math.rad(-45),0,math.rad(-50)),0.2,true)
  530. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(-45),0,math.rad(50)),0.2,true)
  531. Tween(KatWeld,nil,CFrame.Angles(math.rad(170),0,math.rad(-45)),0.2,true)
  532. Tween(Neck,nil,CFrame.new(0,-0.05,0)*CFrame.Angles(math.rad(15),0,0),0.2,true)
  533. wait(0.1)
  534. damaging = true
  535. wait(0.1)
  536. Tween(RootJoint,CFrame.new(),nil,0.2,true)
  537. wait(0.2)
  538. Tween(RightH,RHC0*CFrame.new(0,0,0),RHC1,0.1,true)
  539. Tween(LeftH,LHC0*CFrame.new(0,0,0),LHC1,0.1,true)
  540. Tween(RightS,RSC0*CFrame.new(0,-0.25,0),RSC1*CFrame.Angles(math.rad(-20),math.rad(-45),math.rad(-70)),0.2,true)
  541. Tween(LeftS,LSC0*CFrame.new(0,-0.1,-0.2),LSC1*CFrame.Angles(math.rad(20),0,math.rad(20)),0.2,true)
  542. Tween(KatWeld,nil,CFrame.Angles(math.rad(90),0,0),0.2,true)
  543. Tween(RootJoint,CFrame.new(),CFrame.new(),0.2,true)
  544. Tween(Neck,nil,CFrame.new(0,-0.05,0),0.2,true)
  545. Humanoid.WalkSpeed = 180
  546. wait(0.1)
  547. damaging = false
  548. wait(0.1)
  549. attacking = false
  550. Legs(false)
  551. end
  552. end)
  553.  
  554. Mouse.KeyUp:connect(function(key)
  555. end)
  556. KatanaHop.Deselected:connect(function()
  557. if KatanaHop.Parent == nil then return end
  558. equipped = false
  559. Tween(RightS,RSC0*CFrame.new(-0.2,0.1,-1.2),RSC1*CFrame.Angles(math.rad(-50),0,math.rad(-45)),0.2,true)
  560. Tween(LeftS,LSC0,LSC1*CFrame.Angles(math.rad(10),0,math.rad(-20)),0.2,true)
  561. wait(0.05)
  562. for i = 90,285,15 do
  563. if equipped then
  564. break
  565. end
  566. KatWeld.C1 = CFrame.Angles(math.rad(i),0,math.rad(-50))
  567. rwait()
  568. end
  569. if equipped then return end
  570. KatanaModel:Destroy()
  571. KatWeld = CreateKatana(Character.Torso,CFrame.new(-1,-0.5,-0.5),CFrame.Angles(math.rad(-125),0,0))
  572. Tween(LeftS,LSC0,LSC1,0.2,true)
  573. Tween(RightS,RSC0,RSC1,0.2,true)
  574. wait(0.25)
  575. if equipped then return end
  576. Arms(false)
  577. end)
  578.  
  579. KatWeld = CreateKatana(Character.Torso,CFrame.new(-1,-0.5,-0.5),CFrame.Angles(math.rad(-125),0,0))
  580.  
  581. local oldpos = KatanaModel.Blade.CFrame
  582. game:service("RunService").RenderStepped:connect(function()
  583. local newpos = KatanaModel.Blade.CFrame
  584. if KatanaModel and damaging then
  585. local tri1,tri2 = drawTriangle({oldpos*CFrame.new(0,2.1,0.1).p,newpos*CFrame.new(0,2.1,0.1).p,newpos*CFrame.new(0,-1.5,0.1).p})
  586. local tri3,tri4 = drawTriangle({oldpos*CFrame.new(0,2.1,0.1).p,oldpos*CFrame.new(0,-1.5,0.1).p,newpos*CFrame.new(0,-1.5,0.1).p})
  587. Co(function()
  588. for i = 0.8,1,0.02 do
  589. tri1.Transparency = i
  590. tri2.Transparency = i
  591. tri3.Transparency = i
  592. tri4.Transparency = i
  593. wait(0.02)
  594. end
  595. tri1:Destroy()
  596. tri2:Destroy()
  597. tri3:Destroy()
  598. tri4:Destroy()
  599. end)
  600. end
  601. oldpos = newpos
  602. end)
  603.  
  604. p = game.Players.LocalPlayer
  605. char = p.Character
  606. local char = p.Character
  607. torso = char.Torso
  608. neck = char.Torso.Neck
  609. hum = char.Humanoid
  610. Player = game:GetService("Players").LocalPlayer
  611. Character = Player.Character
  612. tors = Character.Torso
  613. root = Character.HumanoidRootPart
  614. lleg = Character["Left Leg"]
  615. hed = Character.Head
  616. rleg = Character["Right Leg"]
  617. rarm = Character["Right Arm"]
  618. larm = Character["Left Arm"]
  619.  
  620. ypcall(function()
  621. for i,v in pairs(Character:children()) do
  622. if v:IsA("Hat") then
  623. v:Destroy()
  624. end
  625. end
  626. for i,v in pairs(Character:children()) do
  627. if v:IsA("Accessory") then
  628. v:Destroy()
  629. end
  630. end
  631. for i,v in pairs(Character:children()) do
  632. if v:IsA("Hair") then
  633. v:Destroy()
  634. end
  635. end
  636. end)
  637.  
  638. CV="Hot pink"
  639.  
  640. local txt = Instance.new("BillboardGui", char)
  641. txt.Adornee = char .Head
  642. txt.Name = "_status"
  643. txt.Size = UDim2.new(2, 0, 1.2, 0)
  644. txt.StudsOffset = Vector3.new(-9, 8, 0)
  645. local text = Instance.new("TextLabel", txt)
  646. text.Size = UDim2.new(10, 0, 7, 0)
  647. text.FontSize = "Size24"
  648. text.TextScaled = true
  649. text.TextTransparency = 0
  650. text.BackgroundTransparency = 1
  651. text.TextTransparency = 0
  652. text.TextStrokeTransparency = 0
  653. text.Font = "Highway"
  654. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  655.  
  656. v=Instance.new("Part")
  657. v.Name = "ColorBrick"
  658. v.Parent=p.Character
  659. v.FormFactor="Symmetric"
  660. v.Anchored=true
  661. v.CanCollide=false
  662. v.BottomSurface="Smooth"
  663. v.TopSurface="Smooth"
  664. v.Size=Vector3.new(10,5,3)
  665. v.Transparency=1
  666. v.CFrame=char.Torso.CFrame
  667. v.BrickColor=BrickColor.new(CV)
  668. v.Transparency=1
  669. text.TextColor3 = BrickColor.new("Really Black").Color
  670. v.Shape="Block"
  671. text.Text = "The Immortal god"
  672.  
  673. hed.face.Texture = "http://www.roblox.com/asset/?id=0"
  674. hed.Transparency = 1
  675. rleg.Transparency = 1
  676. rarm.Transparency = 1
  677. larm.Transparency = 1
  678. lleg.Transparency = 1
  679. tors.Transparency = 1
  680.  
  681. Player = game:GetService("Players").LocalPlayer
  682. Character = Player.Character
  683. rarm = Character["Right Arm"]
  684. larm = Character["Left Arm"]
  685. vt = Vector3.new
  686. bc = BrickColor.new
  687. wit = bc("Smokey grey").Color
  688.  
  689. local prth = Instance.new("Part",Character)
  690. prth.Size = vt(1.25,1.25,1.25)
  691. prth.CanCollide = false
  692. prth.Material = "Neon"
  693. prth.Transparency = 0.5
  694. prth.BrickColor = bc("Smokey grey")
  695. local wldh = Instance.new("Weld",Character)
  696. wldh.Part0 = hed
  697. wldh.Part1 = prth
  698.  
  699. local prtrm = Instance.new("Part",Character)
  700. prtrm.Size = vt(2.1,2.1,1.1)
  701. prtrm.CanCollide = false
  702. prtrm.Transparency = 0.5
  703. prtrm.Material = "Neon"
  704. prtrm.BrickColor = bc("Smokey grey")
  705. local wldm = Instance.new("Weld",Character)
  706. wldm.Part0 = root
  707. wldm.Part1 = prtrm
  708.  
  709. local prtr = Instance.new("Part",Character)
  710. prtr.Size = vt(1.1,2.1,1.1)
  711. prtr.CanCollide = false
  712. prtr.Transparency = 0.5
  713. prtr.Material = "Neon"
  714. prtr.BrickColor = bc("Smokey grey")
  715. local prtrl = Instance.new("Part",Character)
  716. prtrl.Size = vt(1.1,2.1,1.1)
  717. prtrl.CanCollide = false
  718. prtrl.Transparency = 0.5
  719. prtrl.Material = "Neon"
  720. prtrl.BrickColor = bc("Smokey grey")
  721. local eff = Instance.new("ParticleEmitter",prtr)
  722. eff.LightEmission = 1
  723. eff.Texture = "rbxassetid://284205403"
  724. eff.Color = ColorSequence.new(wit)
  725. eff.Size = NumberSequence.new(0.5,1)
  726. eff.Acceleration = vt(0,25,0)
  727. eff.Speed = NumberRange.new(-5)
  728. eff.LockedToPart = false
  729. eff.Transparency = NumberSequence.new(0.95)
  730. eff.Lifetime = NumberRange.new(0.5)
  731. eff.Rate = 100000
  732. eff.VelocitySpread = 25
  733. local wld = Instance.new("Weld",Character)
  734. wld.Part0 = rarm
  735. wld.Part1 = prtr
  736. local wldl = Instance.new("Weld",Character)
  737. wldl.Part0 = rleg
  738. wldl.Part1 = prtrl
  739.  
  740. local prtr2 = Instance.new("Part",Character)
  741. prtr2.Size = vt(1.1,2.1,1.1)
  742. prtr2.CanCollide = false
  743. prtr2.Transparency = 0.5
  744. prtr2.Material = "Neon"
  745. prtr2.BrickColor = bc("Deep orange")
  746. local prtrl2 = Instance.new("Part",Character)
  747. prtrl2.Size = vt(1.1,2.1,1.1)
  748. prtrl2.CanCollide = false
  749. prtrl2.Transparency = 0.5
  750. prtrl2.Material = "Neon"
  751. prtrl2.BrickColor = bc("Smokey grey")
  752. local eff2 = Instance.new("ParticleEmitter",prtr2)
  753. eff2.LightEmission = 1
  754. eff2.Texture = "rbxassetid://284205403"
  755. eff2.Color = ColorSequence.new(wit)
  756. eff2.Size = NumberSequence.new(0.5,1)
  757. eff2.Acceleration = vt(0,25,0)
  758. eff2.Speed = NumberRange.new(-5)
  759. eff2.LockedToPart = false
  760. eff2.Transparency = NumberSequence.new(0.95)
  761. eff2.Lifetime = NumberRange.new(0.5)
  762. eff2.Rate = 100000
  763. eff2.VelocitySpread = 25
  764. local wld2 = Instance.new("Weld",Character)
  765. wld2.Part0 = larm
  766. wld2.Part1 = prtr2
  767. local wldl2 = Instance.new("Weld",Character)
  768. wldl2.Part0 = lleg
  769. wldl2.Part1 = prtrl2
  770.  
  771. local mouse = game.Players.LocalPlayer:GetMouse()
  772. tors = game.Players.LocalPlayer.Character.Torso
  773. vt = Vector3.new
  774. bc = BrickColor.new
  775.  
  776. local Effect = Instance.new("Part",game.Lighting)
  777. Effect.BrickColor = bc("Smokey grey")
  778. Effect.Transparency = 1
  779. Effect.Anchored = true
  780. Effect.CanCollide = false
  781. Effect.Material = "Neon"
  782. Effect.Shape = "Ball"
  783. Effect.Size = vt(5,5,5)
  784. local fire1 = Instance.new("Fire",Effect)
  785. fire1.Name = "Fire"
  786. fire1.Heat = 0
  787. fire1.Size = 30
  788. fire1.SecondaryColor = bc("Really black").Color
  789. fire1.Color = bc("Deep orange").Color
  790. local fire2 = Instance.new("Fire",Effect)
  791. fire2.Name = "Fire2"
  792. fire2.Heat = 0
  793. fire2.Size = 25
  794. fire2.SecondaryColor = bc("Really black").Color
  795. fire2.Color = bc("Neon orange").Color
  796.  
  797. function Explode(rad,par)
  798. local expart = Instance.new("Part",script.Parent)
  799. local expart2 = Instance.new("Part",script.Parent)
  800. local snd = Instance.new("Sound",expart)
  801. snd.SoundId = "rbxassetid://258057783"
  802. snd.Volume = 2.5
  803. local partMesh = Instance.new("SpecialMesh",expart)
  804. partMesh.MeshType = "Sphere"
  805. local partMesh2 = Instance.new("SpecialMesh",expart2)
  806. partMesh2.MeshType = "Sphere"
  807. local expld = Instance.new("Explosion", script.Parent)
  808. expld.BlastRadius = rad
  809. expld.Position = par.Position
  810. partMesh.Scale = vt(rad,rad,rad)
  811. expart.Size = vt(1,1,1)*1.5
  812. expart.Transparency = 0.5
  813. expart.Anchored = true
  814. expart.Material = "Neon"
  815. expart.BrickColor = bc("Smokey grey")
  816. expart.CFrame = par.CFrame
  817. partMesh2.Scale = vt(rad,rad,rad)
  818. expart2.Size = vt(1.15,1.15,1.15)*1.5
  819. expart2.Transparency = 0.5
  820. expart2.Anchored = true
  821. expart2.Material = "Neon"
  822. expart2.BrickColor = bc("Bright orange")
  823. expart2.CFrame = par.CFrame
  824. snd:Play()
  825. for i = 0, 100 do
  826. expart.Transparency = expart.Transparency + 0.005
  827. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  828. expart.CFrame = expart.CFrame
  829. expart2.Transparency = expart.Transparency + 0.005
  830. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  831. expart2.CFrame = expart.CFrame
  832. wait(0)
  833. end
  834. snd.Parent = nil
  835. expart.Parent = nil
  836. expart2.Parent = nil
  837. expld.Parent = nil
  838. end
  839.  
  840. function Explode2(rad,par)
  841. local expart = Instance.new("Part",script.Parent)
  842. local expart2 = Instance.new("Part",script.Parent)
  843. local snd = Instance.new("Sound",expart)
  844. snd.SoundId = "rbxassetid://165969964"
  845. snd.Volume = 3
  846. local partMesh = Instance.new("SpecialMesh",expart)
  847. partMesh.MeshType = "Sphere"
  848. local partMesh2 = Instance.new("SpecialMesh",expart2)
  849. partMesh2.MeshType = "Sphere"
  850. local expld = Instance.new("Explosion", script.Parent)
  851. expld.BlastRadius = rad
  852. expld.Position = par.Position
  853. partMesh.Scale = vt(rad,rad,rad)
  854. expart.Size = vt(1,1,1)*1.5
  855. expart.Transparency = 0.5
  856. expart.Anchored = true
  857. expart.Material = "Neon"
  858. expart.BrickColor = bc("Smokey grey")
  859. expart.CFrame = par.CFrame
  860. partMesh2.Scale = vt(rad,rad,rad)
  861. expart2.Size = vt(1.15,1.15,1.15)*1.5
  862. expart2.Transparency = 0.5
  863. expart2.Anchored = true
  864. expart2.Material = "Neon"
  865. expart2.BrickColor = bc("Bright orange")
  866. expart2.CFrame = par.CFrame
  867. snd:Play()
  868. for i = 0, 100 do
  869. expart.Transparency = expart.Transparency + 0.005
  870. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  871. expart.CFrame = expart.CFrame
  872. expart2.Transparency = expart.Transparency + 0.005
  873. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  874. expart2.CFrame = expart.CFrame
  875. wait(0)
  876. end
  877. snd.Parent = nil
  878. expart.Parent = nil
  879. expart2.Parent = nil
  880. expld.Parent = nil
  881. end
  882.  
  883. mouse.KeyDown:connect(function(k)
  884.  
  885. k = k:lower()
  886. if k == "q" then
  887. local spart = Effect:Clone()
  888. spart.Parent = game.Players.LocalPlayer.Character
  889. spart.Transparency = 0
  890. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5
  891. wait()
  892. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15
  893. wait()
  894. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25
  895. wait()
  896. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35
  897. wait()
  898. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45
  899. wait()
  900. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55
  901. wait()
  902. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65
  903. wait()
  904. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75
  905. wait()
  906. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85
  907. wait()
  908. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95
  909. wait()
  910. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105
  911. spart.Transparency = 1
  912. spart.Fire2:Destroy()
  913. spart.Fire:Destroy()
  914. Explode(25,spart)
  915. spart:Destroy()
  916. end
  917. if k == "e" then
  918. local spart = Effect:Clone()
  919. spart.Parent = game.Players.LocalPlayer.Character
  920. spart.Transparency = 0
  921. spart.Anchored = false
  922. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0
  923. spart.Position = spart.Position + vt(0,100,0)
  924. spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150
  925. wait(1)
  926. spart.Transparency = 1
  927. spart.Fire2:Destroy()
  928. spart.Fire:Destroy()
  929. Explode2(75,spart)
  930. spart:Destroy()
  931. end
  932. if k == "r" then
  933. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  934. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275
  935. wait(0.75)
  936. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165
  937. Explode(30,game.Players.LocalPlayer.Character.Torso)
  938. wait(0.5)
  939. ff:Destroy()
  940. end
  941. if k == "f" then
  942. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  943. for i = 0, 10 do
  944. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
  945. wait(0)
  946. end
  947. for i = 0, 5 do
  948. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0)
  949. wait(0)
  950. end
  951. game.Players.LocalPlayer.Character.Torso.Anchored = true
  952. wait(1.5)
  953. game.Players.LocalPlayer.Character.Torso.Anchored = false
  954. for i = 0, 10 do
  955. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0)
  956. wait(0)
  957. end
  958. wait(0.25)
  959. Explode2(62.5,game.Players.LocalPlayer.Character.Torso)
  960. wait(0.5)
  961. ff:Destroy()
  962. end
  963. end)
  964. plr = game.Players.LocalPlayer
  965. mouse = plr:GetMouse()
  966. part = nil
  967. bp = nil
  968. particles = nil
  969. function clerp(a,b,c,d)
  970. for i = 0,d,.01 do
  971. a.CFrame = CFrame.new(b:lerp(c,i))
  972. wait()
  973. end
  974. end
  975. function slerp(a2,b2,c2,d2)
  976. for i2 = 0,d2,.01 do
  977. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  978. wait()
  979. end
  980. end
  981. mouse.KeyDown:connect(function(key)
  982. if key == "e" and plr.Character.Parent == workspace then
  983. plr.Character.Parent = workspace.Camera
  984. plr.Character.Archivable = true
  985. Instance.new("ForceField",plr.Character).Visible = false
  986. for y,t in pairs(plr.Character:GetChildren()) do
  987. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  988. t.Transparency = 0.5
  989. if t.Name == "Head" and t:FindFirstChild("face") then
  990. t.face.Transparency = 1
  991. end
  992. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  993. t.Handle.Transparency = 1
  994. end
  995. end
  996. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  997. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  998. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  999. if plr.Character.Torso.Anchored == true then
  1000. for y,t in pairs(plr.Character:GetChildren()) do
  1001. if t:IsA("Part") then
  1002. t.Anchored = false
  1003. end
  1004. end
  1005. else
  1006. for y,t in pairs(plr.Character:GetChildren()) do
  1007. if t:IsA("Part") then
  1008. t.Anchored = true
  1009. end
  1010. end
  1011. end
  1012. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  1013. local clone = part:Clone()
  1014. clone.Parent = workspace
  1015. clone.Anchored = false
  1016. clone:ClearAllChildren()
  1017. clone.CanCollide = true
  1018. bp.Parent = clone
  1019. particles.Parent = clone
  1020. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1021. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1022. end
  1023. part:Destroy()
  1024. part = clone
  1025. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  1026. plr.Character.Parent = workspace
  1027. plr.Character.Archivable = false
  1028. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  1029. for y,t in pairs(plr.Character:GetChildren()) do
  1030. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  1031. t.Transparency = 0
  1032. if t.Name == "Head" and t:FindFirstChild("face") then
  1033. t.face.Transparency = 0
  1034. end
  1035. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  1036. t.Handle.Transparency = 0
  1037. end
  1038. end
  1039. end
  1040. end)
  1041. mouse.Button1Down:connect(function()
  1042. if plr.Character.Parent == workspace.Camera then
  1043. if mouse ~= nil then
  1044. if mouse.Target ~= nil then
  1045. part = mouse.Target
  1046. bp = Instance.new("BodyPosition",part)
  1047. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1048. bp.Position = part.Position
  1049. particles = Instance.new("ParticleEmitter",part)
  1050. particles.Color = ColorSequence.new(Color3.new(255, 255, 255))
  1051. particles.Size = NumberSequence.new(1)
  1052. particles.Texture = "http://www.roblox.com/asset/?id=163510023"
  1053. particles.VelocitySpread = 360
  1054. particles.Speed = NumberRange.new(20)
  1055. particles.RotSpeed = NumberRange.new(-250, 250)
  1056. particles.Rotation = NumberRange.new(-300, 300)
  1057. particles.Rate = 1000
  1058. particles.Lifetime = NumberRange.new(0.5, 1.25)
  1059. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  1060. dwn = true
  1061. end
  1062. end
  1063. while dwn == true do
  1064. wait()
  1065. bp.Position = mouse.hit.p
  1066. if part then
  1067. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1068. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1069. end
  1070. end
  1071. end
  1072. end
  1073. end)
  1074. mouse.Button1Up:connect(function()
  1075. dwn = false
  1076. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  1077. if bp then bp:Destroy() end
  1078. if particles then particles:Destroy() end
  1079. end)
  1080. base = Instance.new("ScreenGui",plr.PlayerGui)
  1081. bbg = Instance.new("BillboardGui",plr.Character.Head)
  1082. bbg.Size = UDim2.new(0,200,0,50)
  1083. bbg.StudsOffset = Vector3.new(0,3,0)
  1084. bbgTl = Instance.new("TextLabel",bbg)
  1085. bbgTl.BackgroundTransparency = 1
  1086. bbgTl.Size = UDim2.new(10,0,1,0)
  1087. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  1088. bbgTl.Font = "Code"
  1089. bbgTl.Text = " "
  1090. bbgTl.TextSize = 70
  1091. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  1092. bbgTl.TextColor3 = Color3.new(201,201,201)
  1093. bbgTl.TextStrokeTransparency = 0
  1094. bbgTl.TextWrapped = true
  1095. plr.Chatted:connect(function(msg)
  1096. bbgTl.Text = msg
  1097. wait(5)
  1098. if bbgTl.Text == msg then
  1099. bbgTl.Text = " "
  1100. end
  1101. end)
  1102. touchCounter = 0
  1103. while wait() do
  1104. if plr.Character.Parent == workspace.Camera then
  1105. local c = plr.Character:Clone()
  1106. c:MakeJoints()
  1107. for y,t in pairs(c:GetChildren()) do
  1108. if t:IsA("Part") then
  1109. t.CanCollide = false
  1110. t.Anchored = true
  1111. t.Transparency = 0.8
  1112. t.TopSurface = "Smooth"
  1113. t.BottomSurface = "Smooth"
  1114. t.RightSurface = "Smooth"
  1115. t.LeftSurface = "Smooth"
  1116. t.FrontSurface = "Smooth"
  1117. t.BackSurface = "Smooth"
  1118. t.BrickColor = BrickColor.new("grey")
  1119. if t.Name == "Head" and t:FindFirstChild("face") then
  1120. t.face:Remove()
  1121. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  1122. t.roblox:Remove()
  1123. elseif t.Name == "HumanoidRootPart" then
  1124. t:Remove()
  1125. end
  1126. else
  1127. t:Remove()
  1128. end
  1129. end
  1130. c.Parent = workspace
  1131. game.Debris:AddItem(c,.05)
  1132. end
  1133. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement