Advertisement
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,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")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 local players = game:GetService("Players")
- local wrkspace = game:GetService("Workspace")
- local lighting = game:GetService("Lighting")
- local dark = false
- local plyr = players.timetodie23232223
- local char = plyr.Character
- local head = char.Head
- local torso = char.Torso
- local rarm = char["Right Arm"]
- local larm = char["Left Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local name = "Weeping Angel"
- pcall(function() char[name]:remove() end)
- local model = Instance.new("Model", char)
- model.Name = name
- char.Humanoid.WalkSpeed = 0
- pcall(function() char.Animate:remove() end)
- function create(part, weld, mesh, sizex, sizey, sizez, scalex, scaley, scalez, type, bevel, id, cz, ca, color, form, anchored, cancollide, trans, reflect, name, topsurf, botsurf)
- part.formFactor = form
- part.Size = Vector3.new(sizex, sizey, sizez)
- part.BrickColor = BrickColor.new(color)
- part.Anchored = anchored
- part.CanCollide = cancollide
- part.Transparency = trans
- part.Reflectance = reflect
- part.Name = name
- part.TopSurface = topsurf
- part.BottomSurface = botsurf
- part:BreakJoints()
- weld.Part0 = part
- weld.Part1 = cz
- weld.C1 = ca
- weld.Parent = part
- mesh.Parent = part
- mesh.Scale = Vector3.new(scalex, scaley, scalez)
- if mesh.className == "BlockMesh" then
- mesh.Plastic = plastic
- end
- if mesh.className == "SpecialMesh" then
- mesh.MeshType = type
- end
- if mesh.className == "SpecialMesh" and mesh.MeshType == "FileMesh" then
- mesh.MeshId = id
- end
- end
- local part1 = Instance.new("Part", model)
- local mesh1 = Instance.new("BlockMesh")
- local weld1 = Instance.new("Weld")
- create(part1, weld1, mesh1, 0.2, 0.2, 0.2, 10.05, 10.05, 5.05, "", 0, "", torso, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part2 = Instance.new("Part", model)
- local mesh2 = Instance.new("BlockMesh")
- local weld2 = Instance.new("Weld")
- create(part2, weld2, mesh2, 0.2, 0.2, 0.2, 5.05, 10.05, 5.05, "", 0, "", rarm, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part3 = Instance.new("Part", model)
- local mesh3 = Instance.new("BlockMesh")
- local weld3 = Instance.new("Weld")
- create(part3, weld3, mesh3, 0.2, 0.2, 0.2, 5.05, 10.05, 5.05, "", 0, "", larm, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part4 = Instance.new("Part", model)
- local mesh4 = Instance.new("BlockMesh")
- local weld4 = Instance.new("Weld")
- create(part4, weld4, mesh4, 0.2, 0.2, 0.2, 5.05, 10.05, 5.05, "", 0, "", rleg, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part5 = Instance.new("Part", model)
- local mesh5 = Instance.new("BlockMesh")
- local weld5 = Instance.new("Weld")
- create(part5, weld5, mesh5, 0.2, 0.2, 0.2, 5.05, 10.05, 5.05, "", 0, "", lleg, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part6 = Instance.new("Part", model)
- local mesh6 = Instance.new("SpecialMesh")
- local weld6 = Instance.new("Weld")
- create(part6, weld6, mesh6, 0.2, 0.2, 0.2, 11.5, 6.5, 6.5, "Head", 0, "", head, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Head", "Smooth", "Smooth")
- local part7 = Instance.new("Part", model)
- local mesh7 = Instance.new("BlockMesh")
- local weld7 = Instance.new("Weld")
- create(part7, weld7, mesh7, 0.2, 0.2, 0.2, 11.5, 1, 1, "", 0, "", torso, CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- for i = 1, 8 do
- local part7 = Instance.new("Part", model)
- local mesh7 = Instance.new("BlockMesh")
- local weld7 = Instance.new("Weld")
- create(part7, weld7, mesh7, 0.2, 0.2, 0.2, 11.5, 23, 5, "", 0, "", torso, CFrame.new(0-i, i/3.5, 0.75) * CFrame.Angles(0, 0, -i/10), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- local part8 = Instance.new("Part", model)
- local mesh8 = Instance.new("BlockMesh")
- local weld8 = Instance.new("Weld")
- create(part8, weld8, mesh8, 0.2, 0.2, 0.2, 11.5, 23, 5, "", 0, "", torso, CFrame.new(0+i, i/3.5, 0.75) * CFrame.Angles(0, 0, i/10), "Mid stone grey", "Custom", false, false, 0, 0, "Torso", "Smooth", "Smooth")
- wait()
- end
- pcall(function() plyr.PlayerGui.ScreenGui:remove() end)
- local sc = Instance.new("ScreenGui", plyr.PlayerGui)
- local tt = Instance.new("TextButton", sc)
- tt.Position = UDim2.new(0, 300, 0, 250)
- tt.Size = UDim2.new(0, 200, 0, 20)
- tt.Text = "dark"
- tt.BackgroundColor = BrickColor.new("White")
- tt.MouseButton1Down:connect(function()
- if dark == false then
- dark = true
- coroutine.resume(coroutine.create(function()
- game.Lighting.Ambient = Color3.new(-1, -1, -1)
- game.Lighting.TimeOfDay = "00:00:00"
- char.Humanoid.WalkSpeed = 45
- wait(2.5)
- game.Lighting.Ambient = Color3.new(1, 1, 1)
- game.Lighting.TimeOfDay = "14:00:00"
- char.Humanoid.WalkSpeed = 0
- wait(0.5)
- game.Lighting.Ambient = Color3.new(-1, -1, -1)
- game.Lighting.TimeOfDay = "00:00:00"
- char.Humanoid.WalkSpeed = 45
- wait(5)
- game.Lighting.Ambient = Color3.new(1, 1, 1)
- game.Lighting.TimeOfDay = "14:00:00"
- char.Humanoid.WalkSpeed = 0
- wait()
- end))
- dark = false
- end
- end)
- while wait() do
- for _,v in pairs(players:GetChildren()) do
- if dark == true and (v.Character.Torso.Position - torso.Position).magnitude < 5 then
- v.Character:BreakJoints()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement