Advertisement
Guest User

gg

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