Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.29 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScriptsGUI = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local TextButton = Instance.new("TextButton")
  7. local TextButton_2 = Instance.new("TextButton")
  8. local TextButton_3 = Instance.new("TextButton")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10.  
  11. -- Properties
  12.  
  13. ScriptsGUI.Name = "ScriptsGUI"
  14. ScriptsGUI.Parent = game.StarterGui
  15.  
  16. Frame.Parent = ScriptsGUI
  17. Frame.Active = true
  18. Frame.BackgroundColor3 = Color3.new(0.00784314, 0.00784314, 0.00784314)
  19. Frame.BackgroundTransparency = 0.40000000596046
  20. Frame.Draggable = true
  21. Frame.Position = UDim2.new(0, 742, 0, 515)
  22. Frame.Size = UDim2.new(0, 319, 0, 105)
  23.  
  24. TextLabel.Parent = Frame
  25. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  26. TextLabel.BackgroundTransparency = 1
  27. TextLabel.Position = UDim2.new(0, -143, 0, 0)
  28. TextLabel.Size = UDim2.new(0, 392, 0, 18)
  29. TextLabel.Font = Enum.Font.ArialBold
  30. TextLabel.FontSize = Enum.FontSize.Size14
  31. TextLabel.Text = "Jetpack v0.2"
  32. TextLabel.TextColor3 = Color3.new(1, 0.964706, 0.996078)
  33. TextLabel.TextScaled = true
  34. TextLabel.TextSize = 14
  35. TextLabel.TextWrapped = true
  36.  
  37. TextButton.Parent = Frame
  38. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  39. TextButton.Position = UDim2.new(0, 15, 0, 53)
  40. TextButton.Size = UDim2.new(0, 89, 0, 29)
  41. TextButton.Font = Enum.Font.ArialBold
  42. TextButton.FontSize = Enum.FontSize.Size14
  43. TextButton.Text = "Thomas The Train"
  44. TextButton.TextScaled = true
  45. TextButton.TextSize = 14
  46. TextButton.TextWrapped = true
  47.  
  48. TextButton.MouseButton1Down:connect(function()
  49. -- ty krystalburger
  50. --[[
  51. Thomas The Dank Engine:
  52. By: KrystalTeam
  53. Features: Being a dank engine that kill people
  54. Version: 1.0.0.2
  55. --]]
  56.  
  57. local p = game.Players.LocalPlayer.Character
  58. local weld = Instance.new("Weld",p.Torso)
  59. weld.Part0 = p.Torso
  60.  
  61. local train = Instance.new("Part",p.Torso)
  62. train.Anchored = true
  63. train.CanCollide = false
  64. train.Size = Vector3.new(3,2,6)
  65. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  66. weld.Part1 = train
  67. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  68. train.Anchored = false
  69. local TrainMesh = Instance.new("SpecialMesh",train)
  70. TrainMesh.MeshType = Enum.MeshType.FileMesh
  71. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  72. TrainMesh.MeshId = "rbxassetid://431017802"
  73. TrainMesh.TextureId = "rbxassetid://431017809"
  74.  
  75.  
  76. local weld2 = Instance.new("Weld",p.Torso)
  77. weld2.Part0 = p.Torso
  78. local Smoke = Instance.new("Part",p.Torso)
  79. Smoke.Anchored = true
  80. Smoke.CanCollide = false
  81. Smoke.Size = Vector3.new(1,1,1)
  82. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  83. weld2.Part1 = Smoke
  84. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  85. Smoke.Anchored = false
  86. Smoke.Transparency = 1;
  87.  
  88. local Particle = Instance.new("ParticleEmitter",Smoke)
  89. Particle.Rate = 50;
  90. Particle.Speed = NumberRange.new(30,60);
  91. Particle.VelocitySpread = 4;
  92. Particle.Texture = "rbxassetid://133619974"
  93.  
  94. local Light = Instance.new("SpotLight",train)
  95. Light.Angle = 45;
  96. Light.Brightness = 100;
  97. Light.Face = Enum.NormalId.Back;
  98. Light.Range = 30;
  99.  
  100. p.Humanoid.WalkSpeed = 60;
  101.  
  102.  
  103. for i,v in pairs(p:GetChildren()) do
  104. if v:IsA("Part") then
  105. v.Transparency = 1;
  106. elseif v:IsA("Hat") then
  107. v:Destroy()
  108. elseif v:IsA("Model") then
  109. v:Destroy()
  110. end
  111. end
  112.  
  113. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  114. train.Touched:connect(function(p)
  115. if p.Parent then
  116. if p.Parent:IsA("Model") then
  117. if game.Players:FindFirstChild(p.Parent.Name) then
  118. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  119. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  120. local Whistle = SFX(475073913)
  121. Whistle:Play()
  122. end
  123. end
  124. end
  125. end
  126. end)
  127.  
  128. local Music = SFX(190819252)
  129. Music.Looped = true;
  130. wait(1)
  131. Music:Play();
  132. -- ~CL 2016
  133. end)
  134.  
  135. TextButton_2.Parent = Frame
  136. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  137. TextButton_2.Position = UDim2.new(0, 115, 0, 53)
  138. TextButton_2.Size = UDim2.new(0, 89, 0, 29)
  139. TextButton_2.Font = Enum.Font.ArialBold
  140. TextButton_2.FontSize = Enum.FontSize.Size14
  141. TextButton_2.Text = "Pooping Dog"
  142. TextButton_2.TextScaled = true
  143. TextButton_2.TextSize = 14
  144. TextButton_2.TextWrapped = true
  145.  
  146. TextButton_2.MouseButton1Down:connect(function()
  147. local p = game.Players.LocalPlayer
  148. local char = p.Character
  149. local mouse = p:GetMouse()
  150. local larm = char["Left Arm"]
  151. local rarm = char["Right Arm"]
  152. local lleg = char["Left Leg"]
  153. local rleg = char["Right Leg"]
  154. local hed = char.Head
  155. local torso = char.Torso
  156. local hum = char.Humanoid
  157. local cam = game.Workspace.CurrentCamera
  158. local root = char.HumanoidRootPart
  159. local deb = false
  160. local shot = 0
  161. local debris=game:service"Debris"
  162. local l = game:GetService("Lighting")
  163. local rs = game:GetService("RunService").RenderStepped
  164. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  165. math.randomseed(os.time())
  166. ----------------------------------------------------
  167. Debounces = {
  168. CanAttack = true;
  169. NoIdl = false;
  170. Slashing = false;
  171. Slashed = false;
  172. RPunch = false;
  173. RPunched = false;
  174. LPunch = false;
  175. LPunched = false;
  176. }
  177. local Touche = {char.Name, }
  178. ----------------------------------------------------
  179. hed.face.Texture = "rbxassetid://227969918"
  180. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  181. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  182. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  183. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  184. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  185. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  186. ----------------------------------------------------
  187. ypcall(function()
  188. char.Shirt:Destroy()
  189. char.Pants:Destroy()
  190. shirt = Instance.new("Shirt", char)
  191. shirt.Name = "Shirt"
  192. pants = Instance.new("Pants", char)
  193. pants.Name = "Pants"
  194. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
  195. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
  196. end)
  197. ----------------------------------------------------
  198. --------------nico
  199. local fartids={251309043,251309043}
  200. local timer=false
  201. local debris=game:GetService("Debris")
  202. local char=game.Players.LocalPlayer.Character
  203. for i = 1,3,2 do
  204. local asdf=Instance.new("Part",char)
  205. asdf.Shape="Ball"
  206. asdf.Locked=true
  207. asdf.FormFactor="Custom"
  208. asdf.Material="SmoothPlastic"
  209. asdf.BrickColor=BrickColor.new(1030)
  210. asdf.Size=Vector3.new(.4,.4,.4)
  211. local weld=Instance.new("Weld",char)
  212. weld.Part0=char.Torso
  213. weld.Part1=asdf
  214. weld.C0=CFrame.new((i-2)/2.5,-.9,.4)
  215. end
  216. function crap()
  217. if timer==false then
  218. timer=true
  219. local char=game.Players.LocalPlayer.Character
  220. local crap=Instance.new("Part",Workspace)
  221. crap.FormFactor="Custom"
  222. crap.BrickColor=BrickColor.new(25)
  223. crap.Material="Grass"
  224. crap.Size=Vector3.new(1.2,0.4,0.4)
  225. local snd=Instance.new("Sound",char)
  226. snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)])
  227. snd.Volume=2
  228. snd:Play()
  229. debris:AddItem(snd,snd.TimeLength)
  230. local smk=Instance.new("Smoke",crap)
  231. smk.Color=BrickColor.new(25).Color
  232. debris:AddItem(smk,2.5)
  233. for i = 0.15,1.3,.02 do
  234. local weld=Instance.new("Weld",crap)
  235. weld.Part0=char.Torso
  236. weld.Part1=crap
  237. weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0)
  238. wait()
  239. end
  240. local crapCFrame=crap.CFrame
  241. crap:Destroy()
  242.  
  243. for i = 0,1.2,0.4 do
  244. local newCrap=Instance.new("Part",Workspace)
  245. newCrap.FormFactor="Custom"
  246. newCrap.BrickColor=BrickColor.new(25)
  247. newCrap.Material="Grass"
  248. newCrap.Size=Vector3.new(.4,.4,.4)
  249. newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0)
  250. end
  251. timer=false
  252. end
  253. end
  254. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  255. if string.lower(key)=="x" then
  256. crap()
  257. end
  258. end)
  259.  
  260. do --CFrame lerp
  261. local function QuaternionFromCFrame(cf)
  262. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  263. local trace = m00 + m11 + m22
  264. if trace > 0 then
  265. local s = math.sqrt(1 + trace)
  266. local recip = 0.5/s
  267. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  268. else
  269. local i = 0
  270. if m11 > m00 then
  271. i = 1
  272. end
  273. if m22 > (i == 0 and m00 or m11) then
  274. i = 2
  275. end
  276. if i == 0 then
  277. local s = math.sqrt(m00-m11-m22+1)
  278. local recip = 0.5/s
  279. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  280. elseif i == 1 then
  281. local s = math.sqrt(m11-m22-m00+1)
  282. local recip = 0.5/s
  283. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  284. elseif i == 2 then
  285. local s = math.sqrt(m22-m00-m11+1)
  286. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  287. end
  288. end
  289. end
  290. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  291. local xs, ys, zs = x + x, y + y, z + z
  292. local wx, wy, wz = w*xs, w*ys, w*zs
  293. local xx = x*xs
  294. local xy = x*ys
  295. local xz = x*zs
  296. local yy = y*ys
  297. local yz = y*zs
  298. local zz = z*zs
  299. 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))
  300. end
  301. local function QuaternionSlerp(a, b, t)
  302. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  303. local startInterp, finishInterp;
  304. if cosTheta >= 0.0001 then
  305. if (1 - cosTheta) > 0.0001 then
  306. local theta = math.acos(cosTheta)
  307. local invSinTheta = 1/math.sin(theta)
  308. startInterp = math.sin((1-t)*theta)*invSinTheta
  309. finishInterp = math.sin(t*theta)*invSinTheta
  310. else
  311. startInterp = 1-t
  312. finishInterp = t
  313. end
  314. else
  315. if (1+cosTheta) > 0.0001 then
  316. local theta = math.acos(-cosTheta)
  317. local invSinTheta = 1/math.sin(theta)
  318. startInterp = math.sin((t-1)*theta)*invSinTheta
  319. finishInterp = math.sin(t*theta)*invSinTheta
  320. else
  321. startInterp = t-1
  322. finishInterp = t
  323. end
  324. end
  325. 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
  326. end
  327. function clerp(a,b,t)
  328. local qa = {QuaternionFromCFrame(a)}
  329. local qb = {QuaternionFromCFrame(b)}
  330. local ax, ay, az = a.x, a.y, a.z
  331. local bx, by, bz = b.x, b.y, b.z
  332. local _t = 1-t
  333. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  334. end
  335.  
  336. end
  337. do --the animating
  338. plr = game:service'Players'.LocalPlayer
  339. char = plr.Character
  340. mouse = plr:GetMouse()
  341. humanoid = char:findFirstChild("Humanoid")
  342. torso = char:findFirstChild("Torso")
  343. head = char.Head
  344. ra = char:findFirstChild("Right Arm")
  345. la = char:findFirstChild("Left Arm")
  346. rl = char:findFirstChild("Right Leg")
  347. ll = char:findFirstChild("Left Leg")
  348. rs = torso:findFirstChild("Right Shoulder")
  349. ls = torso:findFirstChild("Left Shoulder")
  350. rh = torso:findFirstChild("Right Hip")
  351. lh = torso:findFirstChild("Left Hip")
  352. neck = torso:findFirstChild("Neck")
  353. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  354. anim = char:findFirstChild("Animate")
  355. rootpart = char:findFirstChild("HumanoidRootPart")
  356. camera = workspace.CurrentCamera
  357. if anim then
  358. anim:Destroy()
  359. end
  360.  
  361.  
  362. local rm = Instance.new("Motor", torso)
  363. rm.C0 = CFrame.new(1.5, 0.5, 0)
  364. rm.C1 = CFrame.new(0, 0.5, 0)
  365. rm.Part0 = torso
  366. rm.Part1 = ra
  367. local lm = Instance.new("Motor", torso)
  368. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  369. lm.C1 = CFrame.new(0, 0.5, 0)
  370. lm.Part0 = torso
  371. lm.Part1 = la
  372.  
  373. local rlegm = Instance.new("Motor", torso)
  374. rlegm.C0 = CFrame.new(0.5, -1, 0)
  375. rlegm.C1 = CFrame.new(0, 1, 0)
  376. rlegm.Part0 = torso
  377. rlegm.Part1 = rl
  378. local llegm = Instance.new("Motor", torso)
  379. llegm.C0 = CFrame.new(-0.5, -1, 0)
  380. llegm.C1 = CFrame.new(0, 1, 0)
  381. llegm.Part0 = torso
  382. llegm.Part1 = ll
  383.  
  384. neck.C0 = CFrame.new(0, 1, 0)
  385. neck.C1 = CFrame.new(0, -0.5, 0)
  386.  
  387.  
  388. rj.C0 = CFrame.new()
  389. rj.C1 = CFrame.new()
  390.  
  391.  
  392. local sound = Instance.new("Sound", head)
  393. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  394. sound.Volume = 0.8
  395. sound.Looped = true
  396.  
  397. local speed = 0.3
  398. local angle = 0
  399. local sitting = false
  400. local humanwalk = false
  401. local anglespeed = 1
  402. rsc0 = rm.C0
  403. lsc0 = lm.C0
  404. llc0 = llegm.C0
  405. rlc0 = rlegm.C0
  406. neckc0 = neck.C0
  407.  
  408. local controllerService = game:GetService("ControllerService")
  409. local controller = controllerService:GetChildren()[1]
  410.  
  411. controller.Parent = nil
  412.  
  413. while wait() do
  414. angle = (angle % 100) + anglespeed/10
  415. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  416. local rscf = rsc0
  417. local lscf = lsc0
  418. local rlcf = rlc0
  419. local llcf = llc0
  420. local rjcf = CFrame.new()
  421. local ncf = neckc0
  422. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  423. local hitz, enz = workspace:findPartOnRay(rayz, char)
  424. if not hitz then
  425. if sound.IsPlaying then
  426. sound:stop()
  427. end
  428.  
  429. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  430.  
  431. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  432. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  433. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  434. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  435. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  436. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  437.  
  438. else
  439.  
  440. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  441. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  442. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  443. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  444. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  445. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  446.  
  447. end
  448. elseif humanoid.Sit then
  449. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then
  450. anglespeed = 6
  451. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  452. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  453. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  454. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  455. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  456. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  457. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
  458. anglespeed = 4
  459. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  460. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  461. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  462. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  463. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  464. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  465. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  466. anglespeed = 2
  467. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  468. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  469. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  470. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  471. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  472. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  473. else
  474. anglespeed = 1/2
  475. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  476. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  477. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  478. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  479. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  480. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  481. end
  482. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  483. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  484. anglespeed = 6
  485. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  486. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  487. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  488. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  489. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  490. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  491. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  492. anglespeed = 2
  493. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  494. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  495. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  496. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  497. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  498. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  499. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  500. anglespeed = 3
  501. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  502. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  503. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  504. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  505. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  506. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  507. else
  508. if humanwalk then
  509. anglespeed = 1/4
  510. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  511. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  512. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  513. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  514. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  515. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  516. else
  517. anglespeed = 1/2
  518. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  519. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  520. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  521. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  522. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  523. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  524. end
  525. end
  526. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  527. if sound.IsPlaying then
  528. sound:stop()
  529. end
  530. if humanwalk then
  531. anglespeed = 4
  532. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  533. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  534. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  535. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  536. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  537. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  538. else
  539. anglespeed = 4
  540. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  541. rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
  542. rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
  543. lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
  544. rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
  545. llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
  546. end
  547. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  548. if sound.IsPlaying then
  549. sound:stop()
  550. end
  551. if humanwalk then
  552. anglespeed = 5
  553. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  554. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  555. rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02)
  556. lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02)
  557. rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  558. llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  559. else
  560. anglespeed = 5.5
  561. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  562. rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
  563. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  564. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  565. rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
  566. llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
  567. end
  568. end
  569.  
  570. rm.C0 = clerp(rm.C0,rscf,speed)
  571. lm.C0 = clerp(lm.C0,lscf,speed)
  572. rj.C0 = clerp(rj.C0,rjcf,speed)
  573. neck.C0 = clerp(neck.C0,ncf,speed)
  574. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  575. llegm.C0 = clerp(llegm.C0,llcf,speed)
  576. end
  577.  
  578.  
  579. end
  580. end)
  581.  
  582. TextButton_3.Parent = Frame
  583. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
  584. TextButton_3.Position = UDim2.new(0, 214, 0, 53)
  585. TextButton_3.Size = UDim2.new(0, 89, 0, 29)
  586. TextButton_3.Font = Enum.Font.ArialBold
  587. TextButton_3.FontSize = Enum.FontSize.Size14
  588. TextButton_3.Text = "Sing"
  589. TextButton_3.TextScaled = true
  590. TextButton_3.TextSize = 14
  591. TextButton_3.TextWrapped = true
  592.  
  593. TextButton_3.MouseButton1Down:connect(function()
  594. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  595. local plr = game.Players.LocalPlayer
  596. repeat wait() until plr.Character
  597. plr = game.Players.LocalPlayer
  598. char = plr.Character
  599. torso = char.Torso
  600. head = char.Head
  601. neck = torso.Neck
  602. head.face:Destroy()
  603. sound = Instance.new("Sound", head)
  604. sound.SoundId = "rbxassetid://"
  605. sound.Volume = 100
  606. sound:Play()
  607. sound.Looped = true
  608. plr.Chatted:connect(function(message)
  609. if message:sub(1,4) == "Play" then
  610. sound:Stop()
  611. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  612. sound:Play()
  613. end
  614. end)
  615.  
  616.  
  617.  
  618.  
  619. ---- [[ Left Eye]] ----
  620.  
  621. eye1 = Instance.new("Part", workspace)
  622. eye1.Anchored = false
  623. eye1.Parent = head
  624. eye1.TopSurface = 0
  625. eye1.BrickColor = BrickColor.new("Black")
  626. eye1.BottomSurface = 0
  627. eye1m = Instance.new("SpecialMesh", eye1)
  628. eye1m.MeshType = Enum.MeshType.Sphere
  629. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  630. ogsize = eye1m.Scale
  631. weld = Instance.new("Weld", head)
  632. weld.Part0 = eye1
  633. weld.Part1 = head
  634. weld.C1 = CFrame.new(-.17,.14,-.57)
  635.  
  636.  
  637.  
  638. ---- [[ Right Eye ]] ----
  639.  
  640.  
  641. eye2 = Instance.new("Part", workspace)
  642. eye2.Anchored = false
  643. eye2.Parent = head
  644. eye2.TopSurface = 0
  645. eye2.BrickColor = BrickColor.new("Black")
  646. eye2.BottomSurface = 0
  647. eye2m = Instance.new("SpecialMesh", eye2)
  648. eye2m.MeshType = Enum.MeshType.Sphere
  649. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  650. ogsize = eye2m.Scale
  651. weld = Instance.new("Weld", head)
  652. weld.Part0 = eye2
  653. weld.Part1 = head
  654. weld.C1 = CFrame.new(.17,.14,-.57)
  655.  
  656.  
  657.  
  658. ---- [[ Mouth ]] ----
  659.  
  660. mouth = Instance.new("Part", workspace)
  661. mouth.Anchored = false
  662. mouth.Parent = head
  663. mouth.TopSurface = 0
  664. mouth.BrickColor = BrickColor.new("Black")
  665. mouth.BottomSurface = 0
  666. mouth.Material = "SmoothPlastic"
  667. mouthm = Instance.new("SpecialMesh", mouth)
  668. mouthm.MeshType = Enum.MeshType.Sphere
  669. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  670. ogsize = mouthm.Scale
  671. weld = Instance.new("Weld", head)
  672. weld.Part0 = mouth
  673. weld.Part1 = head
  674. weld.C1 = CFrame.new(0,-.25,-.6)
  675. game:service'RunService'.RenderStepped:connect(function()
  676. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  677. neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(mouthm.Scale.Y*100) +math.rad(-90),0,math.rad(180)),0.1)
  678. end)
  679. end)
  680.  
  681. TextLabel_2.Parent = Frame
  682. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  683. TextLabel_2.BackgroundTransparency = 1
  684. TextLabel_2.Position = UDim2.new(0, 42, 0, 0)
  685. TextLabel_2.Size = UDim2.new(0, 392, 0, 18)
  686. TextLabel_2.Font = Enum.Font.ArialBold
  687. TextLabel_2.FontSize = Enum.FontSize.Size14
  688. TextLabel_2.Text = "GUI by iiKinqRaph"
  689. TextLabel_2.TextColor3 = Color3.new(1, 0.964706, 0.996078)
  690. TextLabel_2.TextScaled = true
  691. TextLabel_2.TextSize = 14
  692. TextLabel_2.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement