Advertisement
1e_0

chill af

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