Advertisement
Cute_Sylveon

Untitled

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