Advertisement
13242

Untitled

Dec 17th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.74 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.  
  8.  
  9. plr = game:service'Players'.LocalPlayer
  10. char = plr.Character
  11. root = char:FindFirstChild'HumanoidRootPart'
  12. hum = char:FindFirstChildOfClass'Humanoid'
  13. mouse = plr:GetMouse()
  14. clones = {5}
  15. followplr = false
  16. radius = 50
  17.  
  18.  
  19. plr.NameDisplayDistance = 45
  20. local txt = Instance.new("BillboardGui", char)
  21. txt.Adornee = char .Head
  22. txt.Name = "thingy"
  23. txt.Size = UDim2.new(2, 0, 1.2, 0)
  24. txt.StudsOffset = Vector3.new(-1, 2, 0)
  25. local text = Instance.new("TextLabel", txt)
  26. text.Size = UDim2.new(2, 0, 0.6, 0)
  27. text.FontSize = "Size24"
  28. text.TextScaled = true
  29. text.TextTransparency = 0
  30. text.BackgroundTransparency = 1
  31. text.TextTransparency = 0
  32. text.TextStrokeTransparency = 0
  33. text.Font = "Bodoni"
  34. text.TextStrokeColor3 = Color3.new(225, 17, 215)
  35. txt.MaxDistance = 10
  36.  
  37. v=Instance.new("Part")
  38. v.Name = "ColorBrick"
  39. v.Parent=plr.Character
  40. v.FormFactor="Symmetric"
  41. v.Anchored=true
  42. v.CanCollide=false
  43. v.BottomSurface="Smooth"
  44. v.TopSurface="Smooth"
  45. v.Size=Vector3.new(10,5,3)
  46. v.Transparency=1
  47. v.CFrame=char.Torso.CFrame
  48. v.BrickColor=BrickColor.new("Toothpaste")
  49. v.Transparency=1
  50. text.TextColor3 = Color3.new(1,1,1)
  51. v.Shape="Block"
  52. text.Text = "Bacon Soliders"
  53. char.Humanoid.WalkSpeed = 75
  54.  
  55.  
  56. for _, a in pairs(char:children()) do
  57. if a:IsA'Accessory' then
  58. a:Destroy()
  59. elseif a:IsA'Part' then
  60. a.BrickColor = BrickColor:Random()
  61.  
  62. end
  63. end
  64. if char.Shirt == nil then
  65. Instance.new("Pants", char)
  66. Instance.new("Shirt", char)
  67. end
  68. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357"
  69. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
  70.  
  71. local Hair = Instance.new("Part")
  72. Hair.Parent = char
  73. Hair.Name = "Bacon"
  74. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  75. Hair.CFrame = char.Head.CFrame
  76. Hair:BreakJoints()
  77. Hair.CanCollide = false
  78. Hair.BrickColor = BrickColor.new("New Yeller")
  79. Hair.TopSurface = "Smooth"
  80. Hair.BottomSurface = "Smooth"
  81. Weld = Instance.new("Weld")
  82. Weld.Name = "Weld"
  83. Weld.Part0 = char.Head
  84. Weld.Part1 = Hair
  85. Weld.Parent = char.Head
  86. Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  87. Mesh = Instance.new("SpecialMesh")
  88. Mesh.Parent = Hair
  89. Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901"
  90. Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747"
  91. Mesh.Scale = Vector3.new(1, 1.05, 1)
  92. char.Head.face.Texture = "rbxassetid://664468442"
  93.  
  94. num = 1
  95. cooldown = false
  96. rand = math.random(1,2)
  97.  
  98. for i = 1,Bacons do
  99. wait()
  100. char.Archivable = true
  101. numb = math.random(1,3)
  102. clone = char:Clone()
  103. clone.Humanoid.WalkSpeed = 100
  104. clone.Humanoid.Name = "Bacon Soldiers"
  105. --
  106. for _, a in pairs(clone:children()) do
  107. if a:IsA'BillboardGui' then
  108. a:Destroy()
  109. elseif a:IsA'Sound' then
  110. a.Playing = false
  111. end
  112. end
  113. local txt = Instance.new("BillboardGui", clone)
  114. txt.Adornee = clone .Head
  115. txt.Name = "thingy"
  116. txt.Size = UDim2.new(2, 0, 1.2, 0)
  117. txt.StudsOffset = Vector3.new(-1, 2, 0)
  118. local text = Instance.new("TextLabel", txt)
  119. text.Size = UDim2.new(2, 0, 0.6, 0)
  120. text.FontSize = "Size24"
  121. text.TextScaled = true
  122. text.TextTransparency = 0
  123. text.BackgroundTransparency = 1
  124. text.TextTransparency = 0
  125. text.TextStrokeTransparency = 0
  126. text.Font = "Bodoni"
  127. text.TextStrokeColor3 = Color3.new(225, 17, 215)
  128.  
  129. v=Instance.new("Part")
  130. v.Name = "ColorBrick"
  131. v.Parent=clone
  132. v.FormFactor="Symmetric"
  133. v.Anchored=true
  134. v.CanCollide=false
  135. v.BottomSurface="Smooth"
  136. v.TopSurface="Smooth"
  137. v.Size=Vector3.new(10,5,3)
  138. v.Transparency=1
  139. v.CFrame=clone.Torso.CFrame
  140. v.BrickColor=BrickColor.new("Toothpaste")
  141. v.Transparency=1
  142. text.TextColor3 = Color3.new(1,1,1)
  143. v.Shape="Block"
  144. text.Text = "-"
  145. --
  146. local Hair = Instance.new("Part")
  147. Hair.Parent = clone
  148. Hair.Name = "Bacon"
  149. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  150. Hair.CFrame = clone.Head.CFrame
  151. Hair:BreakJoints()
  152. Hair.CanCollide = false
  153. Hair.BrickColor = BrickColor.new("New Yeller")
  154. Hair.TopSurface = "Smooth"
  155. Hair.BottomSurface = "Smooth"
  156. Weld = Instance.new("Weld")
  157. Weld.Name = "Weld"
  158. Weld.Part0 = clone.Head
  159. Weld.Part1 = Hair
  160. Weld.Parent = clone.Head
  161. Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  162. Mesh = Instance.new("SpecialMesh")
  163. Mesh.Parent = Hair
  164. Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901"
  165. Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747"
  166. Mesh.Scale = Vector3.new(1, 1.05, 1)
  167. --
  168. for _, a in pairs(clone:children()) do
  169. if a:IsA'Part' then
  170. a.BrickColor = BrickColor:Random()
  171. end
  172. end
  173. if numb == 1 then
  174. clone.Head.face.Texture = "rbxassetid://1304527161"
  175. text.Text = "BACON RULE THE WORLD"
  176. elseif numb == 2 then
  177. clone.Head.face.Texture = "rbxassetid://987047828"
  178. text.Text = "LOL FREE ROBLOX CASH"
  179. else
  180. clone.Head.face.Texture = "rbxassetid://664468442"
  181. text.Text = "WOWWOW I GOT ROBLOX CASH YAY"
  182. end
  183. table.insert(clones,clone)
  184. end
  185.  
  186. sou = Instance.new("Sound", char.Torso)
  187. sou.SoundId = "rbxassetid://1463709693"
  188. sou.Looped = true
  189. sou.Volume = 2.5
  190. sou.Pitch = 1.4
  191. sou:Play()
  192.  
  193. for _, a in pairs(clones) do
  194. a.Parent = char
  195. a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
  196. end
  197.  
  198. while wait(0.3) do
  199. number = #clones
  200. position = root.CFrame
  201. protecting = false
  202. if aa == nil then
  203. followplr = true
  204. elseif aa ~= nil then
  205. followplr = false
  206. end
  207. for _, a in pairs(clones) do
  208. if a:FindFirstChildOfClass'Humanoid' and followplr then
  209. a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-40,40),0,math.random(-40,40)))
  210. end
  211. end
  212. rand = math.random(1,10)
  213. if rand == 5 then
  214. for i = 1,3 do
  215. random = clones[math.random(1,#clones)]
  216. rand = math.random(1,2)
  217. if rand == 1 then
  218. wait()
  219. else
  220. wait()
  221. end
  222. end
  223. end
  224. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement