Advertisement
SmokeDelsin

playing around

Jul 22nd, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plr=game.Players.LocalPlayer
  2. local mouse=plr:GetMouse()
  3. local char=plr.Character
  4.  
  5.  
  6. local C=0
  7. local KK={}
  8. coroutine.wrap(function()
  9. while wait(0) do
  10. local part=Instance.new("Part",char)
  11. local emitter=Instance.new("ParticleEmitter",Part)
  12. part.FormFactor='Custom'
  13. part.Transparency=0.5
  14. part.Size=Vector3.new(3.5,0.1,3.5)
  15. part.TopSurface='Smooth'
  16. part.BrickColor = BrickColor.new(C==0 and 'Bright blue')
  17. part.Anchored=true
  18. game.Debris:AddItem(part,0.5)
  19. if KK['q'] then
  20. part.CanCollide=false
  21. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  22. elseif KK['e'] then
  23. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  24. end
  25. wait(0)
  26. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  27.  
  28. end
  29. end)()
  30.  
  31. mouse.KeyDown:connect(function(K)
  32. KK[K]=true
  33. if KK['y'] then
  34. C=C==0 and 1 or 0
  35. end
  36. end)
  37. --hi
  38. mouse.KeyUp:connect(function(K)
  39. KK[K]=false
  40. end)
  41. --------------------------------------------------------------------------------------------
  42. local plr=game.Players.LocalPlayer
  43. local mouse=plr:GetMouse()
  44. local char=plr.Character
  45.  
  46. wait(1.5)
  47. local C=0
  48. local KK={}
  49. coroutine.wrap(function()
  50. while wait(0) do
  51. local part=Instance.new("Part",char)
  52. local emitter=Instance.new("ParticleEmitter",Part)
  53. part.FormFactor='Custom'
  54. part.Transparency=0.5
  55. part.Size=Vector3.new(3.5,0.1,3.5)
  56. part.TopSurface='Smooth'
  57. part.BrickColor = BrickColor.new(C==0 and 'Bright red')
  58. part.Anchored=true
  59. game.Debris:AddItem(part,0.5)
  60. if KK['q'] then
  61. part.CanCollide=false
  62. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  63. elseif KK['e'] then
  64. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  65. end
  66. wait(0)
  67. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  68.  
  69. end
  70. end)()
  71.  
  72. mouse.KeyDown:connect(function(K)
  73. KK[K]=true
  74. if KK['y'] then
  75. C=C==0 and 1 or 0
  76. end
  77. end)
  78. --hi
  79. mouse.KeyUp:connect(function(K)
  80. KK[K]=false
  81. end)
  82. --------------------------------------------------------------------------
  83. local plr=game.Players.LocalPlayer
  84. local mouse=plr:GetMouse()
  85. local char=plr.Character
  86.  
  87. wait(3.1)
  88. local C=0
  89. local KK={}
  90. coroutine.wrap(function()
  91. while wait(0) do
  92. local part=Instance.new("Part",char)
  93. local emitter=Instance.new("ParticleEmitter",Part)
  94. part.FormFactor='Custom'
  95. part.Transparency=0.5
  96. part.Size=Vector3.new(3.5,0.1,3.5)
  97. part.TopSurface='Smooth'
  98. part.BrickColor = BrickColor.new(C==0 and 'Bright green')
  99. part.Anchored=true
  100. game.Debris:AddItem(part,0.5)
  101. if KK['q'] then
  102. part.CanCollide=false
  103. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  104. elseif KK['e'] then
  105. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  106. end
  107. wait(0)
  108. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  109.  
  110. end
  111. end)()
  112.  
  113. mouse.KeyDown:connect(function(K)
  114. KK[K]=true
  115. if KK['y'] then
  116. C=C==0 and 1 or 0
  117. end
  118. end)
  119. --hi
  120. mouse.KeyUp:connect(function(K)
  121. KK[K]=false
  122. end)
  123. --------------------------------------------------------------------------
  124. local plr=game.Players.SmokeDelsin
  125. local chr=plr.Character
  126. local mouse = plr:GetMouse()
  127. local PGui=plr.PlayerGui
  128. local lleg = chr["Left Leg"]
  129. local rleg = chr["Right Leg"]
  130. local larm = chr["Left Arm"]
  131. local rarm = chr["Right Arm"]
  132. local hed = chr.Head
  133. local rutprt = chr.HumanoidRootPart
  134. local torso = chr.Torso
  135. local otheranims=false
  136. local armmovement=false
  137. chr.Animate.Disabled=true
  138. local RunSpeed=30
  139. local WlkSpeed=18
  140. local runnin=false
  141. local disabled=false
  142. local tik=0
  143. local height=1
  144. local raising=false
  145. local lowering=false
  146. local pseudohead=hed:Clone()
  147. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  148. pseudohead.Name='PseudoHead'
  149. pseudohead.Parent=chr.Head
  150. local pseudoweld=Instance.new('Weld',torso)
  151. pseudoweld.Part0=hed
  152. pseudoweld.Name='PseudoHedWld'
  153. pseudoweld.Part1=pseudohead
  154. hed.Transparency=1
  155.  
  156. coroutine.resume(coroutine.create(function()
  157. local rate=.05
  158. local Hats={}
  159. for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026"
  160. end
  161. end
  162. local lam=Instance.new("SpecialMesh",larm)
  163. lam.MeshId="http://www.roblox.com/asset?id=12221505"
  164. lam.TextureId="http://www.roblox.com/asset?id=25701026"
  165. local ram=Instance.new("SpecialMesh",rarm)
  166. ram.MeshId="http://www.roblox.com/asset?id=12221505"
  167. ram.TextureId="http://www.roblox.com/asset?id=25701026"
  168. local rlm=Instance.new("SpecialMesh",rleg)
  169. rlm.MeshId="http://www.roblox.com/asset?id=12221626"
  170. rlm.TextureId="http://www.roblox.com/asset?id=25701026"
  171. local llm=Instance.new("SpecialMesh",lleg)
  172. llm.MeshId="http://www.roblox.com/asset?id=12221626"
  173. llm.TextureId="http://www.roblox.com/asset?id=25701026"
  174. local trm=Instance.new("SpecialMesh",torso)
  175. trm.MeshId="http://www.roblox.com/asset?id=12221758"
  176. trm.TextureId="http://www.roblox.com/asset?id=25701026"
  177. local hem=Instance.new("SpecialMesh",hed)
  178. hem.MeshId="rbxasset://fonts/head.mesh"
  179. hem.TextureId="http://www.roblox.com/asset?id=25701026"
  180. local hem2=Instance.new("SpecialMesh",pseudohead)
  181. hem2.MeshId="rbxasset://fonts/head.mesh"
  182. hem2.TextureId="http://www.roblox.com/asset?id=25701026"
  183. local asd=Instance.new('PointLight',torso)
  184. asd.Brightness=123
  185. asd.Range=12
  186. asd.Shadows=true
  187.  
  188. while wait'0' do
  189. for a=0,1,rate do
  190. lam.VertexColor=Vector3.new(a,0,-a+1)
  191. ram.VertexColor=Vector3.new(a,0,-a+1)
  192. rlm.VertexColor=Vector3.new(a,0,-a+1)
  193. llm.VertexColor=Vector3.new(a,0,-a+1)
  194. trm.VertexColor=Vector3.new(a,0,-a+1)
  195. hem.VertexColor=Vector3.new(a,0,-a+1)
  196. hem2.VertexColor=Vector3.new(a,0,-a+1)
  197. asd.Color=Color3.new(a,0,-a+1)
  198. coroutine.wrap(function()
  199. for x=1,#Hats do
  200. Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1)
  201. end
  202. end)()
  203. wait''
  204. end
  205. for a=0,1,rate do
  206. lam.VertexColor=Vector3.new(-a+1,a,0)
  207. ram.VertexColor=Vector3.new(-a+1,a,0)
  208. rlm.VertexColor=Vector3.new(-a+1,a,0)
  209. llm.VertexColor=Vector3.new(-a+1,a,0)
  210. trm.VertexColor=Vector3.new(-a+1,a,0)
  211. hem.VertexColor=Vector3.new(-a+1,a,0)
  212. hem2.VertexColor=Vector3.new(-a+1,a,0)
  213. asd.Color=Color3.new(-a+1,a,0)
  214. coroutine.wrap(function()
  215. for x=1,#Hats do
  216. Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0)
  217. end
  218. end)()
  219. wait''
  220. end
  221. for a=0,1,rate do
  222. lam.VertexColor=Vector3.new(0,-a+1,a)
  223. ram.VertexColor=Vector3.new(0,-a+1,a)
  224. rlm.VertexColor=Vector3.new(0,-a+1,a)
  225. llm.VertexColor=Vector3.new(0,-a+1,a)
  226. trm.VertexColor=Vector3.new(0,-a+1,a)
  227. hem.VertexColor=Vector3.new(0,-a+1,a)
  228. hem2.VertexColor=Vector3.new(0,-a+1,a)
  229. asd.Color=Color3.new(0,-a+1,a)
  230. coroutine.wrap(function()
  231. for x=1,#Hats do
  232. Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a)
  233. end
  234. end)()
  235. wait''
  236. end
  237. end
  238. end))
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. coroutine.wrap(function()
  249. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  250.  
  251. local flap=Instance.new("Sound",torso)
  252. flap.Volume=.3
  253. flap.Pitch=1
  254. flap.SoundId="http://www.roblox.com/asset?id=90820031"
  255.  
  256. function Lerp(a, b, i)
  257. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  258. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  259. local calx = com1[1] + (com2[1] - com1[1]) * i
  260. local caly = com1[2] + (com2[2] - com1[2]) * i
  261. local calz = com1[3] + (com2[3] - com1[3]) * i
  262. local cala = com1[4] + (com2[4] - com1[4]) * i
  263. local calb = com1[5] + (com2[5] - com1[5]) * i
  264. local calc = com1[6] + (com2[6] - com1[6]) * i
  265. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  266. end
  267.  
  268. function TwnSingleNumber(s,f,m)
  269. local wot=s+(f-s)*m
  270. return wot
  271. end
  272.  
  273. function TwnVector3(q,w,e)
  274. local begin={q.x,q.y,q.z}
  275. local ending={w.x,w.y,w.z}
  276. local bgx=begin[1]+(ending[1]-begin[1])*e
  277. local bgy=begin[2]+(ending[2]-begin[2])*e
  278. local bgz=begin[3]+(ending[3]-begin[3])*e
  279. return Vector3.new(bgx,bgy,bgz)
  280. end
  281.  
  282. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  283. wld = Instance.new("Weld", wp1)
  284. wld.Part0 = wp0
  285. wld.Part1 = wp1
  286. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  287. end
  288.  
  289. newWeld(law, torso, larm, -1.5, 0.5, 0)
  290. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  291. newWeld(llw, torso, lleg, -.5, -2, 0)
  292. newWeld(rlw, torso, rleg, .5, -2, 0)
  293. newWeld(hw, torso, hed, 0, 1.5, 0)
  294. local rutwald=Instance.new('Weld',rutprt)
  295. rutwald.Part0=rutprt
  296. rutwald.Part1=torso
  297. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  298. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  299. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  300. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  301. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  302.  
  303. local anim = "Idling"
  304. local lastanim = "Idling"
  305. local val = 0
  306. local syne = 0
  307. local num = 0
  308. local runtime = 0
  309.  
  310. --[[local pseudohead=hed:Clone()
  311. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  312. pseudohead.Name='PseudoHead'
  313. pseudohead.Parent=chr.Head
  314. local pseudoweld=Instance.new('Weld',torso)
  315. pseudoweld.Part0=hed
  316. pseudoweld.Name='PseudoHedWld'
  317. pseudoweld.Part1=pseudohead
  318. hed.Transparency=1]]
  319.  
  320.  
  321.  
  322. maus.KeyDown:connect(function(kei)
  323. if string.byte(kei)==48 and not otheranims and not disabled then
  324. chr.Humanoid.WalkSpeed=RunSpeed
  325. runnin=true
  326. end
  327. if kei=="e" and not otheranims and not disabled and not lowering then
  328. raising=true
  329. end
  330. if kei=="q" and not otheranims and not disabled and not raising then
  331. lowering=true
  332. end
  333. end)
  334.  
  335.  
  336.  
  337. game:service'RunService'.RenderStepped:connect(function()
  338. if raising and not lowering then height=height+.2
  339. elseif lowering and not raising then height=height-.2
  340. end
  341. if height>50 then height=50
  342. elseif height<-.75 then height=-.75
  343. end
  344. syne=syne+1
  345. if not otheranims then
  346. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not dnc and torso.Velocity.y<5 and torso.Velocity.y>-5 then
  347. anim="Idling"
  348.  
  349. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 25 and torso.Velocity.y<5 and torso.Velocity.y>-5 then
  350. anim="Walking"
  351. dnc=true
  352.  
  353. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 25 and torso.Velocity.y<5 and torso.Velocity.y>-5 then
  354. anim="Sprinting"
  355. dnc=true
  356.  
  357. elseif torso.Velocity.y>5 then
  358. anim='Jumping'
  359. dnc=true
  360.  
  361. elseif (torso.Velocity.y < -5) then
  362. anim='Falling'
  363. dnc=true
  364. end
  365. end
  366.  
  367. if anim=="Idling" then
  368. tik=tik+1
  369. if tik==45 then tik=0
  370. flap:play''
  371. end
  372. if not armmovement then
  373. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.55,0)*CFrame.Angles(math.sin(syne/16)/3,0,(math.sin(syne/8)*1.5)+math.rad(55)),.1)
  374. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.55,0)*CFrame.Angles(math.sin(syne/16)/3,0,-(math.sin(syne/8)*1.5)-math.rad(55)),.1)
  375. end
  376. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,math.sin(syne/16)/3)*CFrame.Angles(-math.sin(syne/16)/3,0,math.rad(-2.5)),.1)
  377. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,math.sin(syne/16)/3)*CFrame.Angles(-math.sin(syne/16)/3,0,math.rad(2.5)),.1)
  378. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(0),0),.1)
  379. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-(math.sin(syne/8))*1.8+height,-(math.sin(syne/16)/2))*CFrame.Angles(math.sin(syne/16)/10,math.rad(0),math.rad(0)),.025)
  380. end
  381. if anim=="Walking" then
  382. tik=tik+1
  383. if tik==43 then tik=0
  384. flap:play''
  385. end
  386. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-3)+math.sin(syne/7)/4,0,(math.sin(syne/7)*1.5)+math.rad(55)),.1)
  387. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(-3)+math.sin(syne/7)/4,0,-(math.sin(syne/7)*1.5)-math.rad(55)),.1)
  388. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,-math.sin(syne/14)/10)*CFrame.Angles(math.sin(syne/14)/10+math.rad(-5),0,math.rad(-2.5)),.1)
  389. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,-math.sin(syne/14)/10)*CFrame.Angles(math.sin(syne/14)/10+math.rad(-5),0,math.rad(2.5)),.1)
  390. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(0),0),.1)
  391. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-(math.sin(syne/7))*1.8+height,math.sin(syne/14)/2)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),.025)
  392. end
  393. if anim=="Sprinting" then
  394. tik=tik+1
  395. if tik==40 then tik=0
  396. flap:play''
  397. end
  398. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-3)-math.sin(syne/6.5)/2,0,(math.sin(syne/6.5)*1.5)+math.rad(55)),.1)
  399. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(-3)-math.sin(syne/6.5)/2,0,-(math.sin(syne/6.5)*1.5)-math.rad(55)),.1)
  400. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(0),0,math.rad(-2.5)),.1)
  401. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.5,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  402. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,math.rad(0),0),.1)
  403. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-(math.sin(syne/6.5)*1.6)+height,math.sin(syne/6.5)/5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),.025)
  404. end
  405. if anim=="Jumping" then
  406. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.55,0)*CFrame.Angles(0,0,math.rad(5)),.1)
  407. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.55,0)*CFrame.Angles(0,0,math.rad(5)),.1)
  408. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(0),0,math.rad(-2.5)),.1)
  409. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.5,-.1)*CFrame.Angles(math.rad(-12.5),0,math.rad(2.5)),.125)
  410. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),math.rad(0),0),.1)
  411. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,height,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.025)
  412. end
  413. if anim=="Falling" then
  414. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,1,0)*CFrame.Angles(math.rad(15),0,math.rad(175)),.1)
  415. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,1,0)*CFrame.Angles(math.rad(15),0,math.rad(-175)),.1)
  416. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(0),0,math.rad(-2.5)),.1)
  417. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.5,0)*CFrame.Angles(math.rad(-7.5),0,math.rad(2.5)),.125)
  418. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-20),math.rad(0),0),.1)
  419. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,rutprt.Weld.C0.y+1,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  420. end
  421.  
  422.  
  423. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  424. end)
  425. local plr=game.Players.LocalPlayer
  426. local mouse=plr:GetMouse()
  427. local char=plr.Character
  428.  
  429. local C=0
  430. local KK={}
  431. coroutine.wrap(function()
  432. while wait(0) do
  433. local part=Instance.new("Part",char)
  434. local emitter=Instance.new("ParticleEmitter",Part)
  435. part.FormFactor='Custom'
  436. part.Transparency=0.5
  437. part.Size=Vector3.new(3.5,0.1,3.5)
  438. part.TopSurface='Smooth'
  439. part.BrickColor = BrickColor.new(C==0 and 'Bright blue')
  440. part.Anchored=true
  441. game.Debris:AddItem(part,0.5)
  442. if KK['q'] then
  443. part.CanCollide=false
  444. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  445. elseif KK['e'] then
  446. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  447. end
  448. wait(0)
  449. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  450.  
  451. end
  452. end)()
  453.  
  454. mouse.KeyDown:connect(function(K)
  455. KK[K]=true
  456. if KK['y'] then
  457. C=C==0 and 1 or 0
  458. end
  459. end)
  460. --hi
  461. mouse.KeyUp:connect(function(K)
  462. KK[K]=false
  463. end)
  464. --------------------------------------------------------------------------------------------
  465. local plr=game.Players.LocalPlayer
  466. local mouse=plr:GetMouse()
  467. local char=plr.Character
  468.  
  469. local C=0
  470. local KK={}
  471. coroutine.wrap(function()
  472. while wait(0) do
  473. local part=Instance.new("Part",char)
  474. local emitter=Instance.new("ParticleEmitter",Part)
  475. part.FormFactor='Custom'
  476. part.Transparency=0.5
  477. part.Size=Vector3.new(3.5,0.1,3.5)
  478. part.TopSurface='Smooth'
  479. part.BrickColor = BrickColor.new(C==0 and 'Bright red')
  480. part.Anchored=true
  481. game.Debris:AddItem(part,0.5)
  482. if KK['q'] then
  483. part.CanCollide=false
  484. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  485. elseif KK['e'] then
  486. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  487. end
  488. wait(0)
  489. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  490.  
  491. end
  492. end)()
  493.  
  494. mouse.KeyDown:connect(function(K)
  495. KK[K]=true
  496. if KK['y'] then
  497. C=C==0 and 1 or 0
  498. end
  499. end)
  500. --hi
  501. mouse.KeyUp:connect(function(K)
  502. KK[K]=false
  503. end)
  504. --------------------------------------------------------------------------
  505. local plr=game.Players.LocalPlayer
  506. local mouse=plr:GetMouse()
  507. local char=plr.Character
  508.  
  509. local C=0
  510. local KK={}
  511. coroutine.wrap(function()
  512. while wait(0) do
  513. local part=Instance.new("Part",char)
  514. local emitter=Instance.new("ParticleEmitter",Part)
  515. part.FormFactor='Custom'
  516. part.Transparency=0.5
  517. part.Size=Vector3.new(3.5,0.1,3.5)
  518. part.TopSurface='Smooth'
  519. part.BrickColor = BrickColor.new(C==0 and 'Bright green')
  520. part.Anchored=true
  521. game.Debris:AddItem(part,0.5)
  522. if KK['q'] then
  523. part.CanCollide=false
  524. char['Right Leg'].CFrame=char['Right Leg'].CFrame*CFrame.new(0,-0.5,0)
  525. elseif KK['e'] then
  526. char['Head'].CFrame=char['Head'].CFrame*CFrame.new(0,0.1,0)
  527. end
  528. wait(0)
  529. part.CFrame = CFrame.new(char.Torso.Position)*CFrame.new(0,-3.3,0)
  530.  
  531. end
  532. end)()
  533.  
  534. mouse.KeyDown:connect(function(K)
  535. KK[K]=true
  536. if KK['y'] then
  537. C=C==0 and 1 or 0
  538. end
  539. end)
  540. --hi
  541. mouse.KeyUp:connect(function(K)
  542. KK[K]=false
  543. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement