Advertisement
ItzInfern

bullet bill

Feb 6th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.06 KB | None | 0 0
  1.  
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7.  
  8. -- Bullet!Bill --
  9. wait()
  10. LoudVolume = false
  11. Submerged = false
  12. Music = true
  13. script.Name = "BulletBill" -- or Morty.
  14. Player = game.Players.LocalPlayer
  15. c = game.Players.LocalPlayer.Character
  16. Head = c.Head
  17. anim = c.Humanoid.Animator
  18. Humanoid = c:findFirstChild("Humanoid")Humanoid.Name = "InfiniteBeing"
  19. b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman"
  20. rage = false
  21. p = game.Players.LocalPlayer
  22. Music = false
  23.  
  24. local Effects = {}
  25. attack = false
  26. local attacking = false
  27. vt = Vector3.new
  28. bc = BrickColor.new
  29. br = BrickColor.random
  30. it = Instance.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. matr = math.random
  35. mouse = Player:GetMouse()
  36.  
  37. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  38. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  40. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  41. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  42. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  43. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  44. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  45. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  46. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  47. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  48. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  49. RS = c.Torso:FindFirstChild("Right Shoulder")
  50. LS = c.Torso:FindFirstChild("Left Shoulder")
  51. RH = c.Torso:FindFirstChild("Right Hip")
  52. LH = c.Torso:FindFirstChild("Left Hip")
  53. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  54. N = c.Torso:FindFirstChild("Neck")
  55. cf = CFrame.new
  56. ang = CFrame.Angles
  57. rd = math.rad
  58. rd2 = math.random
  59.  
  60.  
  61. function NukeShockwaves(Size, CFramez)
  62. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  63. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  64. SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
  65. Spawn(function()
  66. for i = 1,math.huge do
  67. if Shock.Transparency >= 1 then break end
  68. Shock.Transparency = Shock.Transparency + 0.025
  69. wait()
  70. end
  71. end)
  72. end
  73.  
  74. function swait(num)
  75. if num==0 or num==nil then
  76. game:service'RunService'.Heartbeat:wait(0)
  77. else
  78. for i=0,num do
  79. game:service'RunService'.Heartbeat:wait(0)
  80. end
  81. end
  82. end
  83. for i,v in pairs (c:children()) do
  84. if v.ClassName == "Accessory" then
  85. for i,v2 in pairs (v:children()) do
  86. if v2.ClassName == "Part" then
  87. v2.Transparency = 1
  88. end
  89. end
  90. end
  91. if v.ClassName == "Part" then
  92. v.Transparency = 1
  93. end
  94. end
  95. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  96. local P = Instance.new("Part",c)P.Size = Vector3.new(3,3,3)local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P
  97. W.C0 = CFrame.Angles(0,math.rad(90),0) local SM = Instance.new("SpecialMesh",P)SM.MeshId = "rbxassetid://431159713" SM.TextureId = "rbxassetid://431159716" SM.Scale = Vector3.new(0.005,0.005,0.005)
  98. W.C0 = W.C0*CFrame.Angles(math.rad(-90),0,0)local Par = Instance.new("ParticleEmitter",P)Par.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(1,0,0)})
  99. Par.Speed = NumberRange.new(0)Par.Rate = 250 Par.Lifetime = NumberRange.new(0.25,0.5)
  100. s = Instance.new("Sound",P) s.SoundId = "rbxassetid://273108936" s.Volume = 0.5 s.Looped = true s:Play()
  101. Hit = false
  102. P.Touched:connect(function(Hit)
  103. if Hit == false then return end
  104. if Hit == c or Hit.Parent == c then return end
  105. for i,v in pairs(game.Workspace:children()) do
  106. if v:findFirstChild("Head")~= nil and v ~= c then
  107. if (v.Head.Position-c.HumanoidRootPart.Position).magnitude <= 25 then
  108. v:remove()
  109. end
  110. end
  111. end
  112. Hit = true c.Parent = nil
  113. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true
  114. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Bright orange") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock)
  115. Shock.CFrame = CFrame.new(P.Position) SM.MeshType = "Sphere"
  116. P:remove()
  117. local Pos = Shock.Position
  118. local Sound = Instance.new("Sound",Shock) Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 4 Sound.Parent = Shock Sound.PlaybackSpeed = 0.4 Sound:Play()
  119. for i = 1,4 do
  120. SM.Scale = SM.Scale + Vector3.new(i*2,i*2,i*2)
  121. NukeShockwaves(i*6,CFrame.new(Shock.Position))
  122. wait()
  123. end
  124. for i = 1,30 do
  125. Shock.Transparency = Shock.Transparency + 1/30
  126. SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025)
  127. wait()
  128. end
  129. end)
  130.  
  131. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  132. if hit.Parent==nil then
  133. return
  134. end
  135. local h=hit.Parent:FindFirstChild("Humanoid")
  136. for _,v in pairs(hit.Parent:children()) do
  137. if v:IsA("Humanoid") then
  138. h=v
  139. end
  140. end
  141. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  142. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  143. end
  144. if hit.Parent.className=="Hat" then
  145. hit=hit.Parent.Parent:findFirstChild("Head")
  146. end
  147. if h~=nil and hit.Parent.Name~=c.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  148. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  149. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  150. return
  151. end]]
  152. -- hs(hit,1.2)
  153. local c=Instance.new("ObjectValue")
  154. c.Name="creator"
  155. c.Value=game:service("Players").LocalPlayer
  156. c.Parent=h
  157. game:GetService("Debris"):AddItem(c,.5)
  158. local Damage=math.random(minim,maxim)
  159. -- h:TakeDamage(Damage)
  160. local blocked=false
  161. local block=hit.Parent:findFirstChild("Block")
  162. if block~=nil then
  163. print(block.className)
  164. if block.className=="NumberValue" then
  165. if block.Value>0 then
  166. blocked=true
  167. if decreaseblock==nil then
  168. block.Value=block.Value-1
  169. end
  170. end
  171. end
  172. if block.className=="IntValue" then
  173. if block.Value>0 then
  174. blocked=true
  175. if decreaseblock~=nil then
  176. block.Value=block.Value-1
  177. end
  178. end
  179. end
  180. end
  181. if blocked==false then
  182. -- h:TakeDamage(Damage)
  183. h.Health=h.Health-Damage
  184. else
  185. h.Health=h.Health-(Damage/2)
  186. end
  187. if Type=="Knockdown" then
  188. local hum=hit.Parent.Humanoid
  189. hum.PlatformStand=true
  190. coroutine.resume(coroutine.create(function(HHumanoid)
  191. swait(1)
  192. HHumanoid.PlatformStand=false
  193. end),hum)
  194. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  195. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  196. local bodvol=Instance.new("BodyVelocity")
  197. bodvol.velocity=angle*knockback
  198. bodvol.P=5000
  199. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  200. bodvol.Parent=hit
  201. local rl=Instance.new("BodyAngularVelocity")
  202. rl.P=3000
  203. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  204. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  205. rl.Parent=hit
  206. game:GetService("Debris"):AddItem(bodvol,.5)
  207. game:GetService("Debris"):AddItem(rl,.5)
  208. elseif Type=="Normal" then
  209. local vp=Instance.new("BodyVelocity")
  210. vp.P=500
  211. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  212. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  213. if KnockbackType==1 then
  214. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  215. elseif KnockbackType==2 then
  216. vp.velocity=Property.CFrame.lookVector*knockback
  217. end
  218. if knockback>0 then
  219. vp.Parent=hit.Parent.Torso
  220. end
  221. game:GetService("Debris"):AddItem(vp,.5)
  222. elseif Type=="Up" then
  223. local bodyVelocity=Instance.new("BodyVelocity")
  224. bodyVelocity.velocity=vt(0,60,0)
  225. bodyVelocity.P=5000
  226. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  227. bodyVelocity.Parent=hit
  228. game:GetService("Debris"):AddItem(bodyVelocity,1)
  229. local rl=Instance.new("BodyAngularVelocity")
  230. rl.P=3000
  231. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  232. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  233. rl.Parent=hit
  234. game:GetService("Debris"):AddItem(rl,.5)
  235. elseif Type=="Snare" then
  236. local bp=Instance.new("BodyPosition")
  237. bp.P=2000
  238. bp.D=100
  239. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  240. bp.position=hit.Parent.Torso.Position
  241. bp.Parent=hit.Parent.Torso
  242. game:GetService("Debris"):AddItem(bp,1)
  243. elseif Type=="Target" then
  244. local Targetting = false
  245. if Targetting==false then
  246. ZTarget=hit.Parent.Torso
  247. coroutine.resume(coroutine.create(function(Part)
  248. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  249. swait(5)
  250. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  251. end),ZTarget)
  252. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  253. local targetgui=Instance.new("BillboardGui")
  254. targetgui.Parent=ZTarget
  255. targetgui.Size=UDim2.new(10,100,10,100)
  256. local targ=Instance.new("ImageLabel")
  257. targ.Parent=targetgui
  258. targ.BackgroundTransparency=1
  259. targ.Image="rbxassetid://4834067"
  260. targ.Size=UDim2.new(1,0,1,0)
  261. cam.CameraType="Scriptable"
  262. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  263. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  264. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  265. Targetting=true
  266. RocketTarget=ZTarget
  267. for i=1,Property do
  268. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  269. if Humanoid.Health>0 and c.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  270. swait()
  271. end
  272. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  273. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  274. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  275. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  276. end
  277. Targetting=false
  278. RocketTarget=nil
  279. targetgui.Parent=nil
  280. cam.CameraType="Custom"
  281. end
  282. end
  283. c=Instance.new("ObjectValue")
  284. c.Name="creator"
  285. c.Value=Player
  286. c.Parent=h
  287. game:GetService("Debris"):AddItem(c,.5)
  288. end
  289. end
  290.  
  291. function MagniDamage(Part,dis,mind,maxd,force,knock)
  292. for _,c in pairs(workspace:children()) do
  293. local hum=c:findFirstChild("Humanoid")
  294. if hum~=nil then
  295. local head=c:findFirstChild("Torso")
  296. if head~=nil then
  297. local targ=head.Position-Part.Position
  298. local mag=targ.magnitude
  299. if mag<=dis and c.Name~=c.Name then
  300. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,c.HumanoidRootPart,.2,1)
  301. end
  302. end
  303. end
  304. end
  305. end
  306.  
  307. game:GetService("RunService").RenderStepped:connect(function()
  308. Humanoid.MaxHealth = Humanoid.MaxHealth*2
  309. Humanoid.Health = Humanoid.MaxHealth*2
  310. c.HumanoidRootPart.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  311. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-2)
  312. W.C0 = W.C0 * CFrame.Angles(math.rad(3),0,0)
  313. for i,v in pairs (c:children()) do
  314. if v.ClassName == "Part" then
  315. v.Velocity = Vector3.new(0,0,0)
  316. end
  317. end
  318. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement