-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
142 lines (125 loc) · 3.24 KB
/
main.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
-- local plr = game:GetService("Players").LocalPlayer
local char = game:GetService("Players").LocalPlayer.Character or Player.CharacterAdded:Wait()
local humanoid = char:WaitForChild('Humanoid')
local Mercury = loadstring(game:HttpGet("https://raw.githubusercontent.com/deeeity/mercury-lib/master/src.lua"))()
local GUI = Mercury:Create {
Name = "z4's hub",
Size = UDim2.fromOffset(400, 500),
Theme = Mercury.Themes.Serika,
Link = "https://github.com/deeeity/mercury-lib"
}
-------------------------
-- General
-------------------------
local General = GUI:Tab {
Name = "General",
Icon = "rbxassetid://10162704828"
}
local RJBtn = General:Button {
Name = "Rejoin",
Description = "Rejoins you to the server you were last in",
Callback = function()
General:prompt{
Title = "Rejoin",
Text = "Are you sure you want to rejoin?",
Buttons = {
Yes = function()
local ts = game:GetService("TeleportService")
local p = game:GetService("Players").LocalPlayer
ts:Teleport(game.PlaceId, p)
GUI:Notification {
Title = "Rejoin",
Text = "Rejoining...",
Duration = 5,
Callback = function() end
}
end,
No = function()
return
end
}
}
end
}
local fps = General:Button {
Name = "FPS",
Description = "Lets you know of your current FPS.",
Callback = function()
GUI:Notification {
Title = "FPS",
Text = "FPS: " .. Workspace:GetRealPhysicsFPS()
}
end
}
local fullbright = General:Button {
Name = "Fullbright",
StartingState = false,
Description = "Brights up the world!",
Callback = function(state)
loadstring(game:HttpGet("https://pastebin.com/raw/06iG6YkU"), false)()
end
}
-------------------------
-- Movement
-------------------------
local Movement = GUI:Tab {
Name = "Movement",
Icon = "rbxassetid://10162222820"
}
local SpeedSlider = Movement:slider {
Name = "Speed",
Default = 16,
Min = 16,
Max = 500,
Callback = function(v)
humanoid.WalkSpeed = v
if humanoid.Health = 0 then
wait(3)
humanoid.WalkSpeed = v
end
end
}
local jpSlider = Movement:slider {
Name = "Jump Power",
Default = 50,
Min = 50,
Max = 1000,
Callback = function(v)
humanoid.JumpPower = v
end
}
-------------------------
-- Player
-------------------------
local Player = GUI:Tab {
Name = "Player",
Icon = "rbxassetid://10162555280"
}
local TpToPlayer = Player:TextBox {
Name = "Teleport to Player",
Callback = function(text)
local plr1 = game.Players.LocalPlayer.Character
local plr2 = game.Workspace:FindFirstChild(text)
plr1.HumanoidRootPart.CFrame = plr2.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
local notificationMsg = "Teleported to " .. text
GUI:Notification{
Title = "TP",
Text = notificationMsg,
Duration = 3,
Callback = function() end
}
end
}
local Noclip = Player:Button {
Name = "Noclip",
Description = "Walk through ANYTHING!",
Callback = function()
humanoid:ChangeState(11)
end
}
GUI:Credit{
Name = "whos_ian",
Description = "Scripting / Coding",
V3rm = "whosian",
Discord = "iаn#4332"
}