SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("I NEVER KNEW YOU WERE A COMMUNIST USE h/ dumbass") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("wdym man this is fe compaitibility since ur using this on voice but WHYYYYYYYY")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
| |
| 5 | local Me = game:GetService("Players").LocalPlayer
| |
| 6 | local Char = Me.Character | |
| 7 | local Torso = Char.Torso | |
| 8 | local TickWait = 1 | |
| 9 | local Color = "Medium stone gray" | |
| 10 | local Dead = false | |
| 11 | ||
| 12 | local Tool = Instance.new("HopperBin", Me.Backpack)
| |
| 13 | Tool.Name = "Bomb Vest" | |
| 14 | ||
| 15 | local Position = Vector3.new(0,100,0) | |
| 16 | function NewPart(Parent) | |
| 17 | local Part = Instance.new("Part", Parent)
| |
| 18 | Part.CanCollide = false | |
| 19 | Part.FormFactor = "Custom" | |
| 20 | Part.Position = Position | |
| 21 | Part.TopSurface = "Smooth" | |
| 22 | Part.BottomSurface = "Smooth" | |
| 23 | Part.BrickColor = BrickColor.new(Color) | |
| 24 | Position = Position + Vector3.new(0,Part.Size.Y + 10,0) | |
| 25 | return Part | |
| 26 | end | |
| 27 | ||
| 28 | local Model = Char:FindFirstChild("Bomb")
| |
| 29 | if Model then Model:Destroy() end | |
| 30 | ||
| 31 | Model = Instance.new("Model", Char)
| |
| 32 | Model.Name = "Bomb" | |
| 33 | ||
| 34 | local Belt = NewPart(Model) | |
| 35 | Belt.Size = Vector3.new(2.2,0.5,1.2) | |
| 36 | local Weld = Instance.new("Weld", Belt)
| |
| 37 | Weld.Part0 = Belt | |
| 38 | Weld.Part1 = Torso | |
| 39 | Weld.C0 = CFrame.new(0,1.1,0) | |
| 40 | local Light = Instance.new("PointLight", Belt)
| |
| 41 | Light.Range = 15 | |
| 42 | Light.Brightness = 5 | |
| 43 | Light.Color = Color3.new(1,0,0) | |
| 44 | local Beep = Instance.new("Sound", Belt)
| |
| 45 | Beep.SoundId = "http://www.roblox.com/asset/?id=188588790" | |
| 46 | local ExplodeSound = Instance.new("Sound", Belt)
| |
| 47 | ExplodeSound.SoundId = "http://www.roblox.com/asset/?id="..(tonumber((math.ceil(1776.66^2)+17).."."..string.rep("36",3))*77)+0.00003 --144507765
| |
| 48 | ExplodeSound.Pitch = 2.8 | |
| 49 | ExplodeSound.Volume = 3 | |
| 50 | ||
| 51 | local Back = NewPart(Model) | |
| 52 | Back.Size = Vector3.new(1.5,1.5,0.5) | |
| 53 | local Weld = Instance.new("Weld", Back)
| |
| 54 | Weld.Part0 = Back | |
| 55 | Weld.Part1 = Torso | |
| 56 | Weld.C0 = CFrame.new(0,0.1,-0.75) | |
| 57 | ||
| 58 | local StrapLeft = NewPart(Model) | |
| 59 | StrapLeft.Size = Vector3.new(0.2,0.5,1.6) | |
| 60 | local Weld = Instance.new("Weld", StrapLeft)
| |
| 61 | Weld.Part0 = StrapLeft | |
| 62 | Weld.Part1 = Torso | |
| 63 | Weld.C0 = CFrame.new(0.65,-0.9,-0.2) | |
| 64 | ||
| 65 | local BuckleLeft = NewPart(Model) | |
| 66 | BuckleLeft.Size = Vector3.new(0.2,1.5,0.2) | |
| 67 | local Weld = Instance.new("Weld", BuckleLeft)
| |
| 68 | Weld.Part0 = BuckleLeft | |
| 69 | Weld.Part1 = Torso | |
| 70 | Weld.C0 = CFrame.new(0.65,0.1,0.5) | |
| 71 | ||
| 72 | local StrapRight = NewPart(Model) | |
| 73 | StrapRight.Size = Vector3.new(0.2,0.5,1.6) | |
| 74 | local Weld = Instance.new("Weld", StrapRight)
| |
| 75 | Weld.Part0 = StrapRight | |
| 76 | Weld.Part1 = Torso | |
| 77 | Weld.C0 = CFrame.new(-0.65,-0.9,-0.2) | |
| 78 | ||
| 79 | local BuckleRight = NewPart(Model) | |
| 80 | BuckleRight.Size = Vector3.new(0.2,1.5,0.2) | |
| 81 | local Weld = Instance.new("Weld", BuckleRight)
| |
| 82 | Weld.Part0 = BuckleRight | |
| 83 | Weld.Part1 = Torso | |
| 84 | Weld.C0 = CFrame.new(-0.65,0.1,0.5) | |
| 85 | ||
| 86 | Tool.Selected:connect(function(Mouse) | |
| 87 | TickWait = 0.3 | |
| 88 | Mouse.Icon = "http://www.roblox.com/asset/?id=9109985" | |
| 89 | ||
| 90 | Mouse.Button1Down:connect(function() | |
| 91 | if Dead == false then | |
| 92 | Dead = true | |
| 93 | ExplodeSound:Play() | |
| 94 | wait(1.4) | |
| 95 | local Explosion = Instance.new("Explosion", Workspace)
| |
| 96 | Explosion.Position = Belt.Position | |
| 97 | Explosion.BlastPressure = 100000 | |
| 98 | Explosion.DestroyJointRadiusPercent = 0.7 | |
| 99 | Explosion.ExplosionType = "CratersAndDebris" | |
| 100 | Explosion.BlastRadius = 50 | |
| 101 | Explosion.Hit:connect(function(Part, Distance) | |
| 102 | Part.Anchored = false | |
| 103 | if Distance <= 10 then | |
| 104 | Part:BreakJoints() | |
| 105 | end | |
| 106 | end) | |
| 107 | end | |
| 108 | end) | |
| 109 | end) | |
| 110 | ||
| 111 | Tool.Deselected:connect(function() | |
| 112 | TickWait = 1 | |
| 113 | end) | |
| 114 | ||
| 115 | coroutine.wrap(function() | |
| 116 | repeat | |
| 117 | wait(TickWait) | |
| 118 | Light.Enabled = not Light.Enabled | |
| 119 | Beep:Play() | |
| 120 | until Dead == true | |
| 121 | end)() |