SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | 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 --https://github.com/Mokiros/roblox-FE-compatibility
| |
| 5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 6 | --FIRE EM UP BOYS | |
| 7 | --edited by me (original https://v3rmillion.net/showthread.php?tid=243407) | |
| 8 | ||
| 9 | ||
| 10 | Player = game:GetService("Players").LocalPlayer
| |
| 11 | ||
| 12 | Character = Player.Character | |
| 13 | ||
| 14 | PlayerGui = Player.PlayerGui | |
| 15 | ||
| 16 | Backpack = Player.Backpack | |
| 17 | ||
| 18 | Torso = Character.Torso | |
| 19 | ||
| 20 | Head = Character.Head | |
| 21 | ||
| 22 | LeftArm = Character["Left Arm"] | |
| 23 | ||
| 24 | LeftLeg = Character["Left Leg"] | |
| 25 | ||
| 26 | RightArm = Character["Right Arm"] | |
| 27 | ||
| 28 | RightLeg = Character["Right Leg"] | |
| 29 | ||
| 30 | LS = Torso["Left Shoulder"] | |
| 31 | ||
| 32 | LH = Torso["Left Hip"] | |
| 33 | ||
| 34 | RS = Torso["Right Shoulder"] | |
| 35 | ||
| 36 | RH = Torso["Right Hip"] | |
| 37 | ||
| 38 | Tool = Instance.new("HopperBin")
| |
| 39 | ||
| 40 | Tool.Parent = Backpack | |
| 41 | ||
| 42 | Tool.Name = "Johnny Cannon" | |
| 43 | ||
| 44 | Bin = Tool | |
| 45 | ||
| 46 | so = function(id, par, vol, pit) | |
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | coroutine.resume(coroutine.create(function() | |
| 51 | ||
| 52 | ||
| 53 | ||
| 54 | local sou = Instance.new("Sound", par or workspace)
| |
| 55 | ||
| 56 | sou.Volume = vol | |
| 57 | ||
| 58 | sou.Pitch = pit or 1 | |
| 59 | ||
| 60 | sou.SoundId = id | |
| 61 | ||
| 62 | wait() | |
| 63 | ||
| 64 | sou:play() | |
| 65 | ||
| 66 | wait(6) | |
| 67 | ||
| 68 | sou:Remove() | |
| 69 | ||
| 70 | end | |
| 71 | ||
| 72 | )) | |
| 73 | ||
| 74 | end | |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | ob1d = function(mouse) | |
| 79 | ||
| 80 | ||
| 81 | ||
| 82 | size = 0.5 | |
| 83 | ||
| 84 | mode = 1 | |
| 85 | ||
| 86 | color = BrickColor.new(Color3.new(math.random(), math.random(), math.random())) | |
| 87 | ||
| 88 | mo = Instance.new("Model")
| |
| 89 | ||
| 90 | mo.Name = "EEEEUGH HA HA HAAAAA" | |
| 91 | ||
| 92 | mo.Parent = workspace | |
| 93 | ||
| 94 | game.Debris:AddItem(mo, 10) | |
| 95 | ||
| 96 | p = Instance.new("Seat")
| |
| 97 | ||
| 98 | p.Name = "Torso" | |
| 99 | ||
| 100 | p.Size = Vector3.new(14, 50, 14) * size | |
| 101 | ||
| 102 | p.BrickColor = color | |
| 103 | ||
| 104 | m = Instance.new("SpecialMesh")
| |
| 105 | ||
| 106 | m.Parent = p | |
| 107 | ||
| 108 | p.Name = "Torso" | |
| 109 | ||
| 110 | p.Parent = mo | |
| 111 | ||
| 112 | p = Instance.new("Seat")
| |
| 113 | ||
| 114 | p.Shape = "Ball" | |
| 115 | ||
| 116 | p.Size = Vector3.new(24, 24, 24) * size | |
| 117 | ||
| 118 | p.BrickColor = color | |
| 119 | ||
| 120 | p.Name = "Legball" | |
| 121 | ||
| 122 | for i = 1, 10 do | |
| 123 | ||
| 124 | lol = Instance.new("Seat")
| |
| 125 | ||
| 126 | lol.BrickColor = BrickColor:Black() | |
| 127 | ||
| 128 | lol.Name = "SEE?" | |
| 129 | ||
| 130 | lol.Parent = mo | |
| 131 | ||
| 132 | lol.Size = Vector3.new(1, math.random(30, 40), 1) * size | |
| 133 | ||
| 134 | w = Instance.new("Weld")
| |
| 135 | ||
| 136 | w.Part0 = p | |
| 137 | ||
| 138 | w.Part1 = lol | |
| 139 | ||
| 140 | w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 141 | ||
| 142 | w.Parent = w.Part0 | |
| 143 | ||
| 144 | end | |
| 145 | ||
| 146 | p.Parent = mo | |
| 147 | ||
| 148 | w = Instance.new("Weld")
| |
| 149 | ||
| 150 | w.Part0 = mo.Torso | |
| 151 | ||
| 152 | w.Part1 = p | |
| 153 | ||
| 154 | w.C0 = CFrame.new(16 * (size / 2), -48 * (size / 2), 0) | |
| 155 | ||
| 156 | w.Parent = w.Part0 | |
| 157 | ||
| 158 | p = Instance.new("Seat")
| |
| 159 | ||
| 160 | p.Shape = "Ball" | |
| 161 | ||
| 162 | p.Size = Vector3.new(24, 24, 24) * size | |
| 163 | ||
| 164 | p.BrickColor = color | |
| 165 | ||
| 166 | p.Name = "Legball" | |
| 167 | ||
| 168 | for i = 1, 10 do | |
| 169 | ||
| 170 | lol = Instance.new("Seat")
| |
| 171 | ||
| 172 | lol.BrickColor = BrickColor:Black() | |
| 173 | ||
| 174 | lol.Name = "SEE?" | |
| 175 | ||
| 176 | lol.Parent = mo | |
| 177 | ||
| 178 | lol.Size = Vector3.new(1, math.random(30, 40), 1) * size | |
| 179 | ||
| 180 | w = Instance.new("Weld")
| |
| 181 | ||
| 182 | w.Part0 = p | |
| 183 | ||
| 184 | w.Part1 = lol | |
| 185 | ||
| 186 | w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 187 | ||
| 188 | w.Parent = w.Part0 | |
| 189 | ||
| 190 | end | |
| 191 | ||
| 192 | p.Parent = mo | |
| 193 | ||
| 194 | w = Instance.new("Weld")
| |
| 195 | ||
| 196 | w.Part0 = mo.Torso | |
| 197 | ||
| 198 | w.Part1 = p | |
| 199 | ||
| 200 | w.C0 = CFrame.new(-16 * (size / 2), -48 * (size / 2), 0) | |
| 201 | ||
| 202 | w.Parent = w.Part0 | |
| 203 | ||
| 204 | p = Instance.new("Seat")
| |
| 205 | ||
| 206 | p.Shape = "Ball" | |
| 207 | ||
| 208 | p.Size = Vector3.new(21, 15, 21) * size | |
| 209 | ||
| 210 | p.BrickColor = color | |
| 211 | ||
| 212 | p.Name = "Legball" | |
| 213 | ||
| 214 | for i = 1, 10 do | |
| 215 | ||
| 216 | lol = Instance.new("Seat")
| |
| 217 | ||
| 218 | lol.BrickColor = BrickColor:Black() | |
| 219 | ||
| 220 | lol.Name = "SEE?" | |
| 221 | ||
| 222 | lol.Parent = mo | |
| 223 | ||
| 224 | lol.Size = Vector3.new(1, math.random(30, 40), 1) * size | |
| 225 | ||
| 226 | w = Instance.new("Weld")
| |
| 227 | ||
| 228 | w.Part0 = p | |
| 229 | ||
| 230 | w.Part1 = lol | |
| 231 | ||
| 232 | w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 233 | ||
| 234 | w.Parent = w.Part0 | |
| 235 | ||
| 236 | end | |
| 237 | ||
| 238 | p.Parent = mo | |
| 239 | ||
| 240 | w = Instance.new("Weld")
| |
| 241 | ||
| 242 | w.Part0 = mo.Torso | |
| 243 | ||
| 244 | w.Part1 = p | |
| 245 | ||
| 246 | w.C0 = CFrame.new(0, 60 * (size / 2), 0) | |
| 247 | ||
| 248 | m = Instance.new("SpecialMesh")
| |
| 249 | ||
| 250 | m.Parent = p | |
| 251 | ||
| 252 | p.Name = "Head" | |
| 253 | ||
| 254 | w.Parent = w.Part0 | |
| 255 | ||
| 256 | s = Instance.new("Sound")
| |
| 257 | ||
| 258 | s.Parent = mo.Torso | |
| 259 | ||
| 260 | s.Volume = 100 | |
| 261 | ||
| 262 | s.Pitch = 1 | |
| 263 | ||
| 264 | s.SoundId = "http://www.roblox.com/asset/?id=322832112" | |
| 265 | ||
| 266 | s.Looped = true | |
| 267 | ||
| 268 | s:play() | |
| 269 | ||
| 270 | coroutine.resume(coroutine.create(function(Part) | |
| 271 | ||
| 272 | ||
| 273 | ||
| 274 | while Part.Parent ~= nil do | |
| 275 | ||
| 276 | wait(math.random()) | |
| 277 | ||
| 278 | so("http://www.roblox.com/asset/?id=322832112", Part, 100, 1)
| |
| 279 | ||
| 280 | end | |
| 281 | ||
| 282 | end | |
| 283 | ||
| 284 | ), mo.Torso) | |
| 285 | ||
| 286 | mo.Torso.CFrame = mo.Torso.CFrame * Torso.CFrame * CFrame.new(0, 0, -50 * size) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
| 287 | ||
| 288 | mo.Torso.Velocity = mouse.Hit.lookVector * 400 | |
| 289 | ||
| 290 | coroutine.resume(coroutine.create(function(Part) | |
| 291 | ||
| 292 | ||
| 293 | ||
| 294 | while 1 do | |
| 295 | ||
| 296 | wait(math.random(0, 1) + math.random()) | |
| 297 | ||
| 298 | Part.RotVelocity = Vector3.new(math.random(-40, 40), math.random(-40, 40), math.random(-40, 40)) | |
| 299 | ||
| 300 | end | |
| 301 | ||
| 302 | end | |
| 303 | ||
| 304 | ), mo.Torso) | |
| 305 | ||
| 306 | end | |
| 307 | ||
| 308 | ||
| 309 | ||
| 310 | ob1u = function(mouse) | |
| 311 | ||
| 312 | ||
| 313 | ||
| 314 | end | |
| 315 | ||
| 316 | ||
| 317 | ||
| 318 | buttonhold = false | |
| 319 | ||
| 320 | key = function(key, mouse) | |
| 321 | ||
| 322 | ||
| 323 | ||
| 324 | end | |
| 325 | ||
| 326 | ||
| 327 | ||
| 328 | key2 = function(key, mouse) | |
| 329 | ||
| 330 | ||
| 331 | ||
| 332 | end | |
| 333 | ||
| 334 | ||
| 335 | ||
| 336 | s = function(mouse) | |
| 337 | ||
| 338 | ||
| 339 | ||
| 340 | mouse.Button1Down:connect(function() | |
| 341 | ||
| 342 | ||
| 343 | ||
| 344 | ob1d(mouse) | |
| 345 | ||
| 346 | end | |
| 347 | ||
| 348 | ) | |
| 349 | ||
| 350 | mouse.Button1Up:connect(function() | |
| 351 | ||
| 352 | ||
| 353 | ||
| 354 | ob1u(mouse) | |
| 355 | ||
| 356 | end | |
| 357 | ||
| 358 | ) | |
| 359 | ||
| 360 | mouse.KeyDown:connect(key) | |
| 361 | ||
| 362 | mouse.KeyUp:connect(key2) | |
| 363 | ||
| 364 | end | |
| 365 | ||
| 366 | ||
| 367 | ||
| 368 | ds = function(mouse) | |
| 369 | ||
| 370 | ||
| 371 | ||
| 372 | end | |
| 373 | ||
| 374 | ||
| 375 | ||
| 376 | Bin.Selected:connect(s) | |
| 377 | ||
| 378 | Bin.Deselected:connect(ds) |