Advertisement
yougotoof

lwoqfoqwef

Oct 16th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.64 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  2. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  3. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  4. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  5. Wrapper.CreateObject = function(connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  17. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  18. Wrapper.Sandbox = function(...)
  19. local Unwrap = {...};
  20. for obi = 1,#Unwrap do
  21. local Object = Unwrap[obi];
  22. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  23. local Type = typeof(Object);local Replacement = Object;
  24. if (Type == "function") then
  25. Replacement = function(...)
  26. local IsRoblox = not (pcall(function() string.dump(Object) end))
  27. if IsRoblox then
  28. return Object(Wrapper.Unsandbox(...))
  29. end
  30. return Object(Wrapper.Sandbox(...))
  31. end
  32. elseif (Type == "table") then
  33. Replacement = {};
  34. setmetatable(Replacement, {
  35. __index = function(self, i)
  36. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  37. end,
  38. __newindex = function(self,i,v)
  39. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  40. end;
  41. })
  42. elseif (Type == "Instance") then
  43. Replacement = newproxy(true);
  44. local Mt = getmetatable(Replacement);
  45. Mt.__namecall = function(self, ...)
  46. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  47. local Rest = nil;pcall(function()Rest = Object[Name];end);
  48. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  49. if (Object:IsA(g) or g == "Global") then
  50. for t, v in pairs(x) do
  51. for str in string.gmatch(t .. ",", "(%w+),") do
  52. if (Name == str) then
  53. if typeof(v) == "function" then
  54. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  55. else
  56. return v;
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end
  63. if (Rest == nil) then
  64. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  65. return Wrapper.Sandbox(Object[Name]);
  66. elseif (typeof(Rest) == "function") then
  67. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  68. end
  69. return Wrapper.Sandbox(Object[Name]);
  70. end
  71. Mt.__index = function(self, i)
  72. local Rest = nil;pcall(function()Rest = Object[i];end)
  73. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  74. if (Object:IsA(g) or g == "Global") then
  75. for t, v in pairs(x) do
  76. for str in string.gmatch(t .. ",", "(%w+),") do
  77. if (i == str) then
  78. if typeof(v) == "function" then
  79. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  80. else
  81. return v;
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  89. if (Rest == nil) then
  90. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  91. return Wrapper.Sandbox(Object[i]);
  92. elseif (typeof(Rest) == "function") then
  93. local isService,Service = pcall(function() return sGame:GetService(i) end)
  94. if isService and Service then return Wrapper.Sandbox(Service) end
  95. return function(self, ...)
  96. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  97. end
  98. end
  99. return Wrapper.Sandbox(Object[i]);
  100. end
  101. Mt.__newindex = function(self, i, v)
  102. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  103. if (Object:IsA(g)) then
  104. for t, v in pairs(x) do
  105. for str in string.gmatch( t .. ",", "(%w+),") do
  106. if v(Wrapper.Unsandbox(self, i, v)) == true then
  107. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  108. end
  109. end
  110. end
  111. end
  112. end
  113. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  114. end
  115. Mt.__tostring = function(self) return tostring(Object) end
  116. --elseif (Type == "") then -- Etc
  117. end
  118. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  119. else
  120. return Wrapper.Fake[Object] or Object;
  121. end
  122. end
  123. return unpack(Unwrap);
  124. end
  125. Wrapper.Unsandbox = function(...)
  126. local Unsandbox = {...};
  127. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  128. return unpack(Unsandbox)
  129. end
  130. Wrapper.Services = {
  131. ['contextactionservice'] = Wrapper.ContextActionService;
  132. ["userinputservice"] = Wrapper.UserInputService;
  133. }
  134. Wrapper.InstanceMT = {
  135. ["GET"] = {
  136. ["Global"] = {
  137. ["IsFake,isFake"] = function(self)return true;end;
  138. };
  139. ["Player"] = {
  140. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  141. };
  142. ["Players"] = {
  143. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  144. };
  145. ["DataModel"] = {
  146. ["getService,GetService"] = function(self,service)
  147. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  148. return Wrapper.Sandbox(sGame:GetService(service))
  149. end
  150. };
  151. ["RunService"] = {
  152. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  153. }
  154. };
  155. ["SET"] = {
  156. }
  157. }
  158. Wrapper.SoundLoudness = {};
  159. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  160. if FiredBy ~= sOwner then return end
  161. if Input.MouseEvent then
  162. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  163. elseif Input.Sound then
  164. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  165. else
  166. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  167. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  168. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  169. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  170. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  171. end
  172. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  173. end
  174. end);
  175. Wrapper.Event.Parent = NLS([[
  176. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  177. local Input = function(Input,gameProcessedEvent)
  178. if gameProcessedEvent then return end;
  179. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  180. end
  181. Event.OnClientEvent:connect(function(Args)
  182. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  183. end)
  184. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  185. local Hit,Target;while wait(1/30) do
  186. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  187. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  188. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  189. end
  190. end]],sOwner.Character)
  191. Instance = {
  192. ["new"] = function(Type,Parent)
  193. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  194. if Type:lower() == "sound" then
  195. if not Parent then
  196. Parent = sOwner.Character
  197. end
  198. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  199. end
  200. return Wrapper.Sandbox(Real)
  201. end
  202. }
  203. LoadLibrary = function(Library)
  204. if Library == "RbxUtility" then
  205. return setmetatable({},{
  206. __tostring = function() return "RbxUtility" end;
  207. __index = function(self, Index)
  208. if Index:lower() == "create" then
  209. return function(Type) return function(Data)
  210. Data = Data or {};local Inst = Instance.new(Type)
  211. for x,y in pairs(Data) do Inst[x] = y end
  212. return Inst
  213. end;end;
  214. end
  215. return sLoadLibrary(Library)[Index]
  216. end})
  217. end
  218. return sLoadLibrary(Library)
  219. end
  220. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  221. Game= game;Workspace = workspace;
  222.  
  223. --//Paste script below this line.
  224. --[[
  225. love u iFractal
  226. <3
  227. leeked by CLarramore
  228. ]]
  229.  
  230. -- made by a new user (iFractal) leaked by a logger with love
  231. --One Punch Man Script
  232. p = game.Players.RobloxPrestiged
  233. char = p.Character
  234. des = false
  235. fling = true
  236. dot = false
  237. falling = false
  238. jump = true
  239. --char.Shirt:Remove()
  240. --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  241. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  242. wait()--shirt = Instance.new("Shirt", char)
  243. --shirt.Name = "Shirt"
  244. --pants = Instance.new("Pants", char)
  245. --pants.Name = "Pants"
  246.  
  247. --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
  248. --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  249. tp = true
  250. shoot = true
  251. hum = char.Humanoid
  252. punch = true
  253. neckp = char.Torso.Neck.C0
  254. neck = char.Torso.Neck
  255. hum.MaxHealth = 999999999
  256. wait()
  257. hum.Health =hum.MaxHealth
  258. des = false
  259. root=char.HumanoidRootPart
  260. torso = char.Torso
  261. char.Head.face.Texture = "rbxassetid://332768867"
  262. local ChatService = game:GetService("Chat")
  263. local player = game.Players.RobloxPrestiged
  264. lig = Instance.new("PointLight",player.Character.Torso)
  265. lig.Color=Color3.new(255,0,0)
  266. m=player:GetMouse()
  267. bb = Instance.new("BillboardGui",player.Character.Head)
  268. bb.Enabled = true
  269. function newRay(start,face,range,wat)
  270. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  271. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  272. return rey,hit,pos
  273. end
  274. aa1={}
  275. torso=game.Players.RobloxPrestiged.Character.Torso
  276.  
  277. local WorldUp = Vector3.new(0,1,0)
  278. function look2(Vec1,Vec2)
  279. local Orig = Vec1
  280. Vec1 = Vec1+Vector3.new(0,1,0)
  281. Vec2 = Vec2+Vector3.new(0,1,0)
  282. local Forward = (Vec2-Vec1).unit
  283. local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
  284. local Right = Up:Cross(Forward).unit
  285. Forward = -Forward
  286. Right = -Right
  287. 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)
  288. end
  289.  
  290. function look(CFr,Vec2)
  291. local A = Vector3.new(0,0,0)
  292. local B = CFr:inverse()*Vec2
  293. local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
  294. if B.Z > 0 then
  295. CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
  296. elseif B.Z == 0 then
  297. if B.Y > 0 then
  298. CF = CFr*CFrame.Angles(math.pi/2,0,0)
  299. elseif B.Y < 0 then
  300. CF = CFr*CFrame.Angles(-math.pi/2,0,0)
  301. else
  302. CF = CFr
  303. end
  304. end
  305. local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
  306. local Up = Vector3.new(X,Y,Z)
  307. local Forward = (Vec2-CFr.p).unit
  308. local Right = Up:Cross(Forward)
  309. Forward = -Forward
  310. Right = -Right
  311. 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)
  312. end
  313.  
  314. function simulate(j,d,m,r,t)
  315. local joint = j
  316. for i,v in ipairs(t) do
  317. if v[1]:FindFirstChild("Weld") then
  318. local stiff = m.CFrame.lookVector*0.03
  319. if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
  320. local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  321. local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  322. local pos = joint.p+(dir*(d*0.5))
  323. --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
  324. local inv = v[1].Weld.Part0.CFrame
  325. local rel1 = inv:inverse()*pos
  326. local rel2 = inv:inverse()*(pos-(dir*dis))
  327. local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  328. v[1].Weld.C0 = cf
  329. v[2] = inv*cf
  330. --v[1].CFrame = cf
  331. end
  332. end
  333. end
  334. for i=1,8 do
  335. local p = Instance.new("Part",char)
  336. p.Anchored = false
  337. p.BrickColor = BrickColor.new("Institutional white")
  338. p.CanCollide = false
  339. p.FormFactor="Custom"
  340. p.Material = "SmoothPlastic"
  341. p.TopSurface = "SmoothNoOutlines"
  342. p.BottomSurface = "SmoothNoOutlines"
  343. p.RightSurface = "SmoothNoOutlines"
  344. p.LeftSurface = "SmoothNoOutlines"
  345. p.FrontSurface = "SmoothNoOutlines"
  346. p.BackSurface = "SmoothNoOutlines"
  347.  
  348. p.Size=Vector3.new(2,.2,0.2)
  349. p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
  350. mesh = Instance.new("BlockMesh",p)
  351. mesh.Scale = Vector3.new(1,1,4)
  352. local w = Instance.new("Motor6D",p)
  353. w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
  354. w.Part1 = p
  355. w.Name = "Weld"
  356. --table.insert(aa1,p)
  357. aa1[i] = {p,p.CFrame}
  358.  
  359. end
  360. game:service"RunService".Stepped:connect(function()
  361. simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
  362. end)
  363. bb.AlwaysOnTop = true
  364. bb.Size = UDim2.new(0,200,0,50)
  365. bb.StudsOffset = Vector3.new(0,1,0)
  366. gui=Instance.new("TextBox",bb)
  367. gui.Text = "* "
  368. gui.Size = UDim2.new(0,133,0,45)
  369. gui.Position=UDim2.new(0,57,0,-40)
  370. gui.TextColor3 = Color3.new(255,255,255)
  371. gui.BackgroundColor3=Color3.new(0,0,0)
  372. gui.TextWrapped = true
  373. gui.TextScaled = true
  374. gui.TextXAlignment = "Left"
  375. gui.TextYAlignment = "Top"
  376. gui.Visible = false
  377. gui.BorderColor3 = Color3.new(0,0,0)
  378. punch2 = true
  379. gui1=Instance.new("TextButton",bb)
  380. gui1.Position=UDim2.new(0,5,0,-43)
  381. gui1.Size = UDim2.new(0,190,0,51)
  382.  
  383. gui1.TextColor3 = Color3.new(255,255,255)
  384. gui1.BackgroundColor3=Color3.new(255,255,255)
  385. jump2 = true
  386. gui1.Visible = false
  387. img = Instance.new("ImageLabel",bb)
  388. img.Size = UDim2.new(0,46,0,47)
  389. img.Position = UDim2.new(0,10,0,-41)
  390. img.Image = "rbxassetid://447301252"
  391. img.BorderColor3 = Color3.new(0,0,0)
  392. img.Visible = false
  393. soka = Instance.new("Sound",char)
  394. soka.SoundId = "http://www.roblox.com/asset/?id = 447199232"
  395. soka.Volume = 1
  396. boom = Instance.new("Sound",char)
  397. boom.SoundId = "http://www.roblox.com/asset/?id = 447041606"
  398. boom.Volume = 1
  399. boom2 = Instance.new("Sound",char)
  400. boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737"
  401. boom2.Volume = 1
  402. boom3 = Instance.new("Sound",char)
  403. boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
  404. boom3.Volume = 1
  405. tps = Instance.new("Sound",char)
  406. tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
  407. tps.Volume = 1
  408. asd = Instance.new("Sound",char)
  409. asd.SoundId = "http://www.roblox.com/asset/?id = 447310433"
  410. asd.Volume =1
  411. asd1 = Instance.new("Sound",char)
  412. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  413.  
  414. asd2 = Instance.new("Sound",char)
  415. asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054"
  416. asd2.Looped = true
  417. asd2.Volume = 5
  418. asd3 = Instance.new("Sound",char)
  419. asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996"
  420. asd3.Looped = true
  421. asd4 = Instance.new("Sound",char)
  422. asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  423. asd4.Looped = true
  424. asd5 = Instance.new("Sound",char)
  425. asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261"
  426. asd5.Looped = true
  427. gas = Instance.new("Sound",char)
  428. gas.SoundId = "http://www.roblox.com/asset/?id = 345052019"
  429. asd6 = Instance.new("Sound",char)
  430. asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325"
  431. asd6.Looped = true
  432. function play(play)
  433. asd:Play()
  434. wait(0.05)
  435. --asd1:Play()
  436. end
  437.  
  438.  
  439.  
  440. ------------
  441. -------------------------
  442.  
  443. function stream(origin,dir,length,size)
  444. local parts = {}
  445. for i = 1,length do
  446. local p = Instance.new("Part",char)
  447. p.Anchored = true
  448. p.Transparency = 0.5
  449. p.TopSurface = 0
  450. p.BottomSurface = 0
  451. p.CanCollide = false
  452. p.BrickColor = BrickColor.new("Institutional white")
  453. p.Size = Vector3.new(10,30,10) -- for now
  454. p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  455. parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
  456. game:GetService("Debris"):AddItem(p,3)
  457. end
  458. Spawn(function()
  459. while parts do
  460. for i,v in pairs(parts) do
  461. if v[1].Parent == char then
  462. v[1].CFrame = v[1].CFrame*v[2]
  463. else
  464. parts = nil
  465. break
  466. end
  467. end
  468. wait(0.02)
  469. end
  470. end)
  471. end
  472.  
  473. --[[-- listen for their chatting
  474. player.Chatted:connect(function(message)
  475. a = string.len(message)
  476. gui.Text = ""
  477. gui.Visible = true
  478. gui1.Visible = true
  479. des = false
  480. img.Visible = true
  481. print(a)
  482. if dot == false then
  483. gui.Text = ""
  484. for i = 1,string.len(message) do
  485. gui.Text =gui.Text..message:sub(i,i)
  486. play()
  487.  
  488. end
  489. end
  490.  
  491.  
  492. des = true
  493. end)]]--
  494. m.KeyDown:connect(function(k)
  495. if k == "g" then
  496. asd2:Play()
  497.  
  498.  
  499. end
  500. end)
  501.  
  502. m.KeyDown:connect(function(k)
  503. if k == "r" then
  504.  
  505. asd4:Play()
  506. end
  507. end)
  508. m.KeyDown:connect(function(k)
  509. if k == "q" then
  510.  
  511. asd3:Play()
  512. end
  513. end)
  514. m.KeyDown:connect(function(k)
  515. if k == "z" then
  516. img.Image = "rbxassetid://332766052"
  517.  
  518. end
  519. end)
  520. m.KeyDown:connect(function(k)
  521. if k == "c" then
  522. img.Image = "rbxassetid://447301252"
  523.  
  524. end
  525. end)
  526. m.KeyDown:connect(function(k)
  527. if k == "b" then
  528.  
  529. asd6:Play()
  530. end
  531. end)
  532. mouse = p:GetMouse()
  533. m.KeyDown:connect(function(k)
  534. if k:byte() == 48 then
  535.  
  536. hum.WalkSpeed = 100
  537. end
  538. end)
  539. m.KeyDown:connect(function(k)
  540. if k:byte() == 50 then
  541.  
  542. soka:Play()
  543. end
  544. end)
  545. m.KeyDown:connect(function(k)
  546. if k:byte() == 52 then
  547.  
  548. char.Head.face.Texture = "rbxassetid://444037452"
  549. end
  550. end)
  551. m.KeyDown:connect(function(k)
  552. if k:byte() == 51 then
  553.  
  554. char.Head.face.Texture = "rbxassetid://332768867"
  555. end
  556. end)
  557. m.KeyUp:connect(function(k)
  558. if k:byte() == 48 then
  559.  
  560. hum.WalkSpeed = 16
  561. end
  562. end)
  563. p.Chatted:connect(function(m)
  564. if m == "Okay." then
  565. soka:Play()
  566. end
  567. end)
  568. m.KeyDown:connect(function(k)
  569. if k == "x" then
  570. if des == true then
  571. gui.Visible = false
  572. gui.Text = "* "
  573. gui1.Visible = false
  574. img.Visible = false
  575. end
  576. end
  577. end)
  578. m.KeyDown:connect(function(key)
  579. if key == "j" then
  580. if tp == true then
  581. tp = false
  582. tps:Play()
  583. char.Head.face.Parent = game.Lighting
  584. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
  585. end
  586.  
  587. end
  588. wait(0.5)
  589. for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
  590. end
  591.  
  592. end
  593. char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
  594. char.HumanoidRootPart.Transparency = 1
  595. game.Lighting.face.Parent = char.Head
  596. wait(0.2)
  597.  
  598. tp = true
  599.  
  600.  
  601. end
  602. end
  603. end)
  604.  
  605.  
  606. m.KeyDown:connect(function(key)
  607. if key == "t" then
  608. if punch2 == true then
  609. punch2 = false
  610. punch = false
  611.  
  612. local ChatService = game:GetService("Chat")
  613.  
  614. neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
  615. ChatService:Chat(char.Head, "Mind if I get Serious?")
  616. wait(1)
  617. local ChatService = game:GetService("Chat")
  618.  
  619.  
  620. ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
  621. wait(1)
  622. local ChatService = game:GetService("Chat")
  623.  
  624.  
  625. ChatService:Chat(char.Head, "SERIOUS PUNCH.")
  626. neck.C0 = neckp
  627. wait(0.6)
  628. org = char.Torso["Left Shoulder"].C0
  629. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  630. wait()
  631. killbrick2 = Instance.new("Part",char)
  632. killbrick2.Size = Vector3.new(80,80,9000)
  633. killbrick2.Transparency = 1
  634.  
  635. killbrick2.CanCollide = true
  636. wait(0.1)
  637. killbrick2.CanCollide = false
  638.  
  639. killbrick2.Anchored = true
  640.  
  641. killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
  642.  
  643. killbrick2.Touched:connect(function(h)
  644. local x = h.Parent:FindFirstChild("Humanoid")
  645. if x then
  646. if x.Parent.Name == game.Players.RobloxPrestiged.Name then
  647. safe = true
  648. else safe = false
  649. end
  650. if x then
  651. if safe == false then
  652. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
  653. local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
  654. boom:Play()
  655. bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
  656.  
  657.  
  658. wait(0.2)
  659. x.Parent:BreakJoints()
  660. wait()
  661. safe = true
  662. end
  663. end
  664. end
  665. end)
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674. local rng = Instance.new("Part", char)
  675. rng.Anchored = true
  676. rng.BrickColor = BrickColor.new("Institutional white")
  677. rng.CanCollide = false
  678. rng.FormFactor = 3
  679. rng.Name = "Ring"
  680. rng.Size = Vector3.new(1, 1, 1)
  681. rng.Transparency = 0.8
  682. rng.TopSurface = 0
  683. rng.BottomSurface = 0
  684. rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  685. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  686. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  687. local rngm = Instance.new("SpecialMesh", rng)
  688. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  689. rngm.Scale = Vector3.new(1, 1.3, 2)
  690. local rng1 = Instance.new("Part", char)
  691. rng1.Anchored = true
  692. rng1.BrickColor = BrickColor.new("Institutional white")
  693. rng1.CanCollide = false
  694. rng1.FormFactor = 3
  695. rng1.Name = "Ring"
  696. rng1.Size = Vector3.new(1, 1, 1)
  697. rng1.Transparency = 0.8
  698. rng1.TopSurface = 0
  699. rng1.BottomSurface = 0
  700. rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  701. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  702. rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  703. local rngm1 = Instance.new("SpecialMesh", rng1)
  704. rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  705. rngm1.Scale = Vector3.new(1, 1.3, 2)
  706.  
  707. local p = (torso.CFrame*CFrame.new(-20,0,3))
  708. stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
  709. local p = (torso.CFrame*CFrame.new(20,0,3))
  710. stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
  711.  
  712. local rng2 = Instance.new("Part", char)
  713. rng2.Anchored = true
  714. rng2.BrickColor = BrickColor.new("Institutional white")
  715. rng2.CanCollide = false
  716. rng2.FormFactor = 3
  717. rng2.Name = "Ring"
  718. rng2.Size = Vector3.new(1, 1, 1)
  719. rng2.Transparency = 0.8
  720. rng2.TopSurface = 0
  721. rng2.BottomSurface = 0
  722. rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  723. --rng1.Rotation = Vector3.new(math.pi/2,0,0)
  724. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  725. local rngm2 = Instance.new("SpecialMesh", rng2)
  726. rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  727. rngm2.Scale = Vector3.new(1, 1.3, 2)
  728. wait(0.1)
  729.  
  730. boom3:Play()
  731. coroutine.wrap(function()
  732. for i = 1, 35, 0.5 do
  733.  
  734.  
  735.  
  736.  
  737.  
  738. rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
  739. rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
  740. rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
  741.  
  742. wait()
  743. end
  744. wait()
  745. rng:Destroy()
  746. rng1:Destroy()
  747. rng2:Destroy()
  748. killbrick2:Remove()
  749. wait(0.5)
  750. char.Torso["Left Shoulder"].C0 = org
  751. wait(1)
  752. punch2 = true
  753. punch = true
  754. wait()
  755.  
  756.  
  757. end)()
  758.  
  759.  
  760.  
  761. end
  762.  
  763.  
  764. wait(.1)
  765.  
  766.  
  767. end
  768. end)
  769.  
  770.  
  771.  
  772.  
  773.  
  774. m.KeyDown:connect(function(key)
  775. if key == "k" then
  776. if punch == true then
  777. punch = false
  778. org = char.Torso["Left Shoulder"].C0
  779. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
  780. killbrick = Instance.new("Part",char)
  781. killbrick.Size = Vector3.new(5,1,5)
  782. killbrick.Transparency = 1
  783. killbrick:BreakJoints()
  784. killbrick.CanCollide = false
  785. local wel = Instance.new("Weld",killbrick)
  786. wel.Part0 = killbrick
  787. wel.Part1 = char["Left Arm"]
  788. wel.C0 = CFrame.new(0,1,0)
  789. force = 90
  790.  
  791. killbrick.Touched:connect(function(h)
  792. local x = h.Parent.Humanoid
  793. if x.Health >= 6000 then
  794. fling = false
  795. end
  796. if x.Health < 6000 then
  797. fling = true
  798. end
  799. local stop = h.Parent.Torso.Velocity
  800. if x.Parent.Name == game.Players.RobloxPrestiged.Name then
  801. safe = true
  802. else safe = false
  803. end
  804. if x then
  805. if safe == false then
  806. if fling == true then
  807. force = 900
  808.  
  809. end
  810. if fling == false then
  811. force = 200
  812. end
  813.  
  814.  
  815. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force
  816. local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
  817. boom:Play()
  818. bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
  819.  
  820.  
  821. wait(0.2)
  822. x:TakeDamage(5000)
  823. wait()
  824. safe = true
  825. bodyforc:Remove()
  826. h.Parent.Torso.Velocity = stop
  827.  
  828. end
  829. end
  830. end)
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841. local rng = Instance.new("Part", char)
  842. rng.Anchored = true
  843. rng.BrickColor = BrickColor.new("Institutional white")
  844. rng.CanCollide = false
  845. rng.FormFactor = 3
  846. rng.Name = "Ring"
  847. rng.Size = Vector3.new(1, 1, 1)
  848. rng.Transparency = 0.8
  849. rng.TopSurface = 0
  850. rng.BottomSurface = 0
  851. rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
  852. --rng.Rotation = Vector3.new(math.pi/2,0,0)
  853. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  854. local rngm = Instance.new("SpecialMesh", rng)
  855. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  856. rngm.Scale = Vector3.new(1, 1.3, 2)
  857. wait(0.1)
  858.  
  859. boom2:Play()
  860. coroutine.wrap(function()
  861. for i = 1, 10, .4 do
  862. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  863.  
  864. wait()
  865. end
  866. wait()
  867. rng:Destroy()
  868. killbrick:Remove()
  869. wait(0.5)
  870. char.Torso["Left Shoulder"].C0 = org
  871. wait(1)
  872.  
  873. punch = true
  874. wait()
  875. end)()
  876.  
  877.  
  878.  
  879. end
  880.  
  881.  
  882. wait(.1)
  883.  
  884.  
  885. end
  886. end)
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901. m.KeyDown:connect(function(key)
  902. if key == "m" then
  903. if jump == true then
  904. jump = false
  905.  
  906.  
  907. local rng = Instance.new("Part", char)
  908. rng.Anchored = true
  909. rng.BrickColor = BrickColor.new("Institutional white")
  910. rng.CanCollide = false
  911. rng.FormFactor = 3
  912. rng.Name = "Ring"
  913. rng.Size = Vector3.new(1, 1, 1)
  914. rng.Transparency = 0.35
  915. rng.TopSurface = 0
  916. rng.BottomSurface = 0
  917. rng.Position = torso.Position - Vector3.new(0,2,0)
  918. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  919. local rngm = Instance.new("SpecialMesh", rng)
  920. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  921. rngm.Scale = Vector3.new(1, 1.3, 2)
  922. wait(0.1)
  923. BV = Instance.new("BodyVelocity", torso)
  924. BV.maxForce = Vector3.new(0,20000,0)
  925. BV.P = 1000
  926. BV.velocity = Vector3.new(0,100,0)
  927. boom:Play()
  928. coroutine.wrap(function()
  929. for i = 1, 60, 2 do
  930. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  931. rng.Transparency = i/60
  932. wait()
  933. end
  934. wait()
  935. rng:Destroy()
  936.  
  937. hum.WalkSpeed = 50
  938. wait(1)
  939.  
  940. for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
  941. v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false
  942. end end
  943. wait()
  944. end)()
  945.  
  946.  
  947.  
  948. end
  949.  
  950.  
  951. wait(.1)
  952.  
  953.  
  954. end
  955. end)
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962. m.KeyDown:connect(function(key)
  963. if key == "n" then
  964.  
  965. if falling == true then
  966. falling = false
  967. if jumping2 == true then
  968. jumping2 = false
  969. jump = false
  970. BV = Instance.new("BodyVelocity", torso)
  971. BV.maxForce = Vector3.new(0,-20000,0)
  972. BV.P = -1000
  973. BV.velocity = Vector3.new(0,-70,0)
  974. wait(0.6)
  975. local rng = Instance.new("Part", char)
  976. rng.Anchored = true
  977. rng.BrickColor = BrickColor.new("Institutional white")
  978. rng.CanCollide = false
  979. rng.FormFactor = 3
  980. rng.Name = "Ring"
  981. rng.Size = Vector3.new(1, 1, 1)
  982. rng.Transparency = 0.35
  983. rng.TopSurface = 0
  984. rng.BottomSurface = 0
  985. rng.Position = torso.Position - Vector3.new(0,2,0)
  986. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  987. local rngm = Instance.new("SpecialMesh", rng)
  988. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  989. rngm.Scale = Vector3.new(1, 1.3, 2)
  990.  
  991.  
  992. boom:Play()
  993. coroutine.wrap(function()
  994. for i = 1, 60, 2 do
  995. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  996. rng.Transparency = i/60
  997. wait()
  998. end
  999. wait()
  1000. rng:Destroy()
  1001.  
  1002.  
  1003.  
  1004.  
  1005. for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
  1006. v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16
  1007. end end
  1008. wait()
  1009. end)()
  1010.  
  1011.  
  1012.  
  1013. end
  1014.  
  1015.  
  1016. wait(.1)
  1017.  
  1018. end
  1019. end
  1020. end)
  1021. m.KeyDown:connect(function(k)
  1022. if k == "f" then
  1023. asd3:Stop()
  1024. asd2:Stop()
  1025. asd4:Stop()
  1026. asd6:Stop()
  1027. asd5:Stop()
  1028. end
  1029. end)
  1030. ------------
  1031. -- ~CLarramore 2016
  1032.  
  1033.  
  1034.  
  1035. --==Made by NextFlame==--
  1036.  
  1037.  
  1038. repeat wait() until game.Players.RobloxPrestigedand game.Players.RobloxPrestiged.Character
  1039. local player=game.Players.RobloxPrestiged
  1040. local char=player.Character
  1041. local torso=char.Torso
  1042. local head=char.Head
  1043. local human=char.Humanoid
  1044. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  1045. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  1046. local joints={LeftShoulder=torso["Left Shoulder"], RightShoulder=torso["Right Shoulder"], LeftHip=torso["Left Hip"], RightHip=torso["Right Hip"]}
  1047. joints.LeftShoulder.Part0=torso
  1048. joints.RightShoulder.Part0=torso
  1049. joints.LeftHip.Part0=torso
  1050. joints.RightHip.Part0=torso
  1051. local c=function(f) Spawn(f) end
  1052. local add={
  1053. Part=function(par, a, c, col, t, s, cf, ms)
  1054. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  1055. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  1056. return p
  1057. end,
  1058. Wedge=function(par, a, c, col, t, s, cf, ms)
  1059. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  1060. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  1061. return p
  1062. end,
  1063. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  1064. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  1065. return g
  1066. end,
  1067. Weld=function(par, p1, cf)
  1068. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  1069. return w
  1070. end,
  1071. Mesh=function(ins, par, s, of, t, id)
  1072. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshId=id or "" m.MeshType=t end)
  1073. return m
  1074. end,
  1075. Sound=function(parent, id, volume, pitch)
  1076. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  1077. return s
  1078. end,
  1079. }
  1080. local modelName="Kung Fu" --Name here
  1081. pcall(function() player.Backpack[modelName]:remove() char[modelName]:remove() char["CharacterParts"]:remove() end)
  1082. local model=Instance.new("Model", char) model.Name="CharacterParts"
  1083. local modelB=Instance.new("Model", char) modelB.Name=modelName
  1084. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=modelName
  1085. local skincolor="Really black"
  1086. local gui=Instance.new("ScreenGui")
  1087. local body={}
  1088. local animate={}
  1089. local obj={}
  1090. --Variables--
  1091. local trailDeb=false
  1092. local keyDeb=false
  1093. local hitDeb=false
  1094. local loop=false
  1095. local speed=16
  1096. local combo=0
  1097. local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, 1.2)
  1098. local Hit=add.Sound(torso, "http://roblox.com/asset/?id=10209225", 1, 1)
  1099. function createParts()
  1100. --==PARTS==--
  1101. torso.Transparency=1
  1102. for i, v in pairs(char:children()) do if v:isA("CharacterMesh") then v:remove() end end
  1103. gui.Parent=player.PlayerGui gui.Name=modelName
  1104. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  1105. body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  1106. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  1107. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  1108. --==WELDS==--
  1109. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  1110. body.TorsoW=add.Weld(body.Torso, torso, nil)
  1111. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  1112. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1, 0))
  1113. --==WELDS2==--
  1114. add.Weld(body.Head, head, nil)
  1115. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  1116. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  1117. joints.LeftHip.Part0=body.Torso
  1118. joints.RightHip.Part0=body.Torso
  1119. --==Sign==--
  1120. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
  1121. add.Weld(body.Part, body.Torso, CFrame.new(-.25, 0, .5))
  1122. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
  1123. add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, .5))
  1124. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.2, 1, .2))
  1125. add.Weld(body.Part, body.Torso, CFrame.new(.25, 0, -.5))
  1126. body.Part=add.Part(model, false, false, "White", 0, Vector3.new(.7, .2, .2))
  1127. add.Weld(body.Part, body.Torso, CFrame.new(0, -.5, -.5))
  1128. ---------------------------------------------------------------------------------------
  1129. animate={
  1130. ["Head"]=function(cf)
  1131. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  1132. end;
  1133. ["Torso"]=function(cf)
  1134. body.TorsoW.C1=(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  1135. end;
  1136. ["ArmLeft"]=function(cf)
  1137. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  1138. end;
  1139. ["ArmRight"]=function(cf)
  1140. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  1141. end;
  1142. ["LegLeft"]=function(cf)
  1143. legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -1, 0))
  1144. body.LegLeftW.C1=CFrame.new(-.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  1145. coroutine.resume(coroutine.create(function()
  1146. wait()
  1147. legLeftW:remove()
  1148. end))
  1149. end;
  1150. ["LegRight"]=function(cf)
  1151. legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -1, 0))
  1152. body.LegRightW.C1=CFrame.new(.5, -1, 0)*(cf or CFrame.new()*CFrame.Angles(0, 0, 0))
  1153. coroutine.resume(coroutine.create(function()
  1154. wait()
  1155. legRightW:remove()
  1156. end))
  1157. end;
  1158. }
  1159. --==Objects==--
  1160. obj.attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "(5) Combos", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  1161. obj.attackLabel2=add.Gui("TextLabel", obj.attackLabel, "Really black", "Really black", "White", "Size18", "Punch[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  1162. obj.attackLabel3=add.Gui("TextLabel", obj.attackLabel2, "Really black", "Really black", "White", "Size18", "Punch[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  1163. obj.attackLabel4=add.Gui("TextLabel", obj.attackLabel3, "Really black", "Really black", "White", "Size18", "Kick[Right]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  1164. obj.attackLabel5=add.Gui("TextLabel", obj.attackLabel4, "Really black", "Really black", "White", "Size18", "Kick[Left]", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  1165. obj.attackLabel6=add.Gui("TextLabel", obj.attackLabel5, "Really black", "Really black", "White", "Size18", "RappidKick", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  1166. for i, v in pairs(modelB:children()) do
  1167. if i==0 then return end
  1168. end
  1169. --==Weapon==--
  1170. end
  1171. function removeParts()
  1172. pcall(function()
  1173. if torso then
  1174. joints.LeftShoulder.Part0=torso
  1175. joints.RightShoulder.Part0=torso
  1176. joints.LeftHip.Part0=torso
  1177. joints.RightHip.Part0=torso
  1178. torso.Transparency=0
  1179. end
  1180. player.PlayerGui[modelName]:remove()
  1181. for i, v in pairs(model:children()) do v:remove() end
  1182. end)
  1183. end
  1184. function lightningGen(startPos, endPos)
  1185. local magnitude=(startPos-endPos).magnitude
  1186. local distance=(startPos+endPos)/2
  1187. local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  1188. local startPosProx=startPos
  1189. for i=1, 9 do
  1190. local startPosProx2=startPosProx
  1191. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  1192. local findSize=pattern.Size.z/10
  1193. local findOffSet=pattern.CFrame.lookVector*-1
  1194. local compute=i*findSize*findOffSet
  1195. local newStartPos=startPos
  1196. local newEndPos=CFrame.new(random+compute+newStartPos).p
  1197. local magnitude=(startPosProx2-newEndPos).magnitude
  1198. local distance=(startPosProx2+newEndPos)/2
  1199. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  1200. c(function()
  1201. for i=0, 1, .1 do wait()
  1202. lightning.Transparency=i
  1203. end
  1204. lightning:remove()
  1205. end)
  1206. startPosProx=newEndPos
  1207. end
  1208. pattern:remove()
  1209. end
  1210. function computePos(pos, pos2)
  1211. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  1212. return CFrame.new(pos, pos3)
  1213. end
  1214. function nearTorso(pos, dis)
  1215. local temp
  1216. local distance=dis
  1217. for i, v in pairs(workspace:children()) do
  1218. if v:isA("Model") then
  1219. temp=v:findFirstChild("Torso")
  1220. local humanoid=v:findFirstChild("Humanoid")
  1221. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  1222. distance=(temp.CFrame.p-pos).magnitude
  1223. return temp
  1224. end
  1225. end
  1226. end
  1227. end
  1228. function trail(pos, cf, col, size)
  1229. c(function()
  1230. local old=(pos.CFrame*cf).p
  1231. while trailDeb==true do
  1232. wait()
  1233. local new=(pos.CFrame*cf).p
  1234. local mag=(old-new).magnitude
  1235. local dis=(old+new)/2
  1236. local trail=add.Part(workspace, true, false, col or "White", 0, Vector3.new(size or .2, mag, size or .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Effect"
  1237. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  1238. old=new
  1239. c(function()
  1240. for i=1, 0, -.1 do
  1241. wait()
  1242. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  1243. end
  1244. trail:remove()
  1245. end)
  1246. c(function()
  1247. for i=0, 1, .1 do
  1248. wait()
  1249. trail.Transparency=i
  1250. end
  1251. end)
  1252. end
  1253. end)
  1254. end
  1255. function rayCast(pos, dir, col)
  1256. local magnitude=(pos-dir).magnitude
  1257. local distance=(pos+dir)/2
  1258. local ray=add.Part(workspace, true, false, col, 0, Vector3.new(.2, magnitude, .2), CFrame.new(distance, pos))
  1259. return ray
  1260. end
  1261. function dmgHit(h)
  1262. local dmg=math.random(5, 10)
  1263. if keyDeb==true and h.Parent:findFirstChild("Humanoid") and hitDeb==false and h.Parent~=char then
  1264. hitDeb=true
  1265. local hHuman=h.Parent:findFirstChild("Humanoid")
  1266. local hTorso=h.Parent:findFirstChild("Torso")
  1267. hHuman.Health=hHuman.Health-dmg
  1268. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  1269. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  1270. local effect=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(1, 1, 1), hTorso.CFrame*CFrame.new(0, 4, 0)) effect.Name="Head"
  1271. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  1272. local effect=add.Part(workspace, true, false, "White", .5, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)*CFrame.Angles(-math.pi/2, 0, 0))
  1273. local effectM=add.Mesh("SpecialMesh", effect, Vector3.new(1, 1, 1), nil, nil, "http://www.roblox.com/asset/?id=20329976")
  1274. c(function()
  1275. for i=1, 2, .1 do wait()
  1276. effectM.Scale=Vector3.new(i, i/2, i)
  1277. end
  1278. effect:remove()
  1279. end)
  1280. game.Debris:addItem(fakeM, 1)
  1281. wait(.1)
  1282. hitDeb=false
  1283. end
  1284. end
  1285. function idled()
  1286. animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(math.rad(135), 0, math.rad(5)))
  1287. animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(math.rad(135), 0, -math.rad(5)))
  1288. end
  1289. function doAttacks()
  1290. combo=combo+1
  1291. if keyDeb==false then
  1292. keyDeb=true
  1293. if combo>0 then Slash:play()
  1294. trailDeb=true
  1295. trail(body.ArmRight, CFrame.new(0, -2.5, 0))
  1296. for i=0, 1, .2 do wait()
  1297. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  1298. animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
  1299. end
  1300. trailDeb=false
  1301. for i=1, 0, -.2 do wait()
  1302. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  1303. animate.ArmRight(CFrame.Angles(math.rad(90), 0, math.rad(90)*i))
  1304. end
  1305. end
  1306. if combo>2 then Slash:play()
  1307. trailDeb=true
  1308. trail(body.ArmLeft, CFrame.new(0, -2.5, 0))
  1309. for i=0, 1, .2 do wait()
  1310. animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
  1311. animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
  1312. end
  1313. trailDeb=false
  1314. for i=1, 0, -.2 do wait()
  1315. animate.Torso(CFrame.Angles(0, -math.rad(90)*i, 0))
  1316. animate.ArmLeft(CFrame.Angles(math.rad(90), 0, -math.rad(90)*i))
  1317. end
  1318. end
  1319. if combo>3 then Slash:play()
  1320. idled()
  1321. trailDeb=true
  1322. trail(body.LegRight, CFrame.new(0, -2.5, 0))
  1323. for i=0, 1, .2 do wait()
  1324. animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
  1325. animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
  1326. end
  1327. trailDeb=false
  1328. for i=1, 0, -.2 do wait()
  1329. animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, math.rad(90)*i, 0))
  1330. animate.LegLeft(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(135)*i))
  1331. end
  1332. end
  1333. if combo>4 then Slash:play()
  1334. idled()
  1335. trailDeb=true
  1336. trail(body.LegLeft, CFrame.new(0, -2.5, 0))
  1337. for i=0, 1, .2 do wait()
  1338. animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
  1339. animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
  1340. end
  1341. trailDeb=false
  1342. for i=1, 0, -.2 do wait()
  1343. animate.Torso(CFrame.new(0, -1*i, 0)*CFrame.Angles(math.rad(135)*i, -math.rad(90)*i, 0))
  1344. animate.LegRight(CFrame.new(.5*i, 0, 0)*CFrame.Angles(0, 0, math.rad(135)*i))
  1345. end
  1346. end
  1347. if combo>5 then
  1348. idled()
  1349. for i=0, 1, .2 do wait()
  1350. animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
  1351. end
  1352. for i=1, 20 do wait() Slash:play()
  1353. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
  1354. animate.LegLeft(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  1355. animate.LegRight(CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  1356. end
  1357. for i=1, 0, -.2 do wait()
  1358. animate.Torso(CFrame.new(0, -.8*i, 0)*CFrame.Angles(math.rad(80)*i, -math.rad(90)*i, 0))
  1359. end
  1360. end
  1361. trailDeb=false
  1362. keyDeb=false
  1363. combo=0
  1364. idled()
  1365. end
  1366.  
  1367. for i, v in pairs(player.Character:GetChildren()) do
  1368. if v:IsA("BasePart") then
  1369. v.Touched:connect(function(player)
  1370. if player.Size.X<30 then
  1371. player.Anchored = false
  1372. player:BreakJoints()
  1373. end
  1374. end)
  1375. end
  1376. end
  1377. end
  1378. bin.Selected:connect(function(mouse) createParts()
  1379. for i, v in pairs(char:children()) do if v:isA("BasePart") then v.Touched:connect(dmgHit) end end
  1380. for i=0, 1, .1 do wait()
  1381. animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
  1382. animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
  1383. end
  1384. mouse.Button1Down:connect(doAttacks)
  1385.  
  1386. end)
  1387. bin.Deselected:connect(function()
  1388. for i=1, 0, -.1 do wait()
  1389. animate.ArmLeft(CFrame.new(.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, math.rad(5)*i))
  1390. animate.ArmRight(CFrame.new(-.5*i, 0, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(5)*i))
  1391. end
  1392. removeParts()
  1393. end)--mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement