Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,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
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --Converted with ttyyuu12345's model to script plugin v4
- ---- [[ -<For i>- Testing ]] ----
- -- by fo43123
- 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"))
- Camera0 = Instance.new("Camera")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- SurfaceGui6 = Instance.new("SurfaceGui")
- TextLabel7 = Instance.new("TextLabel")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- ClickDetector12 = Instance.new("ClickDetector")
- Part13 = Instance.new("Part")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(2.42976809, 9.61259556, -7.7817812, -0.937014282, -0.201886356, 0.285037279, -0, 0.816044867, 0.577988625, -0.349291235, 0.541583598, -0.764645576)
- Camera0.CoordinateFrame = CFrame.new(2.42976809, 9.61259556, -7.7817812, -0.937014282, -0.201886356, 0.285037279, -0, 0.816044867, 0.577988625, -0.349291235, 0.541583598, -0.764645576)
- Camera0.Focus = CFrame.new(1.85969353, 8.45661831, -6.25249004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(1.85969353, 8.45661831, -6.25249004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Name = "icry"
- Part2.Parent = mas
- Part2.CFrame = CFrame.new(-0.665000439, 0.0299999993, 0.450001717, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-0.665000439, 0.0299999993, 0.450001717)
- Part2.Color = Color3.new(0.352941, 0.298039, 0.258824)
- Part2.Size = Vector3.new(6.75000191, 0.0500000007, 6.86000204)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Dark taupe")
- Part2.Material = Enum.Material.WoodPlanks
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Dark taupe")
- Part3.Name = "icry"
- Part3.Parent = mas
- Part3.CFrame = CFrame.new(-0.61500001, 1.35500002, 0.916340947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-0.61500001, 1.35500002, 0.916340947)
- Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part3.Size = Vector3.new(4.71000147, 2.70000005, 2.7700007)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Black")
- Part3.Material = Enum.Material.DiamondPlate
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Black")
- Part4.Name = "icry"
- Part4.Parent = mas
- Part4.CFrame = CFrame.new(-0.614999771, 1.68440914, 1.68879855, 1, 0, 0, 0, 0.422617137, 0.906308293, 0, -0.906308293, 0.422617137)
- Part4.Orientation = Vector3.new(-65, 0, 0)
- Part4.Position = Vector3.new(-0.614999771, 1.68440914, 1.68879855)
- Part4.Rotation = Vector3.new(-65, 0, 0)
- Part4.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part4.Size = Vector3.new(4.83000183, 2.70000005, 5.18000174)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Smoky grey")
- Part4.Material = Enum.Material.DiamondPlate
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Smoky grey")
- Part5.Name = "icry"
- Part5.Parent = mas
- Part5.CFrame = CFrame.new(-0.632815599, 2.93691254, 1.83710134, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876)
- Part5.Orientation = Vector3.new(25, 0, 0)
- Part5.Position = Vector3.new(-0.632815599, 2.93691254, 1.83710134)
- Part5.Rotation = Vector3.new(25, 0, 0)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Size = Vector3.new(4.61000013, 2.59000015, 2.0100019)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.Material = Enum.Material.Glass
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Institutional white")
- SurfaceGui6.Parent = Part5
- SurfaceGui6.LightInfluence = 1
- SurfaceGui6.ClipsDescendants = true
- TextLabel7.Parent = SurfaceGui6
- TextLabel7.Position = UDim2.new(0, 270, 0, 100)
- TextLabel7.Rotation = 5
- TextLabel7.Size = UDim2.new(0, 200, 0, 250)
- TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel7.Font = Enum.Font.SourceSans
- TextLabel7.FontSize = Enum.FontSize.Size96
- TextLabel7.Text = "what"
- TextLabel7.TextColor = BrickColor.new("Really black")
- TextLabel7.TextColor3 = Color3.new(0, 0, 0)
- TextLabel7.TextSize = 100
- TextLabel7.TextStrokeColor3 = Color3.new(1, 1, 1)
- Part8.Name = "icry"
- Part8.Parent = mas
- Part8.CFrame = CFrame.new(-0.604999304, 2.72812033, 0.156341314, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(-0.604999304, 2.72812033, 0.156341314)
- Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part8.Size = Vector3.new(4.61000109, 0.0500000007, 1.15000153)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Black")
- Part8.Material = Enum.Material.Wood
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Black")
- Part9.Name = "icry"
- Part9.Parent = mas
- Part9.CFrame = CFrame.new(-0.691447973, 2.76971912, 0.151443392, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(-0.691447973, 2.76971912, 0.151443392)
- Part9.Color = Color3.new(0.352941, 0.298039, 0.258824)
- Part9.Size = Vector3.new(1.91000271, 0.0500000007, 0.990001619)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Dark taupe")
- Part9.Material = Enum.Material.Wood
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Dark taupe")
- Part10.Name = "icry"
- Part10.Parent = mas
- Part10.CFrame = CFrame.new(-0.668581247, 2.83510256, 0.156443417, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(-0.668581247, 2.83510256, 0.156443417)
- Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part10.Size = Vector3.new(1.16000295, 0.0500000007, 0.940001726)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Black")
- Part10.Material = Enum.Material.DiamondPlate
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Black")
- Part11.Name = "button"
- Part11.Parent = mas
- Part11.CFrame = CFrame.new(-0.65857476, 2.83152056, 0.172284305, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part11.Orientation = Vector3.new(0, 0, 90)
- Part11.Position = Vector3.new(-0.65857476, 2.83152056, 0.172284305)
- Part11.Rotation = Vector3.new(0, 0, 90)
- Part11.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part11.Size = Vector3.new(0.140002981, 0.80000031, 0.820001721)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Bright red")
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Bright red")
- Part11.Shape = Enum.PartType.Cylinder
- ClickDetector12.Parent = Part11
- Part13.Name = "icry"
- Part13.Parent = mas
- Part13.CFrame = CFrame.new(-0.655884206, 2.81768703, 0.162324369, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part13.Orientation = Vector3.new(0, 0, 90)
- Part13.Position = Vector3.new(-0.655884206, 2.81768703, 0.162324369)
- Part13.Rotation = Vector3.new(0, 0, 90)
- Part13.Color = Color3.new(0.352941, 0.298039, 0.258824)
- Part13.Size = Vector3.new(0.140002981, 1.12000012, 0.910001636)
- Part13.Anchored = true
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Dark taupe")
- Part13.Material = Enum.Material.Wood
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Dark taupe")
- Part13.Shape = Enum.PartType.Cylinder
- print("Little shit by fo43123")
- ----- [[ Parts ]] -----
- local explosion = Instance.new("Part", workspace)
- explosion.Material = "Neon"
- explosion.Transparency = 0.6
- explosion.Size = Vector3.new(1,1,1)
- explosion.Position = Vector3.new(23.791, -0.537, -34.082)
- explosion.BrickColor = BrickColor.new("Maroon")
- explosion.Anchored = true
- explosion.Transparency = 1
- explosion.Name = "rip"
- explosion.CanCollide = false
- local mesh1 = Instance.new("SpecialMesh", explosion)
- mesh1.MeshType = "Sphere"
- mesh1.Name = "get out"
- local lolrun = Instance.new("Part", workspace)
- lolrun.Anchored = true
- lolrun.Name = "beam"
- lolrun.CanCollide = false
- lolrun.BrickColor = BrickColor.new("Maroon")
- lolrun.Material = "Neon"
- lolrun.Orientation = Vector3.new(-65, -35, -180)
- lolrun.Size = Vector3.new(4, 2.95, 7)
- lolrun.Position = Vector3.new(-176.895, 751.07, 252.459)
- local mesh2 = Instance.new("SpecialMesh", lolrun)
- mesh2.MeshType = "Sphere"
- mesh2.Name = "aaw i love this mesh"
- local satelito = Instance.new("Part", workspace)
- satelito.Name = "satelito"
- satelito.Anchored = true
- satelito.CanCollide = false
- satelito.Size = Vector3.new(4, 1, 30.94)
- satelito.Position = Vector3.new(-202.24, 846.09, 288.829)
- satelito.Orientation = Vector3.new(-65, -35, 180)
- local mesh3 = Instance.new("SpecialMesh", satelito)
- mesh3.MeshType = "FileMesh"
- mesh3.Name = "insert mesh/texture here lol"
- mesh3.MeshId = "rbxassetid://88760425"
- mesh3.TextureId = "rbxassetid://88760555"
- mesh3.Scale = Vector3.new(50, 50, 50)
- local ms1 = Instance.new("ClickDetector", Part11)
- ms1.MaxActivationDistance = 12
- ----- [[ Sounds ]] -----
- local s1 = Instance.new("Sound", satelito)
- s1.SoundId = "rbxassetid://164826470"
- s1.Volume = 10
- s1.Name = "Ur"
- local s2 = Instance.new("Sound", explosion)
- s2.SoundId = "rbxassetid://138186576"
- s2.Volume = 10
- s2.Looped = true
- s2.Name = "Gay"
- local click = Instance.new("Sound", Part11)
- click.SoundId = "rbxassetid://156286438"
- click.Volume = 5
- onetime = true
- active = false -- true -> active distortion effect
- if active == false then
- print("distortion effect:", active)
- else active = true do
- local ds1 = Instance.new("DistortionSoundEffect", s1)
- local ds2 = Instance.new("DistortionSoundEffect", s2)
- local ds3 = Instance.new("DistortionSoundEffect", click)
- ds1.Level = math.huge
- ds1.Name = "lol"
- ds2.Level = math.huge
- ds2.Name = ">:)"
- print("distortion effect:", active)
- end
- end
- function t()
- for i = 0, 1, .1 do
- lolrun.Transparency = i
- wait()
- if i == 1 then
- lolrun:Destroy()
- end
- end
- end
- function c()
- t()
- s1:Resume()
- wait(4)
- s2:Resume()
- explosion.Transparency = 0.6
- for i = 1, 600, 2 do
- explosion.Size = Vector3.new(i, i, i)
- wait()
- explosion.Touched:Connect(function(hito)
- local whois = hito.Parent:FindFirstChild("Humanoid")
- if whois then
- whois:TakeDamage(math.huge) --- e.e
- whois.WalkSpeed = 0
- whois.JumpPower = 0
- wait(10)
- explosion:Destroy()
- s2.Looped = false
- end
- end)
- end
- end
- ClickDetector12.MouseClick:connect(function()
- click:Resume()
- if onetime == true then
- onetime = false
- wait(1)
- s1:Resume()
- for i = 7, 2047, 20 do
- lolrun.Size = Vector3.new(4, 2.95, i)
- wait()
- if i == 2047 then
- c()
- end
- end
- end
- end)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement