Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(3)
- --random script
- --by masonsteinmet
- -- V.1
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- local UIS = game:GetService("UserInputService")
- local player = game.Players.masonsteinmet
- local RightArm = player.Character["Right Arm"]
- local LeftArm = player.Character["Left Arm"]
- local LeftLeg = player.Character["Left Leg"]
- local RightLeg = player.Character["Right Leg"]
- function tag()
- local cool = Instance.new("BillboardGui")
- cool.Parent = player.Character.Head
- cool.Size = UDim2.new(3, 0,3, 0)
- cool.Name = "cool"
- cool.MaxDistance = 150
- cool.StudsOffset = Vector3.new(0,4,0)
- local text = Instance.new("TextLabel")
- text.Parent = player.Character.Head.cool
- text.Text = "SCRIPT MADE BY MASONSTEINMET (W.I.P lol)"
- text.Font = "Cartoon"
- text.TextStrokeTransparency = 0
- text.TextStrokeColor3 = Color3.new(255, 255, 255)
- text.Size = UDim2.new(1,0,1,0)
- text.BackgroundTransparency = 1
- text.TextScaled = true
- player.Character.Humanoid.BreakJointsOnDeath = false
- player.Character.Humanoid.DisplayDistanceType = "None"
- end
- function headMesh()
- player.Character.Head.Mesh.MeshType = "Brick"
- player.Character.Head.Mesh.Scale = Vector3.new(0.7, 1.25, 1.25)
- player.Character.Head.Mesh.Offset = Vector3.new(0, 0.125, 0)
- player.Character.Head.Material = Enum.Material.SmoothPlastic
- player.Character.Head.face.Texture = "rbxassetid://3528788"
- local face = Instance.new("Decal")
- face.Name = "eye"
- face.Parent = player.Character.Head
- face.Texture = "rbxassetid://257915800"
- while wait() do
- player.Character.Head.face.Texture = "rbxassetid://3528788"
- wait(7)
- player.Character.Head.face.Texture = "rbxassetid://211187842"
- wait(0.5)
- end
- end
- function flatbody()
- local a = Instance.new("BlockMesh")
- a.Parent = LeftArm
- LeftArm.Material = Enum.Material.SmoothPlastic
- local b = Instance.new("BlockMesh")
- b.Parent = RightArm
- RightArm.Material = Enum.Material.SmoothPlastic
- local c = Instance.new("BlockMesh")
- c.Parent = LeftLeg
- LeftLeg.Material = Enum.Material.SmoothPlastic
- local d = Instance.new("BlockMesh")
- d.Parent = RightLeg
- RightLeg.Material = Enum.Material.SmoothPlastic
- local e = Instance.new("BlockMesh")
- e.Parent = player.Character.Torso
- e.Scale = Vector3.new(1,0.97,1)
- player.Character.Torso.Material = Enum.Material.SmoothPlastic
- end
- function hat()
- local m = Instance.new("Part")
- m.Name = "Hat"
- m.Parent = player.Character.Head
- m.Position = player.Character.Head.Position
- m.Orientation = Vector3.new(0,180,0)
- m.BrickColor = BrickColor.new("Electric blue")
- local weld = Instance.new("Weld")
- weld.Parent = player.Character.Torso
- weld.Part0 = player.Character.Head
- weld.Part1 = player.Character.Head.Hat
- weld.C0 = CFrame.new(0, 0.8, -0.2) *CFrame.Angles(0, math.rad(180), 0)
- local mesh = Instance.new("FileMesh")
- mesh.Parent = player.Character.Head.Hat
- mesh.MeshId = "rbxassetid://3669929055"
- mesh.Scale = Vector3.new(1.04,1.04,1.04)
- end
- function value()
- local v = Instance.new("BoolValue")
- v.Parent = player.Character
- v.Name = "Bomb"
- v.Value = true
- end
- function explosion()
- local a = Instance.new("Part")
- a.Parent = workspace
- a.Name = "explode"
- a.Position = player.Character.Torso.Position
- a.Transparency = 1
- a.Anchored = true
- local b = Instance.new("ParticleEmitter")
- b.Parent = workspace.explode
- b.Enabled = true
- b.Texture = "rbxassetid://1946917526"
- b.Color = ColorSequence.new(Color3.fromRGB(255,140,0))
- b.Lifetime = NumberRange.new(3)
- b.Rate = 35
- b.RotSpeed = NumberRange.new(30)
- b.Speed = NumberRange.new(5, 5)
- b.SpreadAngle = Vector2.new(100,100)
- b.Size = NumberSequence.new(7)
- b.LightEmission = 0.55
- b.Transparency = NumberSequence.new(0.7)
- local sound = Instance.new("Sound")
- sound.Parent = workspace.explode
- sound.SoundId = "rbxassetid://2648563122"
- sound.Volume = 0.5
- sound.PlaybackSpeed = 1.5
- sound:Play()
- wait(4)
- a:Destroy()
- end
- function grenadeexplode()
- local t = Instance.new("Part")
- t.Parent = workspace
- t.Name = "explode"
- t.Position = workspace.Grenade.Position
- t.Transparency = 1
- t.Anchored = true
- local y = Instance.new("ParticleEmitter")
- y.Parent = workspace.explode
- y.Enabled = true
- y.Texture = "rbxassetid://1946917526"
- y.Color = ColorSequence.new(Color3.fromRGB(255,140,0))
- y.Lifetime = NumberRange.new(3)
- y.Rate = 35
- y.RotSpeed = NumberRange.new(30)
- y.Speed = NumberRange.new(5, 5)
- y.SpreadAngle = Vector2.new(100,100)
- y.Size = NumberSequence.new(7)
- y.LightEmission = 0.55
- y.Transparency = NumberSequence.new(0.7)
- local sound = Instance.new("Sound")
- sound.Parent = workspace.explode
- sound.SoundId = "rbxassetid://2648563122"
- sound.Volume = 0.5
- sound.PlaybackSpeed = 1.5
- sound:Play()
- delay(8,function()
- t:Destroy()
- end)
- end
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(input)
- if input.KeyCode == Enum.KeyCode.B then
- print("Hello world!")
- repeat
- wait(2)
- local a = Instance.new("Part")
- a.Parent = workspace
- a.Position = player.Character.Head.Position + (player.Character.Head.CFrame.lookVector * 4)
- a.Name = "Grenade"
- a.Size = Vector3.new(1.27, 1, 1.38)
- a.Transparency = 0
- local b = Instance.new("BodyForce")
- b.Parent = a
- b.Force = player.Character.Head.CFrame.lookVector * 80 + Vector3.new(0,225,0)
- a.CanCollide = true
- wait(.4)
- b:Destroy()
- wait(0.8)
- a.Transparency = 1
- a.Anchored = true
- local t = Instance.new("Part")
- t.Parent = workspace
- t.Name = "explode"
- t.Position = a.Position
- t.Transparency = 1
- t.Anchored = true
- local y = Instance.new("ParticleEmitter")
- y.Parent = workspace.explode
- y.Enabled = true
- y.Texture = "rbxassetid://1946917526"
- y.Color = ColorSequence.new(Color3.fromRGB(255,140,0))
- y.Lifetime = NumberRange.new(3)
- y.Rate = 35
- y.RotSpeed = NumberRange.new(30)
- y.Speed = NumberRange.new(8, 8)
- y.SpreadAngle = Vector2.new(100,100)
- y.Size = NumberSequence.new(7)
- y.LightEmission = 0.55
- y.Transparency = NumberSequence.new(0.7)
- local sound = Instance.new("Sound")
- sound.Parent = player.Character.Torso
- sound.SoundId = "rbxassetid://2648563122"
- sound.Volume = 0.5
- sound.PlaybackSpeed = 1.5
- sound:Play()
- delay(1,function()
- t:Destroy()
- a:Destroy()
- end)
- until player.Character.Bomb.Value == false
- end
- end)
- value()
- hat()
- tag()
- flatbody()
- headMesh()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement