Advertisement
TinkerElsa44

Chill Visualizer Void Script Builder

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