Advertisement
zXzGamePROzXz

Untitled

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