SHARE
TWEET

does not work to good

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