Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.93 KB | None | 0 0
  1. --One Punch Man Script
  2. p = game.Players.LocalPlayer
  3. char = p.Character
  4. des = false
  5. fling = true
  6. dot = false
  7. falling = false
  8. jump = true
  9. --char.Shirt:Remove()
  10. --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  11. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  12. wait()--shirt = Instance.new("Shirt", char)
  13. --shirt.Name = "Shirt"
  14. --pants = Instance.new("Pants", char)
  15. --pants.Name = "Pants"
  16.  
  17. --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
  18. --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  19. tp = true
  20. shoot = true
  21. hum = char.Humanoid
  22. punch = true
  23. neckp = char.Torso.Neck.C0
  24. neck = char.Torso.Neck
  25. hum.MaxHealth = 9999999999999999999999999999999999999999
  26. wait()
  27. hum.Health =hum.MaxHealth
  28. des = false
  29. root=char.HumanoidRootPart
  30. torso = char.Torso
  31. char.Head.face.Texture = "rbxassetid://332768867"
  32. local ChatService = game:GetService("Chat")
  33. local player = game.Players.LocalPlayer
  34. lig = Instance.new("PointLight",player.Character.Torso)
  35. lig.Color=Color3.new(255,0,0)
  36. m=player:GetMouse()
  37. bb = Instance.new("BillboardGui",player.Character.Head)
  38. bb.Enabled = true
  39. function newRay(start,face,range,wat)
  40. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  41. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  42. return rey,hit,pos
  43. end
  44. aa1={}
  45. torso=game.Players.LocalPlayer.Character.Torso
  46.  
  47. local WorldUp = Vector3.new(0,1,0)
  48. function look2(Vec1,Vec2)
  49. local Orig = Vec1
  50. Vec1 = Vec1+Vector3.new(0,1,0)
  51. Vec2 = Vec2+Vector3.new(0,1,0)
  52. local Forward = (Vec2-Vec1).unit
  53. local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
  54. local Right = Up:Cross(Forward).unit
  55. Forward = -Forward
  56. Right = -Right
  57. return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  58. end
  59.  
  60. function look(CFr,Vec2)
  61. local A = Vector3.new(0,0,0)
  62. local B = CFr:inverse()*Vec2
  63. local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
  64. if B.Z > 0 then
  65. CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
  66. elseif B.Z == 0 then
  67. if B.Y > 0 then
  68. CF = CFr*CFrame.Angles(math.pi/2,0,0)
  69. elseif B.Y < 0 then
  70. CF = CFr*CFrame.Angles(-math.pi/2,0,0)
  71. else
  72. CF = CFr
  73. end
  74. end
  75. local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
  76. local Up = Vector3.new(X,Y,Z)
  77. local Forward = (Vec2-CFr.p).unit
  78. local Right = Up:Cross(Forward)
  79. Forward = -Forward
  80. Right = -Right
  81. return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  82. end
  83.  
  84. function simulate(j,d,m,r,t)
  85. local joint = j
  86. for i,v in ipairs(t) do
  87. if v[1]:FindFirstChild("Weld") then
  88. local stiff = m.CFrame.lookVector*0.03
  89. if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
  90. local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  91. local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  92. local pos = joint.p+(dir*(d*0.5))
  93. --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
  94. local inv = v[1].Weld.Part0.CFrame
  95. local rel1 = inv:inverse()*pos
  96. local rel2 = inv:inverse()*(pos-(dir*dis))
  97. local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  98. v[1].Weld.C0 = cf
  99. v[2] = inv*cf
  100. --v[1].CFrame = cf
  101. end
  102. end
  103. end
  104. for i=1,8 do
  105. local p = Instance.new("Part",char)
  106. p.Anchored = false
  107. p.BrickColor = BrickColor.new("Institutional white")
  108. p.CanCollide = false
  109. p.FormFactor="Custom"
  110. p.Material = "SmoothPlastic"
  111. p.TopSurface = "SmoothNoOutlines"
  112. p.BottomSurface = "SmoothNoOutlines"
  113. p.RightSurface = "SmoothNoOutlines"
  114. p.LeftSurface = "SmoothNoOutlines"
  115. p.FrontSurface = "SmoothNoOutlines"
  116. p.BackSurface = "SmoothNoOutlines"
  117.  
  118. p.Size=Vector3.new(2,.2,0.2)
  119. p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
  120. mesh = Instance.new("BlockMesh",p)
  121. mesh.Scale = Vector3.new(1,1,4)
  122. local w = Instance.new("Motor6D",p)
  123. w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
  124. w.Part1 = p
  125. w.Name = "Weld"
  126. --table.insert(aa1,p)
  127. aa1[i] = {p,p.CFrame}
  128.  
  129. end
  130. game:service"RunService".Stepped:connect(function()
  131. simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
  132. end)
  133. bb.AlwaysOnTop = true
  134. bb.Size = UDim2.new(0,200,0,50)
  135. bb.StudsOffset = Vector3.new(0,1,0)
  136. gui=Instance.new("TextBox",bb)
  137. gui.Text = "* "
  138. gui.Size = UDim2.new(0,133,0,45)
  139. gui.Position=UDim2.new(0,57,0,-40)
  140. gui.TextColor3 = Color3.new(255,255,255)
  141. gui.BackgroundColor3=Color3.new(0,0,0)
  142. gui.TextWrapped = true
  143. gui.TextScaled = true
  144. gui.TextXAlignment = "Left"
  145. gui.TextYAlignment = "Top"
  146. gui.Visible = false
  147. gui.BorderColor3 = Color3.new(0,0,0)
  148. punch2 = true
  149. gui1=Instance.new("TextButton",bb)
  150. gui1.Position=UDim2.new(0,5,0,-43)
  151. gui1.Size = UDim2.new(0,190,0,51)
  152.  
  153. gui1.TextColor3 = Color3.new(255,255,255)
  154. gui1.BackgroundColor3=Color3.new(255,255,255)
  155. jump2 = true
  156. gui1.Visible = false
  157. img = Instance.new("ImageLabel",bb)
  158. img.Size = UDim2.new(0,46,0,47)
  159. img.Position = UDim2.new(0,10,0,-41)
  160. img.Image = "rbxassetid://447301252"
  161. img.BorderColor3 = Color3.new(0,0,0)
  162. img.Visible = false
  163. soka = Instance.new("Sound",char)
  164. soka.SoundId = "http://www.roblox.com/asset/?id = 447199232"
  165. soka.Volume = 1
  166. boom = Instance.new("Sound",char)
  167. boom.SoundId = "http://www.roblox.com/asset/?id = 447041606"
  168. boom.Volume = 1
  169. boom2 = Instance.new("Sound",char)
  170. boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737"
  171. boom2.Volume = 1
  172. boom3 = Instance.new("Sound",char)
  173. boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
  174. boom3.Volume = 1
  175. tps = Instance.new("Sound",char)
  176. tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
  177. tps.Volume = 1
  178. asd = Instance.new("Sound",char)
  179. asd.SoundId = "http://www.roblox.com/asset/?id = 447310433"
  180. asd.Volume =1
  181. asd1 = Instance.new("Sound",char)
  182. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  183.  
  184. asd2 = Instance.new("Sound",char)
  185. asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054"
  186. asd2.Looped = true
  187. asd2.Volume = 5
  188. asd3 = Instance.new("Sound",char)
  189. asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996"
  190. asd3.Looped = true
  191. asd4 = Instance.new("Sound",char)
  192. asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  193. asd4.Looped = true
  194. asd5 = Instance.new("Sound",char)
  195. asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261"
  196. asd5.Looped = true
  197. gas = Instance.new("Sound",char)
  198. gas.SoundId = "http://www.roblox.com/asset/?id = 345052019"
  199. asd6 = Instance.new("Sound",char)
  200. asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  201. asd6.Looped = true
  202. function play(play)
  203. asd:Play()
  204. wait(0.05)
  205. --asd1:Play()
  206. end
  207.  
  208.  
  209.  
  210. ------------
  211. -------------------------
  212.  
  213. function stream(origin,dir,length,size)
  214. local parts = {}
  215. for i = 1,length do
  216. local p = Instance.new("Part",char)
  217. p.Anchored = true
  218. p.Transparency = 0.5
  219. p.TopSurface = 0
  220. p.BottomSurface = 0
  221. p.CanCollide = false
  222. p.BrickColor = BrickColor.new("Institutional white")
  223. p.Size = Vector3.new(10,30,10) -- for now
  224. p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  225. parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
  226. game:GetService("Debris"):AddItem(p,3)
  227. end
  228. Spawn(function()
  229. while parts do
  230. for i,v in pairs(parts) do
  231. if v[1].Parent == char then
  232. v[1].CFrame = v[1].CFrame*v[2]
  233. else
  234. parts = nil
  235. break
  236. end
  237. end
  238. wait(0.02)
  239. end
  240. end)
  241. end
  242.  
  243. --[[-- listen for their chatting
  244. player.Chatted:connect(function(message)
  245. a = string.len(message)
  246. gui.Text = ""
  247. gui.Visible = true
  248. gui1.Visible = true
  249. des = false
  250. img.Visible = true
  251. print(a)
  252. if dot == false then
  253. gui.Text = ""
  254. for i = 1,string.len(message) do
  255. gui.Text =gui.Text..message:sub(i,i)
  256. play()
  257.  
  258. end
  259. end
  260.  
  261.  
  262. des = true
  263. end)]]--
  264. m.KeyDown:connect(function(k)
  265. if k == "g" then
  266. asd2:Play()
  267.  
  268.  
  269. end
  270. end)
  271.  
  272. m.KeyDown:connect(function(k)
  273. if k == "r" then
  274.  
  275. asd4:Play()
  276. end
  277. end)
  278. m.KeyDown:connect(function(k)
  279. if k == "q" then
  280.  
  281. asd3:Play()
  282. end
  283. end)
  284. m.KeyDown:connect(function(k)
  285. if k == "z" then
  286. img.Image = "rbxassetid:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement