i am trying to make a frame that you can change the size
i found these in robeats
like this:
i tried this:
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local holding = false
script.Parent.Messages.Sizer.MouseButton1Down:Connect(function()
holding = true
end)
script.Parent.Messages.Sizer.MouseButton1Up:Connect(function()
holding = false
end)
Mouse.Move:Connect(function()
if holding == true then
local Position = UserInputService:GetMouseLocation()
script.Parent.Messages.Size = UDim2.fromOffset(Position.X + 20, Position.Y)
end
end)