Advertisement
MaxNutellaOML

axe

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