rcubed1003

does not work to good

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