Advertisement
SlappyDappyCrappy

Tem the undying

Jul 5th, 2016
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local lp = game.Players.LocalPlayer
  2. local chr = lp.Character
  3. local mouse = lp:GetMouse()
  4. local euler = CFrame.fromEulerAnglesXYZ
  5. local rad = math.rad
  6. local trso = chr.Torso
  7.  
  8. local hd = Instance.new("Weld",chr.Head)
  9. hd.Part0=chr.Head
  10. hd.Part1=chr.Torso
  11. hd.C0=CFrame.new(0,-1.5,0)
  12.  
  13.  
  14. hum = chr.Humanoid
  15.  
  16. function Chat(msg) -- Credit to jillmiles1, kthxbye
  17. if chr.Head.Parent then
  18. pcall(function()
  19. if chr.Head:FindFirstChild("Fazbear Chat Gui") then
  20. chr.Head['Fazbear Chat Gui']:destroy()
  21. end
  22. local Gui = Instance.new('BillboardGui',chr.Head)
  23. Gui.Name = "Fazbear Chat Gui"
  24. Gui.ExtentsOffset = Vector3.new(0,3,0)
  25. Gui.Size = UDim2.new(0,200,0,300)
  26. local Frame = Instance.new('Frame',Gui)
  27. Frame.BackgroundTransparency = 1
  28. Frame.Size = UDim2.new(1,0,1,0)
  29. local Txt = Instance.new('TextLabel',Frame)
  30. Txt.BackgroundTransparency = 1
  31. Txt.Size = UDim2.new(1,0,1,0)
  32. Txt.Font = 'SourceSansItalic'
  33. Txt.Name = "ChatGui"
  34. Txt.FontSize = 'Size24'
  35. Txt.Text = ''
  36. Txt.TextColor3 = BrickColor.new("New Yeller").Color
  37. Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  38. Txt.TextStrokeTransparency = .5
  39. Txt.TextWrapped = true
  40. Txt.TextScaled = false
  41. delay(wait(),function()
  42. for v = 1, #msg do
  43. Txt.Text=string.sub(msg,1,v)
  44. wait(.07)
  45. end;
  46. wait(1)
  47. for v = 1, #Txt.Text do
  48. Txt.Text=string.sub(msg,-1,v)
  49. wait(.05)
  50. end;
  51. Gui:remove()
  52. end)
  53. end)
  54. else
  55. end
  56. end
  57.  
  58. function Name(msg)
  59. if chr.Head.Parent then
  60. pcall(function()
  61. local Gui = Instance.new('BillboardGui',chr.Head)
  62. Gui.ExtentsOffset = Vector3.new(0,1.5,0)
  63. Gui.Size = UDim2.new(0,200,0,300)
  64. local Frame = Instance.new('Frame',Gui)
  65. Frame.BackgroundTransparency = 1
  66. Frame.Size = UDim2.new(1,0,1,0)
  67. local Txt = Instance.new('TextLabel',Frame)
  68. Txt.BackgroundTransparency = 1
  69. Txt.Size = UDim2.new(1,0,1,0)
  70. Txt.Font = 'SourceSansItalic'
  71. Txt.FontSize = 'Size24'
  72. Txt.Text = msg
  73. Txt.TextColor3 = BrickColor.new("New Yeller").Color
  74. Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  75. Txt.TextStrokeTransparency = .5
  76. Txt.TextWrapped = true
  77. Txt.TextScaled = false
  78. end)
  79. else
  80. end
  81. end
  82.  
  83.  
  84. hum.MaxHealth = math.huge
  85. hum.Health = math.huge
  86.  
  87.  
  88. lp.Chatted:connect(function(msg)
  89. Chat(msg)
  90. end)
  91. print'why steal credit when you know it\'s mine?'
  92. --print'madiik cannot be resisted kthx'
  93.  
  94. function clerp(c1,c2,al)
  95. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  96. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  97. for i,v in pairs(com1) do
  98. com1[i] = v+(com2[i]-v)*al
  99. end
  100. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  101. end
  102.  
  103.  
  104. plr = game:service'Players'.LocalPlayer
  105. plrgui = plr.PlayerGui
  106. char = plr.Character
  107. mouse = plr:GetMouse()
  108. humanoid = char:findFirstChild("Humanoid")
  109. torso = char:findFirstChild("Torso")
  110. head = char.Head
  111. ra = char:findFirstChild("Right Arm")
  112. la = char:findFirstChild("Left Arm")
  113. rl = char:findFirstChild("Right Leg")
  114. ll = char:findFirstChild("Left Leg")
  115. rs = torso:findFirstChild("Right Shoulder")
  116. ls = torso:findFirstChild("Left Shoulder")
  117. rh = torso:findFirstChild("Right Hip")
  118. lh = torso:findFirstChild("Left Hip")
  119. neck = torso:findFirstChild("Neck")
  120. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  121. rootpart = char:findFirstChild("HumanoidRootPart")
  122. camera = workspace.CurrentCamera
  123. anim = char:findFirstChild("Animate")
  124. if anim then
  125. anim:Destroy()
  126. end
  127.  
  128. wait(1)
  129.  
  130. local rm = Instance.new("Motor", torso)
  131. rm.C0 = CFrame.new(1.5, 0.5, 0)
  132. rm.C1 = CFrame.new(0, 0.5, 0)
  133. rm.Part0 = torso
  134. rm.Part1 = ra
  135. rm.Name = 'Right Shoulder'
  136.  
  137. local lm = Instance.new("Motor", torso)
  138. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  139. lm.C1 = CFrame.new(0, 0.5, 0)
  140. lm.Part0 = torso
  141. lm.Part1 = la
  142. lm.Name = 'Left Shoulder'
  143.  
  144. local rlegm = Instance.new("Motor", torso)
  145. rlegm.C0 = CFrame.new(0.5, -1, 0)
  146. rlegm.C1 = CFrame.new(0, 1, 0)
  147. rlegm.Part0 = torso
  148. rlegm.Part1 = rl
  149. local llegm = Instance.new("Motor", torso)
  150. llegm.C0 = CFrame.new(-0.5, -1, 0)
  151. llegm.C1 = CFrame.new(0, 1, 0)
  152. llegm.Part0 = torso
  153. llegm.Part1 = ll
  154.  
  155. rj.C0 = CFrame.new()
  156. rj.C1 = CFrame.new()
  157.  
  158. neck.C0 = CFrame.new(0, 1, 0)
  159. neck.C1 = CFrame.new(0, -0.5, 0)
  160.  
  161. local speed = 0.3
  162. local angle = 0
  163. local anglespeed = 1
  164. rsc0 = rm.C0
  165. lsc0 = lm.C0
  166. llc0 = llegm.C0
  167. rlc0 = rlegm.C0
  168. rootc0 = rj.C0
  169. neckc0 = neck.C0
  170.  
  171. mouse.KeyDown:connect(function(k)
  172. if k == "e" then
  173. fieryhead = not fieryhead
  174. if fieryhead then
  175. coroutine.wrap(function()
  176. while fieryhead and wait() do
  177. local FireColors = {'New Yeller', 'New Yeller'}
  178. local p = Instance.new('Part', char)
  179. p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)])
  180. p.FormFactor = 'Custom'
  181. p.Size = Vector3.new(3, 3, 3)
  182. p.CanCollide = false
  183. p.Anchored = true
  184. p.Locked = true
  185. Instance.new('PointLight', p).Range = 0
  186. p.CFrame = head.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3))
  187. Instance.new('BlockMesh', p)
  188. coroutine.wrap(function()
  189. for i = 1, 10 do
  190. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1)
  191. p.CFrame = p.CFrame * CFrame.new(0, .35, 0)
  192. wait()
  193. end
  194. end)()
  195. game:service'Debris':AddItem(p, .55)
  196. end
  197. end)()
  198. end
  199. end
  200. if k == "r" then
  201. if Charge1Anim or Attack1Anim then return end
  202. Charge1Anim = true
  203. for i = 0, 70 do
  204. local FireColors = {'New Yeller', 'New Yeller'}
  205. local p = Instance.new('Part', char)
  206. p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)])
  207. p.FormFactor = 'Custom'
  208. p.Size = Vector3.new(.8, .8, .8)
  209. p.CanCollide = false
  210. p.Anchored = true
  211. p.Locked = true
  212. p.CFrame = ra.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3))
  213. Instance.new('BlockMesh', p)
  214. coroutine.wrap(function()
  215. for i = 1, 10 do
  216. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1)
  217. p.CFrame = p.CFrame * CFrame.new(0, .15, 0)
  218. wait()
  219. end
  220. end)()
  221. game:service'Debris':AddItem(p, 2)
  222. wait()
  223. end
  224. Charge1Anim = false
  225. Attack1Anim = true
  226. wait(.35)
  227. local ray = Ray.new(ra.CFrame*CFrame.new(0,-1,0).p, ra.CFrame*CFrame.new(0, -150, 0).p)
  228. local hitz, enz = workspace:FindPartOnRay(ray, char)
  229. local humanoid = hitz and hitz.Parent and hitz.Parent:findFirstChild("Humanoid")
  230. if humanoid then
  231. humanoid:TakeDamage(999999999999999999999999999999999999999999)
  232. end
  233. local humanoid = hitz and hitz.Parent and hitz.Parent.Parent and hitz.Parent.Parent:findFirstChild("Humanoid")
  234. if humanoid then
  235. humanoid:TakeDamage(999999999999999999999999999999999999999999)
  236. end
  237.  
  238. --draw the ray
  239. local distance = (enz - ra.CFrame*CFrame.new(0,-1,0).p).magnitude
  240. local rayPart = Instance.new("Part", char)
  241. rayPart.BrickColor = BrickColor.new("New Yeller")
  242. rayPart.Anchored = true
  243. rayPart.CanCollide = false
  244. rayPart.Locked = true
  245. rayPart.TopSurface = 0
  246. rayPart.BottomSurface = 0
  247. rayPart.formFactor = 'Custom'
  248. Instance.new('CylinderMesh', rayPart)
  249. rayPart.Size = Vector3.new(20, distance, 20)
  250. rayPart.CFrame = CFrame.new((enz + ra.CFrame*CFrame.new(0,-1,0).p)/2,enz) * CFrame.Angles(math.pi/2, 0, 0)
  251. for i = 0, 1, .1 do
  252. rayPart.Transparency = 0
  253. wait()
  254. end
  255. rayPart:remove()
  256. Attack1Anim = false
  257. end
  258. if string.byte(k) == 48 then
  259. humanoid.WalkSpeed = 30
  260. end
  261. end)
  262.  
  263. mouse.KeyUp:connect(function(k)
  264. if string.byte(k) == 48 then
  265. humanoid.WalkSpeed = 20
  266. end
  267. end)
  268.  
  269. local action = 'None'
  270. plr.Chatted:connect(function(msg)
  271. if msg == '/e dance' or msg == '/emote dance' then
  272. action = 'Dance'
  273. end
  274. if msg == '/e bernie' or msg == '/emote bernie' then
  275. action = 'MovingLikeBernie'
  276. end
  277. end)
  278.  
  279. local dance_move_wait = 0
  280. print'madiik cannot be resisted kthx'
  281. game:service'RunService'.RenderStepped:connect(function()
  282. rm.MaxVelocity = 0
  283. lm.MaxVelocity = 0
  284. rm.DesiredAngle = 0
  285. rm.CurrentAngle = 0
  286. lm.DesiredAngle = 0
  287. lm.CurrentAngle = 0
  288. angle = (angle % 100) + anglespeed/10
  289. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  290. local rscf = rsc0
  291. local lscf = lsc0
  292. local rlcf = rlc0
  293. local llcf = llc0
  294. local rjcf = rootc0
  295. local ncf = neckc0
  296. local ray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  297. local hitz, enz = workspace:FindPartOnRay(ray, char)
  298. for i,object in pairs(char:children()) do
  299. if object:IsA("Tool") then
  300. tool = true
  301. if not debounce then
  302. for x,value in pairs(object:children()) do
  303. if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
  304. debounce = true
  305. coroutine.wrap(function()
  306. slashing = true
  307. wait(.15)
  308. slashing = false
  309. debounce = false
  310. end)()
  311. value:Destroy()
  312. end
  313. end
  314. end
  315. elseif not object:IsA'Tool' then
  316. tool = false
  317. end
  318. end
  319. if action == 'Dance' then
  320. anglespeed = 2
  321. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  322. rjcf = rootc0 * CFrame.Angles(math.rad(2), math.sin(angle)*.15, 0)
  323. lscf = lsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2-math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  324. rscf = rsc0 * CFrame.new(0, .5 + math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/1.2+math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  325. rlcf = rlc0 * CFrame.new(0, .3 + math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0)
  326. llcf = llc0 * CFrame.new(0, .3 - math.cos(angle)*.3, -.1) * CFrame.Angles(-math.rad(2), 0, 0)
  327. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  328. else
  329. action = 'None'
  330. end
  331. elseif action == 'MovingLikeBernie' then
  332. anglespeed = 1+math.random()
  333. dance_move_wait = (dance_move_wait%40) + 1/60
  334. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  335. if dance_move_wait <= 20 then
  336. rjcf = rootc0 * CFrame.new(0, -.2, .6) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0)
  337. lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + -math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  338. rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(-math.pi/6 + math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  339. rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, .1)
  340. llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(-math.rad(25)+math.sin(angle)*0.025, -math.cos(angle)*.15, -.1)
  341. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  342. elseif dance_move_wait > 20 then
  343. rjcf = rootc0 * CFrame.new(0, -.2, -.6) * CFrame.Angles(-math.rad(25)-math.sin(angle)*0.025, math.cos(angle)*.15, 0)
  344. lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + math.cos(angle)*0.4, math.sin(angle)*0.1, -.15 - -math.sin(angle)*0.4)
  345. rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.025, 0) * CFrame.Angles(math.pi/6 + -math.cos(angle)*0.4, math.sin(-angle)*0.1, .15 + -math.sin(angle)*0.4)
  346. rlcf = rlc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, .1)
  347. llcf = llc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(25)-math.sin(angle)*0.025, -math.cos(angle)*.15, -.1)
  348. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.4, 0)
  349. end
  350. else
  351. action = 'None'
  352. end
  353. elseif not hitz and (torso.Velocity.y > 1 or torso.Velocity.y < -1) then
  354. anglespeed = 3
  355. rjcf = rootc0 * CFrame.Angles(math.rad(5), 0, 0)
  356. rscf = rsc0 * CFrame.Angles(math.rad(130) + math.sin(angle)*.8, 0, .15)
  357. lscf = lsc0 * CFrame.Angles(math.rad(130) + -math.sin(angle)*.8, 0, -.15)
  358. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(angle)*.3, -.3 + -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + -math.sin(angle)*1, 0, 0)
  359. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.3 - -math.cos(angle)*.3) * CFrame.Angles(math.pi/14 + math.sin(angle)*1, 0, 0)
  360. ncf = neckc0 * CFrame.Angles(0, math.sin(angle)*.8, 0)
  361. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  362. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  363. anglespeed = 2
  364. rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0)
  365. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.7, 0, .05)
  366. lscf = lsc0 * CFrame.Angles(-math.sin(angle)*1.7, 0, -.05)
  367. rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*1.4, 0, 0)
  368. llcf = llc0 * CFrame.Angles(math.sin(angle)*1.4, 0, 0)
  369. ncf = neckc0 * CFrame.Angles(-math.rad(30) + math.abs(math.sin(angle))*.95, math.sin(angle)*.8, 0)
  370. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 20 then
  371. anglespeed = 2.5
  372. rjcf = rootc0 * CFrame.new(0, -.3 + math.abs(math.sin(angle))*.65, 0) * CFrame.Angles(-math.rad(10)+math.rad(torso.Velocity.y)*2, 0, 0)
  373. rscf = rsc0 * CFrame.new(0, math.cos(angle)*.5, math.sin(angle)*.5) * CFrame.Angles(math.cos(angle)*2.8, 0, math.abs(math.sin(angle))*.5)
  374. lscf = lsc0 * CFrame.new(0, -math.cos(angle)*.5, -math.sin(angle)*.5) * CFrame.Angles(-math.cos(angle)*2.8, 0, -math.abs(math.sin(angle))*.5)
  375. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.4, 0, math.rad(.5))
  376. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.4, 0, -math.rad(.5))
  377. ncf = neckc0 * CFrame.Angles(math.cos(angle), math.sin(angle), 0)
  378. end
  379. if Charge1Anim then
  380. rscf = rsc0 * CFrame.new(-.75, 0, .75) * CFrame.Angles(math.pi/4, 0, math.pi/4)
  381. lscf = lsc0 * CFrame.new(.95, 0, -.45) * CFrame.Angles(math.pi/4, 0, math.pi/3)
  382. end
  383. if Attack1Anim then
  384. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  385. lscf = lsc0 * CFrame.Angles(-math.pi/8, 0, 0)
  386. end
  387. if tool then
  388. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  389. if slashing then
  390. rscf = rsc0 * CFrame.Angles(-math.pi/12, 0, -.1)
  391. end
  392. end
  393. rm.C0 = clerp(rm.C0,rscf,speed)
  394. lm.C0 = clerp(lm.C0,lscf,speed)
  395. rj.C0 = clerp(rj.C0,rjcf,speed)
  396. neck.C0 = clerp(neck.C0,ncf,speed)
  397. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  398. llegm.C0 = clerp(llegm.C0,llcf,speed)
  399. end)
  400. pls = game:GetService'Players'
  401. rs = game:GetService'RunService'
  402. uinps = game:GetService'UserInputService'
  403. lp = pls.LocalPlayer
  404. mouse = lp:GetMouse()
  405. c = lp.Character
  406. human = c.Humanoid
  407. human.MaxHealth = 999999999999999999999999999999999999999999
  408. soundVol = 0
  409. wait()
  410. human.Health = 999999999999999999999999999999999999999999
  411. c.Health:Destroy()
  412. head.face.Texture = "rbxassetid://333475741"
  413. z = Instance.new("Sound", char)
  414. z.SoundId = "rbxassetid://302095292"--412316161
  415. z.Looped = true
  416. z.Pitch = 1.05
  417. z.Volume = 1
  418. wait(.1)
  419. z:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement