Advertisement
Basykung7845

Test

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