duplicat

Bullet bill Fe

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