Advertisement
TheJake678

how

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