Advertisement
geovanycool

Untitled

Oct 14th, 2018
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.05 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --[[
  89. /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  90.  
  91. ||FREE RBX!1!!|| - A Troll Script by Melissa666666girl
  92.  
  93. /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  94.  
  95. ///Recycled from Sharkringan's Ugandan Knuckles script\\\
  96. \\Litteraly only like 3 lines of code from it, lol kthx//
  97.  
  98. /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  99. --]]
  100.  
  101. --~~--
  102. Bacons = 25 --CHANGE THE NUMBER TO HOW MANY BACONS YOU WANT! (more than 50 crashes your game..)
  103. --~~--
  104.  
  105. plr = owner
  106. char = plr.Character
  107. root = char:FindFirstChild'HumanoidRootPart'
  108. hum = char:FindFirstChildOfClass'Humanoid'
  109. clones = {}
  110. followplr = false
  111. radius = 50
  112.  
  113.  
  114. plr.NameDisplayDistance = 45
  115. local txt = Instance.new("BillboardGui", char)
  116. txt.Adornee = char .Head
  117. txt.Name = "thingy"
  118. txt.Size = UDim2.new(2, 0, 1.2, 0)
  119. txt.StudsOffset = Vector3.new(-1, 2, 0)
  120. local text = Instance.new("TextLabel", txt)
  121. text.Size = UDim2.new(2, 0, 0.6, 0)
  122. text.FontSize = "Size24"
  123. text.TextScaled = true
  124. text.TextTransparency = 0
  125. text.BackgroundTransparency = 1
  126. text.TextTransparency = 0
  127. text.TextStrokeTransparency = 0
  128. text.Font = "Bodoni"
  129. text.TextStrokeColor3 = Color3.new(225, 17, 215)
  130. txt.MaxDistance = 10
  131.  
  132. v=Instance.new("Part")
  133. v.Name = "ColorBrick"
  134. v.Parent=plr.Character
  135. v.FormFactor="Symmetric"
  136. v.Anchored=true
  137. v.CanCollide=false
  138. v.BottomSurface="Smooth"
  139. v.TopSurface="Smooth"
  140. v.Size=Vector3.new(10,5,3)
  141. v.Transparency=1
  142. v.CFrame=char.Torso.CFrame
  143. v.BrickColor=BrickColor.new("Toothpaste")
  144. v.Transparency=1
  145. text.TextColor3 = Color3.new(1,1,1)
  146. v.Shape="Block"
  147. text.Text = "Bacon Soliders"
  148. char.Humanoid.WalkSpeed = 75
  149.  
  150.  
  151. for _, a in pairs(char:children()) do
  152. if a:IsA'Accessory' then
  153. a:Destroy()
  154. elseif a:IsA'Part' then
  155. a.BrickColor = BrickColor:Random()
  156.  
  157. end
  158. end
  159. if char.Shirt == nil then
  160. Instance.new("Pants", char)
  161. Instance.new("Shirt", char)
  162. end
  163. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357"
  164. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
  165.  
  166. local Hair = Instance.new("Part")
  167. Hair.Parent = char
  168. Hair.Name = "Bacon"
  169. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  170. Hair.CFrame = char.Head.CFrame
  171. Hair:BreakJoints()
  172. Hair.CanCollide = false
  173. Hair.BrickColor = BrickColor.new("New Yeller")
  174. Hair.TopSurface = "Smooth"
  175. Hair.BottomSurface = "Smooth"
  176. Weld = Instance.new("Weld")
  177. Weld.Name = "Weld"
  178. Weld.Part0 = char.Head
  179. Weld.Part1 = Hair
  180. Weld.Parent = char.Head
  181. Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  182. Mesh = Instance.new("SpecialMesh")
  183. Mesh.Parent = Hair
  184. Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901"
  185. Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747"
  186. Mesh.Scale = Vector3.new(1, 1.05, 1)
  187. char.Head.face.Texture = "rbxassetid://664468442"
  188.  
  189. num = 1
  190. cooldown = false
  191. rand = math.random(1,2)
  192.  
  193. for i = 1,Bacons do
  194. wait()
  195. char.Archivable = true
  196. numb = math.random(1,3)
  197. clone = char:Clone()
  198. clone.Humanoid.WalkSpeed = 100
  199. clone.Humanoid.Name = "Bacon Soldiers"
  200. --
  201. for _, a in pairs(clone:children()) do
  202. if a:IsA'BillboardGui' then
  203. a:Destroy()
  204. elseif a:IsA'Sound' then
  205. a.Playing = false
  206. end
  207. end
  208. local txt = Instance.new("BillboardGui", clone)
  209. txt.Adornee = clone .Head
  210. txt.Name = "thingy"
  211. txt.Size = UDim2.new(2, 0, 1.2, 0)
  212. txt.StudsOffset = Vector3.new(-1, 2, 0)
  213. local text = Instance.new("TextLabel", txt)
  214. text.Size = UDim2.new(2, 0, 0.6, 0)
  215. text.FontSize = "Size24"
  216. text.TextScaled = true
  217. text.TextTransparency = 0
  218. text.BackgroundTransparency = 1
  219. text.TextTransparency = 0
  220. text.TextStrokeTransparency = 0
  221. text.Font = "Bodoni"
  222. text.TextStrokeColor3 = Color3.new(225, 17, 215)
  223.  
  224. v=Instance.new("Part")
  225. v.Name = "ColorBrick"
  226. v.Parent=clone
  227. v.FormFactor="Symmetric"
  228. v.Anchored=true
  229. v.CanCollide=false
  230. v.BottomSurface="Smooth"
  231. v.TopSurface="Smooth"
  232. v.Size=Vector3.new(10,5,3)
  233. v.Transparency=1
  234. v.CFrame=clone.Torso.CFrame
  235. v.BrickColor=BrickColor.new("Toothpaste")
  236. v.Transparency=1
  237. text.TextColor3 = Color3.new(1,1,1)
  238. v.Shape="Block"
  239. text.Text = "-"
  240. --
  241. local Hair = Instance.new("Part")
  242. Hair.Parent = clone
  243. Hair.Name = "Bacon"
  244. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  245. Hair.CFrame = clone.Head.CFrame
  246. Hair:BreakJoints()
  247. Hair.CanCollide = false
  248. Hair.BrickColor = BrickColor.new("New Yeller")
  249. Hair.TopSurface = "Smooth"
  250. Hair.BottomSurface = "Smooth"
  251. Weld = Instance.new("Weld")
  252. Weld.Name = "Weld"
  253. Weld.Part0 = clone.Head
  254. Weld.Part1 = Hair
  255. Weld.Parent = clone.Head
  256. Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  257. Mesh = Instance.new("SpecialMesh")
  258. Mesh.Parent = Hair
  259. Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901"
  260. Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747"
  261. Mesh.Scale = Vector3.new(1, 1.05, 1)
  262. --
  263. for _, a in pairs(clone:children()) do
  264. if a:IsA'Part' then
  265. a.BrickColor = BrickColor:Random()
  266. end
  267. end
  268. if numb == 1 then
  269. clone.Head.face.Texture = "rbxassetid://1304527161"
  270. text.Text = "BACON RULE THE WORLD"
  271. elseif numb == 2 then
  272. clone.Head.face.Texture = "rbxassetid://987047828"
  273. text.Text = "LOL FREE ROBLOX CASH"
  274. else
  275. clone.Head.face.Texture = "rbxassetid://664468442"
  276. text.Text = "WOWWOW I GOT ROBLOX CASH YAY"
  277. end
  278. table.insert(clones,clone)
  279. end
  280.  
  281. sou = Instance.new("Sound", char.Torso)
  282. sou.SoundId = "rbxassetid://1463709693"
  283. sou.Looped = true
  284. sou.Volume = 2.5
  285. sou.Pitch = 1.4
  286. sou:Play()
  287.  
  288. for _, a in pairs(clones) do
  289. a.Parent = char
  290. a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
  291. end
  292.  
  293. while wait(0.3) do
  294. number = #clones
  295. position = root.CFrame
  296. protecting = false
  297. if aa == nil then
  298. followplr = true
  299. elseif aa ~= nil then
  300. followplr = false
  301. end
  302. for _, a in pairs(clones) do
  303. if a:FindFirstChildOfClass'Humanoid' and followplr then
  304. a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-40,40),0,math.random(-40,40)))
  305. end
  306. end
  307. rand = math.random(1,10)
  308. if rand == 5 then
  309. for i = 1,3 do
  310. random = clones[math.random(1,#clones)]
  311. rand = math.random(1,2)
  312. if rand == 1 then
  313. wait()
  314. else
  315. wait()
  316. end
  317. end
  318. end
  319. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement