This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.lua
418 lines (349 loc) · 11.2 KB
/
script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
-- Services n stuff
local RNs = game:GetService("RunService")
local CAs = game:GetService("ContextActionService")
local TWNs = game:GetService("TweenService")
local UIs = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local hui = game.CoreGui
local asset = getcustomasset or getsynasset
-- Init
if workspace:FindFirstChild("cstatus") then workspace.cstatus:Destroy() end
if hui:FindFirstChild("ocminus") then hui.ocminus:Destroy() end
local ocminus = Instance.new("ScreenGui", hui)
ocminus.Name = "ocminus"
ocminus.DisplayOrder = 6969
ocminus.IgnoreGuiInset = true
ocminus.ResetOnSpawn = false
local bandicam = Instance.new("ImageLabel", ocminus)
bandicam.BackgroundTransparency = 1
bandicam.Name = "bandicam"
bandicam.Size = UDim2.new(1, 0, 0.08, 0)
bandicam.ScaleType = Enum.ScaleType.Fit
bandicam.Visible = false
local function ntf(text, color, time)
plr.PlayerGui.LocalOutput:Fire(text, color or Color3.new(1, 1, 1), time or 5)
end
local function restricted()
return ntf("This function has been restricted by OC-!", Color3.new(1, 0.2, 0.2), 6)
end
for _, x in pairs(_G.OCMevs or {}) do
x:Disconnect()
end
_G.OCMevs = {}
local function evn(e)
_G.OCMevs[#_G.OCMevs+1] = e
end
local status = Instance.new("Message", workspace)
status.Name = "cstatus"
status.Text = "loading"
local function sstatus(act, ...)
local args = {...}
if act == "download" then status.Text = ("Downloading Files %s/%s"):format(args[1], args[2]) end
end
local rootLink = "https://raw.githubusercontent.com/Gabe616/OCMinus/main/"
local function ghLink(x)
return rootLink.."assets/links/"..x
end
local links = {
videos = {
intro = ghLink("videos/intro.webm"),
intro1 = ghLink("videos/intro1.webm"),
intro2 = ghLink("videos/intro2.webm"),
intro3 = ghLink("videos/intro3.webm"),
intro4 = ghLink("videos/intro4.webm"),
intro5 = ghLink("videos/intro5.webm"),
},
familyguy = {
vid1 = ghLink("familyguy/vid1.webm"),
vid2 = ghLink("familyguy/vid2.webm"),
vid3 = ghLink("familyguy/vid3.webm"),
vid4 = ghLink("familyguy/vid4.webm"),
vid5 = ghLink("familyguy/vid5.webm"),
vid6 = ghLink("familyguy/vid6.webm"),
vid7 = ghLink("familyguy/vid7.webm"),
vid8 = ghLink("familyguy/vid8.webm"),
vid9 = ghLink("familyguy/vid9.webm"),
vid10 = ghLink("familyguy/vid10.webm"),
vid11 = ghLink("familyguy/vid11.webm"),
vid12 = ghLink("familyguy/vid12.webm"),
vid13 = ghLink("familyguy/vid13.webm"),
vid14 = ghLink("familyguy/vid14.webm"),
vid15 = ghLink("familyguy/vid15.webm")
}
}
local atts = {
videos = ".webm",
familyguy = ".webm"
}
local maxFiles = 21
local files = 0
-- File Loader
sstatus("download", 0, maxFiles)
if not isfolder("ocminus") then makefolder("ocminus") end
for A, B in pairs(links) do
local a = atts[A]
if not isfolder("ocminus/"..A) then makefolder("ocminus/"..A) end
for f, x in pairs(B) do
sstatus("download", files, maxFiles)
local path = "ocminus/"..A.."/"..f..a
if not isfile(path) then
writefile(path, game:HttpGet(x))
asset(path)
end
files += 1
sstatus("download", files, maxFiles)
end
end
bandicam.Image = "rbxassetid://12956416057"
local function playVideo(video)
local vid = Instance.new("VideoFrame")
vid.Parent = ocminus
vid.Name = "video"
vid.BackgroundTransparency = 1
vid.Size = UDim2.new(1, 0, 1, 0)
vid.Video = video
vid.Visible = true
vid.Volume = 2
repeat task.wait() until vid.IsLoaded
vid:Play()
vid.Ended:Wait()
vid:Destroy()
end
status.Parent = nil
-- trolling
local ui = plr.PlayerGui.Edit
local settings = ui.SettingsFrame
settings.ThisFrame.CameraSens.Visible = false
settings.ThisFrame.Copyrighted.Visible = false
settings.ThisFrame.DarkMode.Visible = false
settings.ThisFrame.DayValue.Visible = false
settings.ThisFrame.DragEnabled.Visible = false
settings.ThisFrame.InvisiblePlayers.Visible = false
settings.ThisFrame.IsGodMode.Visible = false
settings.ThisFrame.MoveUnderground.Visible = false
settings.ThisFrame.SnapRotation.Visible = false
settings.ThisFrame.TeamRequests.Visible = false
local incr = settings.ThisFrame.Increments
incr.Visible = true
if incr:FindFirstChild("MoveBoxA") then incr.MoveBoxA:Destroy() end
if incr:FindFirstChild("RotateBoxA") then incr.RotateBoxA:Destroy() end
if incr:FindFirstChild("Block") then incr.Block:Destroy() end
incr.MoveBox.Visible = false
incr.RotateBox.Visible = false
local faint = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular, Enum.FontStyle.Normal)
local rotateBoxA = Instance.new("TextLabel", incr)
rotateBoxA.Name = "RotateBoxA"
rotateBoxA.FontFace = faint
rotateBoxA.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
rotateBoxA.BorderSizePixel = 0
rotateBoxA.AnchorPoint = Vector2.new(0, 0.5)
rotateBoxA.Position = UDim2.new(0.55, 0, 0.5, 0)
rotateBoxA.Size = UDim2.new(0.45, 0, 1, 0)
rotateBoxA.TextScaled = true
rotateBoxA.TextColor3 = Color3.new(1, 1, 1)
rotateBoxA.Text = "90"
rotateBoxA.ZIndex = 3
incr.RotateBox.Title:Clone().Parent = rotateBoxA
local moveBoxA = rotateBoxA:Clone()
moveBoxA.Parent = incr
moveBoxA.Name = "MoveBoxA"
moveBoxA.Position = UDim2.new(0, 0, 0.5, 0)
moveBoxA:ClearAllChildren()
moveBoxA.Text = "1"
incr.MoveBox.Title:Clone().Parent = moveBoxA
local block = Instance.new("TextButton", incr)
block.Name = "Block"
block.Active = true
block.BackgroundTransparency = 1
block.Text = ""
block.Size = UDim2.new(1, 0, 1, 0)
block.Position = UDim2.new()
block.Activated:Connect(restricted)
for _, x in pairs(getconnections(settings.TutorialButton.Activated)) do
x:Disable()
end
evn(settings.TutorialButton.Activated:Connect(restricted))
local music = settings.ThisFrame.MusicFrame
music.Position = UDim2.new(0.25, 0, 0.875, 0)
music.Mute.Position = music.Back1.Position
music.Back1.Visible = false
music.Back10.Visible = false
music.Skip1.Visible = false
music.Skip10.Visible = false
music.TextLabel.TextXAlignment = Enum.TextXAlignment.Left
local frm = settings.ThisFrame.Frame
local choose = ui.ChooseFrame
local selfr = ui.SelectionFrame
local plugingui = plr.PlayerGui.PluginGui.BackFrame
firesignal(choose.Buttons.Basic.Activated)
if game.SoundService:FindFirstChild("gang") then game.SoundService.gang:Destroy() end
local gang = Instance.new("SoundGroup", game.SoundService)
gang.Volume = 1
gang.Name = "gang"
plr.PlayerGui.Music.CurrentlyPlaying.SoundGroup = gang
local shop = ui.GamepassesFrame.Shop
for _, x in pairs(shop:GetChildren()) do
if not x:IsA("TextButton") then continue end
for _, y in pairs(getconnections(x.Activated)) do
y:Disable()
end
evn(x.Activated:Connect(function()
restricted()
shop.Parent.Visible = false
end))
end
local mptel = plr.PlayerGui["Money+Tele"]
evn(RNs.RenderStepped:Connect(function()
for _, x in pairs(choose.Buttons:GetChildren()) do
if x:IsA("TextButton") then x.Visible = x.Name == "Basic" end
end
plr.leaderstats.Cash.Value = 80085
plr.leaderstats.Gems.Value = 80085
settings.TutorialButton.Position = settings.ClearButton.Position
settings.PermissionButton.Visible = false
settings.RevertButton.Visible = false
settings.ClearButton.Visible = false
settings.TutorialButton.AutoButtonColor = false
frm["Buttons"].Text = "Buttons: 0/∞"
frm["Character Models"].Text = "Character Models: 0/∞"
frm["Conveyors"].Text = "Conveyors: 0/∞"
frm["Moving Parts"].Text = "Moving Parts: 0/∞"
frm["Push Parts"].Text = "Push Parts: 0/∞"
frm["Spin Parts"].Text = "Spin Parts: 0/∞"
frm["Timed Parts"].Text = "Timed Parts: 0/∞"
frm["Water"].Text = "Water: 0/∞"
mptel.TeleButton.MoneyLabel.Text = "$∞"
mptel.TeleButton.MoneyLabel["Cash Limit"].Visible = false
selfr.DeleteButton.Visible = false
selfr.MultiButton.Visible = false
selfr.TeleButton.Visible = false
selfr.SettingsButton.Position = UDim2.new(0.4, -5, 1, -10)
selfr.CloneButton.Position = UDim2.new(0.5, 0, 1, -10)
selfr.ModeButton.Position = UDim2.new(0.6, 5, 1, -10)
selfr.LocalImage.Position = UDim2.new(0.7, 5, 1, -10)
for _, x in pairs(plugingui.Frame.MainFrame:GetChildren()) do
if x:IsA("Frame") then x.Visible = false end
end
bandicam.Visible = plr.PlayerGui.ScreenshotMode.Value
plr.PlayerGui.DidYouKnow.Frame.Desc.Text = "OC- is the best and only Obby Creator enhancement!"
end))
CAs:UnbindAction("Tilt/Teleport")
CAs:UnbindAction("Rotate")
CAs:UnbindAction("Delete")
-- gaslight gatekeep girlboss
local metaID = tick()
_G.ocmMetaID = metaID
local tpObby = "304346361#13"
local OLD
OLD = hookmetamethod(game, "__namecall", function(...)
if _G.ocmMetaID ~= metaID then return OLD(...) end
local args = {...}
if getnamecallmethod() == "FireServer" or getnamecallmethod() == "InvokeServer" then
if tostring(args[1]) == "LoadObby" then
args[2] = tpObby
elseif tostring(args[1]) == "LoadRandomObby" then
args[1] = game.ReplicatedStorage.Events.LoadObby
args[2] = tpObby
end
end
return OLD(unpack(args))
end)
local playing = {}
local function spawnVideo()
local vidI = Random.new():NextInteger(1, 15)
local vid = Instance.new("VideoFrame", ocminus)
vid.Name = "famiyl guy!!!!!!!!!"
vid.BackgroundTransparency = 1
vid.Size = UDim2.new(0, 100, 0, 100)
vid.Video = asset("ocminus/familyguy/vid"..tostring(vidI)..".webm")
vid.Visible = true
vid.Volume = Random.new():NextNumber(1, 10)
local inputs = 0
vid.InputBegan:Connect(function(k)
if k.UserInputType == Enum.UserInputType.MouseButton1 then
inputs += 1
if inputs >= 2 then
table.remove(playing, table.find(playing, vid))
vid:Destroy()
end
end
end)
if #playing >= 2 then
local rng = Random.new():NextInteger(1, #playing)
playing[rng]:Destroy()
table.remove(playing, rng)
end
playing[#playing+1] = vid
repeat task.wait() until vid.IsLoaded and vid.Resolution.Magnitude > 3
local res = vid.Resolution.X / vid.Resolution.Y
local sX, sY = res*0.5, 0.5
vid.Size = UDim2.new(sX, 0, sY, 0)
vid.SizeConstraint = Enum.SizeConstraint.RelativeYY
vid.Volume = 2
local x, y = Random.new():NextNumber(), Random.new():NextNumber()
local spd = Random.new():NextNumber(0.003, 0.005)
local dX, dY = 1, -1
local evan
evan = RNs.RenderStepped:Connect(function()
if not vid.Parent then return evan:Disconnect() end
x += dX*spd
y += dY*spd
if x >= 1 then
x = 1 + (1-x)
dX = -1
elseif x < 0 then
x = math.abs(x)
dX = 1
end
if y >= 1 then
y = 1 + (1-y)
dY = -1
elseif y < 0 then
y = math.abs(y)
dY = 1
end
vid.Position = UDim2.new(x, 0, y, 0)
vid.AnchorPoint = Vector2.new(x, y)
end)
evn(evan)
vid:Play()
vid.Ended:Wait()
table.remove(playing, table.find(playing, vid))
vid:Destroy()
evan:Disconnect()
end
-- hardest part - family guy clips
local canSpawn = false
task.spawn(function()
while _G.ocmMetaID == metaID do
if Random.new():NextNumber() < 0.15 and canSpawn then
task.spawn(spawnVideo)
end
task.wait(Random.new():NextNumber(1, 4))
end
end)
evn(UIs.InputBegan:Connect(function(k, c)
if c then return end
if k.KeyCode == Enum.KeyCode.Delete or k.keyCode == Enum.KeyCode.T then
spawnVideo()
end
end))
-- Play Intro Video Lmao
if not _G.ocmLoaded then
_G.ocmLoaded = true
canSpawn = false
local loaded = "intro"
local random = Random.new():NextInteger(1, 6)-1
if random ~= 0 then loaded ..= tostring(random) end
TWNs:Create(gang, TweenInfo.new(0.6), {
Volume = 0
}):Play()
playVideo(
asset("ocminus/videos/"..loaded..".webm")
)
TWNs:Create(gang, TweenInfo.new(0.6), {
Volume = 0.5
}):Play()
canSpawn = true
else canSpawn = true end
gang.Volume = 0.5