Advertisement
subaru112g

fbi no mask

Jan 30th, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.81 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 remote = Instance.new("RemoteEvent", char)
  13. remote.Name = "ReplicationEvent"
  14. local client = NLS([==[
  15. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  16. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  17. spawn(function()
  18. while game:GetService("RunService").Heartbeat:Wait() do
  19. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  20. end
  21. end)
  22. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  23. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  24. remote:FireServer(1, input.KeyCode)
  25. end
  26. end)
  27. mouse.Button1Down:Connect(function()
  28. remote:FireServer(2)
  29. end)
  30. remote.OnClientEvent:Connect(function()
  31. 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))
  32. end)
  33. ]==], char)
  34. local RS = char.Torso["Right Shoulder"]
  35. local LS = char.Torso["Left Shoulder"]
  36. local RH = char.Torso["Right Hip"]
  37. local LH = char.Torso["Left Hip"]
  38. local rootj = char.HumanoidRootPart.RootJoint
  39. local throwbutton = false
  40. local throw = false
  41. local normalanim = true
  42. local attackd = false
  43. local animpose = "Idle"
  44. local timepos = 0
  45. local sine = 0
  46. local RSnor = RS.C0
  47. local LSnor = LS.C0
  48. local RHnor = RH.C0
  49. local LHnor = LH.C0
  50. local rootjnor = rootj.C0
  51.  
  52. ---------------------------------
  53. --------------Set up-------------
  54. ---------------------------------
  55.  
  56. local char = owner.Character
  57. local fbi = Instance.new("Sound",char.Torso)
  58. fbi.Volume = 1
  59. fbi.SoundId = "rbxassetid://2156386052"
  60. fbi.Name = "fbi"
  61. local can = false
  62.  
  63. for i,v in pairs(char:GetChildren()) do
  64. if v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "CharacterMesh" then
  65. v:Destroy()
  66. end
  67. end
  68.  
  69. local sh = Instance.new("Shirt",char)
  70. sh.ShirtTemplate = "rbxassetid://118005490"
  71. sh.Name = "Shirt"
  72.  
  73. local pa = Instance.new("Pants",char)
  74. pa.PantsTemplate = "rbxassetid://118005535"
  75. pa.Name = "Pants"
  76.  
  77. local h2 = Instance.new("Hat")
  78. h2.Name = "Helmet"
  79. h2.AttachmentPos = Vector3.new(0, -0.179, 0)
  80. local ha2 = Instance.new("Part",h2)
  81. ha2.Name = "Handle"
  82. ha2.Size = Vector3.new(2, 1, 1)
  83. local m2 = Instance.new("SpecialMesh",ha2)
  84. m2.Scale = Vector3.new(1.3, 1.35, 1.3)
  85. m2.MeshId = "http://www.roblox.com/asset/?id=25648271"
  86. m2.TextureId = "http://www.roblox.com/asset/?id=28664001"
  87.  
  88. h2.Parent = char
  89. function onTouched(fire)
  90. if not(fire.Name == "Base") then
  91. if fire.Transparency == 0 then
  92. if can == true then
  93.  
  94. local hum = fire.Parent:FindFirstChildOfClass("Humanoid")
  95. if hum then
  96. hum:Destroy()
  97. for i,v in pairs(fire.Parent:GetChildren()) do
  98. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  99. v.CanCollide = true
  100. v.Anchored = false
  101. v.Parent = game.Workspace
  102. v.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50
  103. end
  104. end
  105. end
  106. char.Torso.fbi:Play()
  107. fire.CanCollide = true
  108. fire.Anchored = false
  109. fire.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50
  110.  
  111.  
  112. if not(fire.Name == "Torso" or fire.Name == "UpperTorso") then
  113. fire:BreakJoints()
  114.  
  115. end
  116.  
  117. end
  118. end
  119. end
  120. end
  121. char.Torso.Touched:connect(onTouched)
  122.  
  123. ---------------------------------
  124. -------------Attacks-------------
  125. ---------------------------------
  126.  
  127. remote.OnServerEvent:Connect(function(Player, number, key)
  128. if number == 1 and plr.Name == Player.Name and attackd == false then
  129. if key == Enum.KeyCode.Z then
  130. can = true
  131. wait(0.5)
  132. can = false
  133. end
  134. if key == Enum.KeyCode.X then
  135. hum.JumpPower = 70
  136. hum.Jump = true
  137. wait(0.001)
  138. hum.JumpPower = 50
  139. end
  140. if key == Enum.KeyCode.C then
  141.  
  142. end
  143. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  144. throwbutton = false
  145. throw = false
  146. end
  147. end)
  148.  
  149. ---------------------------------
  150. -----------Wrapping up-----------
  151. ---------------------------------
  152.  
  153. while true do
  154. wait()
  155. if not(fbi.Parent == char.Torso) then
  156. local fbi = Instance.new("Sound",char.Torso)
  157. fbi.Volume = 1
  158. fbi.SoundId = "rbxassetid://2156386052"
  159. fbi.Name = "fbi"
  160. end
  161. end
  162.  
  163. while game:GetService("RunService").Heartbeat:Wait() do
  164. if normalanim then
  165. sine = sine + 1
  166. end
  167. if crabrave.Parent == char.Torso then
  168. crabrave.SoundId = "rbxassetid://1609256184"
  169. crabrave.Playing = true
  170. crabrave.Volume = 1
  171. crabrave.Looped = true
  172. timepos = crabrave.TimePosition
  173. else
  174. crabrave = Instance.new("Sound", char.Torso)
  175. crabrave.TimePosition = timepos
  176. end
  177. if remote.Parent == char then
  178. remote.Name = "ReplicationEvent"
  179. else
  180. remote = Instance.new("RemoteEvent", char)
  181. end
  182. 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)
  183. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  184. animpose = "Walking"
  185. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  186. animpose = "Jumping"
  187. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  188. animpose = "Falling"
  189. else
  190. animpose = "Idle"
  191. end
  192. if animpose == "Idle" and normalanim then
  193.  
  194. elseif animpose == "Walking" and normalanim then
  195.  
  196. elseif animpose == "Jumping" and normalanim then
  197.  
  198. elseif animpose == "Falling" and normalanim then
  199.  
  200. end
  201. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement