HenloMyDude

overdrive but local

Jan 29th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.72 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4. tors = char.Torso
  5. ra = char["Right Arm"]
  6. la = char["Left Arm"]
  7. rl = char["Right Leg"]
  8. ll = char["Left Leg"]
  9. hed = char.Head
  10. root = char.HumanoidRootPart
  11. hum = char.Humanoid
  12.  
  13. clerp = function(toclerp, cf, number)
  14. local joint = toclerp
  15. joint.C0 = joint.C0:Lerp(cf, number)
  16. end
  17.  
  18. clerp2 = function(toclerp, cf)
  19. local joint = toclerp
  20. joint.C0 = cf
  21. end
  22.  
  23. clerp3 = function(toclerp, cf, number)
  24. local joint = toclerp
  25. joint.C1 = joint.C1:Lerp(cf, number)
  26. end
  27.  
  28. Swait,swait = function(number)
  29. if number == 0 or number == nil then
  30. game:GetService("RunService").Heartbeat:Wait()
  31. else
  32. for i = 1,number do
  33. game:GetService("RunService").Heartbeat:Wait()
  34. end
  35. end
  36. end
  37.  
  38. ezweld = function(p, a, b, cf)
  39. local weld = Instance.new("Weld",p)
  40. weld.Part0 = a
  41. weld.Part1 = b
  42. weld.C0 = cf
  43. return weld
  44. end
  45.  
  46. NewSound = function(p, id, pit, vol, loop)
  47. local Sound = Instance.new("Sound",p)
  48. Sound.Pitch = pit
  49. Sound.Volume = vol
  50. Sound.SoundId = "rbxassetid://" ..id
  51. Sound.Looped = loop
  52. Sound:Play()
  53. return Sound
  54. end
  55.  
  56. IT = Instance.new
  57. Rad = math.rad
  58. Cos = math.cos
  59. Sin = math.sin
  60. BrickC = BrickColor.new
  61. C3 = Color3.new
  62. VT = Vector3.new
  63.  
  64. anim = "Idle"
  65. attack = false
  66. local RS = char.Torso["Right Shoulder"]
  67. local LS = char.Torso["Left Shoulder"]
  68. local RH = char.Torso["Right Hip"]
  69. local LH = char.Torso["Left Hip"]
  70. local neck = char.Torso["Neck"]
  71. local anim = "Idle"
  72. local animate = char.Animate
  73. local root = char.HumanoidRootPart
  74. local rootj = root.RootJoint
  75. local timepos = 0
  76. local sine = 0
  77. local RSnor = RS.C0
  78. local LSnor = LS.C0
  79. local RHnor = RH.C0
  80. local LHnor = LH.C0
  81. local RSnor2 = RS.C1
  82. local LSnor2 = LS.C1
  83. local RHnor2 = RH.C1
  84. local LHnor2 = LH.C1
  85. local rootjnor = rootj.C0
  86. local necknor = neck.C0
  87. local tors = char.Torso
  88. hum.Animator:remove()
  89. mouse = plr:GetMouse()
  90. hold = false
  91. Debris = game:GetService("Debris")
  92.  
  93. local dustp = Instance.new("Part",char)
  94. dustp.Transparency = 1
  95. dustp.Size = Vector3.new(0.1, 0.1, 0.1)
  96. dustp.CanCollide = false
  97. dustp.Locked = true
  98. local dustj = ezweld(char, root, dustp, CFrame.new(0, -tors.Size.y - 0.5, 0))
  99. local dust = Instance.new("ParticleEmitter",dustp)
  100. dust.Rate = 3
  101. dust.Lifetime = NumberRange.new(0.35)
  102. dust.Texture = "rbxassetid://420061161"
  103. dust.Speed = NumberRange.new(2)
  104. dust.EmissionDirection = "Back"
  105. dust.Rotation = NumberRange.new(155)
  106. dust.RotSpeed = NumberRange.new(15)
  107. dust.Enabled = false
  108. dust.Size = NumberSequence.new(tors.Size.y - 1.5, tors.Size.y - 0.75)
  109. dust.Transparency = NumberSequence.new(0.25, 1)
  110. sped = 16
  111. hee = 15
  112. ae = false
  113. emrad = 0
  114.  
  115. function RayCast(Position, Direction, Range, Ignore)
  116. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  117. end
  118.  
  119. function clerpie(a, b, t)
  120. return a:lerp(b, t)
  121. end
  122.  
  123. function thread(f)
  124. return coroutine.resume(coroutine.create(f))
  125. end
  126.  
  127. function trip(h, t)
  128. if h.PlatformStand ~= true then
  129. h.PlatformStand = true
  130. thread(function()
  131. wait(t)
  132. h.PlatformStand = false
  133. end)
  134. end
  135. end
  136.  
  137. function chatFunc(msg, timr, col, size)
  138. spawn(function()
  139. local namebillboard = Instance.new("BillboardGui")
  140. local textt = Instance.new("TextLabel")
  141. namebillboard.Size = UDim2.new(9/1.5, 0, 1, 0)
  142. namebillboard.Name = "NameBillboard"
  143. namebillboard.StudsOffset = Vector3.new(0, 0.75, 2)
  144. namebillboard.Parent = char.Head
  145. namebillboard.Adornee = hed
  146. textt.TextWrapped = true
  147. textt.BackgroundTransparency = 1
  148. textt.BackgroundColor3 = Color3.new(1, 1, 1)
  149. textt.TextSize = size or 14
  150. textt.TextScaled = true
  151. textt.Font = Enum.Font.Fantasy
  152. textt.Text = msg or ''
  153. textt.TextStrokeTransparency = 0
  154. textt.TextStrokeColor3 = Color3.new(0,0,0)
  155. textt.TextColor = col
  156. textt.Size = UDim2.new(1, 0, 1, 0)
  157. textt.Parent = namebillboard
  158. local RM = math.random(1,2)
  159. local DR = 0
  160. for i=1,timr do Swait()
  161. if RM == 1 then
  162. DR = DR + 1
  163. namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.sin(DR/(timr/2.5)), 2)
  164. textt.TextStrokeTransparency = i/timr
  165. textt.TextTransparency = i/timr
  166. textt.Rotation = 7.5*math.cos(DR/(timr/2))
  167. elseif RM == 2 then
  168. DR = DR + 1
  169. namebillboard.StudsOffset = Vector3.new(0, 0.75+2.5*math.sin(DR/(timr/2.5)), 2)
  170. textt.TextStrokeTransparency = i/timr
  171. textt.TextTransparency = i/timr
  172. textt.Rotation = 7.5*-math.cos(DR/(timr/2))
  173. end
  174. end
  175. namebillboard:Destroy()
  176. end)
  177. end
  178.  
  179. function deds(model, E)
  180. model.Archivable = true
  181. local clone = model:Clone()
  182. clone:FindFirstChildOfClass("Humanoid").Health = 100
  183. clone:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  184. clone.Parent = workspace
  185. --WhenHit(clone:FindFirstChildOfClass("Humanoid"), E, '')
  186. --Ragdoll(clone)
  187. for i,v in pairs (model:children()) do
  188. if v:IsA("Part") then
  189. v:remove()
  190. end
  191. end
  192. Debris:AddItem(clone, 7)
  193. end
  194.  
  195. Player_Size = 1
  196. angles = CFrame.Angles
  197. CF = CFrame.new
  198. script.Parent = char
  199.  
  200. chatFunc("できました! あなたの人生のために走ります!", 55, BrickColor.new("Royal purple"), 14)
  201.  
  202. plr.Chatted:connect(function(msg)
  203. chatFunc(msg, 45, BrickColor.new("Royal purple"), 14)
  204. end)
  205.  
  206. function spark(cf, s1, s2, col, u, mat, ec)
  207. if not char:FindFirstChild("cool") then
  208. local cool = Instance.new("NumberValue", char)
  209. cool.Name = "cool"
  210. game:GetService("Debris"):AddItem(cool, ec)
  211. local spark = Instance.new("Part", script)
  212. spark.Size = s1
  213. spark.BrickColor = BrickColor.new(col)
  214. spark.Material = mat
  215. spark.CFrame = cf
  216. spark.Anchored = true
  217. spark.Locked = true
  218. spark.CanCollide = false
  219. local mesh = Instance.new("SpecialMesh", spark)
  220. mesh.MeshType = "Sphere"
  221. coroutine.resume(coroutine.create(function()
  222. for i = 1,35 do
  223. Swait()
  224. spark.Anchored = true
  225. spark.CanCollide = false
  226. spark.Transparency = spark.Transparency + 0.05
  227. spark.Size = spark.Size:Lerp(s2, 0.05)
  228. spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
  229. end
  230. spark:remove()
  231. end))
  232. end
  233. end
  234.  
  235. function sparknc(cf, s1, s2, col, u, mat, ec)
  236. --if not char:FindFirstChild("cool") then
  237. local cool = Instance.new("NumberValue", char)
  238. cool.Name = "cool"
  239. game:GetService("Debris"):AddItem(cool, ec)
  240. local spark = Instance.new("Part", script)
  241. spark.Size = s1
  242. spark.BrickColor = BrickColor.new(col)
  243. spark.Material = mat
  244. spark.CFrame = cf
  245. spark.Anchored = true
  246. spark.Locked = true
  247. spark.CanCollide = false
  248. local mesh = Instance.new("SpecialMesh", spark)
  249. mesh.MeshType = "Sphere"
  250. coroutine.resume(coroutine.create(function()
  251. for i = 1,35 do
  252. Swait()
  253. spark.Anchored = true
  254. spark.CanCollide = false
  255. spark.Transparency = spark.Transparency + 0.05
  256. spark.Size = spark.Size:Lerp(s2, 0.05)
  257. spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
  258. end
  259. spark:remove()
  260. end))
  261. --end
  262. end
  263.  
  264. function sqe(cf, s1, s2, col, col2, u, mat, ec)
  265. if not char:FindFirstChild("cool2") then
  266. local cool = Instance.new("NumberValue", char)
  267. cool.Name = "cool2"
  268. game:GetService("Debris"):AddItem(cool, ec)
  269. local spark = Instance.new("Part", script)
  270. spark.Size = s1
  271. spark.BrickColor = BrickColor.new(col)
  272. spark.Material = mat
  273. spark.CFrame = cf
  274. spark.Anchored = true
  275. spark.Locked = true
  276. spark.CanCollide = false
  277. spark.Transparency = 0
  278. coroutine.resume(coroutine.create(function()
  279. for i = 1,35 do
  280. Swait()
  281. spark.Anchored = true
  282. spark.CanCollide = false
  283. spark.Transparency = spark.Transparency + 0.05
  284. spark.Size = spark.Size:Lerp(s2, 0.05)
  285. spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
  286. spark.Color = spark.Color:lerp(BrickColor.new(col2).Color, 0.05)
  287. end
  288. spark:remove()
  289. end))
  290. end
  291. return spark
  292. end
  293.  
  294. function sqe2(cf, s1, s2, col, col2, u, mat, ec, t)
  295. if not char:FindFirstChild("cool2") then
  296. local cool = Instance.new("NumberValue", char)
  297. cool.Name = "cool2"
  298. game:GetService("Debris"):AddItem(cool, ec)
  299. local spark = Instance.new("Part", script)
  300. spark.Size = s1
  301. spark.BrickColor = BrickColor.new(col)
  302. spark.Material = mat
  303. spark.CFrame = cf
  304. spark.Anchored = true
  305. spark.Locked = true
  306. spark.CanCollide = false
  307. spark.Transparency = 0
  308. coroutine.resume(coroutine.create(function()
  309. for i = 1,35 do
  310. Swait()
  311. spark.Anchored = true
  312. spark.CanCollide = false
  313. spark.Transparency = spark.Transparency + t
  314. spark.Size = spark.Size:Lerp(s2, 0.05)
  315. spark.CFrame = spark.CFrame * CFrame.new(0, u, 0)
  316. spark.Color = spark.Color:lerp(BrickColor.new(col2).Color, 0.05)
  317. end
  318. spark:remove()
  319. end))
  320. end
  321. return spark
  322. end
  323.  
  324. function pulse()
  325. attack = true
  326. local lastcf = false
  327. local E = 0
  328. for i = 1,15 do
  329. Swait()
  330. local A = 0.35
  331. sqe2(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(8, 8, 8), "Dark indigo", "Royal purple", 0, "Neon", 0.085, 0.1)
  332. dust.Enabled = false
  333. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(0)), 0.3)
  334. clerp(neck, necknor * CFrame.Angles(Rad(15), 0, Rad(-0)), 0.3)
  335. clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 0), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  336. clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 0), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  337. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
  338. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 0), Rad(15)), 0.3)
  339. end
  340. for i = 1,15 do
  341. Swait()
  342. dust.Enabled = false
  343. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(0)), 0.3)
  344. clerp(neck, necknor * CFrame.Angles(Rad(-15), 0, Rad(-0)), 0.3)
  345. clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 0), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  346. clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 0), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  347. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
  348. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 0), Rad(-180)), 0.3)
  349. E = E - 2
  350. if lastcf == false then
  351. local a = 0
  352. local fp = sparknc(root.CFrame * CFrame.new(0, 0, 0), Vector3.new(2, 0.1, 2), Vector3.new(2, 45, 2), "Royal purple", 0, "Neon", 0)
  353. lastcf = true
  354. else
  355. local a = 0
  356. local fp = sparknc(root.CFrame * CFrame.new(0, 0, E), Vector3.new(2, 0.1, 2), Vector3.new(2, 45, 2), "Royal purple", 0, "Neon", 0)
  357. end
  358. end
  359. attack = false
  360. end
  361.  
  362. mouse.KeyDown:connect(function(key)
  363. if key == "e" then
  364. pulse()
  365. end
  366. end)
  367.  
  368. warn'so my friends web died, back to paste for now. by youngmacka123'
  369.  
  370. while true do
  371. Swait()
  372. sine = sine + 1
  373. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  374. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  375. local WALKSPEEDVALUE = 7 / (hum.WalkSpeed / 17)
  376. torsverticalvel = root.Velocity.y
  377. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  378. if hitfloor and attack == false then
  379. local a = 6
  380. local fp = spark(hitfloor.CFrame * CFrame.new(root.CFrame.x + math.random(-a, a), 0, root.CFrame.z + math.random(-a, a)), Vector3.new(0.45, 0.1, 0.45), Vector3.new(0.45, 45, 0.45), "Royal purple", 0, "Neon", 0.1)
  381. end
  382. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  383. anim = "Idle"
  384. if attack == false then
  385. local A = 1.25
  386. sqe(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(0.35, 0.35, 0.35), "Royal purple", "Dark indigo", 0, "Neon", 0.065)
  387. dust.Enabled = false
  388. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-3 * Sin(sine / 26)), 0, Rad(25)), 0.3)
  389. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(-25)), 0.3)
  390. clerp(RH, RHnor * CFrame.Angles(Rad(-2), Rad(-7 - 15), Rad(-3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  391. clerp(LH, LHnor * CFrame.Angles(Rad(-1), Rad(7 + 15), Rad(3 * Sin(sine / 26))) * CFrame.new(0, 0, 0), 0.3)
  392. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(-7), Rad(0)), 0.3)
  393. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7 - 25), Rad(-155)), 0.3)
  394. end
  395. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  396. anim = "Walk"
  397. if attack == false then
  398. local A = 1.25
  399. sqe(la.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))), Vector3.new(A, A, A), Vector3.new(0.35, 0.35, 0.35), "Royal purple", "Dark indigo", 0, "Neon", 0.1)
  400. dust.Enabled = false
  401. rootj.C0 = clerpie(rootj.C0, rootjnor * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3.5 * Cos(sine / 7))), 0.15)
  402. --clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  403. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(-2.5 * Cos(sine / 7))), 0.3)
  404. RH.C0 = clerpie(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  405. LH.C0 = clerpie(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  406. --clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(-15 + 15 * Sin(sine / 7))) * CFrame.new(0.15 * Sin(sine / 7), (0.05 / 2) + 0.05 * Sin(sine / 3.5), 0), 0.3)
  407. --clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(15 + 15 * Sin(sine / 7))) * CFrame.new(0.15 * Sin(sine / 7), (0.05 / 2) + 0.05 * Sin(sine / 3.5), 0), 0.3)
  408. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75.5) * Cos(sine / 7) / 2.5), 0.3)
  409. --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(75.5) * Cos(sine / 7) / 2.5), 0.3)
  410. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-2), Rad(7), Rad(-155)), 0.3)
  411. end
  412. elseif torsverticalvel > 0.05 and hitfloor == nil then
  413. anim = "Jump"
  414. if attack == false then
  415. dust.Enabled = false
  416. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), 0, 0), 0.3)
  417. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  418. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0.25, 0, 0), 0.3)
  419. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, 0, 0), 0.3)
  420. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(-7), 0), 0.3)
  421. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(7), 0), 0.3)
  422. end
  423. elseif torsverticalvel < 0.05 and hitfloor == nil then
  424. anim = "Fall"
  425. if attack == false then
  426. dust.Enabled = false
  427. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), 0, 0), 0.3)
  428. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)), 0.3)
  429. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0.25, 0, 0), 0.3)
  430. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, 0, 0), 0.3)
  431. clerp(RS, RSnor * CFrame.new(0, 0.35, 0.75) * CFrame.Angles(Rad(-135), 0, 0), 0.3)
  432. clerp(LS, LSnor * CFrame.new(0, 0.35, 0.75) * CFrame.Angles(Rad(-135), 0, 0), 0.3)
  433. end
  434. end
  435. end
Add Comment
Please, Sign In to add comment