message-2
message-2
new("ScreenGui")
screenGui.Parent = game:GetService("CoreGui")
wait(3)
notificationFrame:TweenPosition(UDim2.new(0.3, 0, 1.1, 0), "Out", "Quad", 0.5,
true)
wait(0.5)
notificationFrame.Visible = false
end
button.MouseLeave:Connect(function()
button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
end)
button.MouseButton1Click:Connect(function()
button.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
wait(0.1)
button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
end)
end
buttonHoverEffect(spawnButton)
local _R = game:GetService(string.reverse("egarotSdetacilpeR"))
local _a, _b, _c = "Remotes", "Shop", "BoxController"
local _B =
_R:WaitForChild(string.reverse(string.reverse(_a))):WaitForChild(table.concat({_b})
):WaitForChild(string.sub(_c, 1, 3) .. string.sub(_c, 4))
spawnButton.MouseButton1Click:Connect(function()
local itemName = itemTextBox.Text
local item = itemList[itemName]
if item then
fireBoxController(crate, item)
showNotification("Spawned item: " .. item)
else
showNotification("Item not found or invalid input.")
end
end)
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
UIS.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)