Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
playerGui = player:()
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = playerGui
Frame = .()
Frame.Size = .(, , , )
Frame.Position = .(, -, , -)
Frame.BackgroundColor3 = .(, , )
Frame.BorderSizePixel =
Frame.Parent = ScreenGui
dragging, dragInput, dragStart, startPos
(input)
delta = input.Position - dragStart
Frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
Frame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = Frame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
Frame.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
:().InputChanged:((input)
dragging input == dragInput
(input)
)
Title = .()
Title.Text =
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.BackgroundTransparency =
Title.TextColor3 = .(, , )
Title.Font = .Font.SourceSansBold
Title.TextSize =
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = Frame
Close = .()
Close.Text =
Close.Size = .(, , , )
Close.Position = .(, -, , )
Close.BackgroundColor3 = .(, , )
Close.TextColor3 = .(, , )
Close.Font = .Font.SourceSansBold
Close.TextSize =
Close.Parent = Frame
Close.MouseButton1Click:(()
ScreenGui:()
)
TextBox = .()
TextBox.PlaceholderText =
TextBox.Size = .(, -, , )
TextBox.Position = .(, , , )
TextBox.BackgroundColor3 = .(, , )
TextBox.TextColor3 = .(, , )
TextBox.Font = .Font.SourceSans
TextBox.TextSize =
TextBox.Parent = Frame
Button = .()
Button.Text =
Button.Size = .(, -, , )
Button.Position = .(, , , )
Button.BackgroundColor3 = .(, , )
Button.TextColor3 = .(, , )
Button.Font = .Font.SourceSansBold
Button.TextSize =
Button.Parent = Frame
(str, sep)
result = {}
s .(str, ..sep..)
.(result, s)
result
Button.MouseButton1Click:(()
text = TextBox.Text
text ==
ids = (text, )
_, idText (ids)
id = (idText)
id
success, model = (()
:( .. id)[]
)
success model
model.Parent = player.Backpack
(, id)
( .. idText)
( .. (idText))
)You need to write the id of the item and its client so nobody can see what you have in your hand and if its like a Hyperlasergun it will not eliminate people if you know what im talking about