asdasdaaa11

demoknight tf2

Jun 1st, 2021 (edited)
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. local player = game.Workspace.x_w8
  2. player.Animate.Disabled = true
  3. player.Animate.walk.WalkAnim.AnimationId = "rbxassetid://0"
  4. player.Animate.jump.JumpAnim.AnimationId = "rbxassetid://0"
  5. player.Animate.run.RunAnim.AnimationId = "rbxassetid://0"
  6. player.Animate.sit.SitAnim.AnimationId = "rbxassetid://0"
  7. player.Animate.toolnone.ToolNoneAnim.AnimationId = "rbxassetid://0"
  8. player.Animate.climb.ClimbAnim.AnimationId = "rbxassetid://0"
  9. player.Animate.fall.FallAnim.AnimationId = "rbxassetid://0"
  10. player.Animate.idle.Animation1.AnimationId = "rbxassetid://0"
  11. player.Animate.idle.Animation2.AnimationId = "rbxassetid://0"
  12. player.Animate.Disabled = false;
  13.  
  14. local charge = Instance.new("Sound",player:WaitForChild("HumanoidRootPart"))
  15. charge.SoundId = "rbxassetid://1378131503"
  16. charge.Volume = 1
  17.  
  18. local backpack = game:GetService("Players"):FindFirstChild(player.Name).Backpack
  19.  
  20. enabled = false
  21. death = false
  22.  
  23.  
  24. wait(3)
  25.  
  26.  
  27. local trail_1 = Instance.new("Trail",player.Head)
  28.  
  29. local t1attach_1 = Instance.new("Attachment",player.Head)
  30. t1attach_1.Position = Vector3.new(t1attach_1.Position.X,t1attach_1.Position.Y + t1attach_1.Parent.Size.Y/2.1,t1attach_1.Position.Z)
  31. local t1attach_2 = Instance.new("Attachment",player.Head)
  32. t1attach_2.Position = Vector3.new(t1attach_2.Position.X,t1attach_2.Position.Y - t1attach_2.Parent.Size.Y/2.1,t1attach_2.Position.Z)
  33.  
  34.  
  35. trail_1.Attachment0 = t1attach_1
  36. trail_1.Attachment1 = t1attach_2
  37. trail_1.Lifetime = 1;
  38. trail_1.Color = ColorSequence.new{
  39. ColorSequenceKeypoint.new(0, trail_1.Parent.Color),
  40. ColorSequenceKeypoint.new(1, trail_1.Parent.Color),
  41. }
  42. trail_1.Enabled = false
  43. print(player.Head.Color)
  44. trail_1.Transparency = NumberSequence.new{
  45. NumberSequenceKeypoint.new(0, 0.5),
  46. NumberSequenceKeypoint.new(1, 1),
  47. }
  48.  
  49. local trail_2 = Instance.new("Trail",player.Torso)
  50.  
  51. local t2attach_1 = Instance.new("Attachment",player.Torso)
  52. t2attach_1.Position = Vector3.new(t2attach_1.Position.X,t2attach_1.Position.Y + t2attach_1.Parent.Size.Y/2.1,t2attach_1.Position.Z)
  53.  
  54. local t2attach_2 = Instance.new("Attachment",player.Torso)
  55. t2attach_2.Position = Vector3.new(t2attach_2.Position.X,t2attach_2.Position.Y - t2attach_2.Parent.Size.Y/2.1,t2attach_2.Position.Z)
  56.  
  57.  
  58. trail_2.Attachment0 = t2attach_1
  59. trail_2.Attachment1 = t2attach_2
  60. trail_2.Lifetime = 1;
  61. trail_2.Color = ColorSequence.new{
  62. ColorSequenceKeypoint.new(0, trail_2.Parent.Color),
  63. ColorSequenceKeypoint.new(1, trail_2.Parent.Color),
  64. }
  65. trail_2.Transparency = NumberSequence.new{
  66. NumberSequenceKeypoint.new(0, 0.5),
  67. NumberSequenceKeypoint.new(1, 1),
  68. }
  69. trail_2.Enabled = false
  70.  
  71. local trail_3 = Instance.new("Trail",player["Left Leg"])
  72.  
  73. local t3attach_1 = Instance.new("Attachment",player["Left Leg"])
  74. t3attach_1.Position = Vector3.new(t3attach_1.Position.X,t3attach_1.Position.Y + t3attach_1.Parent.Size.Y/2.1,t3attach_1.Position.Z)
  75.  
  76. local t3attach_2 = Instance.new("Attachment",player["Left Leg"])
  77. t3attach_2.Position = Vector3.new(t3attach_2.Position.X,t3attach_2.Position.Y - t3attach_2.Parent.Size.Y/2.1,t3attach_2.Position.Z)
  78.  
  79. trail_3.Attachment0 = t3attach_1
  80. trail_3.Attachment1 = t3attach_2
  81. trail_3.Lifetime = 1;
  82. trail_3.Color = ColorSequence.new{
  83. ColorSequenceKeypoint.new(0, trail_3.Parent.Color),
  84. ColorSequenceKeypoint.new(1, trail_3.Parent.Color),
  85. }
  86. trail_3.Transparency = NumberSequence.new{
  87. NumberSequenceKeypoint.new(0, 0.5),
  88. NumberSequenceKeypoint.new(1, 1),
  89. }
  90. trail_3.Enabled = false
  91.  
  92. local trail_4 = Instance.new("Trail",player["Right Leg"])
  93.  
  94. local t4attach_1 = Instance.new("Attachment",player["Right Leg"])
  95. t4attach_1.Position = Vector3.new(t4attach_1.Position.X,t4attach_1.Position.Y + t4attach_1.Parent.Size.Y/2.1,t4attach_1.Position.Z)
  96.  
  97. local t4attach_2 = Instance.new("Attachment",player["Right Leg"])
  98. t4attach_2.Position = Vector3.new(t4attach_2.Position.X,t4attach_2.Position.Y - t4attach_2.Parent.Size.Y/2.1,t4attach_2.Position.Z)
  99.  
  100.  
  101. trail_4.Attachment0 = t4attach_1
  102. trail_4.Attachment1 = t4attach_2
  103. trail_4.Lifetime = 1;
  104. trail_4.Color = ColorSequence.new{
  105. ColorSequenceKeypoint.new(0, trail_4.Parent.Color),
  106. ColorSequenceKeypoint.new(1, trail_4.Parent.Color),
  107. }
  108. trail_4.Transparency = NumberSequence.new{
  109. NumberSequenceKeypoint.new(0, 0.5),
  110. NumberSequenceKeypoint.new(1, 1),
  111. }
  112. trail_4.Enabled = false
  113.  
  114. local trail_5 = Instance.new("Trail",player["Left Arm"])
  115.  
  116. local t5attach_1 = Instance.new("Attachment",player["Left Arm"])
  117. t5attach_1.Position = Vector3.new(t5attach_1.Position.X,t5attach_1.Position.Y + t5attach_1.Parent.Size.Y/2.1,t5attach_1.Position.Z)
  118.  
  119. local t5attach_2 = Instance.new("Attachment",player["Left Arm"])
  120. t5attach_2.Position = Vector3.new(t5attach_2.Position.X,t5attach_2.Position.Y - t5attach_2.Parent.Size.Y/2.1,t5attach_2.Position.Z)
  121.  
  122.  
  123. trail_5.Attachment0 = t5attach_1
  124. trail_5.Attachment1 = t5attach_2
  125. trail_5.Lifetime = 1;
  126. trail_5.Color = ColorSequence.new{
  127. ColorSequenceKeypoint.new(0, trail_5.Parent.Color),
  128. ColorSequenceKeypoint.new(1, trail_5.Parent.Color),
  129. }
  130. trail_5.Transparency = NumberSequence.new{
  131. NumberSequenceKeypoint.new(0, 0.5),
  132. NumberSequenceKeypoint.new(1, 1),
  133. }
  134. trail_5.Enabled = false
  135.  
  136. local trail_6 = Instance.new("Trail",player["Right Arm"])
  137.  
  138. local t6attach_1 = Instance.new("Attachment",player["Right Arm"])
  139. t6attach_1.Position = Vector3.new(t6attach_1.Position.X,t6attach_1.Position.Y + t6attach_1.Parent.Size.Y/2.1,t6attach_1.Position.Z)
  140.  
  141. local t6attach_2 = Instance.new("Attachment",player["Right Arm"])
  142. t6attach_2.Position = Vector3.new(t6attach_2.Position.X,t6attach_2.Position.Y - t6attach_2.Parent.Size.Y/2.1,t6attach_2.Position.Z)
  143.  
  144.  
  145. trail_6.Attachment0 = t6attach_1
  146. trail_6.Attachment1 = t6attach_2
  147. trail_6.Lifetime = 1;
  148. trail_6.Color = ColorSequence.new{
  149. ColorSequenceKeypoint.new(0, trail_6.Parent.Color),
  150. ColorSequenceKeypoint.new(1, trail_6.Parent.Color),
  151. }
  152. trail_6.Transparency = NumberSequence.new{
  153. NumberSequenceKeypoint.new(0, 0.5),
  154. NumberSequenceKeypoint.new(1, 1),
  155. }
  156. trail_6.Enabled = false
  157.  
  158.  
  159.  
  160. player.Torso["Right Shoulder"].C0 = CFrame.new(1.5,1,0) * CFrame.Angles(1.57,0,1.57)
  161. player.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0,0) * CFrame.Angles(-1.57,0,-1.57)
  162.  
  163. enabled = true
  164.  
  165. local Tool = Instance.new("Tool",backpack)
  166.  
  167. Tool.GripForward = Vector3.new(1, 0, 0)
  168. Tool.GripPos = Vector3.new(0, 0, 0)
  169. Tool.GripRight = Vector3.new(0, -1, 0)
  170. Tool.GripUp = Vector3.new(0, 0, 1)
  171. Tool.Name = "demoknight tf2"
  172. Tool.RequiresHandle = false
  173.  
  174. function onActivated()
  175. --player.Humanoid.Animator:Destroy()
  176. if enabled == false then
  177. return
  178. end
  179.  
  180. enabled = false
  181. death = true
  182.  
  183. local speed = Instance.new("VectorForce",player.HumanoidRootPart)
  184. speed.ApplyAtCenterOfMass = true
  185. speed.Attachment0 = player.HumanoidRootPart.RootAttachment
  186. speed.Force = Vector3.new(0,0,-800)
  187. charge.Playing = true;
  188.  
  189. player.Humanoid.WalkSpeed = 0
  190.  
  191. player.Torso.Massless = true
  192. player.Head.Massless = true
  193. player["Left Arm"].Massless = true
  194. player["Right Arm"].Massless = true
  195. player["Left Leg"].Massless = true
  196. player["Right Leg"].Massless = true
  197.  
  198. trail_1.Enabled = true
  199. trail_2.Enabled = true
  200. trail_3.Enabled = true
  201. trail_4.Enabled = true
  202. trail_5.Enabled = true
  203. trail_6.Enabled = true
  204.  
  205. wait(2)
  206.  
  207. speed:Destroy()
  208. death = false
  209. player.Humanoid.WalkSpeed = 16
  210. player.Torso.Massless = false
  211. player.Head.Massless = false
  212. player["Left Arm"].Massless = false
  213. player["Right Arm"].Massless = false
  214. player["Left Leg"].Massless = false
  215. player["Right Leg"].Massless = false
  216.  
  217. trail_1.Enabled = false
  218. trail_2.Enabled = false
  219. trail_3.Enabled = false
  220. trail_4.Enabled = false
  221. trail_5.Enabled = false
  222. trail_6.Enabled = false
  223.  
  224.  
  225. wait(3)
  226. charge.Playing = false;
  227. charge.TimePosition = 0;
  228. enabled = true
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235. end
  236.  
  237. function dmg(hit)
  238. if hit.Parent ~= nil then
  239. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  240. if hum ~= nil and death == true then
  241. if hum.Parent.Name == player.Name then
  242. return
  243. else
  244. if hum.Health>0 then
  245. local ff = Instance.new("Sound",hit.Parent:FindFirstChild("Head"))
  246. ff.SoundId = "rbxassetid://2868331684"
  247. ff.TimePosition = 0
  248. ff.Volume = 1
  249. ff.EmitterSize = 15
  250. ff.Playing = true
  251. hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  252. wait(2)
  253. ff:Destroy()
  254. end
  255. end
  256. end
  257. end
  258.  
  259.  
  260.  
  261.  
  262.  
  263. end
  264.  
  265. player:WaitForChild("Humanoid").Died:Connect(function()
  266. local death = Instance.new("Sound",player.HumanoidRootPart)
  267. death.SoundId = "rbxassetid://6195500771"
  268. death.Playing = true
  269. death.Volume = 1
  270. end)
  271.  
  272.  
  273. Tool.Activated:connect(onActivated)
  274. player.Torso.Touched:connect(dmg)
  275. player.Head.Touched:connect(dmg)
  276. player["Left Arm"].Touched:connect(dmg)
  277. player["Right Arm"].Touched:connect(dmg)
  278. player["Left Leg"].Touched:connect(dmg)
  279. player["Right Leg"].Touched:connect(dmg)
Add Comment
Please, Sign In to add comment