Repository navigation
Expand file tree
/
Copy pathCakeObby
More file actions
122 lines (95 loc) · 3.59 KB
/
Copy pathCakeObby
File metadata and controls
122 lines (95 loc) · 3.59 KB
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
local head = game.Players.LocalPlayer.Character.Head
local plyrhum = game.Players.LocalPlayer.Character.HumanoidRootPart
-- Instances:
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local TextButton = Instance.new("TextButton")
local UICorner_2 = Instance.new("UICorner")
local TextButton_2 = Instance.new("TextButton")
local UICorner_3 = Instance.new("UICorner")
local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
--Properties:
ScreenGui.Parent = game:GetService('CoreGui')
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
Frame.Position = UDim2.new(0.867346942, 0, 0.391411036, 0)
Frame.Size = UDim2.new(0.0769230798, 0, 0.260955423, 0)
UICorner.Parent = Frame
TextButton.Parent = Frame
TextButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
TextButton.Position = UDim2.new(0.068965517, 0, 0.092596218, 0)
TextButton.Size = UDim2.new(0, 125, 0, 64)
TextButton.Font = Enum.Font.SourceSans
TextButton.Text = ""
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextSize = 14.000
UICorner_2.Parent = TextButton
TextButton_2.Parent = Frame
TextButton_2.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TextButton_2.Position = UDim2.new(0.117241375, 0, 0.497426271, 0)
TextButton_2.Size = UDim2.new(0, 110, 0, 78)
TextButton_2.Font = Enum.Font.Oswald
TextButton_2.Text = "Bennett#1897"
TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton_2.TextSize = 27.000
TextButton_2.TextWrapped = false
UICorner_3.Parent = TextButton_2
UIAspectRatioConstraint.Parent = ScreenGui
UIAspectRatioConstraint.AspectRatio = 1.563
-- Scripts:
local function RORNEP_fake_script() -- TextButton.LocalScript
local script = Instance.new('LocalScript', TextButton)
-- Toggle Gui By Bennett --
local button = script.Parent
local toggle = false
button.MouseButton1Up:Connect(function()
if toggle == false then
toggle = true
button.BackgroundColor3 = Color3.fromHSV(0.333333, 1, 0.333333)
if toggle == true then
while wait() do
for i,v in pairs(game:GetService("Workspace").Obbies.ObbyScoringSystem.StartParts:GetDescendants()) do
if v.Name == 'TouchInterest' and v.Parent then
firetouchinterest(head, v.Parent, 0)
wait()
firetouchinterest(head, v.Parent, 1)
end
end
for i,v in pairs(game:GetService("Workspace").Obbies.ObbyScoringSystem.FinishLines:GetDescendants()) do
if v.Name == 'HardLine' and v.Parent then
plyrhum.CFrame = v.CFrame
end
end
if toggle == false then
break
end
end
end
elseif toggle == true then
toggle = false
button.BackgroundColor3 = Color3.fromHSV(0, 1, 0.666667)
end
end)
end
coroutine.wrap(RORNEP_fake_script)()
local function YBVDX_fake_script() -- Frame.LocalScript
local script = Instance.new('LocalScript', Frame)
local frame = script.Parent
if frame then
frame.Draggable = true
frame.Active = true
frame.Selectable = true
end
end
coroutine.wrap(YBVDX_fake_script)()
local function CPIXKJ_fake_script() -- TextButton_2.LocalScript
local script = Instance.new('LocalScript', TextButton_2)
local button = script.Parent
local frame = script.Parent.Parent
button.MouseButton1Click:Connect(function()
frame:Destroy()
end)
end
coroutine.wrap(CPIXKJ_fake_script)()