Advertisement
HuyEvilDumb

D E J A V U

May 27th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.07 KB | None | 0 0
  1. ---------------------------------
  2.  
  3. --Made by QehNoob-----------
  4. --my first fucking actual script please support--
  5. --kill me------------------------
  6.  
  7. ---------------------------------
  8. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  9. txtfag.Adornee = suckadick
  10. txtfag.Name = "kys nigga"
  11. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  12. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  13. local textfag = Instance.new("TextLabel", txtfag)
  14. textfag.Size = UDim2.new(6, 0, 1, 0)
  15. textfag.FontSize = "Size8"
  16. textfag.TextScaled = true
  17. textfag.TextTransparency = 0
  18. textfag.BackgroundTransparency = 1
  19. textfag.TextTransparency = 0
  20. textfag.TextStrokeTransparency = 0
  21. textfag.Font = "Arcade"
  22. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  23. v = Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent = part
  26. v.FormFactor = "Symmetric"
  27. v.Anchored = true
  28. v.CanCollide = false
  29. v.BottomSurface = "Smooth"
  30. v.TopSurface = "Smooth"
  31. v.Size = Vector3.new(10, 5, 3)
  32. v.Transparency = 0.7
  33. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  34. v.Transparency = 1
  35. textfag.TextColor3 = v.BrickColor.Color
  36. textfag.TextStrokeColor3 = Color3.new(0, 0, 0)
  37. v.Shape = "Block"
  38. textfag.Text = "Deja Vu made by QehNoob, enjoy"
  39. wait(2)
  40. textfag.Text = "support pls"
  41. wait(0.3)
  42. textfag.Text = game.Players.LocalPlayer.Character.Name.." the DejaVu man"
  43. ---------------------------------
  44. wait(0.2)
  45. local Player = game:service'Players'.localPlayer
  46. local chara = Player.Character
  47. Player=game:GetService("Players").LocalPlayer
  48. Character=Player.Character
  49. PlayerGui=Player.PlayerGui
  50. Backpack=Player.Backpack
  51. Torso=Character.Torso
  52. Head=Character.Head
  53. Humanoid=Character.Humanoid
  54. m=Instance.new('Model',Character)
  55. LeftArm=Character["Left Arm"]
  56. LeftLeg=Character["Left Leg"]
  57. RightArm=Character["Right Arm"]
  58. RightLeg=Character["Right Leg"]
  59. LS=Torso["Left Shoulder"]
  60. LH=Torso["Left Hip"]
  61. RS=Torso["Right Shoulder"]
  62. RH=Torso["Right Hip"]
  63. Face = Head.face
  64. Neck=Torso.Neck
  65. it=Instance.new
  66. attacktype=1
  67. vt=Vector3.new
  68. cf=CFrame.new
  69. cl3=Color3.new
  70. rgb=Color3.fromRGB
  71. bcn=BrickColor.new
  72. euler=CFrame.fromEulerAnglesXYZ
  73. angles=CFrame.Angles
  74. Humanoid.WalkSpeed = 42
  75. Player = game:GetService("Players").LocalPlayer
  76. PlayerGui = Player.PlayerGui
  77. Cam = workspace.CurrentCamera
  78. Backpack = Player.Backpack
  79. Character = Player.Character
  80. Humanoid = Character.Humanoid
  81. Sound0 = Instance.new("Sound")
  82. Sound0.Volume = 1000
  83. Sound0.Parent = game.Players.LocalPlayer.Character.Head
  84. Sound0.SoundId = "rbxassetid://594274955"
  85. Sound0.Looped = true
  86. Sound0:Play()
  87. Mouse = Player:GetMouse()
  88. RootPart = Character["HumanoidRootPart"]
  89. Torso = Character["Torso"]
  90. Head = Character["Head"]
  91. RightArm = Character["Right Arm"]
  92. LeftArm = Character["Left Arm"]
  93. RightLeg = Character["Right Leg"]
  94. LeftLeg = Character["Left Leg"]
  95. RootJoint = RootPart["RootJoint"]
  96. Neck = Torso["Neck"]
  97. RightShoulder = Torso["Right Shoulder"]
  98. LeftShoulder = Torso["Left Shoulder"]
  99. RightHip = Torso["Right Hip"]
  100. LeftHip = Torso["Left Hip"]
  101. IT = Instance.new
  102. CF = CFrame.new
  103. VT = Vector3.new
  104. RAD = math.rad
  105. C3 = Color3.new
  106. UD2 = UDim2.new
  107. BRICKC = BrickColor.new
  108. ANGLES = CFrame.Angles
  109. EULER = CFrame.fromEulerAnglesXYZ
  110. COS = math.cos
  111. ACOS = math.acos
  112. SIN = math.sin
  113. ASIN = math.asin
  114. ABS = math.abs
  115. MRANDOM = math.random
  116. FLOOR = math.floor
  117. Animation_Speed = 3
  118. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  119. local Speed = 12
  120. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  121. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  122. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  123. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  124. local DAMAGEMULTIPLIER = 1
  125. local ANIM = "Idle"
  126. local ATTACK = false
  127. local EQUIPPED = false
  128. local HOLD = false
  129. local COMBO = 1
  130. local Rooted = false
  131. local SINE = 0
  132. local KEYHOLD = false
  133. local CHANGE = 2 / Animation_Speed
  134. local WALKINGANIM = false
  135. local VALUE1 = false
  136. local VALUE2 = false
  137. local ROBLOXIDLEANIMATION = IT("Animation")
  138. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  139. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  140. --ROBLOXIDLEANIMATION.Parent = Humanoid
  141. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  142. WEAPONGUI.Name = "Weapon GUI"
  143. local Weapon = IT("Model")
  144. Weapon.Name = "Adds"
  145. local Effects = IT("Folder", Weapon)
  146. Effects.Name = "Effects"
  147. local ANIMATOR = Humanoid.Animator
  148. local ANIMATE = Character.Animate
  149. local UNANCHOR = true
  150. local PLAYANIMS = true
  151. ArtificialHB = Instance.new("BindableEvent", script)
  152. ArtificialHB.Name = "ArtificialHB"
  153.  
  154. script:WaitForChild("ArtificialHB")
  155.  
  156. frame = Frame_Speed
  157. tf = 0
  158. allowframeloss = false
  159. tossremainder = false
  160. lastframe = tick()
  161. script.ArtificialHB:Fire()
  162.  
  163. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  164. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  165. end
  166.  
  167. function PositiveAngle(NUMBER)
  168. if NUMBER >= 0 then
  169. NUMBER = 0
  170. end
  171. return NUMBER
  172. end
  173.  
  174. function NegativeAngle(NUMBER)
  175. if NUMBER <= 0 then
  176. NUMBER = 0
  177. end
  178. return NUMBER
  179. end
  180.  
  181. function Swait(NUMBER)
  182. if NUMBER == 0 or NUMBER == nil then
  183. ArtificialHB.Event:wait()
  184. else
  185. for i = 1, NUMBER do
  186. ArtificialHB.Event:wait()
  187. end
  188. end
  189. end
  190.  
  191. function QuaternionFromCFrame(cf)
  192. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  193. local trace = m00 + m11 + m22
  194. if trace > 0 then
  195. local s = math.sqrt(1 + trace)
  196. local recip = 0.5 / s
  197. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  198. else
  199. local i = 0
  200. if m11 > m00 then
  201. i = 1
  202. end
  203. if m22 > (i == 0 and m00 or m11) then
  204. i = 2
  205. end
  206. if i == 0 then
  207. local s = math.sqrt(m00 - m11 - m22 + 1)
  208. local recip = 0.5 / s
  209. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  210. elseif i == 1 then
  211. local s = math.sqrt(m11 - m22 - m00 + 1)
  212. local recip = 0.5 / s
  213. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  214. elseif i == 2 then
  215. local s = math.sqrt(m22 - m00 - m11 + 1)
  216. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  217. end
  218. end
  219. end
  220.  
  221. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  222. local xs, ys, zs = x + x, y + y, z + z
  223. local wx, wy, wz = w * xs, w * ys, w * zs
  224. local xx = x * xs
  225. local xy = x * ys
  226. local xz = x * zs
  227. local yy = y * ys
  228. local yz = y * zs
  229. local zz = z * zs
  230. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  231. end
  232.  
  233. function QuaternionSlerp(a, b, t)
  234. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  235. local startInterp, finishInterp;
  236. if cosTheta >= 0.0001 then
  237. if (1 - cosTheta) > 0.0001 then
  238. local theta = ACOS(cosTheta)
  239. local invSinTheta = 1 / SIN(theta)
  240. startInterp = SIN((1 - t) * theta) * invSinTheta
  241. finishInterp = SIN(t * theta) * invSinTheta
  242. else
  243. startInterp = 1 - t
  244. finishInterp = t
  245. end
  246. else
  247. if (1 + cosTheta) > 0.0001 then
  248. local theta = ACOS(-cosTheta)
  249. local invSinTheta = 1 / SIN(theta)
  250. startInterp = SIN((t - 1) * theta) * invSinTheta
  251. finishInterp = SIN(t * theta) * invSinTheta
  252. else
  253. startInterp = t - 1
  254. finishInterp = t
  255. end
  256. end
  257. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  258. end
  259.  
  260. function Clerp(a, b, t)
  261. local qa = {QuaternionFromCFrame(a)}
  262. local qb = {QuaternionFromCFrame(b)}
  263. local ax, ay, az = a.x, a.y, a.z
  264. local bx, by, bz = b.x, b.y, b.z
  265. local _t = 1 - t
  266. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  267. end
  268.  
  269. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  270. local frame = IT("Frame")
  271. frame.BackgroundTransparency = TRANSPARENCY
  272. frame.BorderSizePixel = BORDERSIZEPIXEL
  273. frame.Position = POSITION
  274. frame.Size = SIZE
  275. frame.BackgroundColor3 = COLOR
  276. frame.BorderColor3 = BORDERCOLOR
  277. frame.Name = NAME
  278. frame.Parent = PARENT
  279. return frame
  280. end
  281.  
  282. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  283. local label = IT("TextLabel")
  284. label.BackgroundTransparency = 1
  285. label.Size = UD2(1, 0, 1, 0)
  286. label.Position = UD2(0, 0, 0, 0)
  287. label.TextColor3 = TEXTCOLOR
  288. label.TextStrokeTransparency = STROKETRANSPARENCY
  289. label.TextTransparency = TRANSPARENCY
  290. label.FontSize = TEXTFONTSIZE
  291. label.Font = TEXTFONT
  292. label.BorderSizePixel = BORDERSIZEPIXEL
  293. label.TextScaled = false
  294. label.Text = TEXT
  295. label.Name = NAME
  296. label.Parent = PARENT
  297. return label
  298. end
  299.  
  300. function NoOutlines(PART)
  301. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  302. end
  303.  
  304.  
  305. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  306. local NEWWELD = IT(TYPE)
  307. NEWWELD.Part0 = PART0
  308. NEWWELD.Part1 = PART1
  309. NEWWELD.C0 = C0
  310. NEWWELD.C1 = C1
  311. NEWWELD.Parent = PARENT
  312. return NEWWELD
  313. end
  314.  
  315. local S = IT("Sound")
  316.  
  317. function CreateSound(ID, PARENT, VOLUME, PITCH)
  318. local NEWSOUND = nil
  319. coroutine.resume(coroutine.create(function()
  320. NEWSOUND = S:Clone()
  321. NEWSOUND.Parent = PARENT
  322. NEWSOUND.Volume = VOLUME
  323. NEWSOUND.Pitch = PITCH
  324. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  325. Swait()
  326. NEWSOUND:play()
  327. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  328. end))
  329. return NEWSOUND
  330. end
  331.  
  332. function CFrameFromTopBack(at, top, back)
  333. local right = top:Cross(back)
  334. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  335. end
  336.  
  337. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  338. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  339. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  340. wave.CFrame = CFRAME
  341. coroutine.resume(coroutine.create(function(PART)
  342. for i = 1, WAIT do
  343. Swait()
  344. mesh.Scale = mesh.Scale + GROW
  345. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  346. if DOESROT == true then
  347. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  348. end
  349. wave.Transparency = wave.Transparency + (0.5/WAIT)
  350. if wave.Transparency > 0.99 then
  351. wave:remove()
  352. end
  353. end
  354. end))
  355. end
  356.  
  357. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  358. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  359. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  360. wave.CFrame = CFRAME
  361. coroutine.resume(coroutine.create(function(PART)
  362. for i = 1, WAIT do
  363. Swait()
  364. mesh.Scale = mesh.Scale + GROW
  365. if DOESROT == true then
  366. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  367. end
  368. wave.Transparency = wave.Transparency + (0.5/WAIT)
  369. if wave.Transparency > 0.99 then
  370. wave:remove()
  371. end
  372. end
  373. end))
  374. end
  375.  
  376. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  377. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  378. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  379. wave.CFrame = CFRAME
  380. coroutine.resume(coroutine.create(function(PART)
  381. for i = 1, WAIT do
  382. Swait()
  383. mesh.Scale = mesh.Scale + GROW
  384. wave.Transparency = wave.Transparency + (1/WAIT)
  385. if wave.Transparency > 0.99 then
  386. wave:remove()
  387. end
  388. end
  389. end))
  390. end
  391.  
  392. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  393. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  394. local mesh = nil
  395. if KIND == "Base" then
  396. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  397. elseif KIND == "Thin" then
  398. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  399. elseif KIND == "Round" then
  400. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  401. end
  402. wave.CFrame = CFRAME
  403. coroutine.resume(coroutine.create(function(PART)
  404. for i = 1, WAIT do
  405. Swait()
  406. mesh.Scale = mesh.Scale + GROW/10
  407. wave.Transparency = wave.Transparency + (0.5/WAIT)
  408. if wave.Transparency > 0.99 then
  409. wave:remove()
  410. end
  411. end
  412. end))
  413. end
  414.  
  415. function MakeForm(PART,TYPE)
  416. if TYPE == "Cyl" then
  417. local MSH = IT("CylinderMesh",PART)
  418. elseif TYPE == "Ball" then
  419. local MSH = IT("SpecialMesh",PART)
  420. MSH.MeshType = "Sphere"
  421. elseif TYPE == "Wedge" then
  422. local MSH = IT("SpecialMesh",PART)
  423. MSH.MeshType = "Wedge"
  424. end
  425. end
  426.  
  427.  
  428. function CheckTableForString(Table, String)
  429. for i, v in pairs(Table) do
  430. if string.find(string.lower(String), string.lower(v)) then
  431. return true
  432. end
  433. end
  434. return false
  435. end
  436.  
  437. function CheckIntangible(Hit)
  438. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  439. if Hit and Hit.Parent then
  440. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  441. return true
  442. end
  443. end
  444. return false
  445. end
  446.  
  447. Debris = game:GetService("Debris")
  448.  
  449. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  450. local Direction = CFrame.new(StartPos, Vec).lookVector
  451. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  452. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  453. if RayHit and CheckIntangible(RayHit) then
  454. if DelayIfHit then
  455. wait()
  456. end
  457. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  458. end
  459. return RayHit, RayPos, RayNormal
  460. end
  461.  
  462. function turnto(position)
  463. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  464. end
  465.  
  466.  
  467.  
  468. game:GetService("RunService").Heartbeat:connect(function(s, p)
  469. tf = tf + s
  470. if tf >= frame then
  471. if allowframeloss then
  472. script.ArtificialHB:Fire()
  473. lastframe = tick()
  474. else
  475. for i = 1, math.floor(tf / frame) do
  476. script.ArtificialHB:Fire()
  477. end
  478. lastframe = tick()
  479. end
  480. if tossremainder then
  481. tf = 0
  482. else
  483. tf = tf - frame * math.floor(tf / frame)
  484. end
  485. end
  486. end)
  487. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  488. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  489. end
  490.  
  491. function PositiveAngle(NUMBER)
  492. if NUMBER >= 0 then
  493. NUMBER = 0
  494. end
  495. return NUMBER
  496. end
  497.  
  498. function NegativeAngle(NUMBER)
  499. if NUMBER <= 0 then
  500. NUMBER = 0
  501. end
  502. return NUMBER
  503. end
  504.  
  505. function Swait(NUMBER)
  506. if NUMBER == 0 or NUMBER == nil then
  507. ArtificialHB.Event:wait()
  508. else
  509. for i = 1, NUMBER do
  510. ArtificialHB.Event:wait()
  511. end
  512. end
  513. end
  514.  
  515. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  516. local NEWMESH = IT(MESH)
  517. if MESH == "SpecialMesh" then
  518. NEWMESH.MeshType = MESHTYPE
  519. if MESHID ~= "nil" and MESHID ~= "" then
  520. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  521. end
  522. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  523. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  524. end
  525. end
  526. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  527. NEWMESH.Scale = SCALE
  528. NEWMESH.Parent = PARENT
  529. return NEWMESH
  530. end
  531.  
  532. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  533. local NEWPART = IT("Part")
  534. NEWPART.formFactor = FORMFACTOR
  535. NEWPART.Reflectance = REFLECTANCE
  536. NEWPART.Transparency = TRANSPARENCY
  537. NEWPART.CanCollide = false
  538. NEWPART.Locked = true
  539. NEWPART.Anchored = true
  540. if ANCHOR == false then
  541. NEWPART.Anchored = false
  542. end
  543. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  544. NEWPART.Name = NAME
  545. NEWPART.Size = SIZE
  546. NEWPART.Position = Torso.Position
  547. NEWPART.Material = MATERIAL
  548. NEWPART:BreakJoints()
  549. NEWPART.Parent = PARENT
  550. return NEWPART
  551. end
  552.  
  553. local function weldBetween(a, b)
  554. local weldd = Instance.new("ManualWeld")
  555. weldd.Part0 = a
  556. weldd.Part1 = b
  557. weldd.C0 = CFrame.new()
  558. weldd.C1 = b.CFrame:inverse() * a.CFrame
  559. weldd.Parent = a
  560. return weldd
  561. end
  562.  
  563.  
  564. function QuaternionFromCFrame(cf)
  565. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  566. local trace = m00 + m11 + m22
  567. if trace > 0 then
  568. local s = math.sqrt(1 + trace)
  569. local recip = 0.5 / s
  570. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  571. else
  572. local i = 0
  573. if m11 > m00 then
  574. i = 1
  575. end
  576. if m22 > (i == 0 and m00 or m11) then
  577. i = 2
  578. end
  579. if i == 0 then
  580. local s = math.sqrt(m00 - m11 - m22 + 1)
  581. local recip = 0.5 / s
  582. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  583. elseif i == 1 then
  584. local s = math.sqrt(m11 - m22 - m00 + 1)
  585. local recip = 0.5 / s
  586. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  587. elseif i == 2 then
  588. local s = math.sqrt(m22 - m00 - m11 + 1)
  589. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  590. end
  591. end
  592. end
  593.  
  594. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  595. local xs, ys, zs = x + x, y + y, z + z
  596. local wx, wy, wz = w * xs, w * ys, w * zs
  597. local xx = x * xs
  598. local xy = x * ys
  599. local xz = x * zs
  600. local yy = y * ys
  601. local yz = y * zs
  602. local zz = z * zs
  603. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  604. end
  605.  
  606. function QuaternionSlerp(a, b, t)
  607. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  608. local startInterp, finishInterp;
  609. if cosTheta >= 0.0001 then
  610. if (1 - cosTheta) > 0.0001 then
  611. local theta = ACOS(cosTheta)
  612. local invSinTheta = 1 / SIN(theta)
  613. startInterp = SIN((1 - t) * theta) * invSinTheta
  614. finishInterp = SIN(t * theta) * invSinTheta
  615. else
  616. startInterp = 1 - t
  617. finishInterp = t
  618. end
  619. else
  620. if (1 + cosTheta) > 0.0001 then
  621. local theta = ACOS(-cosTheta)
  622. local invSinTheta = 1 / SIN(theta)
  623. startInterp = SIN((t - 1) * theta) * invSinTheta
  624. finishInterp = SIN(t * theta) * invSinTheta
  625. else
  626. startInterp = t - 1
  627. finishInterp = t
  628. end
  629. end
  630. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  631. end
  632.  
  633. function Clerp(a, b, t)
  634. local qa = {QuaternionFromCFrame(a)}
  635. local qb = {QuaternionFromCFrame(b)}
  636. local ax, ay, az = a.x, a.y, a.z
  637. local bx, by, bz = b.x, b.y, b.z
  638. local _t = 1 - t
  639. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  640. end
  641.  
  642. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  643. local frame = IT("Frame")
  644. frame.BackgroundTransparency = TRANSPARENCY
  645. frame.BorderSizePixel = BORDERSIZEPIXEL
  646. frame.Position = POSITION
  647. frame.Size = SIZE
  648. frame.BackgroundColor3 = COLOR
  649. frame.BorderColor3 = BORDERCOLOR
  650. frame.Name = NAME
  651. frame.Parent = PARENT
  652. return frame
  653. end
  654.  
  655. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  656. local label = IT("TextLabel")
  657. label.BackgroundTransparency = 1
  658. label.Size = UD2(1, 0, 1, 0)
  659. label.Position = UD2(0, 0, 0, 0)
  660. label.TextColor3 = TEXTCOLOR
  661. label.TextStrokeTransparency = STROKETRANSPARENCY
  662. label.TextTransparency = TRANSPARENCY
  663. label.FontSize = TEXTFONTSIZE
  664. label.Font = TEXTFONT
  665. label.BorderSizePixel = BORDERSIZEPIXEL
  666. label.TextScaled = false
  667. label.Text = TEXT
  668. label.Name = NAME
  669. label.Parent = PARENT
  670. return label
  671. end
  672.  
  673. function NoOutlines(PART)
  674. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  675. end
  676.  
  677. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  678. local NEWWELD = IT(TYPE)
  679. NEWWELD.Part0 = PART0
  680. NEWWELD.Part1 = PART1
  681. NEWWELD.C0 = C0
  682. NEWWELD.C1 = C1
  683. NEWWELD.Parent = PARENT
  684. return NEWWELD
  685. end
  686.  
  687. local S = IT("Sound")
  688. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  689. local NEWSOUND = nil
  690. coroutine.resume(coroutine.create(function()
  691. NEWSOUND = S:Clone()
  692. NEWSOUND.Parent = PARENT
  693. NEWSOUND.Volume = VOLUME
  694. NEWSOUND.Pitch = PITCH
  695. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  696. NEWSOUND:play()
  697. if DOESLOOP == true then
  698. NEWSOUND.Looped = true
  699. else
  700. repeat wait(1) until NEWSOUND.Playing == false
  701. NEWSOUND:remove()
  702. end
  703. end))
  704. return NEWSOUND
  705. end
  706.  
  707. function MakeForm(PART,TYPE)
  708. if TYPE == "Cyl" then
  709. local MSH = IT("CylinderMesh",PART)
  710. elseif TYPE == "Ball" then
  711. local MSH = IT("SpecialMesh",PART)
  712. MSH.MeshType = "Sphere"
  713. elseif TYPE == "Wedge" then
  714. local MSH = IT("SpecialMesh",PART)
  715. MSH.MeshType = "Wedge"
  716. end
  717. end
  718.  
  719. function CFrameFromTopBack(at, top, back)
  720. local right = top:Cross(back)
  721. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  722. end
  723.  
  724. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  725. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  726. if HITFLOOR ~= nil then
  727. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  728. if HITFLOOR.Name == "BloodPuddle" then
  729. local DIST = (Position - HITFLOOR.Position).Magnitude
  730. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  731. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  732. end
  733. else
  734. if HITFLOOR.Anchored == true then
  735. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  736. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  737. MakeForm(BLOOD,"Cyl")
  738. coroutine.resume(coroutine.create(function()
  739. Swait(75)
  740. while true do
  741. Swait()
  742. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  743. if BLOOD.Size.Z < 0.051 then
  744. BLOOD:remove()
  745. break
  746. end
  747. end
  748. end))
  749. end
  750. end
  751. end
  752. end
  753. end
  754.  
  755. function SprayBlood(POSITION,DIRECTION,BloodSize)
  756. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
  757. BLOOD.CFrame = CF(POSITION)
  758. MakeForm(BLOOD,"Ball")
  759. local bv = Instance.new("BodyVelocity",BLOOD)
  760. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  761. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
  762. bv.Name = "MOVE"
  763. Debris:AddItem(bv,0.05)
  764. coroutine.resume(coroutine.create(function()
  765. local HASTOUCHEDGROUND = false
  766. local HIT = BLOOD.Touched:Connect(function(hit)
  767. if hit.Anchored == true then
  768. HASTOUCHEDGROUND = true
  769. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  770. end
  771. end)
  772. wait(5)
  773. if HASTOUCHEDGROUND == false then
  774. BLOOD:remove()
  775. end
  776. end))
  777. end
  778.  
  779. Debris = game:GetService("Debris")
  780.  
  781. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  782. local DIRECTION = CF(StartPos,EndPos).lookVector
  783. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  784. end
  785.  
  786. function turnto(position)
  787. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  788. end
  789.  
  790. function recurse(root,callback,i)
  791. i= i or 0
  792. for _,v in pairs(root:GetChildren()) do
  793. i = i + 1
  794. callback(i,v)
  795.  
  796. if #v:GetChildren() > 0 then
  797. i = recurse(v,callback,i)
  798. end
  799. end
  800.  
  801. return i
  802. end
  803.  
  804. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  805. attachmentName = attachmentName.."RigAttachment"
  806. local constraint = Instance.new(className.."Constraint")
  807. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  808. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  809. constraint.Name = "RagdollConstraint"..part1.Name
  810.  
  811. for _,propertyData in next,properties or {} do
  812. constraint[propertyData[1]] = propertyData[2]
  813. end
  814.  
  815. constraint.Parent = character
  816. end
  817.  
  818. function getAttachment0(character, attachmentName)
  819. for _,child in next,character:GetChildren() do
  820. local attachment = child:FindFirstChild(attachmentName)
  821. if attachment then
  822. return attachment
  823. end
  824. end
  825. end
  826.  
  827. function R15Ragdoll(character)
  828. recurse(character, function(_,v)
  829. if v:IsA("Attachment") then
  830. v.Axis = Vector3.new(0, 1, 0)
  831. v.SecondaryAxis = Vector3.new(0, 0, 1)
  832. v.Rotation = Vector3.new(0, 0, 0)
  833. end
  834. end)
  835. for _,child in next,character:GetChildren() do
  836. if child:IsA("Accoutrement") then
  837. for _,part in next,child:GetChildren() do
  838. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  839. local attachment1 = part:FindFirstChildOfClass("Attachment")
  840. local attachment0 = getAttachment0(character,attachment1.Name)
  841. if attachment0 and attachment1 then
  842. local constraint = Instance.new("HingeConstraint")
  843. constraint.Attachment0 = attachment0
  844. constraint.Attachment1 = attachment1
  845. constraint.LimitsEnabled = true
  846. constraint.UpperAngle = 0
  847. constraint.LowerAngle = 0
  848. constraint.Parent = character
  849. end
  850. elseif part.Name == "HumanoidRootPart" then
  851. part:remove()
  852. end
  853. end
  854. end
  855. end
  856.  
  857. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  858. {"LimitsEnabled",true};
  859. {"UpperAngle",5};
  860. })
  861. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  862. {"LimitsEnabled",true};
  863. {"UpperAngle",15};
  864. })
  865.  
  866. local handProperties = {
  867. {"LimitsEnabled", true};
  868. {"UpperAngle",0};
  869. {"LowerAngle",0};
  870. }
  871. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  872. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  873.  
  874. local shinProperties = {
  875. {"LimitsEnabled", true};
  876. {"UpperAngle", 0};
  877. {"LowerAngle", -75};
  878. }
  879. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  880. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  881.  
  882. local footProperties = {
  883. {"LimitsEnabled", true};
  884. {"UpperAngle", 15};
  885. {"LowerAngle", -45};
  886. }
  887. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  888. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  889.  
  890. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  891. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  892. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  893. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  894. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  895. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  896. end
  897.  
  898. function Ragdoll(Character2,CharTorso)
  899. Character2:BreakJoints()
  900. local hum = Character2:findFirstChild("Humanoid")
  901. hum:remove()
  902. local function Scan(ch)
  903. local e
  904. for e = 1,#ch do
  905. Scan(ch[e]:GetChildren())
  906. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  907. ch[e]:remove()
  908. end
  909. end
  910. end
  911. local NEWHUM = IT("Humanoid")
  912. NEWHUM.Name = "Corpse"
  913. NEWHUM.Health = 0
  914. NEWHUM.MaxHealth = 0
  915. NEWHUM.PlatformStand = true
  916. NEWHUM.Parent = Character2
  917. NEWHUM.DisplayDistanceType = "None"
  918.  
  919. local ch = Character2:GetChildren()
  920. local i
  921. for i = 1,#ch do
  922. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  923. ch[i]:remove()
  924. end
  925. end
  926.  
  927. local Torso2 = Character2.Torso
  928. local movevector = Vector3.new()
  929.  
  930. if Torso2 then
  931. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  932. local Head = Character2:FindFirstChild("Head")
  933. if Head then
  934. local Neck = Instance.new("Weld")
  935. Neck.Name = "Neck"
  936. Neck.Part0 = Torso2
  937. Neck.Part1 = Head
  938. Neck.C0 = CFrame.new(0, 1.5, 0)
  939. Neck.C1 = CFrame.new()
  940. Neck.Parent = Torso2
  941.  
  942. end
  943. local Limb = Character2:FindFirstChild("Right Arm")
  944. if Limb then
  945.  
  946. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  947. local Joint = Instance.new("Glue")
  948. Joint.Name = "RightShoulder"
  949. Joint.Part0 = Torso2
  950. Joint.Part1 = Limb
  951. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  952. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  953. Joint.Parent = Torso2
  954.  
  955. local B = Instance.new("Part")
  956. B.TopSurface = 0
  957. B.BottomSurface = 0
  958. B.formFactor = "Symmetric"
  959. B.Size = Vector3.new(1, 1, 1)
  960. B.Transparency = 1
  961. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  962. B.Parent = Character2
  963. local W = Instance.new("Weld")
  964. W.Part0 = Limb
  965. W.Part1 = B
  966. W.C0 = CFrame.new(0, -0.5, 0)
  967. W.Parent = Limb
  968.  
  969. end
  970. local Limb = Character2:FindFirstChild("Left Arm")
  971. if Limb then
  972.  
  973. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  974. local Joint = Instance.new("Glue")
  975. Joint.Name = "LeftShoulder"
  976. Joint.Part0 = Torso2
  977. Joint.Part1 = Limb
  978. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  979. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  980. Joint.Parent = Torso2
  981.  
  982. local B = Instance.new("Part")
  983. B.TopSurface = 0
  984. B.BottomSurface = 0
  985. B.formFactor = "Symmetric"
  986. B.Size = Vector3.new(1, 1, 1)
  987. B.Transparency = 1
  988. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  989. B.Parent = Character2
  990. local W = Instance.new("Weld")
  991. W.Part0 = Limb
  992. W.Part1 = B
  993. W.C0 = CFrame.new(0, -0.5, 0)
  994. W.Parent = Limb
  995.  
  996. end
  997. local Limb = Character2:FindFirstChild("Right Leg")
  998. if Limb then
  999.  
  1000. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1001. local Joint = Instance.new("Glue")
  1002. Joint.Name = "RightHip"
  1003. Joint.Part0 = Torso2
  1004. Joint.Part1 = Limb
  1005. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1006. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1007. Joint.Parent = Torso2
  1008.  
  1009. local B = Instance.new("Part")
  1010. B.TopSurface = 0
  1011. B.BottomSurface = 0
  1012. B.formFactor = "Symmetric"
  1013. B.Size = Vector3.new(1, 1, 1)
  1014. B.Transparency = 1
  1015. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1016. B.Parent = Character2
  1017. local W = Instance.new("Weld")
  1018. W.Part0 = Limb
  1019. W.Part1 = B
  1020. W.C0 = CFrame.new(0, -0.5, 0)
  1021. W.Parent = Limb
  1022.  
  1023. end
  1024. local Limb = Character2:FindFirstChild("Left Leg")
  1025. if Limb then
  1026.  
  1027. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1028. local Joint = Instance.new("Glue")
  1029. Joint.Name = "LeftHip"
  1030. Joint.Part0 = Torso2
  1031. Joint.Part1 = Limb
  1032. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1033. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1034. Joint.Parent = Torso2
  1035.  
  1036. local B = Instance.new("Part")
  1037. B.TopSurface = 0
  1038. B.BottomSurface = 0
  1039. B.formFactor = "Symmetric"
  1040. B.Size = Vector3.new(1, 1, 1)
  1041. B.Transparency = 1
  1042. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1043. B.Parent = Character2
  1044. local W = Instance.new("Weld")
  1045. W.Part0 = Limb
  1046. W.Part1 = B
  1047. W.C0 = CFrame.new(0, -0.5, 0)
  1048. W.Parent = Limb
  1049.  
  1050. end
  1051. --[
  1052. local Bar = Instance.new("Part")
  1053. Bar.TopSurface = 0
  1054. Bar.BottomSurface = 0
  1055. Bar.formFactor = "Symmetric"
  1056. Bar.Size = Vector3.new(1, 1, 1)
  1057. Bar.Transparency = 1
  1058. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1059. Bar.Parent = Character2
  1060. local Weld = Instance.new("Weld")
  1061. Weld.Part0 = Torso2
  1062. Weld.Part1 = Bar
  1063. Weld.C0 = CFrame.new(0, 0.5, 0)
  1064. Weld.Parent = Torso2
  1065. --]]
  1066. end
  1067. Character2.Parent = workspace
  1068. Debris:AddItem(Character2,5)
  1069.  
  1070. return Character2,Torso2
  1071. end
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078. Humanoid.Changed:connect(function(Jump)
  1079. if Jump == "Jump" and (Disable_Jump == true) then
  1080. Humanoid.Jump = false
  1081. end
  1082. end)
  1083.  
  1084. while true do
  1085. Swait()
  1086. script.Parent = WEAPONGUI
  1087. ANIMATE.Parent = nil
  1088. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1089. v:Stop();
  1090. end
  1091. SINE = SINE + CHANGE
  1092. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1093. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1094. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1095. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1096. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1097. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1098. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1099. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1100. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1101. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1102. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1103. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1104. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1105. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1106. end
  1107. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1108. ANIM = "Jump"
  1109. if PLAYANIMS == true then
  1110. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1114. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1116. end
  1117. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1118. ANIM = "Fall"
  1119. if PLAYANIMS == true then
  1120. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1121. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1122. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1124. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1125. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1126. end
  1127. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1128. ANIM = "Idle"
  1129. if PLAYANIMS == true then
  1130. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1131. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(30 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1132. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1133. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1134. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1135. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1136. end
  1137. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1138. ANIM = "Walk"
  1139. if PLAYANIMS == true then
  1140. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1141. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1142. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(240 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1143. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(240 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1144. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1145. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1146.  
  1147. end
  1148. end
  1149. end
  1150. if Rooted == false then
  1151. Disable_Jump = false
  1152. Humanoid.WalkSpeed = Speed
  1153. elseif Rooted == true then
  1154. Disable_Jump = true
  1155. Humanoid.WalkSpeed = 0
  1156. end
  1157.  
  1158. Humanoid.Health = Humanoid.Health + 1
  1159. -----------
  1160. function chatfunc(text)
  1161. local chat = coroutine.wrap(function()
  1162. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1163. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1164. end
  1165. local naeeym2 = Instance.new("BillboardGui",Character)
  1166. naeeym2.Size = UDim2.new(0,100,0,40)
  1167. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1168. naeeym2.Adornee = Character.Head
  1169. naeeym2.Name = "TalkingBillBoard"
  1170. local tecks2 = Instance.new("TextLabel",naeeym2)
  1171. tecks2.BackgroundTransparency = 1
  1172. tecks2.BorderSizePixel = 0
  1173. tecks2.Text = ""
  1174. tecks2.Font = "Cartoon"
  1175. tecks2.TextSize = 30
  1176. tecks2.TextStrokeTransparency = 0
  1177. tecks2.TextColor3 = Color3.new(.6,0,0)
  1178. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1179. tecks2.Size = UDim2.new(1,0,0.5,0)
  1180. local tecks3 = Instance.new("TextLabel",naeeym2)
  1181. tecks3.BackgroundTransparency = 1
  1182. tecks3.BorderSizePixel = 0
  1183. tecks3.Text = ""
  1184. tecks3.Font = "Arcade"
  1185. tecks3.TextSize = 30
  1186. tecks3.TextStrokeTransparency = 0
  1187. tecks3.TextColor3 = BrickColor.new("Hot white").Color
  1188. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  1189. tecks3.Size = UDim2.new(1,0,0.5,0)
  1190. spawn(function()
  1191. while wait() do
  1192. tecks3.TextColor3 = BrickColor.random().Color
  1193. tecks2.TextColor3 = BrickColor.random().Color
  1194. end
  1195. end)
  1196. for i = 1,string.len(text),1 do
  1197. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=178104975", Character, 1, 1)
  1198. tecks2.Text = string.sub(text,1,i)
  1199. tecks3.Text = string.sub(text,1,i)
  1200. wait(0.01)
  1201. end
  1202. wait(2)
  1203. for i = 1, 50 do
  1204. swait()
  1205. tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  1206. tecks2.Rotation = tecks2.Rotation - .8
  1207. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1208. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1209. tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  1210. tecks3.Rotation = tecks2.Rotation + .8
  1211. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1212. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1213. end
  1214. naeeym2:Destroy()
  1215. end)
  1216. chat()
  1217. end
  1218. function onChatted(msg)
  1219. chatfunc(msg)
  1220. end
  1221. Player.Chatted:connect(onChatted)
  1222.  
  1223. abss = Instance.new("BillboardGui",Character)
  1224. abss.Size = UDim2.new(10,0,10,0)
  1225. abss.Enabled = false
  1226. imgl = Instance.new("ImageLabel",abss)
  1227. imgl.Position = UDim2.new(0,0,0,0)
  1228. imgl.Size = UDim2.new(1,0,1,0)
  1229. imgl.Image = "rbxassetid://183711814"
  1230. imgl.BackgroundTransparency = 1
  1231. imgl.ImageColor3 = Color3.new(.9,0,0)
  1232. img2 = Instance.new("ImageLabel",abss)
  1233. img2.Position = UDim2.new(0,0,0,0)
  1234. img2.Size = UDim2.new(1,0,1,0)
  1235. img2.Image = "rbxassetid://183711814"
  1236. img2.BackgroundTransparency = 1
  1237. img2.ImageColor3 = Color3.new(.9,0,0)
  1238. spawn(function()
  1239. while wait() do
  1240. imgl.ImageColor3 = BrickColor.random().Color
  1241. img2.ImageColor3 = BrickColor.random().Color
  1242. end
  1243. end)
  1244.  
  1245. spawn(function()
  1246. chatfunc("Deja vu made by QehNoob")
  1247. wait(3)
  1248. chatfunc("this is my first garbage so support xdddddddd")
  1249. wait(3)
  1250. chatfunc("Animations by: goodguyaiden")
  1251. wait(3)
  1252. chatfunc("kill me")
  1253. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement