Advertisement
Gametoy

Wat?

Feb 12th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.66 KB | None | 0 0
  1. -------------------------------
  2. --[[ The Coffe Rage Script edit ]]--
  3. -------------------------------
  4. --[[
  5. Created by LegendOfDarknees.
  6. and also leaked by LegendOfDarknees.
  7.  
  8. Note:
  9. I decided to leak it cause this
  10. pathetic skid "pxire" leeched it out
  11. of my friend. If you see "pxire",
  12. never trade him or let your friends
  13. be friends with him.
  14. Anyway, pxire claims that he made this.
  15. Too bad I leaked it first
  16.  
  17. Anyway, so you script kiddies enjoy this.
  18. By the way, this script is old, so I don't really care about it.
  19.  
  20.  
  21. Do not remove this credit.
  22. Edited by GMAEKILLERTOY
  23. --]]
  24. local p=game:service("Players").LocalPlayer
  25.  
  26. -------------------------------
  27. local p=game:service("Players").LocalPlayer
  28. if p.Name=="Reruderu" then
  29. p:Kick("go away, skid who uses crappy decompilers,v3rmie skid.")
  30. elseif p.Name=="Rerumu" then
  31. p:Kick("no thanks, skid who uses crappy decompilers that they didnt make.also being an pathetic v3rmie kid")
  32. end
  33. local char=p.Character
  34. script.Parent=char
  35. local torso=char.Torso
  36. local hed=char.Head
  37. local larm=char:FindFirstChild("Left Arm")
  38. local rarm=char:FindFirstChild("Right Arm")
  39. local lleg=char:FindFirstChild("Left Leg")
  40. local rleg=char:FindFirstChild("Right Leg")
  41. local hum=char.Humanoid
  42. local cam=workspace.CurrentCamera
  43. local root=char.HumanoidRootPart
  44. local mouse=p:GetMouse()
  45. local hb=game:service("RunService").Heartbeat
  46. local rs=game:service("RunService").Stepped
  47. hum.MaxHealth=10000000
  48. hum.Health=hum.MaxHealth
  49. local pgui=Instance.new("ScreenGui",p.PlayerGui)
  50. random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  51. local run = 60
  52. local normal = 16
  53. local JumpPower = 200
  54. local color = "Really black"
  55. -------------------
  56. local drinks="10722059"
  57. local m="41707332"
  58. local tx="41708701"
  59. local ragesong="142312526"
  60. local breaks="368270172"
  61. local scream="527276541"
  62. -------------------
  63.  
  64. function fnt(pos,dist,splr)
  65. if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
  66. local list = {}
  67. for i,v in pairs(workspace:GetChildren())do
  68. if v:IsA("Model")then
  69. if v:findFirstChild("Torso")then
  70. if v ~= char then
  71. if(v.Torso.Position -pos).magnitude <= dist then
  72. table.insert(list,v)
  73. end
  74. end
  75. end
  76. end
  77. end
  78. return list
  79. end
  80. function fnp(pos,dist,splr)
  81. if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end
  82. local list = {}
  83. for i,v in pairs(workspace:GetChildren())do
  84. if v:IsA("Part")then
  85. if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then
  86. if(v.Position -pos).magnitude <= dist then
  87. table.insert(list,v)
  88. end
  89. end
  90. end
  91. end
  92. return list
  93. end
  94. fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld
  95. local wld = Instance.new("Weld", wp1)
  96. wld.Part0 = wp0
  97. wld.Part1 = wp1
  98. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  99. end
  100. local trans=false
  101. ------------------------------------
  102.  
  103. local s0=Instance.new("Sound",char)
  104. s0.SoundId="rbxassetid://"..ragesong
  105. s0.Volume=.5
  106. s0.Pitch=1
  107. s0.Looped=true
  108.  
  109. local hair = Instance.new("Part",char)
  110. hair.Material="Neon"
  111. hair.CanCollide=false
  112. hair.Size=Vector3.new(0.1,0.1,0.1)
  113. hair.BrickColor=BrickColor.Random()
  114. hair.Transparency=0
  115.  
  116. local msh = Instance.new("SpecialMesh",hair)
  117. msh.MeshId="rbxassetid://212348733"
  118. msh.Scale=Vector3.new(1.05, 1.2, 1)
  119.  
  120. local w = Instance.new("Weld",hair)
  121. w.Part1=hair
  122. w.Part0=hed
  123. w.C0=CFrame.new(.1,.1,0)
  124.  
  125.  
  126.  
  127. ----------chat
  128. p.Chatted:connect(function(m)
  129. say(string.sub(m, 1, string.len(m)),0,3)
  130. end)
  131. ------------------------------------
  132. anim="idle"
  133. local sine=0
  134. local add=0
  135. local value=0
  136. local ffing=false
  137. local msgs=0
  138. attack=false
  139. NoAnims=false
  140. ----preparing character----
  141. fw(torso, larm, -1.5, 0.5, 0)
  142. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  143. fw(torso, rarm, 1.5, 0.5, 0)
  144. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  145. fw(torso, hed, 0, 1.5, 0)
  146. fw(torso, lleg, -0.5, -1, 0)
  147. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  148. fw(torso, rleg, 0.5, -1, 0)
  149. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  150. fw(root, torso, 0, -1, 0)
  151. torso.Weld.C1 = CFrame.new(0, -1, 0)
  152. --------------rot------------
  153. local r=0
  154. local radd=0.04
  155. coroutine.wrap(function()
  156. while rs:wait() do
  157. r=r+radd
  158. end
  159. end)()
  160. attack = false
  161. -----------------------------
  162. local e = Instance.new("Part",char)
  163. e.Name="Mug"
  164. e.CanCollide=false
  165. e.Size=Vector3.new(1,1,1)
  166.  
  167. local me=Instance.new("SpecialMesh",e)
  168. me.MeshId="rbxassetid://"..m
  169. me.TextureId="rbxassetid://"..tx
  170. me.Scale=Vector3.new(1.6,1.6,1.6)
  171.  
  172. local w=Instance.new("Weld",e)
  173. w.Part1=e
  174. w.Part0=larm
  175. w.C0=CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(180),0,0)
  176.  
  177. -----------------------------
  178. mouse.KeyDown:connect(function(key)
  179. if key == "f" and attack == false then
  180. if trans == false then
  181. attack = true
  182. NoAnims = true
  183.  
  184. for i = 1, 30 do
  185. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  186. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  187. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  188. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),0,0),0.1)
  189. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),0,0),0.25)
  190. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  191. hb:wait()
  192. end
  193.  
  194. NoAnims=false
  195. attack=false
  196. end
  197. end
  198. end)
  199.  
  200. mouse.KeyDown:connect(function(key)
  201. if key == "e" and attack == false then
  202. if trans == false then
  203. attack=true
  204. NoAnims=true
  205. hum.WalkSpeed=0
  206.  
  207. local fx = Instance.new("Sound",char)
  208. fx.SoundId="rbxassetid://"..drinks
  209. fx.Volume=10
  210. fx.Pitch=1
  211. fx:Play()
  212.  
  213. for i = 1, 30 do
  214. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  215. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  216. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  217. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
  218. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(140),0,-5.4),0.25)
  219. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  220. rs:wait()
  221. end
  222.  
  223. wait(3)
  224.  
  225. w:Destroy()
  226. e.CanCollide=true
  227.  
  228. fx.SoundId="rbxassetid://"..breaks
  229. fx:Play()
  230.  
  231. e.Touched:connect(function()
  232. local cf=e.CFrame
  233. e:Destroy()
  234. for i = 1, 10 do
  235. local g = Instance.new("WedgePart",char)
  236. g.Name="spike"
  237. g.CFrame=cf
  238. g.BrickColor=BrickColor.new("Bright blue")
  239. g.Reflectance=0.3
  240. g.Transparency=0.4
  241. g.Size=Vector3.new(0.1,0.1,0.1)
  242. wait()
  243. end
  244. end)
  245.  
  246. for i = 1, 30 do
  247. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  248. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  249. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  250. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
  251. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(140),0,-5.4),0.25)
  252. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.4)*CFrame.Angles(math.rad(-40),0,0),0.25)
  253. rs:wait()
  254. end
  255.  
  256. print("drinked")
  257.  
  258. local fx2 = Instance.new("Sound",char)
  259. fx2.SoundId="rbxassetid://"..scream
  260. fx2.Volume=1
  261. fx2.Pitch=1
  262. fx2:Play()
  263.  
  264. coroutine.wrap(function()
  265. while trans == false do
  266. wait(0.2)
  267. local ef = Instance.new("Part",char)
  268. ef.Name="pulse"
  269. ef.BrickColor=BrickColor.Random()
  270. ef.Material="Neon"
  271. ef.Shape="Ball"
  272. ef.CanCollide=false
  273. ef.Anchored=true
  274. ef.Size=Vector3.new(1,1,1)
  275. ef.CFrame=torso.CFrame
  276.  
  277. local ef2 = ef:Clone()
  278. ef2.Parent=ef
  279. ef2.BrickColor=BrickColor.Random()
  280. ef2.Name="call"
  281. ef2.Size=Vector3.new(1,1,1)
  282. local em=Instance.new("SpecialMesh",ef2)
  283. em.MeshId="rbxassetid://3270017"
  284. em.Scale=Vector3.new(1,1,0.0001)
  285.  
  286. local ef3 = ef2:Clone()
  287. ef3.Parent=ef
  288. ef3.Name="aura"
  289. ef3.CFrame=root.CFrame
  290. local em2=ef3.Mesh
  291. em2.MeshId="rbxassetid://20329976"
  292. em2.Scale=Vector3.new(1,0.4,1)
  293.  
  294. local ef4 = ef3:Clone()
  295. ef4.Parent=ef
  296. local em3=ef4.Mesh
  297.  
  298. local ef5 = ef2:Clone()
  299. ef5.Parent=ef
  300. local em4=ef5.Mesh
  301.  
  302. coroutine.wrap(function()
  303. for i = 1, 60 do
  304. rs:wait()
  305. ef.Size=ef.Size+Vector3.new(1,1,1)
  306. ef.Transparency=ef.Transparency+1/60
  307. ef2.Size=ef2.Size+Vector3.new(1,0.3,1)
  308. ef2.Transparency=ef2.Transparency+1/60
  309. em.Scale=em.Scale+Vector3.new(1,1,0)
  310. ef2.CFrame=torso.CFrame*CFrame.Angles(r,r,r)
  311. ef3.Size=ef3.Size+Vector3.new(1,0.3,1)
  312. ef3.Transparency=ef3.Transparency+1/60
  313. ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0)
  314. em2.Scale=em2.Scale+Vector3.new(1,0.3,1)
  315. ef4.Size=ef4.Size+Vector3.new(1,0.3,1)
  316. ef4.Transparency=ef4.Transparency+1/60
  317. ef4.CFrame=root.CFrame*CFrame.Angles(0,-r,0)
  318. em3.Scale=em3.Scale+Vector3.new(1,0.3,1)
  319. ef5.Transparency=ef5.Transparency+1/60
  320. em4.Scale=em4.Scale+Vector3.new(1,1,0)
  321. ef5.CFrame=torso.CFrame*CFrame.Angles(-r,-r,-r)
  322. end
  323. ef:Destroy()
  324. ef2:Destroy()
  325. ef3:Destroy()
  326. ef4:Destroy()
  327. ef5:Destroy()
  328. end)()
  329. end
  330. local ef = Instance.new("Part",char)
  331. ef.Name="pulse"
  332. ef.BrickColor=BrickColor.Random()
  333. ef.Material="Neon"
  334. ef.Shape="Ball"
  335. ef.CanCollide=false
  336. ef.Anchored=true
  337. ef.Size=Vector3.new(1,1,1)
  338. ef.CFrame=root.CFrame
  339. local em=Instance.new("SpecialMesh",ef)
  340. em.MeshId="rbxassetid://9982590"
  341. em.Scale=Vector3.new(1,0.3,1)
  342.  
  343. local ef2 = ef:Clone()
  344. ef2.Parent=ef
  345. ef2.Name="aura"
  346. ef2.CFrame=root.CFrame
  347. ef2.Mesh:Destroy()
  348.  
  349. local ef3 = ef:Clone()
  350. ef3.Parent=ef
  351. ef3.Name="aura"
  352. ef3.CFrame=root.CFrame
  353. ef3.Mesh:Destroy()
  354. local em2=Instance.new("SpecialMesh",ef3)
  355. em2.MeshId="rbxassetid://20329976"
  356. em2.Scale=Vector3.new(1,0.3,1)
  357.  
  358. coroutine.wrap(function()
  359. for i = 1, 160 do
  360. ef.Size=ef.Size+Vector3.new(2,2,2)
  361. ef.Transparency=ef.Transparency+1/160
  362. em.Scale=em.Scale+Vector3.new(0.6,0.6,0.6)
  363. ef.CFrame=root.CFrame*CFrame.Angles(r,r,r)
  364. ef3.Transparency=ef3.Transparency+1/160
  365. ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0)
  366. em2.Scale=em2.Scale+Vector3.new(2,0.8,2)
  367. ef2.Size=ef2.Size+Vector3.new(2,2,2)
  368. ef2.Transparency=ef2.Transparency+1/160
  369. rs:wait()
  370. end
  371. ef:Destroy()
  372. ef2:Destroy()
  373. ef3:Destroy()
  374. end)()
  375. end)()
  376.  
  377. for i = 1, 30 do
  378. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,4,0)*CFrame.Angles(math.rad(20),0,0),0.25)
  379. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,0.15),0.25)
  380. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,-0.15),0.25)
  381. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,-6),0.25)
  382. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,6),0.25)
  383. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  384. rs:wait()
  385. end
  386. wait(8.7)
  387. s0:Play()
  388. trans=true
  389. print("screamed")
  390. hair.Transparency=0
  391. for i,v in pairs(char:GetChildren()) do
  392. if v:FindFirstChild("Handle") then
  393. v.Handle.Transparency=0
  394. end
  395. end
  396. hum.WalkSpeed=normal
  397. NoAnims=false
  398. attack=false
  399. end
  400. end
  401. end)
  402. ------effects------
  403. coroutine.wrap(function()
  404. while wait(0.05) do
  405. if trans == true then
  406. local ef = Instance.new("Part",char)
  407. ef.Name="effect"
  408. ef.CanCollide=false
  409. ef.Anchored=true
  410. ef.CFrame=root.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(0,r,0)
  411. ef.Size=Vector3.new(1,1,1)
  412. ef.BrickColor=BrickColor.Random()
  413. ef.Material="Neon"
  414.  
  415. local em = Instance.new("SpecialMesh",ef)
  416. em.MeshId="rbxassetid://20329976"
  417. em.Scale=Vector3.new(1,0.2,1)
  418.  
  419. coroutine.wrap(function()
  420. for i = 1, 30 do
  421. ef.Size=ef.Size:lerp(ef.Size+Vector3.new(0.035,0.035,0.035),0.25)
  422. em.Scale=em.Scale:lerp(em.Scale+Vector3.new(1,0.3,1),0.25)
  423. ef.Transparency=ef.Transparency+1/30
  424. rs:wait()
  425. end
  426. ef:Destroy()
  427. end)()
  428. end
  429. end
  430. end)()
  431. coroutine.wrap(function()
  432. while wait(0.05) do
  433. if trans == true then
  434. local ef = Instance.new("Part",char)
  435. ef.Name="effect"
  436. ef.CanCollide=false
  437. ef.Anchored=true
  438. ef.CFrame=torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(r,r,r)
  439. ef.Size=Vector3.new(1,1,1)
  440. ef.BrickColor=BrickColor.Random()
  441. ef.Material="Neon"
  442.  
  443. local em = Instance.new("SpecialMesh",ef)
  444. em.MeshId="rbxassetid://3270017"
  445. em.Scale=Vector3.new(1,1,0.00000001)
  446.  
  447. coroutine.wrap(function()
  448. for i = 1, 30 do
  449. ef.Size=ef.Size:lerp(ef.Size+Vector3.new(0.035,0.035,0),0.25)
  450. em.Scale=em.Scale:lerp(em.Scale+Vector3.new(1.2,1.2,0),0.25)
  451. ef.Transparency=ef.Transparency+1/30
  452. rs:wait()
  453. end
  454. ef:Destroy()
  455. end)()
  456. end
  457. end
  458. end)()
  459. coroutine.wrap(function()
  460. while wait(0.1) do
  461. if trans == true then
  462. local ef = Instance.new("Part",char)
  463. ef.Name="effect"
  464. ef.CanCollide=false
  465. ef.Anchored=true
  466. ef.CFrame=lleg.CFrame*CFrame.new(0,-1.05,0)*CFrame.Angles(r,r,r)
  467. ef.Size=Vector3.new(1,1,1)
  468. ef.BrickColor=BrickColor.Random()
  469. ef.Material="Neon"
  470.  
  471. coroutine.wrap(function()
  472. for i = 1, 30 do
  473. ef.Size=ef.Size:lerp(ef.Size+Vector3.new(0.035,0.035,0.035),0.25)
  474. ef.Transparency=ef.Transparency+1/30
  475. rs:wait()
  476. end
  477. ef:Destroy()
  478. end)()
  479. local ef2 = Instance.new("Part",char)
  480. ef2.Name="effect"
  481. ef2.CanCollide=false
  482. ef2.Anchored=true
  483. ef2.CFrame=rleg.CFrame*CFrame.new(0,-1.05,0)*CFrame.Angles(r,r,r)
  484. ef2.Size=Vector3.new(1,1,1)
  485. ef2.BrickColor=BrickColor.Random()
  486. ef2.Material="Neon"
  487.  
  488. coroutine.wrap(function()
  489. for i = 1, 30 do
  490. ef2.Size=ef2.Size:lerp(ef2.Size+Vector3.new(0.035,0.035,0.035),0.25)
  491. ef2.Transparency=ef2.Transparency+1/30
  492. rs:wait()
  493. end
  494. ef2:Destroy()
  495. end)()
  496. end
  497. end
  498. end)()
  499. coroutine.wrap(function()
  500. while wait(0.1) do
  501. if trans == true then
  502. local ef = Instance.new("Part",char)
  503. ef.Name="effect"
  504. ef.CanCollide=false
  505. ef.Anchored=true
  506. ef.CFrame=larm.CFrame*CFrame.new(0,-1.05,0)*CFrame.Angles(r,r,r)
  507. ef.Size=Vector3.new(1,1,1)
  508. ef.BrickColor=BrickColor.Random()
  509. ef.Material="Neon"
  510.  
  511. coroutine.wrap(function()
  512. for i = 1, 30 do
  513. ef.Size=ef.Size:lerp(ef.Size+Vector3.new(0.05,0.05,0.05),0.25)
  514. ef.Transparency=ef.Transparency+1/30
  515. rs:wait()
  516. end
  517. ef:Destroy()
  518. end)()
  519. local ef2 = Instance.new("Part",char)
  520. ef2.Name="effect"
  521. ef2.CanCollide=false
  522. ef2.Anchored=true
  523. ef2.CFrame=rarm.CFrame*CFrame.new(0,-1.05,0)*CFrame.Angles(r,r,r)
  524. ef2.Size=Vector3.new(1,1,1)
  525. ef2.BrickColor=BrickColor.Random()
  526. ef2.Material="Neon"
  527.  
  528. coroutine.wrap(function()
  529. for i = 1, 30 do
  530. ef2.Size=ef2.Size:lerp(ef2.Size+Vector3.new(0.05,0.05,0.05),0.25)
  531. ef2.Transparency=ef2.Transparency+1/30
  532. rs:wait()
  533. end
  534. ef2:Destroy()
  535. end)()
  536. end
  537. end
  538. end)()
  539. hum.MaxHealth=150000
  540. hum.Health=hum.MaxHealth
  541. -----animations-----
  542. mouse.KeyDown:connect(function(key)
  543. if key=="0" then
  544. char.Humanoid.WalkSpeed = run
  545. hed.Velocity=hed.CFrame.lookVector*100
  546. end
  547. end)
  548. mouse.KeyUp:connect(function(key)
  549. if key=="0" then
  550. char.Humanoid.WalkSpeed = normal
  551. end
  552. end)
  553. game:GetService("RunService").RenderStepped:connect(function()
  554. char.Humanoid.FreeFalling:connect(function(f)
  555. if f then
  556. ffing = true
  557. else
  558. ffing = false
  559. end
  560. end)
  561. sine = sine + add
  562. if ffing==true then
  563. anim="jump"
  564. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  565. anim="idle"
  566. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  567. anim = "walk"
  568. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  569. anim = "run"
  570. end
  571.  
  572. if NoAnims==false then
  573. if anim=="idle" then
  574. add=0.5
  575. if trans == false then
  576. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.05)
  577. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  578. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  579. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
  580. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1)
  581. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25)
  582. else
  583. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
  584. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
  585. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
  586. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-10)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
  587. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-10)+-math.sin(sine/14)/7,0,6+math.sin(sine/14)/7),0.1)
  588. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
  589. end
  590.  
  591. elseif anim=="walk" then
  592. add=0.5
  593. if trans == false then
  594. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/3.5)/3,0)*CFrame.Angles(math.rad(-10),0,0),0.25)
  595. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/7)/2,-0.15+-math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/7)/2,0,0.05),0.25)
  596. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/7)/2,-0.15+math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/7)/2,0,-0.05),0.25)
  597. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/7)/7,0+math.sin(sine/14)/7)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/2,0,-6+-math.sin(sine/14)/7),0.1)
  598. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/10)/14,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1)
  599. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),0.25)
  600. else
  601. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-10),0,0),0.05)
  602. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(-10),0,0.15+math.sin(sine/14)/20),0.25)
  603. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(-10),0,-0.15+-math.sin(sine/14)/20),0.25)
  604. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1)
  605. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,6+math.sin(sine/14)/7),0.1)
  606. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
  607. end
  608.  
  609. elseif anim=="run" then
  610. add=0.5
  611. if trans == false then
  612. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/2)/3,0)*CFrame.Angles(math.rad(-37),0,0),0.025)
  613. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/4)/2,-0.15+-math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/4)/2,0,0.05),0.25)
  614. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/4)/2,-0.15+math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/4)/2,0,-0.05),0.25)
  615. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,-6),0.25)
  616. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,6),0.25)
  617. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),0,0),0.25)
  618. else
  619. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,1+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
  620. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
  621. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
  622. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,-6),0.25)
  623. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,6),0.25)
  624. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0.3)*CFrame.Angles(math.rad(70),0,0),0.25)
  625. end
  626.  
  627. elseif anim=="jump" then
  628. add=0.5
  629. torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0+-math.cos(sine/14)/7,.5+-math.cos(sine/14)/7,0+-math.cos(sine/14)/7)*CFrame.Angles(math.rad(0),0,0),0.05)
  630. rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25)
  631. lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25)
  632. rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25)
  633. larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25)
  634. hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25)
  635.  
  636. end
  637. end
  638.  
  639. end)
  640. local verlet = {}
  641. verlet.step_time = 1 / 50
  642. verlet.gravity = Vector3.new(0, -10, 0)
  643.  
  644. local char = game.Players.LocalPlayer.Character
  645. local torso = char:WaitForChild("Torso")
  646. local parts = {}
  647. local render = game:GetService("RunService").RenderStepped
  648.  
  649. wait(2)
  650.  
  651. local point = {}
  652. local link = {}
  653. local rope = {}
  654.  
  655. local function ccw(A,B,C)
  656. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  657. end
  658.  
  659. local function intersect(A,B,C,D)
  660. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  661. end
  662.  
  663. local function vec2(v)
  664. return Vector2.new(v.x, v.z)
  665. end
  666.  
  667. function point:step()
  668. if not self.fixed then
  669. local derivative = (self.position - self.last_position) * 0.95
  670. self.last_position = self.position
  671. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  672. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  673. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  674. local pointE = self.position + torso.CFrame.lookVector * 100
  675. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  676. if not doIntersect then
  677. self.postition = self.position - torso.CFrame.lookVector * 10
  678. end]]
  679. end
  680. end
  681.  
  682. function link:step()
  683. for i = 1, 1 do
  684. local distance = self.point1.position - self.point2.position
  685. local magnitude = distance.magnitude
  686. local differance = (self.length - magnitude) / magnitude
  687. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  688. if not self.point1.fixed then
  689. self.point1.position = self.point1.position + translation
  690. end
  691. if not self.point2.fixed then
  692. self.point2.position = self.point2.position - translation
  693. end
  694. end
  695. end
  696.  
  697. function verlet.new(class, a, b, c)
  698. if class == "Point" then
  699. local new = {}
  700. setmetatable(new, {__index = point})
  701. new.class = class
  702. new.position = a or Vector3.new()
  703. new.last_position = new.position
  704. new.velocity = verlet.gravity
  705. new.fixed = false
  706. return new
  707. elseif class == "Link" then
  708. local new = {}
  709. setmetatable(new, {__index = link})
  710. new.class = class
  711. new.point1 = a
  712. new.point2 = b
  713. new.length = c or (a.position - b.position).magnitude
  714. return new
  715. elseif class == "Rope" then
  716. local new = {}
  717. setmetatable(new, {__index = link})
  718. new.class = class
  719. new.start_point = a
  720. new.finish_point = b
  721. new.points = {}
  722. new.links = {}
  723. local inc = (b - a) / 10
  724. for i = 0, 10 do
  725. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  726. end
  727. for i = 2, #new.points do
  728. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  729. end
  730. return new
  731. end
  732. end
  733.  
  734. local tris = {}
  735. local triParts = {}
  736.  
  737. local function GetDiscoColor(hue)
  738. local section = hue % 1 * 3
  739. local secondary = 0.5 * math.pi * (section % 1)
  740. if section < 1 then
  741. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  742. elseif section < 2 then
  743. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  744. else
  745. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  746. end
  747. end
  748.  
  749. local function setupPart(part)
  750. part.Anchored = true
  751. part.FormFactor = 3
  752. part.CanCollide = false
  753. part.TopSurface = 10
  754. part.BottomSurface = 10
  755. part.LeftSurface = 10
  756. part.RightSurface = 10
  757. part.FrontSurface = 10
  758. part.BackSurface = 10
  759. part.Material = "Neon"
  760. local m = Instance.new("SpecialMesh", part)
  761. m.MeshType = "Wedge"
  762. m.Scale = Vector3.new(0.2, 1, 1)
  763. return part
  764. end
  765.  
  766. local function CFrameFromTopBack(at, top, back)
  767. local right = top:Cross(back)
  768. 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)
  769. end
  770.  
  771. local function drawTri(parent, a, b, c)
  772. local this = {}
  773. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  774. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  775. function this:Set(a, b, c)
  776. local ab, bc, ca = b-a, c-b, a-c
  777. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  778. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  779. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  780. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  781. if edg1 < edg2 then
  782. if edg1 >= edg3 then
  783. a, b, c = c, a, b
  784. ab, bc, ca = ca, ab, bc
  785. abm = cam
  786. end
  787. else
  788. if edg2 < edg3 then
  789. a, b, c = b, c, a
  790. ab, bc, ca = bc, ca, ab
  791. abm = bcm
  792. else
  793. a, b, c = c, a, b
  794. ab, bc, ca = ca, ab, bc
  795. abm = cam
  796. end
  797. end
  798.  
  799. local len1 = -ca:Dot(ab)/abm
  800. local len2 = abm - len1
  801. local width = (ca + ab.unit*len1).magnitude
  802.  
  803. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  804.  
  805. if len1 > 0.2 then
  806. mPart1.Parent = parent
  807. mPart1.Size = Vector3.new(0.2, width, len1)
  808. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  809. else
  810. mPart1.Parent = nil
  811. end
  812.  
  813. if len2 > 0.2 then
  814. mPart2.Parent = parent
  815. mPart2.Size = Vector3.new(0.2, width, len2)
  816. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  817. else
  818. mPart2.Parent = nil
  819. end
  820. end
  821. function this:SetProperty(prop, value)
  822. mPart1[prop] = value
  823. mPart2[prop] = value
  824. end
  825. this:Set(a, b, c)
  826. function this:Destroy()
  827. mPart1:Destroy()
  828. mPart2:Destroy()
  829. end
  830. this.p1 = mPart1
  831. this.p2 = mPart2
  832. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  833. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  834. return this
  835. end
  836.  
  837. function verlet.draw(object, id)
  838. if object.class == "Point" then
  839. local part = parts[id]
  840. part.BrickColor = BrickColor.new(1, 1, 1)
  841. part.Transparency = 0
  842. part.formFactor = 3
  843. part.Anchored = true
  844. part.CanCollide = false
  845. part.TopSurface = 0
  846. part.BottomSurface = 0
  847. part.Size = Vector3.new(0.35, 0.35, 0.35)
  848. part.Material = "Neon"
  849. part.CFrame = CFrame.new(object.position)
  850. part.Parent = torso
  851. return part
  852. elseif object.class == "Link" then
  853. local part = parts[id]
  854. local dist = (object.point1.position - object.point2.position).magnitude
  855. part.Size = Vector3.new(0.2, 0.2, dist)
  856. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  857. part.Parent = torso
  858. return part
  859. end
  860. end
  861.  
  862. function verlet.clear()
  863. for _, v in pairs(workspace:GetChildren()) do
  864. if v.Name == "Part" then
  865. v:Destroy()
  866. end
  867. end
  868. end
  869.  
  870. local points = {}
  871. local links = {}
  872.  
  873. for x = 0, 2 do
  874. points[x] = {}
  875. for y = 0, 3 do
  876. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  877. points[x][y].fixed = y == 0
  878. end
  879. end
  880.  
  881. for x = 1, 2 do
  882. for y = 0, 3 do
  883. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  884. end
  885. end
  886.  
  887. for x = 0, 2 do
  888. for y = 1, 3 do
  889. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  890. end
  891. end
  892.  
  893. render:connect(function()
  894. for x = 0, 2 do
  895. for y = 0, 3 do
  896. if y == 0 then
  897. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  898. else
  899. points[x][y]:step()
  900. end
  901. end
  902. end
  903. for i = 1, #links do
  904. links[i]:step()
  905. end
  906. for i = 1, #tris do
  907. triParts[#triParts + 1] = tris[i].p1
  908. triParts[#triParts + 1] = tris[i].p2
  909. end
  910. tris = {}
  911. for x = 1, 2 do
  912. for y = 1, 3 do
  913. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  914. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  915. end
  916. end
  917. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement