Advertisement
Gametoy

uknow

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