Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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(),Button2Up=fakeEvent(),Button2Down=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
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- 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 typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v 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 rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- 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")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --BY quuisiYT (aka. quu ;3)
- --RULES: DO NOT COPY OR REUPLOAD AND MODIFY!!!!!!
- wait(2)
- local hl1id = "rbxassetid://687964979"
- local hl2id = "rbxassetid://658979528"
- local ger1 = "rbxassetid://1353780582"
- local jl2 = "rbxassetid://1087356234"
- local plr = game.Players.LocalPlayer
- repeat wait(.4) until plr.Character
- local char = plr.Character
- local uis = game:GetService("UserInputService")
- local runsrv = game:GetService("RunService")
- char.Animate:Destroy()
- local armright = char.Torso["Right Shoulder"]
- local armleft = char.Torso["Left Shoulder"]
- local legright = char.Torso["Right Hip"]
- local legleft = char.Torso["Left Hip"]
- local legrightold = legright.C0
- local legleftold = legleft.C0
- local armrightold = armright.C0
- local armleftold = armleft.C0
- local neckold = char.Torso.Neck.C0
- local roothipold = char.HumanoidRootPart["RootJoint"].C0
- local cantrigger = false
- local humanoid = char.Humanoid
- humanoid.Name = "Humen"
- local Runningy = false
- local FinishedRunning = false
- local cansay = false
- local mouse = plr:getMouse();
- local tokeel = nil
- local mode = 0
- local marcel = nil
- local hing = nil
- local scrin = nil
- if workspace:FindFirstChild("marcel") then else
- local marcel2 = Instance.new("Sound",workspace)
- marcel2.SoundId = "rbxassetid://1447435947"
- marcel2.Looped =true
- marcel = marcel2
- marcel.Volume = 10
- end
- marcel.Name = "marcel"
- marcel:Play()
- local backup = char.Humen:Clone()
- local backup2 = marcel:Clone()
- runsrv.RenderStepped:Connect(function()
- if marcel then
- backup2.TimePosition = marcel.TimePosition
- end
- if workspace:FindFirstChild("marcel") then else
- backup2.Parent = workspace
- marcel = backup2
- marcel:Play()
- backup2 = workspace.marcel:Clone()
- end
- if char:FindFirstChild("Humen") then else
- backup.Parent = char
- humanoid = backup
- backup = char.Humen:Clone()
- end
- for i,v in pairs(char.Humen:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- char.Humen.MaxHealth = 1e35345354345
- char.Humen.Health = 1e35345354345
- if char:FindFirstChild("yes") then else
- local force = Instance.new("ForceField",char)
- force.Visible = false
- force.Name = "yes"
- end
- end)
- char.Torso.Anchored = true
- runsrv.RenderStepped:Connect(function()
- if workspace:FindFirstChild("Table"..plr.Name) then else
- local table = Instance.new("Model")
- local part = Instance.new("Part")
- local part_2 = Instance.new("Part")
- local part_3 = Instance.new("Part")
- local main = Instance.new("Part")
- local part_4 = Instance.new("Part")
- local part_5 = Instance.new("Part")
- local laptop = Instance.new("Model")
- local keyboard = Instance.new("Part")
- local decal = Instance.new("Decal")
- local hinge = Instance.new("Part")
- local decal_2 = Instance.new("Decal")
- local part_6 = Instance.new("Part")
- local decal_3 = Instance.new("Decal")
- local decal_4 = Instance.new("Decal")
- local screen = Instance.new("Part")
- local decal_5 = Instance.new("Decal")
- local floor = Instance.new("Part")
- local mesh = Instance.new("BlockMesh")
- table.PrimaryPart = floor
- table.Name = "Table"..plr.Name
- table.Parent = workspace
- part.Anchored = true
- part.Size = Vector3.new(5.819, 0.692, 3.055)
- part.Orientation = Vector3.new(0, -34.32, 0)
- part.Material = Enum.Material.SmoothPlastic
- part.BottomSurface = Enum.SurfaceType.Smooth
- part.BrickColor = BrickColor.new("Br. yellowish orange")
- part.TopSurface = Enum.SurfaceType.Smooth
- part.Color = Color3.new(0.886275, 0.603922, 0.247059)
- part.Parent = table
- part.CFrame = CFrame.new(-4.982, 2.694, 16.191) * CFrame.Angles(0, -0.599, 0)
- part_2.Anchored = true
- part_2.Size = Vector3.new(5.551, 0.692, 3.278)
- part_2.Orientation = Vector3.new(0, 34.32, 0)
- part_2.Material = Enum.Material.SmoothPlastic
- part_2.BottomSurface = Enum.SurfaceType.Smooth
- part_2.BrickColor = BrickColor.new("Br. yellowish orange")
- part_2.TopSurface = Enum.SurfaceType.Smooth
- part_2.Color = Color3.new(0.886275, 0.603922, 0.247059)
- part_2.Parent = table
- part_2.CFrame = CFrame.new(8.587, 2.694, 16.174) * CFrame.Angles(0, 0.599, 0)
- part_3.Anchored = true
- part_3.Size = Vector3.new(5.322, 2.387, 2.57)
- part_3.BottomSurface = Enum.SurfaceType.Smooth
- part_3.Material = Enum.Material.SmoothPlastic
- part_3.TopSurface = Enum.SurfaceType.Smooth
- part_3.Orientation = Vector3.new(0, 34.32, 0)
- part_3.Parent = table
- part_3.CFrame = CFrame.new(8.512, 1.195, 16.046) * CFrame.Angles(0, 0.599, 0)
- main.Anchored = true
- main.Size = Vector3.new(10.357, 2.387, 2.57)
- main.BottomSurface = Enum.SurfaceType.Smooth
- main.Material = Enum.Material.SmoothPlastic
- main.TopSurface = Enum.SurfaceType.Smooth
- main.Name = "main"
- main.Parent = table
- main.CFrame = CFrame.new(1.86, 1.195, 17.322)
- part_4.Anchored = true
- part_4.Size = Vector3.new(5.322, 2.387, 2.57)
- part_4.BottomSurface = Enum.SurfaceType.Smooth
- part_4.Material = Enum.Material.SmoothPlastic
- part_4.TopSurface = Enum.SurfaceType.Smooth
- part_4.Orientation = Vector3.new(0, -34.32, 0)
- part_4.Parent = table
- part_4.CFrame = CFrame.new(-4.792, 1.195, 16.046) * CFrame.Angles(0, -0.599, 0)
- part_5.Anchored = true
- part_5.Size = Vector3.new(10.658, 0.692, 3.055)
- part_5.Material = Enum.Material.SmoothPlastic
- part_5.BrickColor = BrickColor.new("Br. yellowish orange")
- part_5.BottomSurface = Enum.SurfaceType.Smooth
- part_5.TopSurface = Enum.SurfaceType.Smooth
- part_5.Color = Color3.new(0.886275, 0.603922, 0.247059)
- part_5.Parent = table
- part_5.CFrame = CFrame.new(1.889, 2.694, 17.564)
- laptop.PrimaryPart = keyboard
- laptop.Name = "Laptop"
- laptop.Parent = table
- keyboard.Anchored = true
- keyboard.Size = Vector3.new(3.182, 0.143, 2.522)
- keyboard.BottomSurface = Enum.SurfaceType.Smooth
- keyboard.Material = Enum.Material.SmoothPlastic
- keyboard.Color = Color3.new(0.388235, 0.372549, 0.384314)
- keyboard.Name = "keyboard"
- keyboard.TopSurface = Enum.SurfaceType.Smooth
- keyboard.BrickColor = BrickColor.new("Dark stone grey")
- keyboard.Parent = laptop
- keyboard.CFrame = CFrame.new(2.524, 3.112, 17.226)
- decal.Texture = "http://www.roblox.com/asset/?id=22020376"
- decal.Face = Enum.NormalId.Top
- decal.Parent = keyboard
- hinge.Anchored = true
- hinge.Size = Vector3.new(3.182, 0.143, 0.175)
- hinge.BottomSurface = Enum.SurfaceType.Smooth
- hinge.Material = Enum.Material.SmoothPlastic
- hinge.Color = Color3.new(0.388235, 0.372549, 0.384314)
- hinge.Name = "Hinge"
- hinge.BrickColor = BrickColor.new("Dark stone grey")
- hinge.Transparency = 1
- hinge.TopSurface = Enum.SurfaceType.Smooth
- hinge.Parent = laptop
- hinge.CFrame = CFrame.new(2.524, 3.112, 18.535)
- decal_2.Texture = "http://www.roblox.com/asset/?id=22020376"
- decal_2.Face = Enum.NormalId.Top
- decal_2.Parent = hinge
- part_6.Anchored = true
- part_6.Size = Vector3.new(3.182, 1.925, 0.183)
- part_6.Orientation = Vector3.new(12.32, 0, 0)
- part_6.Material = Enum.Material.SmoothPlastic
- part_6.BottomSurface = Enum.SurfaceType.Smooth
- part_6.BrickColor = BrickColor.new("Dark stone grey")
- part_6.TopSurface = Enum.SurfaceType.Smooth
- part_6.Color = Color3.new(0.384314, 0.368627, 0.384314)
- part_6.Parent = laptop
- part_6.CFrame = CFrame.new(2.524, 4.003, 18.706) * CFrame.Angles(0.215, 0, 0)
- decal_3.Texture = "http://www.roblox.com/asset/?id=1010118400"
- decal_3.Parent = part_6
- decal_4.Texture = "http://www.roblox.com/asset/?id=936197282"
- decal_4.Face = Enum.NormalId.Back
- decal_4.Parent = part_6
- screen.Anchored = true
- screen.Size = Vector3.new(23.205, 11.679, 2.57)
- screen.BottomSurface = Enum.SurfaceType.Smooth
- screen.Material = Enum.Material.SmoothPlastic
- screen.TopSurface = Enum.SurfaceType.Smooth
- screen.Name = "Screen"
- screen.Parent = table
- screen.CFrame = CFrame.new(1.53, 5.841, 4.935)
- decal_5.Texture = "rbxassetid://1447523984"
- decal_5.Face = Enum.NormalId.Back
- decal_5.Parent = screen
- floor.Anchored = true
- floor.Size = Vector3.new(23.205, 0.067, 16.89)
- floor.BottomSurface = Enum.SurfaceType.Smooth
- floor.Material = Enum.Material.SmoothPlastic
- floor.TopSurface = Enum.SurfaceType.Smooth
- floor.Name = "floor"
- floor.Parent = table
- floor.CFrame = CFrame.new(1.53, 0.021, 12.095)
- mesh.Scale = Vector3.new(1, 0.591, 1)
- mesh.Parent = floor
- hing = hinge
- scrin = part_6
- workspace.CurrentCamera.CameraSubject = part_6
- table:SetPrimaryPartCFrame(char.Torso.CFrame * CFrame.new(0,-2.97,2))
- table:SetPrimaryPartCFrame(floor.CFrame * CFrame.Angles(0,3.6,0))
- end
- end)
- local root = char.HumanoidRootPart
- local oldroot = nil
- for i = 1,15 do
- root.CFrame = root.CFrame * CFrame.new(-.1,.03,-.06)
- root.CFrame = root.CFrame * CFrame.Angles(0,.047,0)
- runsrv.RenderStepped:wait()
- end
- oldroot = root.CFrame
- wait(2.6) -- - b
- for i = 1,470 do
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-.4)
- runsrv.RenderStepped:wait()
- end
- for i = 1,10 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end
- wait(3)
- for i = 1,10 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end
- wait(.5)
- for i = 1,30 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end --a
- function laptopkapputt()
- armright.C0 = armrightold
- armleft.C0 = armleftold
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-2)
- armleft.C0 = armleft.C0 * CFrame.new(0,-3,0)
- root.CFrame = oldroot
- local hingepos = hing.Position
- for i = 1,13 do
- scrin.CFrame = scrin.CFrame * CFrame.Angles(math.rad(-i),0,0) * CFrame.new(0,.01,-.09)
- runsrv.RenderStepped:wait()
- armleft.C0 = armleft.C0 * CFrame.new(0,.1,0)
- end
- for i = 1,13 do
- scrin.CFrame = scrin.CFrame * CFrame.Angles(math.rad(i),0,0) * CFrame.new(0,-.01,.09)
- runsrv.RenderStepped:wait()
- armleft.C0 = armleft.C0 * CFrame.new(0,-.1,0)
- end
- end
- function laptopkapputt2()
- armright.C0 = armrightold
- armleft.C0 = armleftold
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-2)
- armleft.C0 = armleft.C0 * CFrame.new(0,-3,0)
- root.CFrame = oldroot
- local hingepos = hing.Position
- for i = 1,4 do
- scrin.CFrame = scrin.CFrame * CFrame.Angles(math.rad(-i * 2 ),0,0) * CFrame.new(0,.01 * 2,-.09 * 2)
- runsrv.RenderStepped:wait()
- armleft.C0 = armleft.C0 * CFrame.new(0,.1 * 2,0)
- end
- for i = 1,4 do
- scrin.CFrame = scrin.CFrame * CFrame.Angles(math.rad(i * 2),0,0) * CFrame.new(0,-.01 * 2,.09 * 2)
- runsrv.RenderStepped:wait()
- armleft.C0 = armleft.C0 * CFrame.new(0,-.1 * 2,0)
- end
- end
- wait(1)
- laptopkapputt()
- wait(.3)
- laptopkapputt2()
- wait(.3)
- laptopkapputt2()
- for i = 1,50 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end
- wait(1)
- laptopkapputt2()
- wait(.3)
- laptopkapputt2()
- wait(5)
- laptopkapputt2()
- wait(.2)
- laptopkapputt2()
- wait(.2)
- laptopkapputt2()
- wait(.3)
- for i = 1,50 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end
- armright.C0 = armrightold
- armleft.C0 = armleftold
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-2)
- root.CFrame = oldroot
- local hingepos = hing.Position
- for i = 1,13 do
- scrin.CFrame = scrin.CFrame * CFrame.Angles(math.rad(-i),0,0) * CFrame.new(0,.01,-.09)
- runsrv.RenderStepped:wait()
- armleft.C0 = armleft.C0 * CFrame.new(0,.1,0)
- end
- wait(.5)
- root.CFrame = root.CFrame * CFrame.new(-4,0,0)
- for i = 1,90 do
- root.CFrame = root.CFrame * CFrame.Angles(.8,.7,.4)
- runsrv.RenderStepped:Wait()
- end
- armright.C0 = armrightold
- armleft.C0 = armleftold
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-1.5)
- --armleft.C0 = armleft.C0 * CFrame.new(0,-3,0)
- root.CFrame = oldroot
- root.CFrame = root.CFrame * CFrame.new(-4,0,0)
- wait(.7)
- for x=1,9 do
- for i = 1,14 do
- armleft.C0 = armleft.C0 * CFrame.new(0,-.1,0)
- runsrv.RenderStepped:wait()
- end
- wait()
- for i = 1,14 do
- armleft.C0 = armleft.C0 * CFrame.new(0,.1,0)
- runsrv.RenderStepped:wait()
- end
- wait(.1)
- end
- for i = 1,10 do
- for i = 1,4 do
- armleft.C0 = armleft.C0 * CFrame.new(0,-.3,0)
- runsrv.RenderStepped:wait()
- end
- wait()
- for i = 1,4 do
- armleft.C0 = armleft.C0 * CFrame.new(0,.3,0)
- runsrv.RenderStepped:wait()
- end
- wait()
- end
- wait(.5)
- for i = 1,300 do
- root.CFrame = root.CFrame * CFrame.Angles(.9,.8,.5)
- runsrv.RenderStepped:Wait()
- end
- wait(1.4)
- for i = 1,70 do
- root.CFrame = root.CFrame * CFrame.Angles(3,7,6)
- runsrv.RenderStepped:Wait()
- end
- wait(.2)
- laptopkapputt2()
- wait()
- laptopkapputt2()
- wait()
- laptopkapputt2()
- wait()
- laptopkapputt2()
- wait()
- armright.C0 = armrightold
- armleft.C0 = armleftold
- armright.C0 = armright.C0 * CFrame.Angles(0,0,.9)
- armleft.C0 = armleft.C0 * CFrame.Angles(0,0,-1.5)
- --armleft.C0 = armleft.C0 * CFrame.new(0,-3,0)
- root.CFrame = oldroot
- root.CFrame = root.CFrame * CFrame.new(-4,0,0)
- wait(1.7)
- for i = 1,500 do
- root.CFrame = root.CFrame * CFrame.Angles(.9,.8,.5)
- runsrv.RenderStepped:Wait()
- end
- local fish = Instance.new("Part")
- local mesh = Instance.new("SpecialMesh")
- fish.Anchored = true
- fish.CanCollide = false
- fish.Name = "fish"
- fish.Transparency = 0
- fish.TopSurface = Enum.SurfaceType.Smooth
- fish.BottomSurface = Enum.SurfaceType.Smooth
- fish.Parent = workspace
- fish.CFrame = char.Torso.CFrame * CFrame.new(4,-2,0)
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.Scale = Vector3.new(0.03, 0.03, 0.03)
- mesh.MeshId = "rbxassetid://711628355"
- mesh.TextureId = "rbxassetid://711628404"
- mesh.Parent = fish
- for i = 1,15 do
- fish.CFrame = fish.CFrame * CFrame.new(0,.2,0)
- runsrv.RenderStepped:Wait()
- end
- wait(1)
- for i = 1,15 do
- fish.CFrame = fish.CFrame * CFrame.new(0,-.3,0)
- runsrv.RenderStepped:Wait()
- end
- for i = 1,620 do
- root.CFrame = root.CFrame * CFrame.Angles(.9,.8,.5)
- runsrv.RenderStepped:Wait()
- end
- for i = 1,40 do
- root.CFrame = root.CFrame * CFrame.new(0,-.5,0)
- runsrv.RenderStepped:wait()
- end
- for i = 1,40 do
- root.CFrame = root.CFrame * CFrame.new(0,.5,0)
- runsrv.RenderStepped:wait()
- end
- for i = 1,30 do
- root.CFrame = root.CFrame * CFrame.Angles(33,22,55)
- runsrv.RenderStepped:Wait()
- end
Add Comment
Please, Sign In to add comment