R

tool giver ui

public
rrixh Apr 09, 2024 Never 91
Clone
Lua toolgiver_lulaslollipop 156 lines (142 loc) | 5.28 KB
1
--[[
2
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
3
]]
4
local ScreenGui = Instance.new("ScreenGui")
5
local Frame = Instance.new("Frame")
6
local ScrollingFrame = Instance.new("ScrollingFrame")
7
local UIListLayout = Instance.new("UIListLayout")
8
local TextButton = Instance.new("TextButton")
9
local TextLabel = Instance.new("TextLabel")
10
local TextButton_2 = Instance.new("TextButton")
11
12
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
13
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
14
ScreenGui.ResetOnSpawn = false
15
16
Frame.Parent = ScreenGui
17
Frame.Active = true
18
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
19
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
20
Frame.Position = UDim2.new(0.0610425249, 0, 0.0939490423, 0)
21
Frame.Size = UDim2.new(0, 218, 0, 225)
22
23
ScrollingFrame.Parent = Frame
24
ScrollingFrame.Active = true
25
ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
26
ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
27
ScrollingFrame.Position = UDim2.new(0.0871559605, 0, 0.155555561, 0)
28
ScrollingFrame.Size = UDim2.new(0, 187, 0, 136)
29
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 35, 0)
30
31
UIListLayout.Parent = ScrollingFrame
32
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
33
34
TextButton.Parent = ScrollingFrame
35
TextButton.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
36
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
37
TextButton.Size = UDim2.new(0, 155, 0, 39)
38
TextButton.Visible = false
39
TextButton.Font = Enum.Font.SourceSans
40
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
41
TextButton.TextSize = 20.000
42
TextButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
43
TextButton.TextStrokeTransparency = 0.000
44
TextButton.TextWrapped = true
45
46
TextLabel.Parent = Frame
47
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
48
TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
49
TextLabel.Position = UDim2.new(-0.00129664713, 0, -0.000140406293, 0)
50
TextLabel.Size = UDim2.new(0, 218, 0, 25)
51
TextLabel.Font = Enum.Font.SourceSans
52
TextLabel.Text = "Tool Giver"
53
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
54
TextLabel.TextSize = 14.000
55
56
TextButton_2.Parent = Frame
57
TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 255, 30)
58
TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
59
TextButton_2.Position = UDim2.new(0.0825688094, 0, 0.804444432, 0)
60
TextButton_2.Size = UDim2.new(0, 180, 0, 30)
61
TextButton_2.Font = Enum.Font.SourceSans
62
TextButton_2.Text = "update list"
63
TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
64
TextButton_2.TextSize = 14.000
65
66
local function FNDR_fake_script() -- Frame.LocalScript
67
local script = Instance.new('LocalScript', Frame)
68
69
local button = script.Parent.ScrollingFrame.TextButton
70
button.Parent = nil
71
button.Name = "slaves"
72
local function equiptool(v)
73
local chr = game.Players.LocalPlayer.Character
74
local root = chr.HumanoidRootPart
75
local hummy = chr:FindFirstChildOfClass"Humanoid"
76
local oldpos = root.CFrame
77
if hummy.Parent:FindFirstChildOfClass("Tool") then
78
hummy:UnequipTools()
79
end
80
wait(0.005) --fix unequiptools lag or smth
81
root.CFrame = v.Handle.CFrame
82
wait(0.005)
83
root.CFrame = oldpos
84
wait(0.1)
85
hummy.Sit = true
86
hummy.Jump = true
87
hummy.Sit = false
88
hummy.PlatformStand = false
89
hummy:ChangeState(Enum.HumanoidStateType.Jumping)
90
if hummy.Parent:FindFirstChildOfClass("Tool") then
91
hummy:UnequipTools()
92
end
93
end
94
local function updatelist()
95
for i, v in script.Parent.ScrollingFrame:GetDescendants() do
96
if v:IsA("TextButton") then
97
v:Destroy()
98
end
99
end
100
for i, v in workspace:GetDescendants() do
101
if v:IsA("Tool") then
102
if v:FindFirstChild("Handle") then
103
local clonebutton = button:Clone()
104
clonebutton.Parent = script.Parent.ScrollingFrame
105
clonebutton.Visible = true
106
clonebutton.Text = v.Name
107
clonebutton.MouseButton1Click:Connect(function()
108
equiptool(v)
109
end)
110
end
111
end
112
end
113
end
114
script.Parent.TextButton.MouseButton1Click:Connect(updatelist)
115
end
116
coroutine.wrap(FNDR_fake_script)()
117
local function SGRWUDK_fake_script() -- Frame.DragScript
118
local script = Instance.new('LocalScript', Frame)
119
120
local UIS = game:GetService('UserInputService')
121
local frame = script.Parent
122
local dragToggle = nil
123
local dragSpeed = 0
124
local dragStart = nil
125
local startPos = nil
126
127
local function updateInput(input)
128
local delta = input.Position - dragStart
129
local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
130
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
131
game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
132
end
133
134
frame.InputBegan:Connect(function(input)
135
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
136
dragToggle = true
137
dragStart = input.Position
138
startPos = frame.Position
139
input.Changed:Connect(function()
140
if input.UserInputState == Enum.UserInputState.End then
141
dragToggle = false
142
end
143
end)
144
end
145
end)
146
147
UIS.InputChanged:Connect(function(input)
148
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
149
if dragToggle then
150
updateInput(input)
151
end
152
end
153
end)
154
155
end
156
coroutine.wrap(SGRWUDK_fake_script)()