Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'Click to Throw FlashBang'
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player = owner
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = RhiBel00351
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Char = Player.Character
- local Event = Char:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
- Event:FireServer(io)
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Changed = false
- local Mouse = Player:GetMouse()
- local h,t = Mouse.Hit,Mouse.Target
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
- h,t=Mouse.Hit,Mouse.Target
- end
- end
- ]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- local plr = owner
- local char = plr.Character
- local mytorso = char.Torso
- blindedbois = {}
- canuse = true
- function canusee(key)
- key = key:lower()
- if key == "z" then
- canuse = true
- end
- if key == "x" then
- canuse = false
- end
- end
- function throw()
- if canuse then
- canuse = false
- --Converted with ttyyuu12345's model to script plugin v4
- local function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- local cors = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local Part0 = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- Part0.Name = "Handle"
- Part0.Parent = mas
- Part0.BrickColor = BrickColor.new("Earth green")
- Part0.Rotation = Vector3.new(0, 90, 0)
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.Size = Vector3.new(1, 2, 1)
- Part0.CFrame = CFrame.new(2.5, 6.00001717, -26, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part0.Position = Vector3.new(2.5, 6.00001717, -26)
- Part0.Orientation = Vector3.new(0, 90, 0)
- Part0.Color = Color3.new(0.152941, 0.27451, 0.176471)
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=16975131"
- SpecialMesh1.Scale = Vector3.new(0.600000024, 0.699999988, 0.600000024)
- SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=16975111"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- SpecialMesh1.Scale = Vector3.new(0.600000024, 0.699999988, 0.600000024)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Part0.CFrame = char["Right Arm"].CFrame * CFrame.new(0,0,-0.5)
- for i = 1,15 do
- Part0.Velocity = mouse.Hit.lookVector * 66
- wait()
- end
- wait(2)
- --Sound2:Play()
- local ow = Instance.new("Part", char)
- ow.CanCollide = false
- ow.Anchored = true
- ow.Shape = "Ball"
- ow.Material = "Neon"
- ow.Size = Vector3.new(1,1,1)
- ow.CFrame = Part0.CFrame
- for i = 1,7 do
- ow.Size = ow.Size + Vector3.new(7,7,7)
- ow.CFrame = Part0.CFrame
- game:GetService("RunService").Stepped:wait()
- end
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Character and v.Name ~= owner.Name then
- local head = v.Character:findFirstChild("Head")
- if head then
- if ((head.Position - ow.Position).magnitude < math.random(50,64)) then
- v.CameraMode = "LockFirstPerson"
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local Part2 = Instance.new("Part")
- local Weld3 = Instance.new("Weld")
- local Weld4 = Instance.new("Weld")
- local Weld5 = Instance.new("Weld")
- local Weld6 = Instance.new("Weld")
- local Weld7 = Instance.new("Weld")
- local Weld8 = Instance.new("Weld")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- local Part11 = Instance.new("Part")
- local Part12 = Instance.new("Part")
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.Material = Enum.Material.Neon
- Part1.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part1.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part1.Velocity = Vector3.new(0.00411429629, -0.0155075621, -0.00764747709)
- Part1.CanCollide = false
- Part1.Size = Vector3.new(0.78333354, 3.9166677, 3.9166677)
- Part1.CFrame = CFrame.new(-1.42134643, 7.36401653, -0.278908014, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Position = Vector3.new(-1.42134643, 7.36401653, -0.278908014)
- Part1.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- Part2.Parent = Model0
- Part2.Material = Enum.Material.Neon
- Part2.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part2.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part2.Velocity = Vector3.new(0.0390362106, -0.0155943036, -0.072574608)
- Part2.CanCollide = false
- Part2.Size = Vector3.new(3.9166677, 0.78333354, 3.9166677)
- Part2.CFrame = CFrame.new(-0.0424690843, 5.79735136, 0.464832425, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Position = Vector3.new(-0.0424690843, 5.79735136, 0.464832425)
- Part2.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- Weld3.Parent = Part2
- Weld3.C0 = CFrame.new(0, 1.56666708, 1.56666708, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part2
- Weld3.Part1 = Part12
- Weld4.Parent = Part2
- Weld4.C0 = CFrame.new(-1.56666708, 1.56666708, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld4.Part0 = Part2
- Weld4.Part1 = Part1
- Weld5.Parent = Part2
- Weld5.C0 = CFrame.new(1.56666708, 1.56666708, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld5.Part0 = Part2
- Weld5.Part1 = Part9
- Weld6.Parent = Part2
- Weld6.C0 = CFrame.new(0.39166677, 1.56666708, -1.56666708, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld6.Part0 = Part2
- Weld6.Part1 = Part10
- Weld7.Parent = Part2
- Weld7.C0 = CFrame.new(0, 3.9166677, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part2
- Weld7.Part1 = Part11
- Weld8.Parent = Part2
- Weld8.C0 = CFrame.new(0, -1.56666696, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.Part1 = Part2
- Part9.Parent = Model0
- Part9.Material = Enum.Material.Neon
- Part9.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part9.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part9.Velocity = Vector3.new(0.00411525369, -0.0154845472, -0.00764926523)
- Part9.CanCollide = false
- Part9.Size = Vector3.new(0.78333354, 3.9166677, 3.9166677)
- Part9.CFrame = CFrame.new(1.33838439, 7.36401749, 1.20489419, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Position = Vector3.new(1.33838439, 7.36401749, 1.20489419)
- Part9.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- Part10.Parent = Model0
- Part10.Material = Enum.Material.Neon
- Part10.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part10.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part10.Velocity = Vector3.new(0.00416051969, 0.058228761, -0.00773560256)
- Part10.CanCollide = false
- Part10.Size = Vector3.new(3.13333416, 3.9166677, 0.78333354)
- Part10.CFrame = CFrame.new(1.04538584, 7.36192942, -0.731395841, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Position = Vector3.new(1.04538584, 7.36192942, -0.731395841)
- Part10.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- Part11.Parent = Model0
- Part11.Material = Enum.Material.Neon
- Part11.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part11.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part11.Velocity = Vector3.new(-0.0482673831, -0.0153486775, 0.0897410139)
- Part11.CanCollide = false
- Part11.Size = Vector3.new(3.9166677, 0.78333354, 3.9166677)
- Part11.CFrame = CFrame.new(-0.0399989188, 9.71401596, 0.460234106, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Position = Vector3.new(-0.0399989188, 9.71401596, 0.460234106)
- Part11.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- Part12.Parent = Model0
- Part12.Material = Enum.Material.Neon
- Part12.Rotation = Vector3.new(-0.0899999961, -28.2699986, -0.0399999991)
- Part12.RotVelocity = Vector3.new(0.0414423086, 6.61378124e-07, 0.0222902913)
- Part12.Velocity = Vector3.new(0.00406914484, -0.0892179906, -0.00756134093)
- Part12.CanCollide = false
- Part12.Size = Vector3.new(3.9166677, 3.9166677, 0.78333354)
- Part12.CFrame = CFrame.new(-0.783381462, 7.36610508, 1.84285736, 0.880764902, 0.000630680006, -0.47355336, 4.90961725e-07, 0.999999106, 0.0013327155, 0.473553777, -0.00117404154, 0.880764127)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.Position = Vector3.new(-0.783381462, 7.36610508, 1.84285736)
- Part12.Orientation = Vector3.new(-0.0799999982, -28.2699986, 0)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for q,w in pairs(Model0:GetChildren()) do
- w.CanCollide = false
- end
- Part2.CFrame = head.CFrame
- local weld = Instance.new("Weld", Part2)
- weld.Part0 = head
- weld.Part1 = Part2
- weld.C0 = CFrame.new(0,-2,0)
- local blindval = 0
- local candooo = true
- local function doblind()
- if candooo then
- blindval = blindval + 1
- if blindval > 300 then
- for q,w in pairs(Model0:GetChildren()) do
- w.Transparency = w.Transparency + 0.005
- end
- if blindval > 500 then
- candooo = false
- blindval = 0
- Model0:destroy()
- bs1:destroy()
- bs11:destroy()
- bs111:destroy()
- bs1111:destroy()
- bs11111:destroy()
- v.CameraMode = "Classic"
- end
- end
- end
- end
- game:GetService("RunService").Stepped:connect(doblind)
- end
- end
- end
- end
- ow:destroy()
- Part0:destroy()
- wait(0.5)
- canuse = true
- end
- end
- mouse.Button1Down:connect(throw)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement