forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Playstations UI
119 lines (85 loc) · 3.19 KB
/
Playstations UI
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
local GUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/aaaa"))()
local UI = GUI:CreateWindow("the um","lop")
local Home = UI:addPage("Home",1,true,6)
Home:addLabel("This is a Label","Lol this funny")
Home:addButton("This is a button",function()
game.StarterGui:SetCore("SendNotification",{
Title = "Clicked";
Text = "Lo";
})
end)
Home:addToggle("This is a Toggle",function(value)
print(value)
if value == false then
game.StarterGui:SetCore("SendNotification",{
Title = "Toggle";
Text = "false";
})
else
game.StarterGui:SetCore("SendNotification",{
Title = "Toggle";
Text = "true";
})
end
end)
Home:addSlider("This is a Slider",16,100,function(value)
print(value)
end)
Home:addTextBox("This is a TextBox","Um",function(value)
game.StarterGui:SetCore("SendNotification",{
Title = "Wrote";
Text = value;
})
end)
Home:addDropdown("This is a Dropdown",{"Um","Yep","Lop","GG"},1,function(value)
game.StarterGui:SetCore("SendNotification",{
Title = "Selected :";
Text = value;
})
end)
-- Just an example of how you would actually use it i guess
local LP = UI:addPage("Local",2,false,6)
-- Label
LP:addLabel("Local","Don't use in games with anti cheats")
--- Button
LP:addButton("DIE",function()
game.Players.LocalPlayer.Character.Humanoid.Health = 0
end)
-- Toggle
LP:addToggle("Sprint",function(value)
if value == false then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
else
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 24
end
end)
-- Slider
LP:addSlider("WalkSpeed",16,150,function(value)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
end)
-- Textbox
LP:addTextBox("Jump Power / 50 is default","Number here",function(value)
game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
end)
-- Dropdown
local PLIST = {}
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
table.insert(PLIST,v.DisplayName)
end
LP:addDropdown("Teleport to Player",PLIST,4,function(value)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
end)
-- Spam
LP:addLabel("Spam","This is just to show how it looks with more ui elements")
LP:addDropdown("Teleport to Player",PLIST,4,function(value)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
end)
LP:addDropdown("Teleport to Player",PLIST,4,function(value)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
end)
LP:addDropdown("Teleport to Player",PLIST,4,function(value)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
end)
LP:addDropdown("Teleport to Player",PLIST,4,function(value)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
end)