Advertisement
Its_YeBoi

Untitled

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