SHARE
TWEET

Untitled

a guest Apr 21st, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6.     print("FE Compatibility code V2 by Mokiros")
  7.     local RealPlayer = RealPlayer
  8.     script.Parent = RealPlayer.Character
  9.  
  10.     --Fake event to make stuff like Mouse.KeyDown work
  11.     local Disconnect_Function = function(this)
  12.         this[1].Functions[this[2]] = nil
  13.     end
  14.     local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15.     local FakeEvent_Metatable = {__index={
  16.         Connect = function(this,f)
  17.             local i = tostring(math.random(0,10000))
  18.             while this.Functions[i] do
  19.                 i = tostring(math.random(0,10000))
  20.             end
  21.             this.Functions[i] = f
  22.             return setmetatable({this,i},Disconnect_Metatable)
  23.         end
  24.     }}
  25.     FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26.     local function fakeEvent()
  27.         return setmetatable({Functions={}},FakeEvent_Metatable)
  28.     end
  29.  
  30.     --Creating fake input objects with fake variables
  31.     local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32.     FakeMouse.keyUp = FakeMouse.KeyUp
  33.     FakeMouse.keyDown = FakeMouse.KeyDown
  34.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37.     end}
  38.     --Merged 2 functions into one by checking amount of arguments
  39.     CAS.UnbindAction = CAS.BindAction
  40.  
  41.     --This function will trigger the events that have been :Connect()'ed
  42.     local function TriggerEvent(self,ev,...)
  43.         for _,f in pairs(self[ev].Functions) do
  44.             f(...)
  45.         end
  46.     end
  47.     FakeMouse.TriggerEvent = TriggerEvent
  48.     UIS.TriggerEvent = TriggerEvent
  49.  
  50.     --Client communication
  51.     local Event = Instance.new("RemoteEvent")
  52.     Event.Name = "UserInput_Event"
  53.     Event.OnServerEvent:Connect(function(plr,io)
  54.         if plr~=RealPlayer then return end
  55.         FakeMouse.Target = io.Target
  56.         FakeMouse.Hit = io.Hit
  57.         if not io.isMouse then
  58.             local b = io.UserInputState == Enum.UserInputState.Begin
  59.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60.                 return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61.             end
  62.             if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63.                 return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64.             end
  65.             for _,t in pairs(CAS.Actions) do
  66.                 for _,k in pairs(t.Keys) do
  67.                     if k==io.KeyCode then
  68.                         t.Function(t.Name,io.UserInputState,io)
  69.                     end
  70.                 end
  71.             end
  72.             FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73.             UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74.         end
  75.     end)
  76.     Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77.     local Mouse = owner:GetMouse()
  78.     local UIS = game:GetService("UserInputService")
  79.     local input = function(io,RobloxHandled)
  80.         if RobloxHandled then return end
  81.         --Since InputObject is a client-side instance, we create and pass table instead
  82.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83.     end
  84.     UIS.InputBegan:Connect(input)
  85.     UIS.InputEnded:Connect(input)
  86.  
  87.     local h,t
  88.     --Give the server mouse data every second frame, but only if the values changed
  89.     --If player is not moving their mouse, client won't fire events
  90.     local HB = game:GetService("RunService").Heartbeat
  91.     while true do
  92.         if h~=Mouse.Hit or t~=Mouse.Target then
  93.             h,t=Mouse.Hit,Mouse.Target
  94.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  95.         end
  96.         --Wait 2 frames
  97.         for i=1,2 do
  98.             HB:Wait()
  99.         end
  100.     end]==],script)
  101.  
  102.     ----Sandboxed game object that allows the usage of client-side methods and services
  103.     --Real game object
  104.     local RealGame = game
  105.  
  106.     --Metatable for fake service
  107.     local FakeService_Metatable = {
  108.         __index = function(self,k)
  109.             local s = rawget(self,"_RealService")
  110.             if s then
  111.                 return typeof(s[k])=="function"
  112.                 and function(_,...)return s[k](s,...)end or s[k]
  113.             end
  114.         end,
  115.         __newindex = function(self,k,v)
  116.             local s = rawget(self,"_RealService")
  117.             if s then s[k]=v end
  118.         end
  119.     }
  120.     local function FakeService(t,RealService)
  121.         t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122.         return setmetatable(t,FakeService_Metatable)
  123.     end
  124.  
  125.     --Fake game object
  126.     local FakeGame = {
  127.         GetService = function(self,s)
  128.             return rawget(self,s) or RealGame:GetService(s)
  129.         end,
  130.         Players = FakeService({
  131.             LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132.         },"Players"),
  133.         UserInputService = FakeService(UIS,"UserInputService"),
  134.         ContextActionService = FakeService(CAS,"ContextActionService"),
  135.         RunService = FakeService({
  136.             _btrs = {},
  137.             RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138.             BindToRenderStep = function(self,name,_,fun)
  139.                 self._btrs[name] = self.Heartbeat:Connect(fun)
  140.             end,
  141.             UnbindFromRenderStep = function(self,name)
  142.                 self._btrs[name]:Disconnect()
  143.             end,
  144.         },"RunService")
  145.     }
  146.     rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147.     FakeGame.service = FakeGame.GetService
  148.     FakeService(FakeGame,game)
  149.     --Changing owner to fake player object to support owner:GetMouse()
  150.     game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153. --[[
  154.    
  155.     Made by Cronizete
  156.     Cronnie#8709
  157.    
  158. --]]
  159.  
  160. plr = game:service'Players'.LocalPlayer
  161. char = plr.Character
  162.  
  163. local RenderStepped=game:service'RunService'.RenderStepped
  164. local oldpos
  165.  
  166. local bg = Instance.new("BodyGyro", script)
  167. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  168. bg.P = 10000
  169. bg.D = 100
  170.  
  171. --// Gunbai
  172.  
  173. m = Instance.new('Model', char)
  174. m.Name = "Gumbai"
  175.  
  176. Bar = Instance.new("Part",m)
  177. Bar.TopSurface = "Smooth"
  178. Bar.BottomSurface = "Smooth"
  179. Bar.FormFactor = "Custom"
  180. Bar.Size = Vector3.new(1,1,1)
  181. Bar.CanCollide = true
  182. Bar.BrickColor = BrickColor.new("Really black")
  183. BarMesh = Instance.new("SpecialMesh", Bar)
  184. BarMesh.MeshType = "Cylinder"
  185. BarMesh.Scale = Vector3.new(1, 1, 0.4)
  186. BarWeld = Instance.new("Weld",m)
  187. BarWeld.Part0 = char.Torso
  188. BarWeld.Part1 = Bar
  189. BarWeld.C1 = CFrame.new(-3, 0, -0.7)*CFrame.fromEulerAnglesXYZ(0, 0, -1)
  190. oldpos = BarWeld.C1
  191.  
  192. Bar2 = Instance.new("Part",m)
  193. Bar2.TopSurface = "Smooth"
  194. Bar2.BottomSurface = "Smooth"
  195. Bar2.FormFactor = "Custom"
  196. Bar2.Size = Vector3.new(3,1,1)
  197. Bar2.CanCollide = true
  198. Bar2.BrickColor = BrickColor.new("Institutional white")
  199. Bar2Mesh = Instance.new("SpecialMesh", Bar2)
  200. Bar2Mesh.MeshType = "Cylinder"
  201. Bar2Mesh.Scale = Vector3.new(3, 1, 0.3)
  202. Bar2Weld = Instance.new("Weld",m)
  203. Bar2Weld.Part0 = Bar
  204. Bar2Weld.Part1 = Bar2
  205. Bar2Weld.C1 = CFrame.new(2.2, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  206.  
  207. Bar3 = Instance.new("Part",m)
  208. Bar3.TopSurface = "Smooth"
  209. Bar3.BottomSurface = "Smooth"
  210. Bar3.FormFactor = "Custom"
  211. Bar3.Size = Vector3.new(1,1,1)
  212. Bar3.CanCollide = true
  213. Bar3.BrickColor = BrickColor.new("Really black")
  214. Bar3Mesh = Instance.new("SpecialMesh", Bar3)
  215. Bar3Mesh.MeshType = "Cylinder"
  216. Bar3Mesh.Scale = Vector3.new(0.1, 1, 0.4)
  217. Bar3Weld = Instance.new("Weld",m)
  218. Bar3Weld.Part0 = Bar
  219. Bar3Weld.Part1 = Bar3
  220. Bar3Weld.C1 = CFrame.new(-2.3, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  221.  
  222. Bar4 = Instance.new("Part",m)
  223. Bar4.TopSurface = "Smooth"
  224. Bar4.BottomSurface = "Smooth"
  225. Bar4.FormFactor = "Custom"
  226. Bar4.Size = Vector3.new(0.8,2.8,2.8)
  227. Bar4.CanCollide = true
  228. Bar4.BrickColor = BrickColor.new("Institutional white")
  229. Bar4Mesh = Instance.new("SpecialMesh", Bar4)
  230. Bar4Mesh.MeshType = "Cylinder"
  231. Bar4Mesh.Scale = Vector3.new(0.2, 1, 3)
  232. Bar4Weld = Instance.new("Weld",m)
  233. Bar4Weld.Part0 = Bar
  234. Bar4Weld.Part1 = Bar4
  235. Bar4Weld.C1 = CFrame.new(0.02, 0, -3)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  236.  
  237. Bar5 = Instance.new("Part",m)
  238. Bar5.TopSurface = "Smooth"
  239. Bar5.BottomSurface = "Smooth"
  240. Bar5.FormFactor = "Custom"
  241. Bar5.Size = Vector3.new(0.8,3,3)
  242. Bar5.CanCollide = true
  243. Bar5.BrickColor = BrickColor.new("Institutional white")
  244. Bar5Mesh = Instance.new("SpecialMesh", Bar5)
  245. Bar5Mesh.MeshType = "Cylinder"
  246. Bar5Mesh.Scale = Vector3.new(0.2, 1, 3)
  247. Bar5Weld = Instance.new("Weld",m)
  248. Bar5Weld.Part0 = Bar
  249. Bar5Weld.Part1 = Bar5
  250. Bar5Weld.C1 = CFrame.new(0.02, 0, -5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  251.  
  252. Bar6 = Instance.new("Part",m)
  253. Bar6.TopSurface = "Smooth"
  254. Bar6.BottomSurface = "Smooth"
  255. Bar6.FormFactor = "Custom"
  256. Bar6.Size = Vector3.new(0.7,2.9,2.9)
  257. Bar6.CanCollide = true
  258. Bar6.BrickColor = BrickColor.new("Really black")
  259. Bar6Mesh = Instance.new("SpecialMesh", Bar6)
  260. Bar6Mesh.MeshType = "Cylinder"
  261. Bar6Mesh.Scale = Vector3.new(0.2, 1, 3)
  262. Bar6Weld = Instance.new("Weld",m)
  263. Bar6Weld.Part0 = Bar
  264. Bar6Weld.Part1 = Bar6
  265. Bar6Weld.C1 = CFrame.new(0.02, 0, -3)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  266.  
  267. Bar7 = Instance.new("Part",m)
  268. Bar7.TopSurface = "Smooth"
  269. Bar7.BottomSurface = "Smooth"
  270. Bar7.FormFactor = "Custom"
  271. Bar7.Size = Vector3.new(0.7,3.1,3.1)
  272. Bar7.CanCollide = true
  273. Bar7.BrickColor = BrickColor.new("Really black")
  274. Bar7Mesh = Instance.new("SpecialMesh", Bar7)
  275. Bar7Mesh.MeshType = "Cylinder"
  276. Bar7Mesh.Scale = Vector3.new(0.2, 1, 3)
  277. Bar7Weld = Instance.new("Weld",m)
  278. Bar7Weld.Part0 = Bar
  279. Bar7Weld.Part1 = Bar7
  280. Bar7Weld.C1 = CFrame.new(0.02, 0, -5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  281.  
  282. Bar8 = Instance.new("Part",m)
  283. Bar8.TopSurface = "Smooth"
  284. Bar8.BottomSurface = "Smooth"
  285. Bar8.FormFactor = "Custom"
  286. Bar8.Size = Vector3.new(1,1,1)
  287. Bar8.CanCollide = true
  288. Bar8.BrickColor = BrickColor.new("Really black")
  289. Bar8Mesh = Instance.new("SpecialMesh", Bar8)
  290. Bar8Mesh.MeshType = "Cylinder"
  291. Bar8Mesh.Scale = Vector3.new(0.1, 1, 0.4)
  292. Bar8Weld = Instance.new("Weld",m)
  293. Bar8Weld.Part0 = Bar
  294. Bar8Weld.Part1 = Bar8
  295. Bar8Weld.C1 = CFrame.new(6.7, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  296.  
  297. Bar9 = Instance.new("Part",m)
  298. Bar9.TopSurface = "Smooth"
  299. Bar9.BottomSurface = "Smooth"
  300. Bar9.FormFactor = "Custom"
  301. Bar9.Size = Vector3.new(0.9,0.3,0.3)
  302. Bar9.CanCollide = true
  303. Bar9.BrickColor = BrickColor.new("Bright red")
  304. Bar9Mesh = Instance.new("SpecialMesh", Bar9)
  305. Bar9Mesh.MeshType = "Cylinder"
  306. Bar9Mesh.Scale = Vector3.new(0.2, 1, 3)
  307. Bar9Weld = Instance.new("Weld",m)
  308. Bar9Weld.Part0 = Bar
  309. Bar9Weld.Part1 = Bar9
  310. Bar9Weld.C1 = CFrame.new(0.02, 0.5, -5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  311.  
  312. Bar10 = Instance.new("Part",m)
  313. Bar10.TopSurface = "Smooth"
  314. Bar10.BottomSurface = "Smooth"
  315. Bar10.FormFactor = "Custom"
  316. Bar10.Size = Vector3.new(0.9,0.3,0.3)
  317. Bar10.CanCollide = true
  318. Bar10.BrickColor = BrickColor.new("Bright red")
  319. Bar10Mesh = Instance.new("SpecialMesh", Bar10)
  320. Bar10Mesh.MeshType = "Cylinder"
  321. Bar10Mesh.Scale = Vector3.new(0.2, 1, 3)
  322. Bar10Weld = Instance.new("Weld",m)
  323. Bar10Weld.Part0 = Bar
  324. Bar10Weld.Part1 = Bar10
  325. Bar10Weld.C1 = CFrame.new(0.02, 0.9, -4.8)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  326.  
  327. Bar11 = Instance.new("Part",m)
  328. Bar11.TopSurface = "Smooth"
  329. Bar11.BottomSurface = "Smooth"
  330. Bar11.FormFactor = "Custom"
  331. Bar11.Size = Vector3.new(0.9,0.3,0.3)
  332. Bar11.CanCollide = true
  333. Bar11.BrickColor = BrickColor.new("Bright red")
  334. Bar11Mesh = Instance.new("SpecialMesh", Bar11)
  335. Bar11Mesh.MeshType = "Cylinder"
  336. Bar11Mesh.Scale = Vector3.new(0.2, 1, 3)
  337. Bar11Weld = Instance.new("Weld",m)
  338. Bar11Weld.Part0 = Bar
  339. Bar11Weld.Part1 = Bar11
  340. Bar11Weld.C1 = CFrame.new(0.02, 0.9, -5.2)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  341.  
  342. Bar12 = Instance.new("Part",m)
  343. Bar12.TopSurface = "Smooth"
  344. Bar12.BottomSurface = "Smooth"
  345. Bar12.FormFactor = "Custom"
  346. Bar12.Size = Vector3.new(0.9,0.3,0.3)
  347. Bar12.CanCollide = true
  348. Bar12.BrickColor = BrickColor.new("Bright red")
  349. Bar12Mesh = Instance.new("SpecialMesh", Bar12)
  350. Bar12Mesh.MeshType = "Cylinder"
  351. Bar12Mesh.Scale = Vector3.new(0.2, 1, 3)
  352. Bar12Weld = Instance.new("Weld",m)
  353. Bar12Weld.Part0 = Bar
  354. Bar12Weld.Part1 = Bar12
  355. Bar12Weld.C1 = CFrame.new(0.02, -0.9, -5)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  356.  
  357. Bar13 = Instance.new("Part",m)
  358. Bar13.TopSurface = "Smooth"
  359. Bar13.BottomSurface = "Smooth"
  360. Bar13.FormFactor = "Custom"
  361. Bar13.Size = Vector3.new(0.9,0.3,0.3)
  362. Bar13.CanCollide = true
  363. Bar13.BrickColor = BrickColor.new("Bright red")
  364. Bar13Mesh = Instance.new("SpecialMesh", Bar13)
  365. Bar13Mesh.MeshType = "Cylinder"
  366. Bar13Mesh.Scale = Vector3.new(0.2, 1, 3)
  367. Bar13Weld = Instance.new("Weld",m)
  368. Bar13Weld.Part0 = Bar
  369. Bar13Weld.Part1 = Bar13
  370. Bar13Weld.C1 = CFrame.new(0.02, -0.5, -4.8)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  371.  
  372. Bar14 = Instance.new("Part",m)
  373. Bar14.TopSurface = "Smooth"
  374. Bar14.BottomSurface = "Smooth"
  375. Bar14.FormFactor = "Custom"
  376. Bar14.Size = Vector3.new(0.9,0.3,0.3)
  377. Bar14.CanCollide = true
  378. Bar14.BrickColor = BrickColor.new("Bright red")
  379. Bar14Mesh = Instance.new("SpecialMesh", Bar14)
  380. Bar14Mesh.MeshType = "Cylinder"
  381. Bar14Mesh.Scale = Vector3.new(0.2, 1, 3)
  382. Bar14Weld = Instance.new("Weld",m)
  383. Bar14Weld.Part0 = Bar
  384. Bar14Weld.Part1 = Bar14
  385. Bar14Weld.C1 = CFrame.new(0.02, -0.5, -5.2)*CFrame.fromEulerAnglesXYZ(0, 1.57, 0)
  386.  
  387. Bar15 = Instance.new("Part",m)
  388. Bar15.TopSurface = "Smooth"
  389. Bar15.BottomSurface = "Smooth"
  390. Bar15.FormFactor = "Custom"
  391. Bar15.Size = Vector3.new(1,1,1)
  392. Bar15.CanCollide = true
  393. Bar15.BrickColor = BrickColor.new("Bright red")
  394. Bar15Mesh = Instance.new("SpecialMesh", Bar15)
  395. Bar15Mesh.MeshType = "Wedge"
  396. Bar15Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  397. Bar15Weld = Instance.new("Weld",m)
  398. Bar15Weld.Part0 = Bar12
  399. Bar15Weld.Part1 = Bar15
  400. Bar15Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(-0.8, 0, 0)
  401.  
  402. Bar16 = Instance.new("Part",m)
  403. Bar16.TopSurface = "Smooth"
  404. Bar16.BottomSurface = "Smooth"
  405. Bar16.FormFactor = "Custom"
  406. Bar16.Size = Vector3.new(1,1,1)
  407. Bar16.CanCollide = true
  408. Bar16.BrickColor = BrickColor.new("Bright red")
  409. Bar16Mesh = Instance.new("SpecialMesh", Bar16)
  410. Bar16Mesh.MeshType = "Wedge"
  411. Bar16Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  412. Bar16Weld = Instance.new("Weld",m)
  413. Bar16Weld.Part0 = Bar13
  414. Bar16Weld.Part1 = Bar16
  415. Bar16Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(0.6, 0, 0)
  416.  
  417. Bar17 = Instance.new("Part",m)
  418. Bar17.TopSurface = "Smooth"
  419. Bar17.BottomSurface = "Smooth"
  420. Bar17.FormFactor = "Custom"
  421. Bar17.Size = Vector3.new(1,1,1)
  422. Bar17.CanCollide = true
  423. Bar17.BrickColor = BrickColor.new("Bright red")
  424. Bar17Mesh = Instance.new("SpecialMesh", Bar17)
  425. Bar17Mesh.MeshType = "Wedge"
  426. Bar17Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  427. Bar17Weld = Instance.new("Weld",m)
  428. Bar17Weld.Part0 = Bar14
  429. Bar17Weld.Part1 = Bar17
  430. Bar17Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(3.4, 0, 0)
  431.  
  432. Bar18 = Instance.new("Part",m)
  433. Bar18.TopSurface = "Smooth"
  434. Bar18.BottomSurface = "Smooth"
  435. Bar18.FormFactor = "Custom"
  436. Bar18.Size = Vector3.new(1,1,1)
  437. Bar18.CanCollide = true
  438. Bar18.BrickColor = BrickColor.new("Bright red")
  439. Bar18Mesh = Instance.new("SpecialMesh", Bar18)
  440. Bar18Mesh.MeshType = "Wedge"
  441. Bar18Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  442. Bar18Weld = Instance.new("Weld",m)
  443. Bar18Weld.Part0 = Bar9
  444. Bar18Weld.Part1 = Bar18
  445. Bar18Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(-0.8, 0, 0)
  446.  
  447. Bar19 = Instance.new("Part",m)
  448. Bar19.TopSurface = "Smooth"
  449. Bar19.BottomSurface = "Smooth"
  450. Bar19.FormFactor = "Custom"
  451. Bar19.Size = Vector3.new(1,1,1)
  452. Bar19.CanCollide = true
  453. Bar19.BrickColor = BrickColor.new("Bright red")
  454. Bar19Mesh = Instance.new("SpecialMesh", Bar19)
  455. Bar19Mesh.MeshType = "Wedge"
  456. Bar19Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  457. Bar19Weld = Instance.new("Weld",m)
  458. Bar19Weld.Part0 = Bar10
  459. Bar19Weld.Part1 = Bar19
  460. Bar19Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(0.6, 0, 0)
  461.  
  462. Bar20 = Instance.new("Part",m)
  463. Bar20.TopSurface = "Smooth"
  464. Bar20.BottomSurface = "Smooth"
  465. Bar20.FormFactor = "Custom"
  466. Bar20.Size = Vector3.new(1,1,1)
  467. Bar20.CanCollide = true
  468. Bar20.BrickColor = BrickColor.new("Bright red")
  469. Bar20Mesh = Instance.new("SpecialMesh", Bar20)
  470. Bar20Mesh.MeshType = "Wedge"
  471. Bar20Mesh.Scale = Vector3.new(0.18, 0.2, 0.3)
  472. Bar20Weld = Instance.new("Weld",m)
  473. Bar20Weld.Part0 = Bar11
  474. Bar20Weld.Part1 = Bar20
  475. Bar20Weld.C1 = CFrame.new(0, -0.05, 0.2)*CFrame.fromEulerAnglesXYZ(3.4, 0, 0)
  476.  
  477. function smooth(a)
  478.     a.BottomSurface = 0
  479.     a.TopSurface = 0
  480.     a.FrontSurface = "SmoothNoOutlines"
  481.     a.LeftSurface = "SmoothNoOutlines"
  482.     a.RightSurface = "SmoothNoOutlines"
  483.     a.TopSurface = "SmoothNoOutlines"
  484. end
  485.  
  486.  
  487. for _, a in pairs(m:children()) do
  488.     if a:IsA'Part' then
  489.         smooth(a)
  490.     end
  491. end
  492.  
  493. for _, a in pairs(m:children()) do
  494.     if a:IsA'Weld' then
  495.         a.Name = plr.Name.."Weld"
  496.     end
  497. end
  498.  
  499. for _, a in pairs(m:children()) do
  500.     if a:IsA'Part' then
  501.         a.CanCollide = false
  502.     end
  503. end
  504.  
  505. --// Body Parts
  506.  
  507. human = char:FindFirstChildOfClass'Humanoid'
  508. torso = char.Torso
  509. root = char.HumanoidRootPart
  510. lleg = char["Left Leg"]
  511. rleg = char["Right Leg"]
  512. larm = char["Left Arm"]
  513. rarm = char["Right Arm"]
  514. head = char.Head
  515. ground = ""
  516. mouse = plr:GetMouse()
  517. parent = script
  518.  
  519. ff = Instance.new('ForceField', script)
  520. ff.Visible = false
  521.  
  522. for _, a in pairs(workspace:children()) do
  523.     if a:IsA'Part' then
  524.         ground = a
  525.     end
  526. end
  527.  
  528. --// Config
  529.  
  530. speed = 4
  531. cooldown = true
  532. cooldown1 = true --- kamui
  533. cooldown2 = true --- madara
  534. cooldown3 = true -- meteor
  535. sprint = false
  536. fire = false
  537. gthr = false
  538. out = false
  539. block = false
  540.  
  541. --// Head
  542.  
  543. neck = torso.Neck
  544. ncf = neck.C0
  545.  
  546. --// torso
  547.  
  548. torsojoint = root.RootJoint
  549. torsoC0 = torsojoint.C0
  550.  
  551. --// Legs
  552.  
  553. lhip = torso["Left Hip"]
  554. rhip = torso["Right Hip"]
  555. lle = lhip.C0
  556. rle = rhip.C0
  557.  
  558. --// rad,random,sin,cos,and floor
  559.  
  560. rad = math.rad
  561. random = math.random
  562. sin = math.sin
  563. cos = math.cos
  564. floor = math.floor
  565.  
  566. --// Body Color
  567.  
  568. bc = char:FindFirstChild('Body Colors')
  569. bc.HeadColor = BrickColor.new('Cool yellow')
  570. bc.LeftArmColor = BrickColor.new('Cool yellow')
  571. bc.RightArmColor = BrickColor.new('Cool yellow')
  572. bc.LeftLegColor = BrickColor.new('Cool yellow')
  573. bc.RightLegColor = BrickColor.new('Cool yellow')
  574. bc.TorsoColor = BrickColor.new('Cool yellow')
  575.  
  576. --// Arms
  577.  
  578. lshold = torso["Left Shoulder"]
  579. rshold = torso["Right Shoulder"]
  580. lsho = lshold.C0
  581. rsho = rshold.C0
  582.  
  583. --// Remove animations
  584.  
  585. char.Animate.Parent = nil
  586. human.Animator.Parent = nil
  587.  
  588. for i,v in pairs(human:GetPlayingAnimationTracks()) do
  589.     v:Stop()
  590. end
  591.  
  592. --// sfx
  593.  
  594. s1 = Instance.new('Sound', char['Right Arm'])
  595. s1.SoundId = "rbxassetid://385470847"
  596. s1.Volume = 4
  597.  
  598. s2 = Instance.new('Sound', char.Head)
  599. s2.SoundId = "rbxassetid://134269592"
  600. s2.Volume = 4
  601.  
  602. s3 = Instance.new('Sound', char.Head)
  603. s3.SoundId = "rbxassetid://405596045"
  604. s3.Volume = 4
  605.  
  606. s4 = Instance.new('Sound', char["Right Arm"])
  607. s4.Volume = 6
  608. s4.SoundId = "rbxassetid://873073853"
  609. s4.Looped = false
  610.  
  611. s5 = Instance.new('Sound', char["Right Arm"])
  612. s5.Volume = 6
  613. s5.SoundId = "rbxassetid://898385136"
  614. s5.Looped = false
  615.  
  616. s6 = Instance.new('Sound', char["Right Arm"])
  617. s6.Volume = 8
  618. s6.SoundId = "rbxassetid://138210320"
  619. s6.Looped = false
  620.  
  621. s7 = Instance.new('Sound', script)
  622. s7.Volume = 10
  623. s7.SoundId = "rbxassetid://1084995524"
  624. s7.Looped = false
  625.  
  626. --// char
  627.  
  628. for _, a in pairs(char:children()) do
  629.     if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Shirt' or a:IsA'Pants' then
  630.         a:Destroy()
  631.     end
  632. end
  633.  
  634. Hair = Instance.new("Part")
  635. Hair.Parent = char
  636. Hair.Name = "Hair"
  637. Hair.CanCollide = false
  638. Hair.Locked = true
  639. Hair.TopSurface = "Smooth"
  640. Hair.BottomSurface = "Smooth"
  641. Hair.formFactor = "Symmetric"
  642. Hair.Material = "Neon"
  643. Hair.BrickColor = BrickColor.new("Really black")
  644. Hair.CFrame = char.Torso.CFrame
  645. Hair.Size = Vector3.new(1, 1, 1)
  646. Hair.Transparency = 0
  647.  
  648. Mesh = Instance.new("SpecialMesh", Hair)
  649. Mesh.Scale = Vector3.new(0.07, 0.07, 0.07)
  650. Mesh.MeshType = "FileMesh"
  651. Mesh.MeshId = "rbxassetid://522871165"
  652. Mesh.TextureId = "rbxassetid://522871173"
  653.  
  654. local s = Instance.new('Shirt', char)
  655. s.ShirtTemplate = "http://www.roblox.com/asset/?id=179195327"
  656. local p = Instance.new('Pants', char)
  657. p.PantsTemplate = "http://www.roblox.com/asset/?id=215937603"
  658.  
  659. local rad = math.rad
  660.  
  661. Weld = Instance.new("Weld", Hair)
  662. Weld.Name = plr.Name.."Weld"
  663. Weld.Part0 = char.Head
  664. Weld.Part1 = Hair
  665. Weld.C0 = CFrame.new(0,0.2,0.07) * CFrame.Angles(0,rad(180),0)
  666.  
  667. char.Head.face.Texture = ""
  668.  
  669. --// functionns
  670.  
  671. function scan(p)
  672.     for _,v in pairs(p:GetChildren()) do
  673.         if v:IsA("Weld") and v.Name ~= plr.Name.."Weld" then
  674.             v:Destroy()
  675.         elseif v:IsA'BodyVelocity' or v:IsA'BodyGyro' or v:IsA'BodyPosition' then
  676.             v:Destroy()
  677.         end
  678.     scan(v)
  679.     end
  680. end
  681.  
  682. controlled = {
  683.    
  684. }
  685.  
  686. function control()
  687.     if mouse.Target and mouse.Target.Parent then
  688.         local targ = mouse.Target
  689.         local humtarg = targ.Parent:FindFirstChildOfClass'Humanoid'
  690.         table.insert(controlled,targ.Parent.Name)
  691.         local p = Instance.new('Part', char)
  692.         smooth(p)
  693.         p.Anchored = true
  694.         p.Size = Vector3.new(0.2,0.2,0.2)
  695.         p.CanCollide = false
  696.         p.Material = 'Neon'
  697.         p.Shape = "Ball"
  698.         p.BrickColor = BrickColor.new('Royal purple')
  699.         s2:Play()
  700.         for i = 1,25 do
  701.             wait()
  702.             p.Size = p.Size + Vector3.new(2,2,2)
  703.             p.Transparency = p.Transparency + 0.04
  704.             p.CFrame = char.Torso.CFrame
  705.         end
  706.     end
  707. end
  708.  
  709. function kamui()
  710.     s2:Play()
  711.     local mpos = mouse.Hit
  712.     local k = Instance.new('Part', char)
  713.     k.Anchored = true
  714.     k.CanCollide = false
  715.     k.Name = "Kamui"
  716.     k.Transparency = 1
  717.     k.Position = char.Torso.Position + Vector3.new(0,5,0) +char.Torso.CFrame.lookVector * 8
  718.     k.Size = Vector3.new(19, 19, 1)
  719.     local k1 = k:Clone()
  720.     k1.Parent = char
  721.     k1.Position = mpos.p + Vector3.new(0,8,0)
  722.     local sizeinc = 0.1
  723.     local howmany = 200
  724.     local d = Instance.new('Decal', k)
  725.     d.Texture = "http://www.roblox.com/asset/?id=21315275"
  726.     d.Color3 = Color3.new(0,0,0)
  727.     d.Face = "Back"
  728.     d.Transparency = 1
  729.     local d1 = d:Clone()
  730.     d1.Parent = k
  731.     d1.Face = "Front"
  732.     local d2 = d:Clone()
  733.     d2.Parent = k1
  734.     d1:Clone().Parent = k1
  735.     local pos = k.Position
  736.     local pos1 = k1.Position
  737.     k.Touched:connect(function(hit)
  738.         if hit and hit.Parent then
  739.             ypcall(function()
  740.                 hit.CFrame = k1.CFrame
  741.                 hit.Anchored = false
  742.                 hit.CanCollide = true
  743.                 sizeinc = 0.2
  744.                 howmany = 10
  745.                
  746.                 for i = 1,200 do
  747.                     wait()
  748.                     k.CFrame = k.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  749.                     k.Size = k.Size - Vector3.new(sizeinc,sizeinc,sizeinc)
  750.                     k1.CFrame = k1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  751.                     k1.Size = k1.Size - Vector3.new(sizeinc,sizeinc,sizeinc)
  752.                     k1.Position = pos1
  753.                     k.Position = pos
  754.                 end
  755.                 cooldown1 = true
  756.             end)
  757.         end
  758.     end)
  759.     for i = 1,howmany do
  760.         wait()
  761.         for _, a in pairs(k:children()) do
  762.             if a:IsA'Decal' then
  763.                 a.Transparency = a.Transparency - 0.1
  764.             end
  765.         end
  766.         for _, b in pairs(k1:children()) do
  767.             if b:IsA'Decal' then
  768.                 b.Transparency = b.Transparency - 0.1
  769.             end
  770.         end
  771.         k.CFrame = k.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  772.         k1.CFrame = k1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  773.         k.Position = pos
  774.         k1.Position = pos1
  775.     end
  776.     for i = 1,200 do
  777.         wait()
  778.         k.CFrame = k.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  779.         k.Size = k.Size - Vector3.new(sizeinc,sizeinc,sizeinc)
  780.         k1.CFrame = k1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0.1)
  781.         k1.Size = k1.Size - Vector3.new(sizeinc,sizeinc,sizeinc)
  782.         k1.Position = pos1
  783.         k.Position = pos
  784.     end
  785.     k1:Destroy()
  786.     k:Destroy()
  787. end
  788.  
  789. function debris(a, b, c)
  790.     for j = 1, c do
  791.         local pr = Instance.new("Part")
  792.         pr.Name = ""
  793.         pr.Anchored = true
  794.         pr.BrickColor = b.BrickColor
  795.         pr.CanCollide = true
  796.         pr.Material = b.Material
  797.         pr.Transparency = b.Transparency
  798.         pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24))
  799.         pr.CFrame = a * CFrame.Angles(0, math.rad(c * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
  800.         pr.Parent = workspace
  801.         game.Debris:AddItem(pr, 15)
  802.     end
  803. end
  804.  
  805. function hit(b,a)
  806.     for _,v in pairs(workspace:children()) do
  807.         if v:IsA('Model') and v.Name ~= plr.Name and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
  808.             if (v.HumanoidRootPart.Position-a:FindFirstChild('HumanoidRootPart').Position).magnitude <=b then
  809.                 v:FindFirstChildOfClass'Humanoid':TakeDamage(v:FindFirstChildOfClass'Humanoid'.MaxHealth/2)
  810.             end
  811.         end
  812.     end
  813. end
  814.  
  815. function smash()
  816.     human.WalkSpeed = 0
  817.     for i = 0,1,0.1 do
  818.         wait()
  819.         neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(-19.538), 0, 0),i)
  820.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(0, 0, math.rad(154.928)),i)
  821.     end
  822.     wait(.05)
  823.     debris(char:FindFirstChild('HumanoidRootPart').CFrame,ground,30)
  824.     s6:Play()
  825.     hit(50,char)
  826.     for i = 0,1,0.2 do
  827.         wait()
  828.         neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(23.549), 0, 0),i)
  829.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(0, 0, math.rad(-19.767)),i)
  830.     end
  831.     wait(.5)
  832.     for i = 0,1,0.2 do
  833.         wait()
  834.         neck.C0 = neck.C0:lerp(ncf,i)
  835.         rshold.C0 = rshold.C0:lerp(rsho,i)
  836.     end
  837.     human.WalkSpeed = 16
  838. end
  839.  
  840. function stop()
  841.     local p = Instance.new('Part', char)
  842.     smooth(p)
  843.     p.Anchored = true
  844.     p.Size = Vector3.new(0.2,0.2,0.2)
  845.     p.CanCollide = false
  846.     p.Material = 'Neon'
  847.     p.Shape = "Ball"
  848.     p.BrickColor = BrickColor.new('Royal purple')
  849.     p.Touched:connect(function(hit)
  850.         if hit.Name ~= "HumanoidRootPart" then
  851.             hit.Transparency = 0
  852.         end
  853.     end)
  854.     s2:Play()
  855.     for _, a in pairs(game:service'Players':players()) do
  856.         for _, b in pairs(a.Character:children()) do
  857.             if b:IsA'Part' and b.Name == "Part" and b:FindFirstChildOfClass'BodyVelocity' then
  858.                 b.Anchored = true
  859.                 b.Parent = char
  860.                 b:FindFirstChildOfClass'BodyVelocity':Destroy()
  861.                 b:FindFirstChildOfClass'BodyGyro':Destroy()
  862.                 b.Touched:connect(function(hit)
  863.                     if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= plr.Name then
  864.                         local targ = hit.Parent
  865.                         local humtarg = targ:FindFirstChildOfClass'Humanoid'
  866.                         humtarg.Parent:BreakJoints()
  867.                     end
  868.                 end)
  869.                 local BodyVel=Instance.new('BodyVelocity',b)
  870.                 BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  871.                 local BodyGyro=Instance.new('BodyGyro',b)
  872.                 BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  873.                 BodyGyro.P=2e4
  874.                 coroutine.wrap(function()
  875.                     RenderStepped:connect(function()
  876.                         BodyGyro.cframe=CFrame.new(b.Position,mouse.Hit.p)
  877.                         BodyVel.velocity = b.CFrame.lookVector*50
  878.                     end)
  879.                 end)()
  880.                 b.Anchored = false
  881.             end
  882.         end
  883.     end
  884.     for i = 1,25 do
  885.         wait()
  886.         p.Size = p.Size + Vector3.new(8,8,8)
  887.         p.Transparency = p.Transparency + 0.07
  888.         p.CFrame = char.Torso.CFrame
  889.     end
  890. end
  891.  
  892. function explo()
  893.     ypcall(function()
  894.     for _, a in pairs(game:service'Players':players()) do
  895.         for _, b in pairs(a.Character:children()) do
  896.             if a.Name ~= plr.Name then
  897.                 if b:IsA'ForceField' then
  898.                     b:Destroy()
  899.                 end
  900.             end
  901.         end
  902.     end
  903.     end)
  904.     human.WalkSpeed = 0
  905.     for i = 0,1,0.02 do
  906.         wait()
  907.         lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(0.057), math.rad(-0.745), math.rad(-85.428)),i)
  908.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(-0.229), math.rad(-2.063), math.rad(83.881)),i)
  909.     end
  910.     s1:Play()
  911.     for i = 0,1,0.2 do
  912.         wait()
  913.         lshold.C0 = lshold.C0:lerp(lsho*CFrame.new(-0.217, -0.017, -0.265) * CFrame.Angles(math.rad(5.5), math.rad(-50.306), math.rad(-82.85)),i)
  914.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(0.206, -0.022, -0.234) * CFrame.Angles(math.rad(6.875), math.rad(48.186), math.rad(80.844)),i)
  915.     end
  916.     human.WalkSpeed = 16
  917.     wait(.1)
  918.     local mp = mouse.Hit
  919.     local p = Instance.new('Part', char)
  920.     p.Anchored = true
  921.     p.CanCollide = false
  922.     p.BrickColor = BrickColor.new('Really black')
  923.     p.Size = Vector3.new(0.2,0.2,0.2)
  924.     p.BottomSurface = 0
  925.     p.TopSurface = 0
  926.     p.Material = 'Neon'
  927.     p.Shape = "Ball"
  928.     p.Touched:connect(function(hit)
  929.         if hit:IsA'Part' then
  930.             hit.Anchored = false
  931.         end
  932.     end)
  933.     local Ex = Instance.new("Explosion", char)
  934.     Ex.Position = mp.p
  935.     Ex.BlastRadius = 19
  936.     Ex.Visible = false
  937.     Ex.DestroyJointRadiusPercent = .3
  938.     for i = 1,25 do
  939.         wait()
  940.         p.Size = p.Size + Vector3.new(3.5,3.5,3.5)
  941.         p.Transparency = p.Transparency + 0.04
  942.         p.CFrame = mp
  943.     end
  944.     p:Destroy()
  945. end
  946.  
  947. function gout()
  948.     human.WalkSpeed = 0
  949.     for i = 0,1,0.09 do
  950.         wait()
  951.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(-0.114, 0.584, 0.09) * CFrame.Angles(math.rad(8.422), math.rad(1.662), -math.rad(-169.08)),i)
  952.         neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(-10.6), math.rad(7.277), math.rad(-34.034)),i)
  953.     end
  954.     wait(0.5)
  955.     s4:Play()
  956.     BarWeld.Part0 = char["Right Arm"]
  957.     BarWeld.Part1 = Bar
  958.     BarWeld.C0 = CFrame.new(0,-0.34,-3) * CFrame.fromEulerAnglesXYZ(rad(75),rad(60),rad(50))
  959.     for i = 0,1,0.1 do
  960.         wait()
  961.         neck.C0 = neck.C0:lerp(ncf,i)
  962.         rshold.C0 = rshold.C0:lerp(rsho,i)
  963.     end
  964.     human.WalkSpeed = 16
  965. end
  966.  
  967. function around()
  968.     for i = 0,1,0.1 do
  969.         wait()
  970.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(0, -0.356, 0.425) * CFrame.Angles(math.rad(-84.225), 0, 0),i)
  971.         lshold.C0 = lshold.C0:lerp(lsho*CFrame.new(0, -0.403, 0.234) * CFrame.Angles(math.rad(-78.839), 0, 0),i)
  972.     end
  973.     bg.Parent = char.Torso
  974.     wait(6)
  975.     bg.Parent = script
  976. end
  977.  
  978. function gon(a)
  979.     local p = Instance.new('Part', workspace)
  980.     p.Transparency = 1
  981.     p.CanCollide = false
  982.     p.Anchored = true
  983.     p.Size = Vector3.new(0.2,0.2,0.2)
  984.     p.CFrame = a.Torso.CFrame
  985.     local sou = Instance.new("Sound")
  986.     sou.Pitch = 1
  987.     sou.Volume = 1.2
  988.     sou.SoundId = "rbxassetid://722960601"
  989.     sou.Parent = p
  990.     sou:Play()
  991.     local pe = Instance.new("ParticleEmitter")
  992.     pe.Acceleration = Vector3.new(0, 8, 0)
  993.     pe.Lifetime = NumberRange.new(1, 1.5)
  994.     pe.Rate = 20000
  995.     pe.RotSpeed = NumberRange.new(-30, 30)
  996.     pe.Rotation = NumberRange.new(0, 360)
  997.     pe.Size = NumberSequence.new({
  998.     NumberSequenceKeypoint.new(0, 4.38, 0),
  999.     NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1000.     NumberSequenceKeypoint.new(1, 1.48, 0)
  1001.     })
  1002.     pe.Texture = "rbxassetid://244221440"
  1003.     pe.Transparency = NumberSequence.new({
  1004.     NumberSequenceKeypoint.new(0, 0, 0),
  1005.     NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1006.     NumberSequenceKeypoint.new(1, 1, 1)
  1007.     })
  1008.     pe.ZOffset = 5
  1009.     pe.VelocitySpread = 360
  1010.     pe.Parent = p
  1011.     pe.Enabled = true
  1012.     wait(0.1)
  1013.     pe.Enabled = false
  1014.     a:Destroy()
  1015. end
  1016.  
  1017. function rcheck()
  1018.     wait()
  1019.     local c = true
  1020.     if madara.Torso.Velocity.Y > -10 and c then
  1021.         s7:Play()
  1022.         debris(madara:FindFirstChild('HumanoidRootPart').CFrame,ground,30)
  1023.         hit(50,madara)
  1024.         c = false
  1025.     else
  1026.         rcheck()
  1027.     end
  1028. end
  1029.  
  1030. function mad()
  1031.     char.Archivable = true
  1032.    
  1033.     madara = char:Clone()
  1034.     madara:FindFirstChildOfClass'Humanoid'.Health = madara:FindFirstChildOfClass'Humanoid'.MaxHealth
  1035.     madara.Name = "Madara"
  1036.     armor = Instance.new("Part")
  1037.     armor.Parent = madara
  1038.     armor.Name = "armor"
  1039.     armor.CanCollide = false
  1040.     armor.Locked = true
  1041.     armor.TopSurface = "Smooth"
  1042.     armor.BottomSurface = "Smooth"
  1043.     armor.formFactor = "Symmetric"
  1044.     armor.Material = "Neon"
  1045.     armor.BrickColor = BrickColor.new("Really black")
  1046.     armor.CFrame = madara.Torso.CFrame
  1047.     armor.Size = Vector3.new(1, 1, 1)
  1048.     armor.Transparency = 0
  1049.    
  1050.     Mesh = Instance.new("SpecialMesh", armor)
  1051.     Mesh.Scale = Vector3.new(0.08, 0.13, 0.1)
  1052.     Mesh.MeshType = "FileMesh"
  1053.     Mesh.MeshId = "rbxassetid://810563108"
  1054.     Mesh.TextureId = "rbxassetid://810563127"
  1055.    
  1056.     Weld = Instance.new("Weld", armor)
  1057.     Weld.Name = plr.Name.."Weld"
  1058.     Weld.Part0 = madara.Torso
  1059.     Weld.Part1 = armor
  1060.     Weld.C0 = CFrame.new(0,-0.5,0) * CFrame.Angles(0,rad(180),0)
  1061.     madara:FindFirstChildOfClass('Model'):Destroy()
  1062.     madara:FindFirstChild('Hair'):FindFirstChildOfClass'SpecialMesh'.TextureId = "rbxassetid://522545813"
  1063.     madara:FindFirstChild('Hair'):FindFirstChildOfClass'SpecialMesh'.MeshId = "rbxassetid://522538570"
  1064.     madara:FindFirstChild('Hair'):FindFirstChildOfClass'SpecialMesh'.Scale = Vector3.new(.07,.07,.07)
  1065.     madara:FindFirstChild('Hair'):FindFirstChildOfClass'Weld'.C0 = CFrame.new(0,-1.7,.8) * CFrame.Angles(0,rad(180),0)
  1066.     madara:FindFirstChildOfClass'Pants'.PantsTemplate = "http://www.roblox.com/asset/?id=74245134"
  1067.     madara:FindFirstChildOfClass'Shirt'.ShirtTemplate = "http://www.roblox.com/asset/?id=74237934"
  1068.     local p = Instance.new('Part', char)
  1069.     p.Name = 'Hi'
  1070.     p.Anchored = true
  1071.     p.Transparency = 1
  1072.     p.Size = Vector3.new(0.2,0.2,0.2)
  1073.     p.CanCollide = false
  1074.     p.Position = mouse.Hit.p + Vector3.new(0,35,0)
  1075.     madara.Parent = char
  1076.    
  1077.     local froot = madara.HumanoidRootPart
  1078.     local ftorso = madara.Torso
  1079.    
  1080.     local ftorsojoint = froot.RootJoint
  1081.     local ftorsoC0 = ftorsojoint.C0
  1082.  
  1083.     local flshold = ftorso["Left Shoulder"]
  1084.     local frshold = ftorso["Right Shoulder"]
  1085.     local flsho = flshold.C0
  1086.     local frsho = frshold.C0
  1087.    
  1088.     local h = Instance.new('Part', char)
  1089.     h.Name = 'Hi'
  1090.     h.Anchored = false
  1091.     h.Transparency = 1
  1092.     h.Size = Vector3.new(1,1,1)
  1093.     h.CanCollide = false
  1094.     Weld = Instance.new("Weld", h)
  1095.     Weld.Name = plr.Name.."Weld"
  1096.     Weld.Part0 = madara.Head
  1097.     Weld.Part1 = h
  1098.     Weld.C0 = CFrame.new(0,0,0)
  1099.    
  1100.     ftorsojoint.C0 = ftorsoC0*CFrame.Angles(math.rad(178.706), 0, 0)
  1101.     flshold.C0 = flsho*CFrame.new(0, -0.015, 0.112) * CFrame.Angles(math.rad(7.506), 0, 0)
  1102.     frshold.C0 = frsho*CFrame.new(0, -0.001, 0.015) * CFrame.Angles(math.rad(4.698), 0, math.rad(-179.909))
  1103.    
  1104.     madara:FindFirstChild('Torso').CFrame = p.CFrame
  1105.     s7.Parent = madara.Torso
  1106.    
  1107.     wait(.6)
  1108.     rcheck()
  1109.     wait(.5)
  1110.     s7.Parent = script
  1111.     wait(.9)
  1112.     gon(madara)
  1113. end
  1114.  
  1115. function meteor()
  1116.     local gr = {
  1117.        
  1118.     }
  1119.     local height = 1
  1120.     local g = Instance.new('Part', char)
  1121.     g.Anchored = true
  1122.     g.CanCollide = false
  1123.     g.BrickColor = ground.BrickColor
  1124.     g.Size = Vector3.new(.2,.2,.2)
  1125.     g.Shape = 'Ball'
  1126.     g.BrickColor = BrickColor.new('Burnt Sienna')
  1127.     g.Material = 'Slate'
  1128.     smooth(g)
  1129.     for i = 1,500 do
  1130.         wait()
  1131.         local cfrem = ground.CFrame
  1132.         ground.Size = ground.Size - Vector3.new(.02,0,.02)
  1133.         ground.CFrame = cfrem
  1134.         local p = Instance.new('Part', char)
  1135.         p.Anchored = true
  1136.         p.CanCollide = true
  1137.         p.BrickColor = ground.BrickColor
  1138.         smooth(p)
  1139.         p.Position = char.Torso.Position + Vector3.new(math.random(-100,100),0,math.random(-100,100))
  1140.         p.Material = ground.Material
  1141.         p.Size = Vector3.new(math.random(5,15),math.random(5,15),math.random(5,15))
  1142.         table.insert(gr,p)
  1143.         g.CFrame = char.Head.CFrame * CFrame.new(0,height*2,0)
  1144.         g.Size = g.Size + Vector3.new(.5,.5,.5)
  1145.         for _, a in pairs(gr) do
  1146.             a.CFrame = a.CFrame:lerp(g.CFrame,0.05)
  1147.         end
  1148.         height = height + 0.4
  1149.     end
  1150.     g.Touched:connect(function(hit)
  1151.         if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= plr.Name then
  1152.             local targ = hit.Parent
  1153.             local humtarg = targ:FindFirstChildOfClass'Humanoid'
  1154.             humtarg.Health = 0
  1155.             targ:BreakJoints()
  1156.         end
  1157.     end)
  1158.     g.Anchored = false
  1159.     for _, a in pairs(gr) do
  1160.         a:Destroy()
  1161.     end
  1162.     gr = {}
  1163. end
  1164.  
  1165. function gin()
  1166.     human.WalkSpeed = 0
  1167.     for i = 0,1,0.1 do
  1168.         wait()
  1169.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.new(-0.114, 0.584, 0.09) * CFrame.Angles(math.rad(8.422), math.rad(1.662), -math.rad(-169.08)),i)
  1170.         neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(-10.6), math.rad(7.277), math.rad(-34.034)),i)
  1171.     end
  1172.     wait(0.5)
  1173.     s5:Play()
  1174.     BarWeld.Part0 = char.Torso
  1175.     BarWeld.Part1 = Bar
  1176.     BarWeld.C0 = CFrame.new(0,0,-0.1)*CFrame.fromEulerAnglesXYZ(0, 0, rad(-1))
  1177.     for i = 0,1,0.1 do
  1178.         wait()
  1179.         neck.C0 = neck.C0:lerp(ncf,i)
  1180.         rshold.C0 = rshold.C0:lerp(rsho,i)
  1181.     end
  1182.     human.WalkSpeed = 16
  1183. end
  1184.  
  1185. --// keys
  1186.  
  1187. char['Left Leg'].Touched:connect(function(hit)
  1188.     if hit:IsA'Part' then
  1189.         ground = hit
  1190.     end
  1191. end)
  1192.  
  1193. mouse.Button1Down:connect(function()
  1194.     gthr = true
  1195. end)
  1196.  
  1197. mouse.Button1Up:connect(function()
  1198.     gthr = false
  1199. end)
  1200.  
  1201. mouse.KeyDown:connect(function(key)
  1202.     if key == "e" and cooldown then
  1203.         cooldown = false
  1204.         cooldown = true
  1205.     end
  1206. end)
  1207.  
  1208. mouse.KeyUp:connect(function(key)
  1209.     if key == "e" and cooldown then
  1210.         cooldown = false
  1211.         cooldown = true
  1212.     end
  1213. end)
  1214.  
  1215. mouse.KeyDown:connect(function(key)
  1216.     if key == "q" and cooldown and not out then
  1217.         human.WalkSpeed = 0
  1218.         cooldown = false
  1219.         fire = true
  1220.         explo()
  1221.         cooldown = true
  1222.         fire = false
  1223.         human.WalkSpeed = 16
  1224.     elseif key == "q" and cooldown and out then
  1225.         cooldown = false
  1226.         fire = true
  1227.         smash()
  1228.         cooldown = true
  1229.         fire = false
  1230.     elseif key == "z" and cooldown then
  1231.         cooldown = false
  1232.         control()
  1233.         cooldown = true
  1234.     elseif key == "x" and cooldown then
  1235.         cooldown = false
  1236.         s3:Play()
  1237.         controlled = {}
  1238.         cooldown = true
  1239.     elseif key == "r" and cooldown3 then
  1240.         cooldown3 = false
  1241.         meteor()
  1242.         cooldown3 = true
  1243.     elseif key == "e" and cooldown2 then
  1244.         cooldown2 = false
  1245.         mad()
  1246.         cooldown2 = true
  1247.     elseif key == "t" and cooldown1 then
  1248.         cooldown1 = false
  1249.         kamui()
  1250.         cooldown1 = true
  1251.     elseif key == "g" then
  1252.         if out == false and cooldown then
  1253.             out = true
  1254.             cooldown = false
  1255.             fire = true
  1256.             gout()
  1257.             fire = false
  1258.             cooldown = true
  1259.         elseif out and cooldown then
  1260.             out = false
  1261.             cooldown = false
  1262.             fire = true
  1263.             gin()
  1264.             fire = false
  1265.             cooldown = true
  1266.         end
  1267.     end
  1268. end)
  1269.  
  1270. --// Go through
  1271.  
  1272. game:GetService('RunService').RenderStepped:connect(function()
  1273.     human = char:FindFirstChildOfClass'Humanoid'
  1274.     if gthr then
  1275.         human.MaxHealth = math.huge
  1276.         human:ChangeState(11)
  1277.         human.Health = human.MaxHealth
  1278.         ff.Parent = char
  1279.         human.Name = math.random(1,50)
  1280.     elseif not gthr then
  1281.         human.MaxHealth = 1000
  1282.         ff.Parent = script
  1283.         human.Name = "Humanoid"
  1284.     end
  1285. end)
  1286.  
  1287. --// control
  1288.  
  1289. game:GetService('RunService').RenderStepped:connect(function()
  1290.     bg.cframe = bg.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(0),0.1 , 0 )
  1291.     if #controlled >= 1 then
  1292.         for _, a in pairs(controlled) do
  1293.             if game:service'Players':FindFirstChild(a) then
  1294.                 game:service'Players'[a].Character:FindFirstChildOfClass'Humanoid':MoveTo(mouse.Hit.p)
  1295.                 game:service'Players'[a].Character:FindFirstChildOfClass'Humanoid'.WalkSpeed = 20
  1296.                 game:service'Players'[a].Character:FindFirstChildOfClass'Humanoid'.JumpPower = 0
  1297.             end
  1298.         end
  1299.     end
  1300. end)
  1301.  
  1302. --// Anti ghost
  1303.  
  1304. game:GetService('RunService').RenderStepped:connect(function()
  1305.     for _, a in pairs(game:service'Players':players()) do
  1306.         if not a.Character.Parent == workspace then
  1307.             a.Character:Destroy()
  1308.             a.Character:BreakJoints()
  1309.         end
  1310.     end
  1311. end)
  1312.  
  1313. --// Animations
  1314.  
  1315. local ang = -5
  1316. local ang2 = -5
  1317. local sine = 0
  1318. local change = 0.5
  1319. arm = 0
  1320.  
  1321. local t = math.huge
  1322.  
  1323. game:GetService('RunService').RenderStepped:connect(function()
  1324.  
  1325. sine = change+sine
  1326. ang = ang+0.08
  1327. ang2 = ang2+0.01
  1328. rad = math.rad
  1329. sin = math.sin
  1330. arm = arm + 0.06
  1331.  
  1332. if fire == false and sprint == false and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude > 2 then
  1333.         lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(-0.1, 0, sin(arm)/1.5), .1)
  1334.         rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(-0.1, 0, sin(arm)/1.5), .1)
  1335.         neck.C0 = neck.C0:lerp(CFrame   .new(0,0,0) * ncf * CFrame.Angles(0, 0, 0), 0.1)
  1336.         lhip.C0 = lhip.C0:lerp(CFrame.new(-1,-0.95+0.1*-math.cos(tick()*speed),0.2*math.sin(tick()*4))*CFrame.Angles(math.rad(25*-math.sin(tick()*4)),   rad(-90), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  1337.         rhip.C0 = rhip.C0:lerp(CFrame.new(1,-0.95+0.1*math.cos(tick()*speed),0.2*-math.sin(tick()*4))*CFrame.Angles(math.rad(25*math.sin(tick()*4)), rad(90), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  1338.     elseif fire == false and sprint == false and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude < 2 then
  1339.         lshold.C0 = lshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lsho * CFrame.Angles(-0.1, 0, 0), 0.1)
  1340.         rshold.C0 = rshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rsho * CFrame.Angles(-0.1, 0, 0), 0.1)
  1341.         torsojoint.C0 = torsojoint.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * torsoC0 * CFrame.Angles(0, 0, 0), 0.1)
  1342.         lhip.C0 = lhip.C0:lerp(lle * CFrame.Angles(-0.07, 0, 0), 0.1)
  1343.         rhip.C0 = rhip.C0:lerp(rle * CFrame.Angles(-0.07, 0, 0), 0.1)
  1344.     elseif fire == false and sprint and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude > 2 then
  1345.         torsojoint.C0 = torsojoint.C0:lerp(torsoC0*CFrame.new(0, 0, 2.88) * CFrame.Angles(math.rad(9), 0, 0), 0.1)
  1346.         lhip.C0 = lhip.C0:lerp(lle*CFrame.Angles(math.rad(-5.386), math.rad(-3.667), math.rad(22.861)), 0.1)
  1347.         rhip.C0 = rhip.C0:lerp(rle*CFrame.Angles(math.rad(-7.047), math.rad(4.813), math.rad(-21.028)), 0.1)
  1348.         lshold.C0 = lshold.C0:lerp(sho*CFrame.Angles(math.rad(-15), math.rad(-8), math.rad(45)), 0.1)
  1349.         rshold.C0 = rshold.C0:lerp(rshlo*CFrame.Angles(math.rad(-15), math.rad(-8), math.rad(-45)), 0.1)
  1350.     elseif fire == false and sprint and Vector3.new(torso.Velocity.X,0,torso.Velocity.Z).magnitude < 2 then
  1351.         torsojoint.C0 = torsojoint.C0:lerp(torsoC0*CFrame.new(0, 0, 2.88) * CFrame.Angles(math.rad(9), 0, 0), 0.1)
  1352.         lhip.C0 = lhip.C0:lerp(lle*CFrame.new(-0.557, 0.4, 0) * CFrame.Angles(0, 0, math.rad(-14.439)), 0.1)
  1353.         rhip.C0 = rhip.C0:lerp(rle*CFrame.new(0.104, 0.064, 0.016) * CFrame.Angles(0, math.rad(-8.537), math.rad(4.756)), 0.1)
  1354.         lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(-9.511), 0, 0), 0.1)
  1355.         rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(-9.912), 0, 0), 0.1)
  1356.         neck.C0 = neck.C0:lerp(ncf*CFrame.Angles(math.rad(10.371), math.rad(-0.401), math.rad(0.057)), 0.1)
  1357.     end
  1358. end)
  1359.  
  1360. while wait(.05) do
  1361.     if gthr then
  1362.         scan(char)
  1363.     end
  1364. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top