Advertisement
refrop

Titan noob (alpha) v5

May 1st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.64 KB | None | 0 0
  1. ---
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local ASD = BrickColor.new("New Yeller")
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local deb = false
  16. local shot = 0
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. local stanceToggle = "Normal"
  20. math.randomseed(os.time())
  21. hum.WalkSpeed = 7
  22. char.Health:Destroy()
  23. hum.MaxHealth = 999999999999999999999999999999999999999999999999999
  24. wait(0.1)
  25. hum.Health = 999999999999999999999999999999999999999999999999999
  26. z = Instance.new("Sound", char.Torso)
  27. z.SoundId = "rbxassetid://757245933"----------------change this to put a specific song to your script
  28. z.Looped = true
  29. z.Pitch = 1
  30. z.Volume = 70
  31. ----------------------------------------------------
  32. local SM = Instance.new("Smoke",torso)
  33. SM.Size = 15
  34. local S = Instance.new("Part",char)
  35. S.Size = Vector3.new(1,1,1)
  36. S.Material = "Neon"
  37. S.BrickColor = BrickColor.new("Deep orange")
  38. S.Transparency = 1
  39. S.Anchored = true
  40. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  41. local Ring = Instance.new("Part",S)
  42. Ring.Size = Vector3.new(1,1,1)
  43. Ring.BrickColor = BrickColor.new("Lime green")
  44. Ring.Anchored = true
  45. Ring.CanCollide = true
  46. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  47. local Ring2 = Instance.new("SpecialMesh",Ring)
  48. Ring2.MeshId = "rbxassetid://3270017"
  49. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  50. local S2 = Instance.new("SpecialMesh",S)
  51. S2.MeshType = "Sphere"
  52. S2.Scale = Vector3.new(1,1,1)
  53. v = Instance.new("Sound")
  54. v.SoundId = "rbxassetid://821439273"
  55. v.Parent = char.Torso
  56. v.Looped = false
  57. v.Pitch = 1
  58. v.Volume = 50
  59. wait(.01)
  60. v:Play()
  61. local partasdeff = Instance.new("ParticleEmitter",S)
  62. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0, 255, 0))
  63. partasdeff.LightEmission = .99
  64. partasdeff.Size = NumberSequence.new(0.2)
  65. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  66. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  67. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  68. partasdeff.Transparency = bbb
  69. partasdeff.Size = aaa
  70. partasdeff.ZOffset = .9
  71. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  72. partasdeff.LockedToPart = false
  73. partasdeff.EmissionDirection = "Top"
  74. partasdeff.Lifetime = NumberRange.new(1, 2)
  75. partasdeff.Rate = 1000
  76. partasdeff.Rotation = NumberRange.new(-100, 100)
  77. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  78. partasdeff.Speed = NumberRange.new(10)
  79. partasdeff.VelocitySpread = 300
  80. partasdeff.Enabled = true
  81. for i = 1,100 do
  82. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  83. Ring.Transparency = Ring.Transparency + 0.01
  84. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  85. S.Transparency = S.Transparency + 0.01
  86. game:GetService("RunService").RenderStepped:wait()
  87. end
  88. S:remove()
  89. wait(1)
  90. SM:remove()
  91. hed.face.Texture = "rbxasset://textures/face.png"
  92. char.Shirt:remove()
  93. char.Pants.PantsTemplate= "rbxassetid://1193911323"
  94. v = Instance.new("Sound")
  95. v.SoundId = "rbxassetid://609158214"
  96. v.Parent = torso
  97. v.Looped = false
  98. v.Pitch = 1.04
  99. v.Volume = 10
  100. wait(.01)
  101. v:Play()
  102. z:Play()
  103. ----------------------------------------------------
  104. Debounces = {
  105. on = false;
  106. ks = false;
  107. CanAttack = true;
  108. CanJoke = true;
  109. NoIdl = false;
  110. Slashing = false;
  111. Slashed = false;
  112. Grabbing = false;
  113. Grabbed = false;
  114. }
  115. local Touche = {char.Name, }
  116. ----------------------------------------------------
  117. function lerp(a, b, t) -- Linear interpolation
  118. return a + (b - a)*t
  119. end
  120.  
  121. function slerp(a, b, t) --Spherical interpolation
  122. dot = a:Dot(b)
  123. if dot > 0.99999 or dot < -0.99999 then
  124. return t <= 0.5 and a or b
  125. else
  126. r = math.acos(dot)
  127. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  128. end
  129. end
  130.  
  131. function matrixInterpolate(a, b, t)
  132. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  133. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  134. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  135. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  136. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  137. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  138. local t = v1:Dot(v2)
  139. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  140. return CFrame.new()
  141. end
  142. return CFrame.new(
  143. v0.x, v0.y, v0.z,
  144. v1.x, v1.y, v1.z,
  145. v2.x, v2.y, v2.z,
  146. v3.x, v3.y, v3.z)
  147. end
  148. ----------------------------------------------------
  149. function genWeld(a,b)
  150. local w = Instance.new("Weld",a)
  151. w.Part0 = a
  152. w.Part1 = b
  153. return w
  154. end
  155. function weld(a, b)
  156. local weld = Instance.new("Weld")
  157. weld.Name = "W"
  158. weld.Part0 = a
  159. weld.Part1 = b
  160. weld.C0 = a.CFrame:inverse() * b.CFrame
  161. weld.Parent = a
  162. return weld;
  163. end
  164. ----------------------------------------------------
  165. function Lerp(c1,c2,al)
  166. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  167. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  168. for i,v in pairs(com1) do
  169. com1[i] = v+(com2[i]-v)*al
  170. end
  171. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  172. end
  173. ----------------------------------------------------
  174. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  175. local wld = Instance.new("Weld", wp1)
  176. wld.Part0 = wp0
  177. wld.Part1 = wp1
  178. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  179. end
  180. ----------------------------------------------------
  181. for i,v in pairs(char:children()) do
  182. if v:IsA("Hat") then
  183. v:Destroy()
  184. end
  185. end
  186. for i,v in pairs(hed:children()) do
  187. if v:IsA("Sound") then
  188. v:Destroy()
  189. end
  190. end
  191. ----------------------------------------------------
  192. function HasntTouched(plrname)
  193. local ret = true
  194. for _, v in pairs(Touche) do
  195. if v == plrname then
  196. ret = false
  197. end
  198. end
  199. return ret
  200. end
  201. ----------------------------------------------------
  202. larm.Size = larm.Size * 5
  203. rarm.Size = rarm.Size * 5
  204. lleg.Size = lleg.Size * 5
  205. rleg.Size = rleg.Size * 5
  206. torso.Size = torso.Size * 5
  207. hed.Size = hed.Size * 5
  208. root.Size = root.Size * 5
  209. ----------------------------------------------------
  210. newWeld(torso, larm, -1.5, 0.5, 0)
  211. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  212. newWeld(torso, rarm, 1.5, 0.5, 0)
  213. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  214. newWeld(torso, hed, 0, 1.5, 0)
  215. newWeld(torso, lleg, -0.5, -1, 0)
  216. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  217. newWeld(torso, rleg, 0.5, -1, 0)
  218. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  219. newWeld(root, torso, 0, -1, 0)
  220. torso.Weld.C1 = CFrame.new(0, -1, 0)
  221. ----------------------------------------------------
  222. local Part = Instance.new("Part",hed)
  223. Part.BrickColor = BrickColor.new("Really black")
  224. Part.Size = Vector3.new(1,1,1)
  225. Part.CanCollide = false
  226. Part.Material = "Neon"
  227. local M = Instance.new("SpecialMesh",Part)
  228. M.MeshId = "rbxassetid://id"-------------------hair
  229. M.Scale = Vector3.new(5,5,5)
  230. local Part2 = Instance.new("Weld",Part)
  231. Part2.Part0 = hed
  232. Part2.Part1 = Part
  233. Part2.C0 = CFrame.new(-0.2,1.5,0.8)
  234. ----------------------------------------------------
  235. ----------------------------------------------------
  236. ----------------------------------------------------
  237.  
  238. ----------------------------------------------------
  239. function weld5(part0, part1, c0, c1)
  240. weeld=Instance.new("Weld", part0)
  241. weeld.Part0=part0
  242. weeld.Part1=part1
  243. weeld.C0=c0
  244. weeld.C1=c1
  245. return weeld
  246. end
  247. ----------------------------------------------------
  248. function newRay(start,face,range,wat)
  249. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  250. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  251. return rey,hit,pos
  252. end
  253. ----------------------------------------------------
  254. mod5 = Instance.new("Model",char)
  255.  
  256. function FindNearestTorso(Position,Distance,SinglePlayer)
  257. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  258. local List = {}
  259. for i,v in pairs(workspace:GetChildren())do
  260. if v:IsA("Model")then
  261. if v:findFirstChild("Torso")then
  262. if v ~= char then
  263. if(v.Torso.Position -Position).magnitude <= Distance then
  264. table.insert(List,v)
  265. end
  266. end
  267. end
  268. end
  269. end
  270. return List
  271. end
  272.  
  273. function Landing()
  274. part=Instance.new('Part',mod5)
  275. part.Anchored=true
  276. part.CanCollide=false
  277. part.FormFactor='Custom'
  278. part.Size=Vector3.new(.2,.2,.2)
  279. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  280. part.Transparency=.7
  281. part.BrickColor=BrickColor.new('Institutional white')
  282. mesh=Instance.new('SpecialMesh',part)
  283. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  284. mesh.Scale=Vector3.new(10,5,10)
  285.  
  286. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  287. if v:FindFirstChild('Humanoid') then
  288. v.Humanoid:TakeDamage(math.random(20,30))
  289. v.Humanoid.PlatformStand = true
  290. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  291. end
  292. end
  293.  
  294. coroutine.resume(coroutine.create(function()
  295. for i=0,3.8,0.05 do
  296. wait()
  297. part.CFrame=part.CFrame
  298. part.Transparency=i
  299. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  300. end
  301. part.Parent = nil
  302. end))
  303. end
  304. ----------------------------------------------------
  305. mod4 = Instance.new("Model",char)
  306.  
  307. ptez = {0.7, 0.8, 0.9, 1}
  308.  
  309. function FindNearestTorso(Position,Distance,SinglePlayer)
  310. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  311. local List = {}
  312. for i,v in pairs(workspace:GetChildren())do
  313. if v:IsA("Model")then
  314. if v:findFirstChild("Torso")then
  315. if v ~= char then
  316. if(v.Torso.Position -Position).magnitude <= Distance then
  317. table.insert(List,v)
  318. end
  319. end
  320. end
  321. end
  322. end
  323. return List
  324. end
  325.  
  326. ----------------------------------------------------
  327.  
  328. local acos = math.acos
  329. local sqrt = math.sqrt
  330. local Vec3 = Vector3.new
  331. local fromAxisAngle = CFrame.fromAxisAngle
  332.  
  333. local function toAxisAngle(CFr)
  334. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  335. local Angle = math.acos((R00+R11+R22-1)/2)
  336. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  337. A = A == 0 and 0.00001 or A
  338. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  339. B = B == 0 and 0.00001 or B
  340. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  341. C = C == 0 and 0.00001 or C
  342. local x = (R21-R12)/sqrt(A)
  343. local y = (R02-R20)/sqrt(B)
  344. local z = (R10-R01)/sqrt(C)
  345. return Vec3(x,y,z),Angle
  346. end
  347.  
  348. function ApplyTrig(Num,Func)
  349. local Min,Max = Func(0),Func(1)
  350. local i = Func(Num)
  351. return (i-Min)/(Max-Min)
  352. --[[if Func == "sin" then
  353. return (math.sin((1-Num)*math.pi)+1)/2
  354. elseif Func == "cos" then
  355. return (math.cos((1-Num)*math.pi)+1)/2
  356. end]]
  357. end
  358.  
  359. function LerpCFrame(CFrame1,CFrame2,Num)
  360. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  361. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  362. end
  363. mouse.KeyDown:connect(function(key)
  364. if key == "e" then
  365. if Debounces.CanAttack == true then
  366. Debounces.CanAttack = false
  367. Debounces.on = true
  368. Debounces.NoIdl = true
  369. for i = 1,20 do
  370. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  371. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  372. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  373. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  374. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  375. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  376. if Debounces.on == false then break end
  377. wait()
  378. end
  379. local HitBox = Instance.new("Part",char)
  380. HitBox.Size = Vector3.new(5,5,5)
  381. HitBox.CanCollide = false
  382. HitBox.Transparency = math.huge
  383. local HitBox2 = Instance.new("Weld",HitBox)
  384. HitBox2.Part0 = rarm
  385. HitBox2.Part1 = HitBox
  386. HitBox2.C0 = CFrame.new(0,-4.5,0)
  387. HitBox.Touched:connect(function(hit)
  388. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  389. if not DD then DD = true
  390. hit.Parent.Humanoid.PlatformStand = true
  391. local We = Instance.new("Weld",hit.Parent.Torso)
  392. We.Part0 = rarm
  393. We.Part1 = hit.Parent.Torso
  394. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  395. wait(1)
  396. for i = 1,20 do
  397. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  398. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  399. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  400. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  401. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  402. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  403. if Debounces.on == false then break end
  404. wait()
  405. end
  406. hit.Parent.Humanoid:TakeDamage(20)
  407. for i = 1,20 do
  408. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  409. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  410. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  411. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  412. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  413. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  414. if Debounces.on == false then break end
  415. wait()
  416. end
  417. for i = 1,20 do
  418. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  419. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  420. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  421. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  422. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  423. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  424. if Debounces.on == false then break end
  425. wait()
  426. end
  427. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  428. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  429. partasdeff.LightEmission = .1
  430. partasdeff.Size = NumberSequence.new(0.2)
  431. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  432. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  433. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  434. partasdeff.Transparency = bbb
  435. partasdeff.Size = aaa
  436. partasdeff.ZOffset = .9
  437. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  438. partasdeff.LockedToPart = false
  439. partasdeff.EmissionDirection = "Top"
  440. partasdeff.Lifetime = NumberRange.new(1, 2)
  441. partasdeff.Rate = 1000
  442. partasdeff.Rotation = NumberRange.new(-100, 100)
  443. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  444. partasdeff.Speed = NumberRange.new(10)
  445. partasdeff.VelocitySpread = 300
  446. partasdeff.Enabled = true
  447. wait(1.5)
  448. hit.Parent:BreakJoints()
  449. We:remove()
  450. partasdeff.Enabled = false
  451. if Debounces.CanAttack == false then
  452. Debounces.CanAttack = true
  453. Debounces.on = false
  454. Debounces.NoIdl = false
  455. end
  456. wait(1313)
  457. DD = false
  458. end
  459. end
  460. end)
  461. ---ANIMATION REPLAY
  462. end
  463. end
  464. end)
  465. mouse.KeyDown:connect(function(key)
  466. if key == "r" then
  467. if Debounces.CanAttack == true then
  468. Debounces.CanAttack = false
  469. Debounces.on = true
  470. Debounces.NoIdl = true
  471. for i = 1,20 do
  472. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  473. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  474. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  475. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  476. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  477. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  478. if Debounces.on == false then break end
  479. wait()
  480. end
  481. local HitBox = Instance.new("Part",char)
  482. HitBox.Size = Vector3.new(5,5,5)
  483. HitBox.CanCollide = false
  484. HitBox.Transparency = math.huge
  485. local HitBox2 = Instance.new("Weld",HitBox)
  486. HitBox2.Part0 = rleg
  487. HitBox2.Part1 = HitBox
  488. HitBox2.C0 = CFrame.new(0,-1.1,0)
  489. local SFXZ = Instance.new("Sound",torso)
  490. SFXZ.SoundId = "rbxassetid://169259383"
  491. SFXZ.Volume = math.huge
  492. SFXZ.Pitch = 0.5
  493. SFXZ.Looped = false
  494. wait(0.01)
  495. SFXZ:Play()
  496. HitBox.Touched:connect(function(hit)
  497. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  498. local SFXZ = Instance.new("Sound",torso)
  499. SFXZ.SoundId = "rbxassetid://743886825"
  500. SFXZ.Volume = 1
  501. SFXZ.Pitch = 0.5
  502. SFXZ.Looped = false
  503. SFXZ:Play()
  504. HitBox:remove()
  505. hit.Parent.Humanoid:TakeDamage(44)
  506. hit.Parent.Humanoid.PlatformStand = true
  507. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  508. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  509. Fl.velocity = rleg.CFrame.lookVector*350
  510. wait(0.1)
  511. Fl:remove()
  512. end
  513. end)
  514. for i = 1,20 do
  515. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  516. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  517. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  518. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  519. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  520. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  521. if Debounces.on == false then break end
  522. wait()
  523. end
  524. if Debounces.CanAttack == false then
  525. Debounces.CanAttack = true
  526. Debounces.on = false
  527. Debounces.NoIdl = false
  528. HitBox:remove()
  529. end
  530. end
  531. end
  532. end)
  533. ----------------------------------------------------
  534. mouse.KeyDown:connect(function(key)
  535. if string.byte(key) == 48 then
  536. char.Humanoid.WalkSpeed = 34
  537. end
  538. end)
  539. mouse.KeyUp:connect(function(key)
  540. if string.byte(key) == 48 then
  541. char.Humanoid.WalkSpeed = 5
  542. end
  543. end)
  544. ----------------------------------------------------
  545. local animpose = "Idle"
  546. local lastanimpose = "Idle"
  547. local sine = 0
  548. local change = 1
  549. local val = 0
  550. local ffing = false
  551. ----------------------------------------------------
  552. local x = Instance.new("Sound", char.Torso)
  553. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  554. x.Looped = true
  555. x.Volume = 1
  556. x.Pitch = 1
  557. local footsteps = false
  558. -------------------------------
  559. game:GetService("RunService").RenderStepped:connect(function()
  560. rarm.BrickColor = ASD
  561. larm.BrickColor = ASD
  562. rleg.BrickColor = ASD
  563. lleg.BrickColor = ASD
  564. hed.BrickColor = ASD
  565. torso.BrickColor = ASD
  566. --[[if char.Humanoid.Jump == true then
  567. jump = true
  568. else
  569. jump = false
  570. end]]
  571. char.Humanoid.FreeFalling:connect(function(f)
  572. if f then
  573. ffing = true
  574. else
  575. ffing = false
  576. end
  577. end)
  578. sine = sine + change
  579. if jumpn == true then
  580. animpose = "Jumping"
  581. elseif ffing == true then
  582. animpose = "Freefalling"
  583. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  584. animpose = "Idle"
  585. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  586. animpose = "Walking"
  587. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  588. animpose = "Running"
  589. end
  590. if animpose ~= lastanimpose then
  591. sine = 0
  592. if Debounces.NoIdl == false then
  593. if animpose == "Idle" then
  594. for i = 1, 2 do
  595. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  596. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  597. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  598. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  599. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  600. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  601. end
  602. elseif animpose == "Walking" then
  603. for i = 1, 2 do
  604. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  605. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  606. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  607. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  608. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  609. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  610. end
  611. elseif animpose == "Running" then
  612. for i = 1, 2 do
  613. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  614. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  615. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  616. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  617. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  618. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  619. end
  620. wait()
  621. end
  622. else
  623. end
  624. end
  625. lastanimpose = animpose
  626. if Debounces.NoIdl == false then
  627. if animpose == "Idle" then
  628. if stanceToggle == "Normal" then
  629. change = 0.5
  630. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.Angles(0,0,0-.1*math.sin(tick()*1))*CFrame.Angles(0,0,0.3),.2)
  631. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.Angles(0,0,0+.1*math.sin(tick()*1))*CFrame.Angles(0,0,-0.3),.2)
  632. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
  633. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
  634. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  635. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  636. elseif stanceToggle == "Sitting" then
  637. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  638. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  639. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  640. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  641. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  642. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  643. end
  644. elseif animpose == "Walking" then
  645. if stanceToggle == "Normal" then
  646. change = 1
  647. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3,0.8,0)*CFrame.Angles(0-.5*math.sin(tick()*2/0.7),0,0),.3)
  648. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3,0.8,0)*CFrame.Angles(0+.5*math.sin(tick()*2/0.7),0,0),.3)
  649. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  650. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-2.2,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  651. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/16)/4, -.05 + math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/16)/2.3, 0, 0), .4)
  652. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/16)/4, -.05 + -math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/16)/2.3, 0, 0), .4)
  653. end
  654. elseif animpose == "Running" then
  655. change = 1
  656. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  657. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  658. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  659. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  660. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  661. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8 )/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  662. end
  663. end
  664. if animpose == "Walking" then
  665. if footsteps == false then
  666. x:Play()
  667. footsteps = true
  668. end
  669. x.Pitch = 1.1
  670. elseif animpose == "Idle" then
  671. x:Stop()
  672. footsteps = false
  673. elseif animpose == "Running" then
  674. x.Pitch = 1.2
  675. if footsteps == false then
  676. x:Play()
  677. footsteps = true
  678. end
  679. end
  680. end)
  681. --[[ noob music player 1.0
  682.  
  683. noob music player version 1.0
  684.  
  685. ]]
  686.  
  687. --[[
  688.  
  689. what's new?
  690.  
  691. - 1.1.0
  692. · prints starting message
  693. · you can now choose what colour (cyan by default) you want it to be if you want to post this as a new script/paste
  694. · clicking the play button now shows bgm info on top
  695. · main frame is now draggable (might not work but could be fixed soon)
  696.  
  697. - 1.2.0
  698. · now you can set the font for the music player itself
  699. · dragging the gui still doesn't work
  700. · new bgm info appears above character
  701.  
  702. - 1.3.0
  703. · bgm info appears above screen again
  704. · GUI now has sounds
  705. · default appearance changed
  706.  
  707. - 1.3.1
  708. · sounds work correctly
  709. · default appearance changed
  710. · I'm not actually gonna work on the draggable frame, as it's 2hard4me
  711.  
  712. - 1.4.0
  713. · users can now play audio from hash codes (i.e. 7b509300b5bed2c924d6a0bda990d33b)
  714. · not only that, but the music player itself is also larger
  715. · it's also pretty rare to find working songs like these.
  716. · you can now set the style of title when it disappears, but only when you save post this as a new paste
  717. · custom() now works properly
  718.  
  719. ]]
  720.  
  721. print("Hello this script is better in parties :D")
  722.  
  723. -- define player variable
  724. local Player=game.Players.LocalPlayer
  725.  
  726. -- appearance
  727. col=Color3.fromRGB(255, 255, 0) -- blue color
  728. font=Enum.Font.SciFi
  729. style="Fade"
  730.  
  731. -- creation of gui
  732. local scrg=Instance.new("ScreenGui",Player.PlayerGui)
  733. local credit=Instance.new("TextLabel",scrg)
  734. credit.BackgroundColor3=Color3.fromRGB(255, 170, 0)
  735. credit.BackgroundTransparency=1
  736. credit.Position=UDim2.new(0,0,1,-18)
  737. credit.Size=UDim2.new(1,0,0,18)
  738. credit.Font=font
  739. credit.FontSize=Enum.FontSize.Size18
  740. credit.Text="Have a nice day :D"
  741. credit.TextColor3=Color3.fromRGB(255,255,255)
  742. credit.TextScaled=true
  743. credit.TextStrokeTransparency=0.5
  744. credit.TextWrapped=true
  745. credit.TextXAlignment=Enum.TextXAlignment.Left
  746. local title=Instance.new("TextLabel",scrg)
  747. title.BackgroundTransparency=1
  748. title.FontSize=Enum.FontSize.Size60
  749. title.Font=font
  750. title.Size=UDim2.new(1,0,0.25)
  751. title.TextColor3=col
  752. title.TextStrokeTransparency=0.5
  753. title.Text="Noob's Music Player GUI v1.4.0"
  754. local main=Instance.new("Frame",scrg)
  755. main.BackgroundColor3=Color3.fromRGB(0,0,0)
  756. main.BackgroundTransparency=0.5
  757. main.BorderColor3=col
  758. main.BorderSizePixel=5
  759. main.Position=UDim2.new(0,0,0.5,-100)
  760. main.Size=UDim2.new(0,400,0,90)
  761. main.Selectable=true
  762. main.Draggable=true
  763. local loopcol=Instance.new("Frame",main)
  764. loopcol.BackgroundTransparency=1
  765. loopcol.Size=UDim2.new(1,0,0.2,0)
  766. local ltitle=Instance.new("TextLabel",loopcol)
  767. ltitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  768. ltitle.BackgroundTransparency=1
  769. ltitle.Size=UDim2.new(1,0,1,0)
  770. ltitle.Font=font
  771. ltitle.FontSize=Enum.FontSize.Size18
  772. ltitle.Text="Looped"
  773. ltitle.TextColor3=col
  774. ltitle.TextXAlignment=Enum.TextXAlignment.Left
  775. ltitle.Active=false
  776. local ltrue=Instance.new("TextButton",loopcol)
  777. ltrue.BackgroundColor3=Color3.fromRGB(0,0,0)
  778. ltrue.BackgroundTransparency=0.5
  779. ltrue.BorderSizePixel=0
  780. ltrue.Position=UDim2.new(0.5,0,0,0)
  781. ltrue.Size=UDim2.new(0.25,0,1,0)
  782. ltrue.Font=font
  783. ltrue.FontSize=Enum.FontSize.Size18
  784. ltrue.Text="true"
  785. ltrue.TextColor3=Color3.fromRGB(255,255,255)
  786. local lfalse=Instance.new("TextButton",loopcol)
  787. lfalse.Name="TextButton2"
  788. lfalse.BackgroundColor3=Color3.fromRGB(0,0,0)
  789. lfalse.BackgroundTransparency=0.5
  790. lfalse.BorderSizePixel=0
  791. lfalse.Position=UDim2.new(0.75,0,0,0)
  792. lfalse.Size=UDim2.new(0.25,0,1,0)
  793. lfalse.Font=font
  794. lfalse.FontSize=Enum.FontSize.Size18
  795. lfalse.Text="false"
  796. lfalse.TextColor3=Color3.fromRGB(255,255,255)
  797. local pscol=Instance.new("Frame",main)
  798. pscol.Name="Frame2"
  799. pscol.BackgroundTransparency=1
  800. pscol.Position=UDim2.new(0,0,0.2,0)
  801. pscol.Size=UDim2.new(1,0,0.2,0)
  802. local pstitle=Instance.new("TextLabel",pscol)
  803. pstitle.BackgroundTransparency=1
  804. pstitle.Size=UDim2.new(1,0,1,0)
  805. pstitle.Font=font
  806. pstitle.FontSize=Enum.FontSize.Size18
  807. pstitle.Text="PlaybackSpeed"
  808. pstitle.TextColor3=col
  809. pstitle.TextXAlignment=Enum.TextXAlignment.Left
  810. pstitle.Active=false
  811. local psfield=Instance.new("TextBox",pscol)
  812. psfield.BackgroundColor3=Color3.fromRGB(0,0,0)
  813. psfield.BackgroundTransparency=0.5
  814. psfield.BorderSizePixel=0
  815. psfield.Position=UDim2.new(0.5,0,0,0)
  816. psfield.Size=UDim2.new(0.5,0,1,0)
  817. psfield.Font=font
  818. psfield.FontSize=Enum.FontSize.Size18
  819. psfield.Text="Input Here"
  820. psfield.TextColor3=Color3.fromRGB(255,255,255)
  821. psfield.TextScaled=true
  822. local sidcol=Instance.new("Frame",main)
  823. sidcol.Name="Frame3"
  824. sidcol.BackgroundTransparency=1
  825. sidcol.Position=UDim2.new(0,0,0.4,0)
  826. sidcol.Size=UDim2.new(1,0,0.2,0)
  827. local sidtitle=Instance.new("TextLabel",sidcol)
  828. sidtitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  829. sidtitle.BackgroundTransparency=1
  830. sidtitle.Size=UDim2.new(1,0,1,0)
  831. sidtitle.Font=font
  832. sidtitle.FontSize=Enum.FontSize.Size18
  833. sidtitle.Text="SoundId"
  834. sidtitle.TextColor3=col
  835. sidtitle.TextXAlignment=Enum.TextXAlignment.Left
  836. sidtitle.Active=false
  837. local sidfield=Instance.new("TextBox",sidcol)
  838. sidfield.BackgroundColor3=Color3.fromRGB(0,0,0)
  839. sidfield.BackgroundTransparency=0.5
  840. sidfield.BorderSizePixel=0
  841. sidfield.Position=UDim2.new(0.5,0,0,0)
  842. sidfield.Size=UDim2.new(0.5,0,1,0)
  843. sidfield.Font=font
  844. sidfield.FontSize=Enum.FontSize.Size18
  845. sidfield.Text="Input Here"
  846. sidfield.TextColor3=Color3.fromRGB(255,255,255)
  847. sidfield.TextScaled=true
  848. local volucol=Instance.new("Frame",main)
  849. volucol.Name="Frame4"
  850. volucol.BackgroundColor3=Color3.new(1,1,1)
  851. volucol.BackgroundTransparency=1
  852. volucol.Position=UDim2.new(0,0,0.6,0)
  853. volucol.Size=UDim2.new(1,0,0.2,0)
  854. local volutitle=Instance.new("TextLabel",volucol)
  855. volutitle.BackgroundColor3=Color3.fromRGB(255,255,255)
  856. volutitle.BackgroundTransparency=1
  857. volutitle.Size=UDim2.new(1,0,1,0)
  858. volutitle.Font=font
  859. volutitle.FontSize=Enum.FontSize.Size18
  860. volutitle.Text="Volume"
  861. volutitle.TextColor3=col
  862. volutitle.TextXAlignment=Enum.TextXAlignment.Left
  863. volutitle.Active=false
  864. local volufield= Instance.new("TextBox",volucol)
  865. volufield.BackgroundColor3=Color3.fromRGB(0,0,0)
  866. volufield.BackgroundTransparency=0.5
  867. volufield.BorderSizePixel=0
  868. volufield.Position=UDim2.new(0.5,0,0,0)
  869. volufield.Size=UDim2.new(0.5,0,1,0)
  870. volufield.Font=font
  871. volufield.FontSize=Enum.FontSize.Size18
  872. volufield.Text="Input Here"
  873. volufield.TextColor3=Color3.fromRGB(255,255,255)
  874. volufield.TextScaled=true
  875. local control=Instance.new("Frame",main)
  876. control.Name="Frame5"
  877. control.BackgroundColor3=Color3.fromRGB(255,255,255)
  878. control.BackgroundTransparency=1
  879. control.Position=UDim2.new(0,0,0.8,0)
  880. control.Size=UDim2.new(1,0,0.2,0)
  881. local pleh1=Instance.new("TextButton",control)
  882. pleh1.BackgroundColor3=Color3.fromRGB(0,0,0)
  883. pleh1.BackgroundTransparency=0.5
  884. pleh1.BorderSizePixel=0
  885. pleh1.Size=UDim2.new(0.25,0,1,0)
  886. pleh1.Font=font
  887. pleh1.FontSize=Enum.FontSize.Size18
  888. pleh1.Text="Play Music"
  889. pleh1.TextColor3=Color3.fromRGB(255,255,255)
  890. local pleh2=Instance.new("TextButton",control)
  891. pleh2.BackgroundColor3=Color3.fromRGB(0,0,0)
  892. pleh2.BackgroundTransparency=0.5
  893. pleh2.BorderSizePixel=0
  894. pleh2.Position=UDim2.new(0.25,0,0,0)
  895. pleh2.Size=UDim2.new(0.25,0,1,0)
  896. pleh2.Font=font
  897. pleh2.FontSize=Enum.FontSize.Size18
  898. pleh2.Text="Play # Music"
  899. pleh2.TextColor3=Color3.fromRGB(255,255,255)
  900. local stahp=Instance.new("TextButton",control)
  901. stahp.Name="TextButton2"
  902. stahp.BackgroundColor3=Color3.fromRGB(0,0,0)
  903. stahp.BackgroundTransparency=0.5
  904. stahp.BorderSizePixel=0
  905. stahp.Position=UDim2.new(0.5, 0, 0, 0)
  906. stahp.Size=UDim2.new(0.5, 0, 1, 0)
  907. stahp.Font=font
  908. stahp.FontSize=Enum.FontSize.Size18
  909. stahp.Text="Stop Music"
  910. stahp.TextColor3=Color3.fromRGB(255,255,255)
  911. -- yay! creation is finished!
  912. -- but wait... ...there's more...
  913.  
  914.  
  915. -- this is the fun part...
  916.  
  917. -- define looped variable
  918. looped=true
  919.  
  920. function create()
  921. local sound=Instance.new("Sound",workspace)
  922. sound.Name="MusicGUIsong"
  923. end
  924.  
  925. function del()
  926. if workspace.MusicGUIsong.IsPlaying==true then
  927. workspace.MusicGUIsong:Destroy()
  928. end
  929. end
  930.  
  931. function informii()
  932. --[[local doublecheckplayer=game.Players.LocalPlayer.Name
  933. local wp=workspace:findFirstChild(doublecheckplayer)
  934. local hed=wp.Head
  935. local b=Instance.new("BillboardGui",hed)
  936. b.StudsOffset=Vector3.new(0,4,0)
  937. b.Size=UDim2.new(18,0,4,0)
  938. b.Adornee=hed
  939. local t=Instance.new("TextLabel",b)
  940. t.BackgroundTransparency=1
  941. t.TextColor3=col]]
  942. --t.Text=[[SoundId playing: ]]..sidfield.Text..[[
  943. --PlaybackSpeed: ]]..psfield.Text..[[
  944. --Volume: ]]..volufield.Text
  945. --[[t.Font=font
  946. t.Size=UDim2.new(1,0,1,0) -- keeping this here in case I want to use it again
  947. t.TextScaled=true
  948. wait(5)
  949. t:Destroy()]]
  950. local h=Instance.new("Hint",workspace)
  951. h.Text="SoundId playing: "..sidfield.Text.." - PlaybackSpeed: "..psfield.Text.." - Volume: "..volufield.Text
  952. wait(5)
  953. h:Destroy()
  954. end
  955.  
  956. function custom(texts) -- custom notification
  957. local wp=workspace:FindFirstChild(Player.Name)
  958. local hed=wp.Head
  959. local b=Instance.new("BillboardGui",hed)
  960. b.StudsOffset=Vector3.new(0,4,0)
  961. b.Size=UDim2.new(18,0,6,0)
  962. b.Adornee=hed
  963. local t=Instance.new("TextLabel",b)
  964. t.BackgroundTransparency=1
  965. t.TextColor3=col
  966. t.Text=texts
  967. t.Font=font
  968. t.Size=UDim2.new(1,0,1,0)
  969. t.TextScaled=true
  970. wait(5)
  971. repeat
  972. wait(0.05)
  973. t.TextTransparency=t.TextTransparency+0.1
  974. until
  975. t.TextTransparency==1
  976. t:Destroy()
  977. end
  978.  
  979. function makesound(id)
  980. local s=Instance.new("Sound",main)
  981. s.SoundId=id
  982. s.Volume=1
  983. s.PlaybackSpeed=1
  984. s:Play()
  985. end
  986.  
  987. ltrue.MouseButton1Click:connect(function()
  988. looped=true
  989. end)
  990. lfalse.MouseButton1Click:connect(function()
  991. looped=false
  992. end)
  993. pleh1.MouseButton1Click:connect(function()
  994. create()
  995. workspace.MusicGUIsong.Looped=looped
  996. workspace.MusicGUIsong.PlaybackSpeed=psfield.Text
  997. workspace.MusicGUIsong.SoundId="rbxassetid://"..sidfield.Text
  998. workspace.MusicGUIsong.Volume=volufield.Text
  999. workspace.MusicGUIsong:Play()
  1000. informii()
  1001. end)
  1002. pleh2.MouseButton1Click:connect(function()
  1003. create()
  1004. workspace.MusicGUIsong.Looped=looped
  1005. workspace.MusicGUIsong.PlaybackSpeed=psfield.Text
  1006. workspace.MusicGUIsong.SoundId="http://www.roblox.com/asset/?hash="..sidfield.Text
  1007. workspace.MusicGUIsong.Volume=volufield.Text
  1008. workspace.MusicGUIsong:Play()
  1009. informii()
  1010. end)
  1011. stahp.MouseButton1Click:connect(function()
  1012. del()
  1013. end)
  1014.  
  1015. -- sounds
  1016.  
  1017. ltrue.MouseButton1Click:connect(function()
  1018. makesound("rbxassetid://156785206")
  1019. end)
  1020.  
  1021. lfalse.MouseButton1Click:connect(function()
  1022. makesound("rbxassetid://156785206")
  1023. end)
  1024.  
  1025. psfield.SelectionGained:connect(function()
  1026. makesound("rbxassetid://156785206")
  1027. end)
  1028.  
  1029. psfield.Changed:connect(function()
  1030. makesound("rbxassetid://215658476")
  1031. end)
  1032.  
  1033. sidfield.SelectionGained:connect(function()
  1034. makesound("rbxassetid://156785206")
  1035. end)
  1036.  
  1037. sidfield.Changed:connect(function()
  1038. makesound("rbxassetid://215658476")
  1039. end)
  1040.  
  1041. volufield.SelectionGained:connect(function()
  1042. makesound("rbxassetid://156785206")
  1043. end)
  1044.  
  1045. volufield.Changed:connect(function()
  1046. makesound("rbxassetid://215658476")
  1047. end)
  1048.  
  1049. pleh1.MouseButton1Click:connect(function()
  1050. makesound("rbxassetid://156785206")
  1051. end)
  1052.  
  1053. pleh2.MouseButton1Click:connect(function()
  1054. makesound("rbxassetid://156785206")
  1055. end)
  1056.  
  1057. stahp.MouseButton1Click:connect(function()
  1058. makesound("rbxassetid://156785206")
  1059. end)
  1060.  
  1061. -- title fade after 3 seconds
  1062.  
  1063. wait(3)
  1064. if style=="Fade" then
  1065. repeat
  1066. wait(0.05)
  1067. title.TextTransparency=title.TextTransparency+0.01
  1068. title.TextStrokeTransparency=title.TextStrokeTransparency+0.005
  1069. until
  1070. title.TextTransparency>=1 and title.TextStrokeTransparency>=1
  1071. title:Destroy()
  1072. elseif style=="Shrink" then
  1073. repeat
  1074. wait(0.05)
  1075. title.TextSize=title.TextSize-1
  1076. until
  1077. title.TextSize==1
  1078. title:Destroy()
  1079. elseif style=="Hide" then
  1080. title:TweenPosition(UDim2.new(0,0,-1,0),"In","Back",1)
  1081. wait(1)
  1082. title:Destroy()
  1083. else
  1084. print([[style "]]..style..[[" is invalid, returning "Fade"]])
  1085. repeat
  1086. wait(0.05)
  1087. title.TextTransparency=title.TextTransparency+0.01
  1088. title.TextStrokeTransparency=title.TextStrokeTransparency+0.005
  1089. until
  1090. title.TextTransparency>=1 and title.TextStrokeTransparency>=1
  1091. title:Destroy()
  1092. end
  1093.  
  1094. custom("NOOB :D")
  1095. print(":V")
  1096. print(_vegetto.." ...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement