Advertisement
1e_0

Untitled

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