Advertisement
Guest User

Untitled

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