View difference between Paste ID: T5bUZKGY and TZz7aWxq
SHOW: | | - or go back to the newest paste.
1-
local players = game:GetService("Players") 
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
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") 
6-
local plyr = players.breezyshadow012 
6+
7
local lighting = game:GetService("Lighting") 
8
local dark = false 
9
10
local plyr = players.timetodie23232223 
11
local char = plyr.Character 
12
local head = char.Head 
13
local torso = char.Torso 
14
local rarm = char["Right Arm"] 
15
local larm = char["Left Arm"] 
16
local lleg = char["Left Leg"] 
17
local rleg = char["Right Leg"] 
18
local name = "Weeping Angel" 
19
pcall(function() char[name]:remove() end)
20
local model = Instance.new("Model", char) 
21
model.Name = name 
22
char.Humanoid.WalkSpeed = 0 
23
pcall(function() char.Animate:remove() end) 
24
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) 
25
part.formFactor = form 
26
part.Size = Vector3.new(sizex, sizey, sizez) 
27
part.BrickColor = BrickColor.new(color) 
28
part.Anchored = anchored 
29
part.CanCollide = cancollide 
30
part.Transparency = trans 
31
part.Reflectance = reflect 
32
part.Name = name 
33
part.TopSurface = topsurf 
34
part.BottomSurface = botsurf 
35
part:BreakJoints() 
36
weld.Part0 = part 
37
weld.Part1 = cz 
38
weld.C1 = ca 
39-
mesh.Bevel = bevel 
39+
40
mesh.Parent = part 
41
mesh.Scale = Vector3.new(scalex, scaley, scalez) 
42
if mesh.className == "BlockMesh" then 
43
mesh.Plastic =  plastic
44
end 
45
if mesh.className == "SpecialMesh" then 
46
mesh.MeshType = type 
47
end 
48
if mesh.className == "SpecialMesh" and mesh.MeshType == "FileMesh" then 
49
mesh.MeshId = id 
50
end 
51
end 
52
53
local part1 = Instance.new("Part", model) 
54
local mesh1 = Instance.new("BlockMesh") 
55
local weld1 = Instance.new("Weld") 
56
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") 
57
local part2 = Instance.new("Part", model) 
58
local mesh2 = Instance.new("BlockMesh") 
59
local weld2 = Instance.new("Weld") 
60
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") 
61
local part3 = Instance.new("Part", model) 
62
local mesh3 = Instance.new("BlockMesh") 
63
local weld3 = Instance.new("Weld") 
64
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") 
65
local part4 = Instance.new("Part", model) 
66
local mesh4 = Instance.new("BlockMesh") 
67
local weld4 = Instance.new("Weld") 
68
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") 
69
local part5 = Instance.new("Part", model) 
70
local mesh5 = Instance.new("BlockMesh") 
71
local weld5 = Instance.new("Weld") 
72
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") 
73
local part6 = Instance.new("Part", model) 
74
local mesh6 = Instance.new("SpecialMesh") 
75
local weld6 = Instance.new("Weld") 
76
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") 
77
local part7 = Instance.new("Part", model) 
78
local mesh7 = Instance.new("BlockMesh") 
79
local weld7 = Instance.new("Weld") 
80
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") 
81
for i = 1, 8 do 
82
local part7 = Instance.new("Part", model) 
83
local mesh7 = Instance.new("BlockMesh") 
84
local weld7 = Instance.new("Weld") 
85
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") 
86
local part8 = Instance.new("Part", model) 
87
local mesh8 = Instance.new("BlockMesh") 
88
local weld8 = Instance.new("Weld") 
89
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") 
90
wait() 
91
end 
92
93
pcall(function() plyr.PlayerGui.ScreenGui:remove() end) 
94
local sc = Instance.new("ScreenGui", plyr.PlayerGui) 
95
96
local tt = Instance.new("TextButton", sc) 
97
tt.Position = UDim2.new(0, 300, 0, 250) 
98
tt.Size = UDim2.new(0, 200, 0, 20) 
99
tt.Text = "dark" 
100
tt.BackgroundColor = BrickColor.new("White") 
101
tt.MouseButton1Down:connect(function() 
102
if dark == false then 
103
dark = true 
104
coroutine.resume(coroutine.create(function() 
105
game.Lighting.Ambient = Color3.new(-1, -1, -1) 
106
game.Lighting.TimeOfDay = "00:00:00" 
107
char.Humanoid.WalkSpeed = 45 
108
wait(2.5) 
109
game.Lighting.Ambient = Color3.new(1, 1, 1) 
110
game.Lighting.TimeOfDay = "14:00:00" 
111
char.Humanoid.WalkSpeed = 0 
112
wait(0.5) 
113
game.Lighting.Ambient = Color3.new(-1, -1, -1) 
114
game.Lighting.TimeOfDay = "00:00:00" 
115
char.Humanoid.WalkSpeed = 45 
116
wait(5) 
117
game.Lighting.Ambient = Color3.new(1, 1, 1) 
118
game.Lighting.TimeOfDay = "14:00:00" 
119
char.Humanoid.WalkSpeed = 0 
120
wait() 
121
end)) 
122
dark = false 
123
end 
124
end)
125
126
while wait() do 
127
for _,v in pairs(players:GetChildren()) do 
128
if dark == true and (v.Character.Torso.Position - torso.Position).magnitude < 5 then 
129
v.Character:BreakJoints() 
130
end 
131
end 
132
end