Advertisement
whyumean

Untitled

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