Advertisement
subaru112g

fbi

Jan 29th, 2019
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.54 KB | None | 0 0
  1. ---------------------------------
  2. -----SO BASICALLY I'M FBI-----
  3. ---------------------------------
  4.  
  5. --This script is made by Subaru112.
  6.  
  7. local plr = owner
  8. local char = plr.Character
  9. local hum = char:FindFirstChildOfClass("Humanoid")
  10. hum.WalkSpeed = 30
  11.  
  12. local aura = Instance.new("Part",char)
  13. aura.Shape = "Ball"
  14. aura.CanCollide = false
  15. aura.Transparency = 1
  16. aura.Reflectance = 0.1
  17. aura.Size = Vector3.new(10,10,10)
  18. aura.CFrame = char.Head.CFrame
  19. aura.BrickColor = BrickColor.new("Really black")
  20. local w = Instance.new("Weld",char)
  21. w.Part0 = aura
  22. w.Part1 = char.Torso
  23. w.C0 = CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  24. w.C1 = CFrame.new(0, -0.200000003, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  25.  
  26. warn("Script made by Subaru112, pls don't abuse, enjoy!")
  27. warn("Z - kick")
  28. warn("X - jump high")
  29. warn("C - explode")
  30. warn("V - kill aura")
  31. print("Thanks for using my script!")
  32. warn("testers:")
  33. warn("theflashplayer123")
  34. warn("Mediakiller7")
  35.  
  36. local remote = Instance.new("RemoteEvent", char)
  37. remote.Name = "ReplicationEvent"
  38. local client = NLS([==[
  39. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  40. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  41. spawn(function()
  42. while game:GetService("RunService").Heartbeat:Wait() do
  43. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  44. end
  45. end)
  46. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  47. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  48. remote:FireServer(1, input.KeyCode)
  49. end
  50. end)
  51. mouse.Button1Down:Connect(function()
  52. remote:FireServer(2)
  53. end)
  54. remote.OnClientEvent:Connect(function()
  55. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  56. end)
  57. ]==], char)
  58. local RS = char.Torso["Right Shoulder"]
  59. local LS = char.Torso["Left Shoulder"]
  60. local RH = char.Torso["Right Hip"]
  61. local LH = char.Torso["Left Hip"]
  62. local rootj = char.HumanoidRootPart.RootJoint
  63. local throwbutton = false
  64. local throw = false
  65. local normalanim = true
  66. local attackd = false
  67. local animpose = "Idle"
  68. local timepos = 0
  69. local sine = 0
  70. local RSnor = RS.C0
  71. local LSnor = LS.C0
  72. local RHnor = RH.C0
  73. local LHnor = LH.C0
  74. local rootjnor = rootj.C0
  75. local s = char
  76.  
  77. ---------------------------------
  78. --------------Set up-------------
  79. ---------------------------------
  80.  
  81. local char = owner.Character
  82. local fbi = Instance.new("Sound",char.Torso)
  83. fbi.Volume = 1
  84. fbi.SoundId = "rbxassetid://2156386052"
  85. fbi.Name = "fbi"
  86. local can = false
  87.  
  88. for i,v in pairs(char:GetChildren()) do
  89. if v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "CharacterMesh" then
  90. v:Destroy()
  91. end
  92. end
  93.  
  94. local sh = Instance.new("Shirt",char)
  95. sh.ShirtTemplate = "rbxassetid://118005490"
  96. sh.Name = "Shirt"
  97.  
  98. local pa = Instance.new("Pants",char)
  99. pa.PantsTemplate = "rbxassetid://118005535"
  100. pa.Name = "Pants"
  101.  
  102. local h = Instance.new("Hat")
  103. h.Name = "Mask"
  104. h.AttachmentPos = Vector3.new(0, 0.4, 0)
  105. local ha = Instance.new("Part",h)
  106. ha.BrickColor = BrickColor.new("Really black")
  107. ha.Name = "Handle"
  108. ha.Size = Vector3.new(1, 0.8, 1)
  109. local m = Instance.new("SpecialMesh",ha)
  110. m.MeshId = "http://www.roblox.com/asset/?id=1286427"
  111. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  112.  
  113. local h2 = Instance.new("Hat")
  114. h2.Name = "Helmet"
  115. h2.AttachmentPos = Vector3.new(0, -0.179, 0)
  116. local ha2 = Instance.new("Part",h2)
  117. ha2.Name = "Handle"
  118. ha2.Size = Vector3.new(2, 1, 1)
  119. local m2 = Instance.new("SpecialMesh",ha2)
  120. m2.Scale = Vector3.new(1.3, 1.35, 1.3)
  121. m2.MeshId = "http://www.roblox.com/asset/?id=25648271"
  122. m2.TextureId = "http://www.roblox.com/asset/?id=28664001"
  123. local aura1 = false
  124. h.Parent = char
  125. h2.Parent = char
  126. local aura2 = false
  127.  
  128. function onTouched(fire2)
  129. local hum = fire2.Parent:FindFirstChildOfClass("Humanoid")
  130. if hum then
  131. if not(fire2.Parent == char) then
  132. if aura1 == true then
  133. if fire2.Parent.ClassName == "Model" then
  134. hum:Destroy()
  135. for i,v in pairs(fire2.Parent:GetChildren()) do
  136. v.Parent = game.Workspace
  137. v.Name = "Diedhaha"
  138. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  139. v.CanCollide = true
  140. v:BreakJoints()
  141. v.Velocity = Vector3.new(0, 50, 0)
  142. end
  143. end
  144. end
  145. end
  146. end
  147. end
  148. end
  149. aura.Touched:connect(onTouched)
  150.  
  151. function onTouched(fire)
  152. if not(fire.Name == "Base") then
  153. if fire.Transparency == 0 then
  154. if can == true then
  155.  
  156. local hum = fire.Parent:FindFirstChildOfClass("Humanoid")
  157. if hum then
  158. hum:Destroy()
  159. for i,v in pairs(fire.Parent:GetChildren()) do
  160. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  161. v.CanCollide = true
  162. v.Anchored = false
  163. v.Parent = game.Workspace
  164. v.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50
  165. end
  166. end
  167. end
  168. char.Torso.fbi:Play()
  169. fire.CanCollide = true
  170. fire.Anchored = false
  171. fire.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50
  172.  
  173.  
  174. if not(fire.Name == "Torso" or fire.Name == "UpperTorso") then
  175. fire:BreakJoints()
  176.  
  177. end
  178.  
  179. end
  180. end
  181. end
  182. end
  183. char["Right Leg"].Touched:connect(onTouched)
  184.  
  185. ---------------------------------
  186. -------------Attacks-------------
  187. ---------------------------------
  188.  
  189. remote.OnServerEvent:Connect(function(Player, number, key)
  190. if number == 1 and plr.Name == Player.Name and attackd == false then
  191. if key == Enum.KeyCode.Z then
  192. can = true
  193. hum.WalkSpeed = 0
  194. RH.C0 = CFrame.new(1, -1.00000954, 1.52587891e-05, 6.55651093e-07, -9.53674316e-07, 0.999999762, 0.766051948, 0.642794251, -1.24660573e-07, -0.642787695, 0.766044736, -1.25169754e-06)
  195. wait(0.5)
  196. can = false
  197. RH.C0 = RHnor
  198. hum.WalkSpeed = 30
  199. end
  200. if key == Enum.KeyCode.X then
  201. hum.JumpPower = 70
  202. hum.Jump = true
  203. wait(0.001)
  204. hum.JumpPower = 50
  205. end
  206. if key == Enum.KeyCode.C then
  207. local char = owner.Character
  208. local fbi2 = Instance.new("Sound",char.HumanoidRootPart)
  209. local rooth = char.HumanoidRootPart
  210. char.HumanoidRootPart.Anchored = true
  211. char.HumanoidRootPart.Parent = workspace
  212. fbi2.Volume = 0.3
  213. fbi2.SoundId = "rbxassetid://2507128460"
  214. fbi2.Name = "fbi2"
  215. fbi2:Play()
  216. wait(2)
  217. local m = Instance.new("Model", game.Workspace)
  218. m.Name = "Dead, "..owner.Name
  219. local enemy = hum
  220. local h = Instance.new("Part",m)
  221. h.Name = "Head"
  222. local me = plr.Character.Head.Mesh:Clone()
  223. me.Parent = h
  224. local facee = plr.Character.Head.face:Clone()
  225. facee.Parent = h
  226. h.Size = plr.Character.Head.Size
  227. h:BreakJoints()
  228. h.CanCollide = false
  229. h.Position = rooth.Position
  230. h.face.Texture = "http://www.roblox.com/asset/?id=1350110313"
  231.  
  232. local e = Instance.new("Explosion",char)
  233. e.Position = char.Torso.Position
  234. e.DestroyJointRadiusPercent = 500
  235. e.BlastRadius = 30
  236.  
  237. wait(0.2)
  238. local t = Instance.new("Part",m)
  239. t.Name = "Torso"
  240. t.Size = plr.Character.Torso.Size
  241. t:BreakJoints()
  242. t.CanCollide = false
  243. t.Position = h.Position
  244. t.Position = t.Position - Vector3.new(0, 2, 0)
  245.  
  246. local ra = Instance.new("Part",m)
  247. ra.Name = "Right Arm"
  248. ra.Size = plr.Character["Right Arm"].Size
  249. ra:BreakJoints()
  250. ra.Position = plr.Character["Right Arm"].Position
  251. ra.Position = ra.Position + Vector3.new(0, 10, 0)
  252.  
  253. local la = Instance.new("Part",m)
  254. la.Name = "Left Arm"
  255. la.Size = plr.Character["Left Arm"].Size
  256. la:BreakJoints()
  257. la.Position = plr.Character["Left Arm"].Position
  258. la.Position = la.Position + Vector3.new(0, 10, 0)
  259.  
  260. local ll = Instance.new("Part",m)
  261. ll.Name = "Left Leg"
  262. ll.Size = plr.Character["Left Leg"].Size
  263. ll:BreakJoints()
  264. ll.Position = plr.Character["Left Leg"].Position
  265. ll.Position = ll.Position + Vector3.new(0, 10, 0)
  266.  
  267. local rl = Instance.new("Part",m)
  268. rl.Name = "Right Leg"
  269. rl.Size = plr.Character["Right Leg"].Size
  270. rl:BreakJoints()
  271. rl.Position = plr.Character["Right Leg"].Position
  272. rl.Position = rl.Position + Vector3.new(0, 10, 0)
  273.  
  274. for i,v in pairs(m:GetChildren()) do
  275. v:BreakJoints()
  276. end
  277.  
  278. local neck = Instance.new("Motor6D")
  279. neck.Name = "Neck"
  280. neck.Part0 = t
  281. neck.Part1 = h
  282. neck.Parent = t
  283. neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  284. neck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  285.  
  286. local rs = Instance.new("Motor6D")
  287. rs.Name = "Right Shoulder"
  288. rs.Part0 = t
  289. rs.Part1 = ra
  290. rs.Parent = t
  291. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  292. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  293.  
  294. local ls = Instance.new("Motor6D")
  295. ls.Name = "Left Shoulder"
  296. ls.Part0 = t
  297. ls.Part1 = la
  298. ls.Parent = t
  299. ls.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  300. ls.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  301.  
  302. local lh = Instance.new("Motor6D")
  303. lh.Name = "Left Hip"
  304. lh.Part0 = t
  305. lh.Part1 = ll
  306. lh.Parent = t
  307. lh.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  308. lh.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  309.  
  310. local rh = Instance.new("Motor6D")
  311. rh.Name = "Right Hip"
  312. rh.Part0 = t
  313. rh.Part1 = rl
  314. rh.Parent = t
  315. rh.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  316. rh.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  317.  
  318. wait(0.000000000000001)
  319.  
  320. h.BrickColor = BrickColor.new("Really black")
  321. ra.BrickColor = BrickColor.new("Really black")
  322. la.BrickColor = BrickColor.new("Really black")
  323. t.BrickColor = BrickColor.new("Really black")
  324. rl.BrickColor = BrickColor.new("Really black")
  325. ll.BrickColor = BrickColor.new("Really black")
  326.  
  327. for i,v in pairs(enemy.Parent:GetChildren()) do
  328.  
  329. v:Destroy()
  330.  
  331. end
  332.  
  333. local enemy = Instance.new("Humanoid",m)
  334. enemy.Name = "Dead"
  335. enemy.MaxHealth = 0
  336. enemy.PlatformStand = true
  337.  
  338. enemy.Parent.Torso["Left Hip"].Part1 = nil
  339. enemy.Parent.Torso["Left Shoulder"].Part1 = nil
  340. enemy.Parent.Torso["Right Hip"].Part1 = nil
  341. enemy.Parent.Torso["Right Shoulder"].Part1 = nil
  342.  
  343. local c1 = Instance.new("Part", enemy.Parent)
  344. c1.Size = Vector3.new(1, 1 , 1)
  345. c1.Transparency = 1
  346. local c2 = Instance.new("Part", enemy.Parent)
  347. c2.Size = Vector3.new(1, 1 , 1)
  348. c2.Transparency = 1
  349. local c3 = Instance.new("Part", enemy.Parent)
  350. c3.Size = Vector3.new(1, 1 , 1)
  351. c3.Transparency = 1
  352. local c4 = Instance.new("Part", enemy.Parent)
  353. c4.Size = Vector3.new(1, 1 , 1)
  354. c4.Transparency = 1
  355.  
  356.  
  357. local weld1 = Instance.new("Weld", enemy.Parent)
  358. weld1.Part0 = enemy.Parent["Left Arm"]
  359. weld1.Part1 = c1
  360.  
  361. local weld2 = Instance.new("Weld", enemy.Parent)
  362. weld2.Part0 = enemy.Parent["Left Leg"]
  363. weld2.Part1 = c2
  364.  
  365. local weld3 = Instance.new("Weld", enemy.Parent)
  366. weld3.Part0 = enemy.Parent["Right Arm"]
  367. weld3.Part1 = c3
  368.  
  369. local weld4 = Instance.new("Weld", enemy.Parent)
  370. weld4.Part0 = enemy.Parent["Right Leg"]
  371. weld4.Part1 = c4
  372.  
  373. local j1 = Instance.new("Glue", enemy.Parent)
  374. j1.Part0 = enemy.Parent.Torso
  375. j1.Part1 = enemy.Parent["Right Arm"]
  376. j1.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  377. j1.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  378.  
  379. local j2 = Instance.new("Glue", enemy.Parent)
  380. j2.Part0 = enemy.Parent.Torso
  381. j2.Part1 = enemy.Parent["Right Leg"]
  382. j2.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  383. j2.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  384.  
  385. local j3 = Instance.new("Glue", enemy.Parent)
  386. j3.Part0 = enemy.Parent.Torso
  387. j3.Part1 = enemy.Parent["Left Arm"]
  388. j3.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  389. j3.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  390.  
  391. local j4 = Instance.new("Glue", enemy.Parent)
  392. j4.Part0 = enemy.Parent.Torso
  393. j4.Part1 = enemy.Parent["Left Leg"]
  394. j4.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  395. j4.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  396. end
  397. if key == Enum.KeyCode.V then
  398. if aura1 == false and aura2 == false then
  399. aura1 = true
  400. aura.Transparency = 0.9
  401. aura2 = true
  402. wait(10)
  403. aura1 = false
  404. aura.Transparency = 1
  405. wait(5)
  406. aura2 = false
  407. end
  408. end
  409. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  410. throwbutton = false
  411. throw = false
  412. end
  413. end)
  414.  
  415. ---------------------------------
  416. -----------Wrapping up-----------
  417. ---------------------------------
  418.  
  419. while true do
  420. wait()
  421. if not(fbi.Parent == char.Torso) then
  422. local fbi = Instance.new("Sound",char.Torso)
  423. fbi.Volume = 1
  424. fbi.SoundId = "rbxassetid://2156386052"
  425. fbi.Name = "fbi"
  426. end
  427. end
  428.  
  429. while game:GetService("RunService").Heartbeat:Wait() do
  430. if normalanim then
  431. sine = sine + 1
  432. end
  433. if crabrave.Parent == char.Torso then
  434. crabrave.SoundId = "rbxassetid://1609256184"
  435. crabrave.Playing = true
  436. crabrave.Volume = 1
  437. crabrave.Looped = true
  438. timepos = crabrave.TimePosition
  439. else
  440. crabrave = Instance.new("Sound", char.Torso)
  441. crabrave.TimePosition = timepos
  442. end
  443. if remote.Parent == char then
  444. remote.Name = "ReplicationEvent"
  445. else
  446. remote = Instance.new("RemoteEvent", char)
  447. end
  448. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  449. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  450. animpose = "Walking"
  451. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  452. animpose = "Jumping"
  453. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  454. animpose = "Falling"
  455. else
  456. animpose = "Idle"
  457. end
  458. if animpose == "Idle" and normalanim then
  459.  
  460. elseif animpose == "Walking" and normalanim then
  461.  
  462. elseif animpose == "Jumping" and normalanim then
  463.  
  464. elseif animpose == "Falling" and normalanim then
  465.  
  466. end
  467. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement