Advertisement
zXzGamePROzXz

Untitled

Jan 7th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.90 KB | None | 0 0
  1. --- Original script Chill af | Edited by zXzGamePROzXz
  2. m = game.Players.LocalPlayer
  3. char = m.Character
  4.  
  5. function Random(num)
  6. local section=num % 1 * 3;
  7. local secondary=0.5 * math.pi * (section % 1);
  8. if section < 1 then
  9. return 1,1 - math.cos(secondary),1 - math.sin(secondary);
  10. elseif section < 2 then
  11. return 1 - math.sin(secondary),1,1 - math.cos(secondary);
  12. else
  13. return 1 - math.cos(secondary),1 - math.sin(secondary),1;
  14. end
  15. end
  16.  
  17. --//Lol try to figure this one out//
  18. function rainb(hue)
  19. local section = hue % 1 * 3
  20. local secondary = 0.5 * math.pi * (section % 1)
  21. if section < 1 then
  22. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  23. elseif section < 2 then
  24. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  25. else
  26. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  27. end
  28. end
  29.  
  30. Chillmusic = Instance.new("Sound", workspace)
  31. Chillmusic.Parent = game.Chat
  32. Chillmusic.Volume = 0.5
  33. Chillmusic.SoundId = "rbxassetid://1221904077"
  34. Chillmusic.Looped = true
  35. Chillmusic:Play()
  36.  
  37. local txt = Instance.new("BillboardGui", char)
  38. txt.Adornee = char.Head
  39. txt.Name = "_status"
  40. txt.Size = UDim2.new(2, 0, 1.2, 0)
  41. txt.StudsOffset = Vector3.new(-9, 8, 0)
  42. local text = Instance.new("TextLabel", txt)
  43. text.Size = UDim2.new(10, 0, 7, 0)
  44. text.FontSize = "Size24"
  45. text.TextScaled = true
  46. text.TextTransparency = 0
  47. text.BackgroundTransparency = 1
  48. text.TextTransparency = 0
  49. text.TextStrokeTransparency = 0
  50. text.Font = "Bodoni"
  51. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  52. v = Instance.new("Part")
  53. v.Name = "ColorBrick"
  54. v.Parent = m.Character
  55. v.FormFactor = "Symmetric"
  56. v.Anchored = true
  57. v.CanCollide = false
  58. v.BottomSurface = "Smooth"
  59. v.TopSurface = "Smooth"
  60. v.Size = Vector3.new(10, 5, 3)
  61. v.Transparency = 1
  62. v.CFrame = char.Torso.CFrame
  63. v.BrickColor = BrickColor.new("Really black")
  64. v.Transparency = 1
  65. spawn(function()
  66. TweenService = game:GetService("TweenService")
  67. Colours = {Color3.fromRGB(0,0,0),Color3.fromRGB(0, 0, 0)}
  68. Int = 0
  69. while wait(2) do
  70. if Int == #Colours then Int = 0 end
  71. Int = Int+1
  72. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  73. end
  74. end)
  75. v.Shape = "Block"
  76. text.Text = "~»◇Depressed◇«~"
  77. Player = game:GetService("Players").LocalPlayer
  78. Character = Player.Character
  79. PlayerGui = Player.PlayerGui
  80. Backpack = Player.Backpack
  81. Torso = Character.Torso
  82. Head = Character.Head
  83. Humanoid = Character.Humanoid
  84. m = Instance.new("Model", Character)
  85. LeftArm = Character["Left Arm"]
  86. LeftLeg = Character["Left Leg"]
  87. RightArm = Character["Right Arm"]
  88. RightLeg = Character["Right Leg"]
  89. LS = Torso["Left Shoulder"]
  90. LH = Torso["Left Hip"]
  91. RS = Torso["Right Shoulder"]
  92. RH = Torso["Right Hip"]
  93. Face = Head.face
  94. Neck = Torso.Neck
  95. it = Instance.new
  96. attacktype = 1
  97. vt = Vector3.new
  98. cf = CFrame.new
  99. bc = BrickColor.new
  100. br = BrickColor.random
  101. it = Instance.new
  102. euler = CFrame.fromEulerAnglesXYZ
  103. angles = CFrame.Angles
  104. cloaked = false
  105. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  106. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  107. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  108. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  109. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  110. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  111. RootPart = Character.HumanoidRootPart
  112. RootJoint = RootPart.RootJoint
  113. RootCF = euler(-1.57, 0, 3.14)
  114. attack = false
  115. attackdebounce = false
  116. equipped = false
  117. trispeed = 0.2
  118. attackmode = "none"
  119. local idle = 0
  120. local Anim = "Idle"
  121. Head.face.Texture = "rbxassetid://347543580"
  122.  
  123. local Trail = Instance.new("Trail",char)
  124. local attachment0 = Instance.new("Attachment",char["Right Arm"])
  125. attachment0.Name = "TrailAttachment0"
  126. attachment0.CFrame = CFrame.new(-0.25,-1,0)
  127. local attachment1 = Instance.new("Attachment",char["Right Arm"])
  128. attachment1.CFrame = CFrame.new(0.25,-1,0)
  129. attachment1.Name = "TrailAttachment1"
  130. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  131. Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
  132. Trail.Lifetime = 0.5
  133. Trail.Attachment0 = attachment0
  134. Trail.Attachment1 = attachment1
  135.  
  136. local Trail = Instance.new("Trail",char)
  137. local attachment0 = Instance.new("Attachment",char["Left Arm"])
  138. attachment0.Name = "TrailAttachment0"
  139. attachment0.CFrame = CFrame.new(-0.25,-1,0)
  140. local attachment1 = Instance.new("Attachment",char["Left Arm"])
  141. attachment1.CFrame = CFrame.new(0.25,-1,0)
  142. attachment1.Name = "TrailAttachment1"
  143. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  144. Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
  145. Trail.Lifetime = 0.5
  146. Trail.Attachment0 = attachment0
  147. Trail.Attachment1 = attachment1
  148.  
  149. local Trail = Instance.new("Trail",char)
  150. local attachment0 = Instance.new("Attachment",char["Right Leg"])
  151. attachment0.Name = "TrailAttachment0"
  152. attachment0.CFrame = CFrame.new(-0.25,-1,0)
  153. local attachment1 = Instance.new("Attachment",char["Right Leg"])
  154. attachment1.CFrame = CFrame.new(0.25,-1,0)
  155. attachment1.Name = "TrailAttachment1"
  156. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  157. Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
  158. Trail.Lifetime = 0.5
  159. Trail.Attachment0 = attachment0
  160. Trail.Attachment1 = attachment1
  161.  
  162. local Trail = Instance.new("Trail",char)
  163. local attachment0 = Instance.new("Attachment",char["Left Leg"])
  164. attachment0.Name = "TrailAttachment0"
  165. attachment0.CFrame = CFrame.new(-0.25,-1,0)
  166. local attachment1 = Instance.new("Attachment",char["Left Leg"])
  167. attachment1.CFrame = CFrame.new(0.25,-1,0)
  168. attachment1.Name = "TrailAttachment1"
  169. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  170. Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
  171. Trail.Lifetime = 0.5
  172. Trail.Attachment0 = attachment0
  173. Trail.Attachment1 = attachment1
  174.  
  175.  
  176. Humanoid.Animator.Parent = nil
  177. Character.Animate.Parent = nil
  178. function FindNearestTorso(Position, Distance, SinglePlayer)
  179. if SinglePlayer then
  180. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  181. end
  182. local List = {}
  183. for i, v in pairs(workspace:GetChildren()) do
  184. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  185. table.insert(List, v)
  186. end
  187. end
  188. return List
  189. end
  190. function lerp(a, b, t)
  191. return a + (b - a) * t
  192. end
  193. function slerp(a, b, t)
  194. dot = a:Dot(b)
  195. if dot > 0.99999 or dot < -0.99999 then
  196. return t <= 0.5 and a or b
  197. else
  198. r = math.acos(dot)
  199. return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r)
  200. end
  201. end
  202. function matrixInterpolate(a, b, t)
  203. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  204. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  205. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t)
  206. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t)
  207. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t)
  208. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t)
  209. local t = v1:Dot(v2)
  210. if not (t < 0) and t ~= 0 and not (t > 0) then
  211. return CFrame.new()
  212. end
  213. return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z)
  214. end
  215. function genWeld(a, b)
  216. local w = Instance.new("Weld", a)
  217. w.Part0 = a
  218. w.Part1 = b
  219. return w
  220. end
  221. function weld(a, b)
  222. local weld = Instance.new("Weld")
  223. weld.Name = "W"
  224. weld.Part0 = a
  225. weld.Part1 = b
  226. weld.C0 = a.CFrame:inverse() * b.CFrame
  227. weld.Parent = a
  228. return weld
  229. end
  230. function Lerp(c1, c2, al)
  231. local com1 = {
  232. c1.X,
  233. c1.Y,
  234. c1.Z,
  235. c1:toEulerAnglesXYZ()
  236. }
  237. local com2 = {
  238. c2.X,
  239. c2.Y,
  240. c2.Z,
  241. c2:toEulerAnglesXYZ()
  242. }
  243. for i, v in pairs(com1) do
  244. com1[i] = v + (com2[i] - v) * al
  245. end
  246. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  247. end
  248. function clerp(a, b, t)
  249. local qa = {
  250. QuaternionFromCFrame(a)
  251. }
  252. local qb = {
  253. QuaternionFromCFrame(b)
  254. }
  255. local ax, ay, az = a.x, a.y, a.z
  256. local bx, by, bz = b.x, b.y, b.z
  257. local _t = 1 - t
  258. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  259. end
  260. function QuaternionFromCFrame(cf)
  261. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  262. local trace = m00 + m11 + m22
  263. if trace > 0 then
  264. local s = math.sqrt(1 + trace)
  265. local recip = 0.5 / s
  266. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  267. else
  268. local i = 0
  269. if m00 < m11 then
  270. i = 1
  271. end
  272. if m22 > (i == 0 and m00 or m11) then
  273. i = 2
  274. end
  275. if i == 0 then
  276. local s = math.sqrt(m00 - m11 - m22 + 1)
  277. local recip = 0.5 / s
  278. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  279. elseif i == 1 then
  280. local s = math.sqrt(m11 - m22 - m00 + 1)
  281. local recip = 0.5 / s
  282. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  283. elseif i == 2 then
  284. local s = math.sqrt(m22 - m00 - m11 + 1)
  285. local recip = 0.5 / s
  286. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  287. end
  288. end
  289. end
  290. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  291. local xs, ys, zs = x + x, y + y, z + z
  292. local wx, wy, wz = w * xs, w * ys, w * zs
  293. local xx = x * xs
  294. local xy = x * ys
  295. local xz = x * zs
  296. local yy = y * ys
  297. local yz = y * zs
  298. local zz = z * zs
  299. 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))
  300. end
  301. function QuaternionSlerp(a, b, t)
  302. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  303. local startInterp, finishInterp
  304. if cosTheta >= 1.0E-4 then
  305. if 1 - cosTheta > 1.0E-4 then
  306. local theta = math.acos(cosTheta)
  307. local invSinTheta = 1 / math.sin(theta)
  308. startInterp = math.sin((1 - t) * theta) * invSinTheta
  309. finishInterp = math.sin(t * theta) * invSinTheta
  310. else
  311. startInterp = 1 - t
  312. finishInterp = t
  313. end
  314. elseif 1 + cosTheta > 1.0E-4 then
  315. local theta = math.acos(-cosTheta)
  316. local invSinTheta = 1 / math.sin(theta)
  317. startInterp = math.sin((t - 1) * theta) * invSinTheta
  318. finishInterp = math.sin(t * theta) * invSinTheta
  319. else
  320. startInterp = t - 1
  321. finishInterp = t
  322. end
  323. 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
  324. end
  325. function rayCast(Pos, Dir, Max, Ignore)
  326. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  327. end
  328. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  329. local fp = it("Part")
  330. fp.formFactor = formfactor
  331. fp.Parent = parent
  332. fp.Reflectance = reflectance
  333. fp.Transparency = transparency
  334. fp.CanCollide = false
  335. fp.Locked = true
  336. fp.BrickColor = brickcolor
  337. fp.Name = name
  338. fp.Size = size
  339. fp.Position = Torso.Position
  340. fp.BottomSurface = "Smooth"
  341. fp.TopSurface = "Smooth"
  342. fp:BreakJoints()
  343. return fp
  344. end
  345. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  346. local mesh = it(Mesh)
  347. mesh.Parent = part
  348. if Mesh == "SpecialMesh" then
  349. mesh.MeshType = meshtype
  350. mesh.MeshId = meshid
  351. end
  352. mesh.Offset = offset
  353. mesh.Scale = scale
  354. return mesh
  355. end
  356. function weld(parent, part0, part1, c0)
  357. local weld = it("Weld")
  358. weld.Parent = parent
  359. weld.Part0 = part0
  360. weld.Part1 = part1
  361. weld.C0 = c0
  362. return weld
  363. end
  364. function rayCast(Pos, Dir, Max, Ignore)
  365. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  366. end
  367. RSH, LSH = nil, nil
  368. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  369. RW.Name = "Right Shoulder"
  370. LW.Name = "Left Shoulder"
  371. LH = Torso["Left Hip"]
  372. RH = Torso["Right Hip"]
  373. TorsoColor = Torso.BrickColor
  374. function NoOutline(Part)
  375. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  376. end
  377. player = Player
  378. ch = Character
  379. RSH = ch.Torso["Right Shoulder"]
  380. LSH = ch.Torso["Left Shoulder"]
  381. RSH.Parent = nil
  382. LSH.Parent = nil
  383. RW.Name = "Right Shoulder"
  384. RW.Part0 = ch.Torso
  385. RW.C0 = cf(1.5, 0.5, 0)
  386. RW.C1 = cf(0, 0.5, 0)
  387. RW.Part1 = ch["Right Arm"]
  388. RW.Parent = ch.Torso
  389. LW.Name = "Left Shoulder"
  390. LW.Part0 = ch.Torso
  391. LW.C0 = cf(-1.5, 0.5, 0)
  392. LW.C1 = cf(0, 0.5, 0)
  393. LW.Part1 = ch["Left Arm"]
  394. LW.Parent = ch.Torso
  395. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  396. local wld = Instance.new("Weld", wp1)
  397. wld.Part0 = wp0
  398. wld.Part1 = wp1
  399. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  400. end
  401. newWeld(RootPart, Torso, 0, -1, 0)
  402. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  403. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  404. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  405. newWeld(Torso, RightLeg, 0.5, -1, 0)
  406. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  407. Player = game:GetService("Players").LocalPlayer
  408. Character = Player.Character
  409. mouse = Player:GetMouse()
  410. m = Instance.new("Model", Character)
  411. local weldBetween = function(a, b)
  412. local weldd = Instance.new("ManualWeld")
  413. weldd.Part0 = a
  414. weldd.Part1 = b
  415. weldd.C0 = CFrame.new()
  416. weldd.C1 = b.CFrame:inverse() * a.CFrame
  417. weldd.Parent = a
  418. return weldd
  419. end
  420. ArtificialHB = Instance.new("BindableEvent", script)
  421. ArtificialHB.Name = "Heartbeat"
  422. script:WaitForChild("Heartbeat")
  423. frame = 0.016666666666666666
  424. tf = 0
  425. allowframeloss = false
  426. tossremainder = false
  427. lastframe = tick()
  428. script.Heartbeat:Fire()
  429. game:GetService("RunService").Heartbeat:connect(function(s, p)
  430. tf = tf + s
  431. if tf >= frame then
  432. if allowframeloss then
  433. script.Heartbeat:Fire()
  434. lastframe = tick()
  435. else
  436. for i = 1, math.floor(tf / frame) do
  437. script.Heartbeat:Fire()
  438. end
  439. lastframe = tick()
  440. end
  441. if tossremainder then
  442. tf = 0
  443. else
  444. tf = tf - frame * math.floor(tf / frame)
  445. end
  446. end
  447. end)
  448. function swait(num)
  449. if num == 0 or num == nil then
  450. ArtificialHB.Event:wait()
  451. else
  452. for i = 0, num do
  453. ArtificialHB.Event:wait()
  454. end
  455. end
  456. end
  457. mouse.KeyDown:connect(function(key)
  458. if key == "c" then
  459. repeat
  460. swait()
  461. Chillmusic.Volume = Chillmusic.Volume - 0.05
  462. until Chillmusic.Volume == 0
  463. Chillmusic:Stop()
  464. swait()
  465. Chillmusic2:Play()
  466. Chillmusic.Volume = 1
  467. end
  468. end)
  469. mouse.KeyDown:connect(function(key)
  470. if key == "f" then
  471. text.Text = "I Have Depression"
  472. wait(1)
  473. text.Text = "It's just the way i was born"
  474. wait(1)
  475. text.Text = "Because i got dumped"
  476. wait(1)
  477. text.Text = "She broke me..."
  478. wait(1)
  479. text.Text = "Now im nothing"
  480. wait(1)
  481. text.Text = "So why not ust smile"
  482. wait(3)
  483. text.Text = "I mean what else?"
  484. wait(3)
  485. text.Text = "Please help me..."
  486. end
  487. end)
  488. mouse.KeyDown:connect(function(key)
  489. if key == "v" then
  490. repeat
  491. swait()
  492. Chillmusic2.Volume = Chillmusic2.Volume - 0.05
  493. until Chillmusic2.Volume == 0
  494. Chillmusic2:Stop()
  495. swait()
  496. Chillmusic:Play()
  497. Chillmusic2.Volume = 1
  498. end
  499. end)
  500. mouse.KeyDown:connect(function(key)
  501. if key == "b" then
  502. text.Text = "Be back going to harm myself again"
  503. wait(3)
  504. text.Text = "Now i got bloody arms again..."
  505. end
  506. end)
  507. mouse.KeyDown:connect(function(key)
  508. if key == "n" then
  509. text.Text = "K back almost died again"
  510. wait(1)
  511. text.Text = "I did want to die thoe"
  512. end
  513. end)
  514. m = Instance.new("ForceField", Character)
  515. m.Visible = false
  516. Character.Humanoid.WalkSpeed = 4
  517. mouse.KeyDown:connect(function(key)
  518. if string.byte(key) == 48 then
  519. Swing = 2
  520. Character.Humanoid.WalkSpeed = 40
  521. end
  522. end)
  523. mouse.KeyUp:connect(function(key)
  524. if string.byte(key) == 48 then
  525. Swing = 1
  526. Character.Humanoid.WalkSpeed = 4
  527. end
  528. end)
  529. local sine = 0
  530. local change = 1
  531. local val = 0
  532. spawn(function()
  533. while true do
  534. swait()
  535. sine = sine + change
  536. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  537. local velderp = RootPart.Velocity.y
  538. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  539. if equipped == true or equipped == false then
  540. if attack == false then
  541. idle = idle + 1
  542. Character.Humanoid.MaxHealth = math.huge
  543. Character.Humanoid.Health = math.huge
  544. else
  545. idle = 0
  546. end
  547. if not (idle >= 500) or attack == false then
  548. end
  549. if torvel < 1 and hitfloor ~= nil then
  550. Anim = "Chill"
  551. if attack == false then
  552. Humanoid.CameraOffset = Vector3.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0)
  553. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0) * CFrame.Angles(math.rad(90 + 15 * math.sin(sine / 60)), math.rad(0), math.rad(0)), 0.8)
  554. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20 + 20 * math.cos(sine / 60)), math.rad(0 + 4 * math.sin(sine / 60)), math.rad(0)), 0.2)
  555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(0 + 20 * math.sin(sine / 60)), math.rad(0 + 55 * math.sin(sine / 60))), 0.3)
  556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(-20 - 20 * math.sin(sine / 60)), math.rad(0 - 55 * math.sin(sine / 60))), 0.3)
  557. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.86 + 0.03 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 45 * math.cos(sine / 70)), math.rad(3), math.rad(-4)), 0.8)
  558. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 35 * math.cos(sine / 65)), math.rad(-3), math.rad(4)), 0.8)
  559. end
  560. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  561. Anim = "Walk"
  562. if attack == false then
  563. Humanoid.CameraOffset = Vector3.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0)
  564. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.2)
  565. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0) * CFrame.Angles(math.rad(-90 + 5 * math.cos(sine / 45)), math.rad(180 * math.cos(sine / 48.5)), math.rad(0)), 0.8)
  566. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-4 + 2 * math.sin(sine / 48)), math.rad(0), math.rad(0)), 0.2)
  567. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(90 - 20.5 * math.cos(sine / 45))), 0.3)
  568. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(-90 + 20.5 * math.cos(sine / 45))), 0.3)
  569. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.8)
  570. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.8)
  571. end
  572. elseif torvel >= 22 and hitfloor ~= nil then
  573. Anim = "Run"
  574. if attack == false then
  575. Humanoid.CameraOffset = Vector3.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0)
  576. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 6 - 1.55 * math.cos(sine / 68.5), -0.2) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.2)
  577. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0) * CFrame.Angles(math.rad(-40 + 20 * math.sin(sine / 68.5)), 0, 0), 0.8)
  578. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-12 + 17 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.2)
  579. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(40 - 20 * math.cos(sine / 68.5))), 0.2)
  580. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(-40 + 20 * math.cos(sine / 68.5))), 0.2)
  581. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.87, -0.25) * CFrame.Angles(math.rad(-45 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8)
  582. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.1) * CFrame.Angles(math.rad(-35 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8)
  583. end
  584. end
  585. end
  586. end
  587. end)
  588.  
  589.  
  590.  
  591. -- Objects
  592.  
  593. local Chill_Gui_Bro = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  594. local Header = Instance.new("Frame")
  595. local BackGround = Instance.new("Frame")
  596. local Chill_Gui_Label = Instance.new("TextLabel")
  597. local Play_ID_Button = Instance.new("TextButton")
  598. local ID_Box = Instance.new("TextBox")
  599. local Set_Vol_Button = Instance.new("TextButton")
  600. local Vol_Box = Instance.new("TextBox")
  601. local Set_Tpos_Button = Instance.new("TextButton")
  602. local Tpos_Box = Instance.new("TextBox")
  603. local Set_Text_Button = Instance.new("TextButton")
  604. local Tpos_Box_2 = Instance.new("TextBox")
  605. local Toggle_Chat_Button = Instance.new("TextButton")
  606. local Chat_Toggle_Label = Instance.new("TextLabel")
  607. local Current_Song_Label = Instance.new("TextLabel")
  608.  
  609. -- Properties
  610.  
  611. Chill_Gui_Bro.Name = "Chill_Gui_Bro"
  612.  
  613. Header.Name = "Header"
  614. Header.Parent = Chill_Gui_Bro
  615. Header.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  616. Header.BorderSizePixel = 0
  617. Header.Draggable = true
  618. Header.Active = true
  619. Header.Selectable = true
  620. Header.Position = UDim2.new(0.469539374, 0, 0.147921771, 0)
  621. Header.Size = UDim2.new(0, 250, 0, 45)
  622.  
  623. BackGround.Name = "BackGround"
  624. BackGround.Parent = Header
  625. BackGround.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  626. BackGround.BorderSizePixel = 0
  627. BackGround.Draggable = true
  628. BackGround.Position = UDim2.new(0, 0, 1, 0)
  629. BackGround.Size = UDim2.new(0, 250, 0, 299)
  630.  
  631. Chill_Gui_Label.Name = "Chill_Gui_Label"
  632. Chill_Gui_Label.Parent = Header
  633. Chill_Gui_Label.BackgroundColor3 = Color3.new(1, 1, 1)
  634. Chill_Gui_Label.BackgroundTransparency = 1
  635. Chill_Gui_Label.BorderSizePixel = 0
  636. Chill_Gui_Label.Draggable = true
  637. Chill_Gui_Label.Size = UDim2.new(0, 250, 0, 45)
  638. Chill_Gui_Label.Font = Enum.Font.Cartoon
  639. Chill_Gui_Label.Text = "~»Depression Gui«~"
  640. Chill_Gui_Label.TextColor3 = Color3.new(1, 1, 1)
  641. Chill_Gui_Label.TextScaled = true
  642. Chill_Gui_Label.TextSize = 14
  643. Chill_Gui_Label.TextWrapped = true
  644.  
  645. Play_ID_Button.Name = "Play_ID_Button"
  646. Play_ID_Button.Parent = Header
  647. Play_ID_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  648. Play_ID_Button.BorderColor3 = Color3.new(0, 0, 0)
  649. Play_ID_Button.BorderSizePixel = 0
  650. Play_ID_Button.Position = UDim2.new(0.0520000011, 0, 1.22222221, 0)
  651. Play_ID_Button.Size = UDim2.new(0, 68, 0, 35)
  652. Play_ID_Button.Font = Enum.Font.Cartoon
  653. Play_ID_Button.Text = "Play ID"
  654. Play_ID_Button.TextColor3 = Color3.new(1, 1, 1)
  655. Play_ID_Button.TextSize = 20
  656. Play_ID_Button.TextWrapped = true
  657.  
  658. ID_Box.Name = "ID_Box"
  659. ID_Box.Parent = Header
  660. ID_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  661. ID_Box.BorderColor3 = Color3.new(0, 0, 0)
  662. ID_Box.BorderSizePixel = 0
  663. ID_Box.Position = UDim2.new(0.356000006, 0, 1.22222221, 0)
  664. ID_Box.Size = UDim2.new(0, 140, 0, 35)
  665. ID_Box.Font = Enum.Font.Cartoon
  666. ID_Box.Text = "ID here"
  667. ID_Box.TextColor3 = Color3.new(1, 1, 1)
  668. ID_Box.TextSize = 35
  669. ID_Box.TextWrapped = true
  670.  
  671. Set_Vol_Button.Name = "Set_Vol_Button"
  672. Set_Vol_Button.Parent = Header
  673. Set_Vol_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  674. Set_Vol_Button.BorderColor3 = Color3.new(0, 0, 0)
  675. Set_Vol_Button.BorderSizePixel = 0
  676. Set_Vol_Button.Position = UDim2.new(0.0520000011, 0, 2.20000005, 0)
  677. Set_Vol_Button.Size = UDim2.new(0, 68, 0, 35)
  678. Set_Vol_Button.Font = Enum.Font.Cartoon
  679. Set_Vol_Button.Text = "Set Vol"
  680. Set_Vol_Button.TextColor3 = Color3.new(1, 1, 1)
  681. Set_Vol_Button.TextSize = 20
  682. Set_Vol_Button.TextWrapped = true
  683.  
  684. Vol_Box.Name = "Vol_Box"
  685. Vol_Box.Parent = Header
  686. Vol_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  687. Vol_Box.BorderColor3 = Color3.new(0, 0, 0)
  688. Vol_Box.BorderSizePixel = 0
  689. Vol_Box.Position = UDim2.new(0.356000006, 0, 2.20000005, 0)
  690. Vol_Box.Size = UDim2.new(0, 140, 0, 35)
  691. Vol_Box.Font = Enum.Font.Cartoon
  692. Vol_Box.Text = "Volume"
  693. Vol_Box.TextColor3 = Color3.new(1, 1, 1)
  694. Vol_Box.TextSize = 35
  695. Vol_Box.TextWrapped = true
  696.  
  697. Set_Tpos_Button.Name = "Set_Tpos_Button"
  698. Set_Tpos_Button.Parent = Header
  699. Set_Tpos_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  700. Set_Tpos_Button.BorderColor3 = Color3.new(0, 0, 0)
  701. Set_Tpos_Button.BorderSizePixel = 0
  702. Set_Tpos_Button.Position = UDim2.new(0.0520000011, 0, 3.24444437, 0)
  703. Set_Tpos_Button.Size = UDim2.new(0, 68, 0, 35)
  704. Set_Tpos_Button.Font = Enum.Font.Cartoon
  705. Set_Tpos_Button.Text = "Set Tpos"
  706. Set_Tpos_Button.TextColor3 = Color3.new(1, 1, 1)
  707. Set_Tpos_Button.TextSize = 18
  708. Set_Tpos_Button.TextWrapped = true
  709.  
  710. Tpos_Box.Name = "Tpos_Box"
  711. Tpos_Box.Parent = Header
  712. Tpos_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  713. Tpos_Box.BorderColor3 = Color3.new(0, 0, 0)
  714. Tpos_Box.BorderSizePixel = 0
  715. Tpos_Box.Position = UDim2.new(0.356000006, 0, 3.24444437, 0)
  716. Tpos_Box.Size = UDim2.new(0, 140, 0, 35)
  717. Tpos_Box.Font = Enum.Font.Cartoon
  718. Tpos_Box.Text = "Time Position"
  719. Tpos_Box.TextColor3 = Color3.new(1, 1, 1)
  720. Tpos_Box.TextSize = 20
  721. Tpos_Box.TextWrapped = true
  722.  
  723. Set_Text_Button.Name = "Set_Text_Button"
  724. Set_Text_Button.Parent = Header
  725. Set_Text_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  726. Set_Text_Button.BorderColor3 = Color3.new(0, 0, 0)
  727. Set_Text_Button.BorderSizePixel = 0
  728. Set_Text_Button.Position = UDim2.new(0.0600000024, 0, 4.22222233, 0)
  729. Set_Text_Button.Size = UDim2.new(0, 68, 0, 35)
  730. Set_Text_Button.Font = Enum.Font.Cartoon
  731. Set_Text_Button.Text = "Set Text"
  732. Set_Text_Button.TextColor3 = Color3.new(1, 1, 1)
  733. Set_Text_Button.TextSize = 18
  734. Set_Text_Button.TextWrapped = true
  735.  
  736. Tpos_Box_2.Name = "Tpos_Box"
  737. Tpos_Box_2.Parent = Header
  738. Tpos_Box_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  739. Tpos_Box_2.BorderColor3 = Color3.new(0, 0, 0)
  740. Tpos_Box_2.BorderSizePixel = 0
  741. Tpos_Box_2.Position = UDim2.new(0.356000006, 0, 4.22222233, 0)
  742. Tpos_Box_2.Size = UDim2.new(0, 140, 0, 35)
  743. Tpos_Box_2.Font = Enum.Font.Cartoon
  744. Tpos_Box_2.Text = "Text"
  745. Tpos_Box_2.TextColor3 = Color3.new(1, 1, 1)
  746. Tpos_Box_2.TextSize = 20
  747. Tpos_Box_2.TextWrapped = true
  748.  
  749. Toggle_Chat_Button.Name = "Toggle_Chat_Button"
  750. Toggle_Chat_Button.Parent = Header
  751. Toggle_Chat_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  752. Toggle_Chat_Button.BorderColor3 = Color3.new(0, 0, 0)
  753. Toggle_Chat_Button.BorderSizePixel = 0
  754. Toggle_Chat_Button.Position = UDim2.new(0.0579999983, 0, 5.26666689, 0)
  755. Toggle_Chat_Button.Size = UDim2.new(0, 97, 0, 35)
  756. Toggle_Chat_Button.Font = Enum.Font.Cartoon
  757. Toggle_Chat_Button.Text = "Toggle Chat"
  758. Toggle_Chat_Button.TextColor3 = Color3.new(1, 1, 1)
  759. Toggle_Chat_Button.TextSize = 20
  760. Toggle_Chat_Button.TextWrapped = true
  761.  
  762. Chat_Toggle_Label.Name = "Chat_Toggle_Label"
  763. Chat_Toggle_Label.Parent = Header
  764. Chat_Toggle_Label.BackgroundColor3 = Color3.new(1, 1, 1)
  765. Chat_Toggle_Label.BackgroundTransparency = 0.89999997615814
  766. Chat_Toggle_Label.BorderColor3 = Color3.new(1, 1, 1)
  767. Chat_Toggle_Label.Position = UDim2.new(0.540000021, 0, 5.26666689, 0)
  768. Chat_Toggle_Label.Size = UDim2.new(0, 94, 0, 35)
  769. Chat_Toggle_Label.Font = Enum.Font.Cartoon
  770. Chat_Toggle_Label.Text = "~»False«~"
  771. Chat_Toggle_Label.TextColor3 = Color3.new(1, 1, 1)
  772. Chat_Toggle_Label.TextScaled = true
  773. Chat_Toggle_Label.TextSize = 14
  774. Chat_Toggle_Label.TextWrapped = true
  775.  
  776. Current_Song_Label.Name = "Current_Song_Label"
  777. Current_Song_Label.Parent = Header
  778. Current_Song_Label.BackgroundColor3 = Color3.new(1, 1, 1)
  779. Current_Song_Label.BackgroundTransparency = 0.89999997615814
  780. Current_Song_Label.BorderColor3 = Color3.new(1, 1, 1)
  781. Current_Song_Label.Position = UDim2.new(0.0520000011, 0, 6.64444447, 0)
  782. Current_Song_Label.Size = UDim2.new(0, 225, 0, 35)
  783. Current_Song_Label.Font = Enum.Font.Cartoon
  784. Current_Song_Label.Text = "~»Current Song: None«~"
  785. Current_Song_Label.TextColor3 = Color3.new(1, 1, 1)
  786. Current_Song_Label.TextScaled = true
  787. Current_Song_Label.TextSize = 14
  788. Current_Song_Label.TextWrapped = true
  789.  
  790. Play_ID_Button.MouseButton1Down:Connect(function()
  791. if tonumber(ID_Box.Text) then
  792. Chillmusic:Stop()
  793. Chillmusic.SoundId='rbxassetid://'..tonumber(ID_Box.Text)
  794. Chillmusic:Play()
  795. currentsong = game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID_Box.Text)).Name
  796. text.Text = "~»Depressed«~ Now Playing: "..currentsong
  797. Current_Song_Label.Text = "~»Current Song: "..currentsong.."«~"
  798. wait(4)
  799. text.Text = "~»Depressed«~"
  800. end
  801. end)
  802. local ischatting = false
  803.  
  804. Set_Vol_Button.MouseButton1Down:Connect(function()
  805.  
  806. Chillmusic.Volume = tonumber(Vol_Box.Text)
  807. end)
  808.  
  809. Set_Tpos_Button.MouseButton1Down:Connect(function()
  810.  
  811. Chillmusic.TimePosition = tonumber(Tpos_Box.Text)
  812. end)
  813.  
  814. Set_Text_Button.MouseButton1Down:Connect(function()
  815.  
  816. text.Text = "~»"..Tpos_Box_2.Text.."«~"
  817. end)
  818.  
  819. Toggle_Chat_Button.MouseButton1Down:Connect(function()
  820. if ischatting == false then
  821. ischatting = true
  822. Chat_Toggle_Label.Text = "~»True«~"
  823. spawn(function()
  824. game.Players.LocalPlayer.Chatted:connect(function(msg)
  825. for i = 0, msg:len(), 1 do
  826. text.Text = "~»"..msg:sub(0, i).."«~"
  827. end
  828. wait(3)
  829. text.Text = "~»Depressed«~"
  830. end)
  831. end)
  832. else
  833. ischatting = false
  834. Chat_Toggle_Label.Text = "~»False«~"
  835. end
  836. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement