SHOW:
|
|
- or go back to the newest paste.
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 | - | Bacons = 25 --CHANGE THE NUMBER TO HOW MANY BACONS YOU WANT! (more than 50 crashes your game..) |
15 | + | local function fakeEvent() |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | - | plr = game:service'Players'.LocalPlayer |
18 | + | return t |
19 | end | |
20 | - | root = char:FindFirstChild'HumanoidRootPart' |
20 | + | |
21 | - | hum = char:FindFirstChildOfClass'Humanoid' |
21 | + | --Creating fake input objects with fake variables |
22 | - | mouse = plr:GetMouse() |
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 | ||
92 | ||
93 | --[[ | |
94 | /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ | |
95 | ||
96 | ||FREE RBX!1!!|| - A Troll Script by Melissa666666girl | |
97 | ||
98 | /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ | |
99 | ||
100 | ///Recycled from Sharkringan's Ugandan Knuckles script\\\ | |
101 | \\Litteraly only like 3 lines of code from it, lol kthx// | |
102 | ||
103 | /\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ | |
104 | --]] | |
105 | ||
106 | --~~-- | |
107 | Bacons = 100000 | |
108 | --~~-- | |
109 | ||
110 | plr = owner | |
111 | char = plr.Character | |
112 | root = char.FindFirstChild'HumanoidRootPart' | |
113 | hum = char.FindFirstChildOfClass'Humanoid' | |
114 | clones = {} | |
115 | followplr = false | |
116 | radius = 50 | |
117 | ||
118 | ||
119 | plr.NameDisplayDistance = 45 | |
120 | local txt = Instance.new("BillboardGui", char) | |
121 | txt.Adornee = char .Head | |
122 | txt.Name = "thingy" | |
123 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
124 | txt.StudsOffset = Vector3.new(-1, 2, 0) | |
125 | local text = Instance.new("TextLabel", txt) | |
126 | text.Size = UDim2.new(2, 0, 0.6, 0) | |
127 | text.FontSize = "Size24" | |
128 | text.TextScaled = true | |
129 | text.TextTransparency = 0 | |
130 | text.BackgroundTransparency = 1 | |
131 | text.TextTransparency = 0 | |
132 | text.TextStrokeTransparency = 0 | |
133 | text.Font = "Bodoni" | |
134 | text.TextStrokeColor3 = Color3.new(225, 17, 215) | |
135 | txt.MaxDistance = 10 | |
136 | ||
137 | v=Instance.new("Part") | |
138 | v.Name = "ColorBrick" | |
139 | v.Parent=plr.Character | |
140 | v.FormFactor="Symmetric" | |
141 | v.Anchored=true | |
142 | v.CanCollide=false | |
143 | v.BottomSurface="Smooth" | |
144 | v.TopSurface="Smooth" | |
145 | v.Size=Vector3.new(10,5,3) | |
146 | v.Transparency=1 | |
147 | v.CFrame=char.Torso.CFrame | |
148 | v.BrickColor=BrickColor.new("Toothpaste") | |
149 | v.Transparency=1 | |
150 | text.TextColor3 = Color3.new(1,1,1) | |
151 | v.Shape="Block" | |
152 | text.Text = "Bacon Soliders" | |
153 | char.Humanoid.WalkSpeed = 75 | |
154 | ||
155 | ||
156 | for _, a in pairs(char:children()) do | |
157 | if a:IsA'Accessory' then | |
158 | a:Destroy() | |
159 | elseif a:IsA'Part' then | |
160 | a.BrickColor = BrickColor:Random() | |
161 | ||
162 | end | |
163 | end | |
164 | if char.Shirt == nil then | |
165 | Instance.new("Pants", char) | |
166 | Instance.new("Shirt", char) | |
167 | end | |
168 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357" | |
169 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759" | |
170 | ||
171 | local Hair = Instance.new("Part") | |
172 | Hair.Parent = char | |
173 | Hair.Name = "Bacon" | |
174 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
175 | Hair.CFrame = char.Head.CFrame | |
176 | Hair:BreakJoints() | |
177 | Hair.CanCollide = false | |
178 | Hair.BrickColor = BrickColor.new("New Yeller") | |
179 | Hair.TopSurface = "Smooth" | |
180 | Hair.BottomSurface = "Smooth" | |
181 | Weld = Instance.new("Weld") | |
182 | Weld.Name = "Weld" | |
183 | Weld.Part0 = char.Head | |
184 | Weld.Part1 = Hair | |
185 | Weld.Parent = char.Head | |
186 | Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
187 | Mesh = Instance.new("SpecialMesh") | |
188 | Mesh.Parent = Hair | |
189 | Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901" | |
190 | Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747" | |
191 | Mesh.Scale = Vector3.new(1, 1.05, 1) | |
192 | char.Head.face.Texture = "rbxassetid://664468442" | |
193 | ||
194 | num = 1 | |
195 | cooldown = false | |
196 | rand = math.random(1,2) | |
197 | ||
198 | for i = 1,Bacons do | |
199 | wait() | |
200 | char.Archivable = true | |
201 | numb = math.random(1,3) | |
202 | clone = char:Clone() | |
203 | clone.Humanoid.WalkSpeed = 100 | |
204 | clone.Humanoid.Name = "Bacon Soldiers" | |
205 | -- | |
206 | for _, a in pairs(clone:children()) do | |
207 | if a:IsA'BillboardGui' then | |
208 | a:Destroy() | |
209 | elseif a:IsA'Sound' then | |
210 | a.Playing = false | |
211 | end | |
212 | end | |
213 | local txt = Instance.new("BillboardGui", clone) | |
214 | txt.Adornee = clone .Head | |
215 | txt.Name = "thingy" | |
216 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
217 | txt.StudsOffset = Vector3.new(-1, 2, 0) | |
218 | local text = Instance.new("TextLabel", txt) | |
219 | text.Size = UDim2.new(2, 0, 0.6, 0) | |
220 | text.FontSize = "Size24" | |
221 | text.TextScaled = true | |
222 | text.TextTransparency = 0 | |
223 | text.BackgroundTransparency = 1 | |
224 | text.TextTransparency = 0 | |
225 | text.TextStrokeTransparency = 0 | |
226 | text.Font = "Bodoni" | |
227 | text.TextStrokeColor3 = Color3.new(225, 17, 215) | |
228 | ||
229 | v=Instance.new("Part") | |
230 | v.Name = "ColorBrick" | |
231 | v.Parent=clone | |
232 | v.FormFactor="Symmetric" | |
233 | v.Anchored=true | |
234 | v.CanCollide=false | |
235 | v.BottomSurface="Smooth" | |
236 | v.TopSurface="Smooth" | |
237 | v.Size=Vector3.new(10,5,3) | |
238 | v.Transparency=1 | |
239 | v.CFrame=clone.Torso.CFrame | |
240 | v.BrickColor=BrickColor.new("Toothpaste") | |
241 | v.Transparency=1 | |
242 | text.TextColor3 = Color3.new(1,1,1) | |
243 | v.Shape="Block" | |
244 | text.Text = "-" | |
245 | -- | |
246 | local Hair = Instance.new("Part") | |
247 | Hair.Parent = clone | |
248 | Hair.Name = "Bacon" | |
249 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
250 | Hair.CFrame = clone.Head.CFrame | |
251 | Hair:BreakJoints() | |
252 | Hair.CanCollide = false | |
253 | Hair.BrickColor = BrickColor.new("New Yeller") | |
254 | Hair.TopSurface = "Smooth" | |
255 | Hair.BottomSurface = "Smooth" | |
256 | Weld = Instance.new("Weld") | |
257 | Weld.Name = "Weld" | |
258 | Weld.Part0 = clone.Head | |
259 | Weld.Part1 = Hair | |
260 | Weld.Parent = clone.Head | |
261 | Weld.C0 = CFrame.new(0, 0.25, -0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
262 | Mesh = Instance.new("SpecialMesh") | |
263 | Mesh.Parent = Hair | |
264 | Mesh.MeshId = "http://www.roblox.com/asset/?id=83293901" | |
265 | Mesh.TextureId = "http://www.roblox.com/asset/?id=83284747" | |
266 | Mesh.Scale = Vector3.new(1, 1.05, 1) | |
267 | -- | |
268 | for _, a in pairs(clone:children()) do | |
269 | if a:IsA'Part' then | |
270 | a.BrickColor = BrickColor:Random() | |
271 | end | |
272 | end | |
273 | if numb == 1 then | |
274 | clone.Head.face.Texture = "rbxassetid://1304527161" | |
275 | text.Text = "BACON RULE THE WORLD" | |
276 | elseif numb == 2 then | |
277 | clone.Head.face.Texture = "rbxassetid://987047828" | |
278 | text.Text = "LOL FREE ROBLOX CASH" | |
279 | else | |
280 | clone.Head.face.Texture = "rbxassetid://664468442" | |
281 | text.Text = "WOWWOW I GOT ROBLOX CASH YAY" | |
282 | end | |
283 | table.insert(clones,clone) | |
284 | end | |
285 | ||
286 | sou = Instance.new("Sound", char.Torso) | |
287 | sou.SoundId = "rbxassetid://1463709693" | |
288 | sou.Looped = true | |
289 | sou.Volume = 2.5 | |
290 | sou.Pitch = 1.4 | |
291 | sou:Play() | |
292 | ||
293 | for _, a in pairs(clones) do | |
294 | a.Parent = char | |
295 | a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10))) | |
296 | end | |
297 | ||
298 | while wait(0.3) do | |
299 | number = #clones | |
300 | position = root.CFrame | |
301 | protecting = false | |
302 | if aa == nil then | |
303 | followplr = true | |
304 | elseif aa ~= nil then | |
305 | followplr = false | |
306 | end | |
307 | for _, a in pairs(clones) do | |
308 | if a:FindFirstChildOfClass'Humanoid' and followplr then | |
309 | a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-40,40),0,math.random(-40,40))) | |
310 | end | |
311 | end | |
312 | rand = math.random(1,10) | |
313 | if rand == 5 then | |
314 | for i = 1,3 do | |
315 | random = clones[math.random(1,#clones)] | |
316 | rand = math.random(1,2) | |
317 | if rand == 1 then | |
318 | wait() | |
319 | else | |
320 | wait() | |
321 | end | |
322 | end | |
323 | end | |
324 | end |