Advertisement
doryna2281337

Untitled

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