Advertisement
petsim99scriptssdw

Untitled

Dec 1st, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. local screenGui = Instance.new("ScreenGui")
  2. screenGui.Parent = game:GetService("CoreGui")
  3.  
  4. local notificationFrame = Instance.new("Frame")
  5. notificationFrame.Size = UDim2.new(0.4, 0, 0.08, 0)
  6. notificationFrame.Position = UDim2.new(0.3, 0, 0.9, 0)
  7. notificationFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  8. notificationFrame.BackgroundTransparency = 0.3
  9. notificationFrame.BorderSizePixel = 0
  10. notificationFrame.Parent = screenGui
  11. notificationFrame.Visible = false
  12.  
  13. local notificationUICorner = Instance.new("UICorner")
  14. notificationUICorner.CornerRadius = UDim.new(0.1, 0)
  15. notificationUICorner.Parent = notificationFrame
  16.  
  17. local notificationGradient = Instance.new("UIGradient")
  18. notificationGradient.Color = ColorSequence.new{
  19. ColorSequenceKeypoint.new(0, Color3.fromRGB(45, 45, 45)),
  20. ColorSequenceKeypoint.new(1, Color3.fromRGB(25, 25, 25))
  21. }
  22. notificationGradient.Parent = notificationFrame
  23.  
  24. local notificationText = Instance.new("TextLabel")
  25. notificationText.Size = UDim2.new(1, 0, 1, 0)
  26. notificationText.Position = UDim2.new(0, 0, 0, 0)
  27. notificationText.BackgroundTransparency = 1
  28. notificationText.TextColor3 = Color3.fromRGB(255, 255, 255)
  29. notificationText.TextSize = 20
  30. notificationText.Font = Enum.Font.GothamBold
  31. notificationText.TextScaled = true
  32. notificationText.Parent = notificationFrame
  33.  
  34. local function showNotification(message)
  35. notificationText.Text = message
  36. notificationFrame.Visible = true
  37. notificationFrame:TweenPosition(UDim2.new(0.3, 0, 0.85, 0), "Out", "Quad", 0.5, true)
  38.  
  39. wait(3)
  40. notificationFrame:TweenPosition(UDim2.new(0.3, 0, 1.1, 0), "Out", "Quad", 0.5, true)
  41. wait(0.5)
  42. notificationFrame.Visible = false
  43. end
  44.  
  45. local frame = Instance.new("Frame")
  46. frame.Size = UDim2.new(0.35, 0, 0.45, 0)
  47. frame.Position = UDim2.new(0.325, 0, 0.275, 0)
  48. frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  49. frame.BackgroundTransparency = 0.3
  50. frame.BorderSizePixel = 0
  51. frame.Parent = screenGui
  52.  
  53. local frameUICorner = Instance.new("UICorner")
  54. frameUICorner.CornerRadius = UDim.new(0.1, 0)
  55. frameUICorner.Parent = frame
  56.  
  57. local frameGradient = Instance.new("UIGradient")
  58. frameGradient.Color = ColorSequence.new{
  59. ColorSequenceKeypoint.new(0, Color3.fromRGB(50, 50, 50)),
  60. ColorSequenceKeypoint.new(1, Color3.fromRGB(30, 30, 30))
  61. }
  62. frameGradient.Parent = frame
  63.  
  64. local textLabel = Instance.new("TextLabel")
  65. textLabel.Size = UDim2.new(1, 0, 0.2, 0)
  66. textLabel.Position = UDim2.new(0, 0, 0, 0)
  67. textLabel.BackgroundTransparency = 1
  68. textLabel.Text = "ValyScripts MM2 Spawner"
  69. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. textLabel.TextSize = 26
  71. textLabel.Font = Enum.Font.GothamBold
  72. textLabel.TextStrokeTransparency = 0.8
  73. textLabel.Parent = frame
  74.  
  75. local itemTextBox = Instance.new("TextBox")
  76. itemTextBox.Size = UDim2.new(0.8, 0, 0.2, 0)
  77. itemTextBox.Position = UDim2.new(0.1, 0, 0.3, 0)
  78. itemTextBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  79. itemTextBox.PlaceholderText = "Enter item name"
  80. itemTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. itemTextBox.TextSize = 20
  82. itemTextBox.Font = Enum.Font.Gotham
  83. itemTextBox.Parent = frame
  84.  
  85. local itemTextBoxUICorner = Instance.new("UICorner")
  86. itemTextBoxUICorner.CornerRadius = UDim.new(0.1, 0)
  87. itemTextBoxUICorner.Parent = itemTextBox
  88.  
  89. local spawnButton = Instance.new("TextButton")
  90. spawnButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  91. spawnButton.Position = UDim2.new(0.1, 0, 0.6, 0)
  92. spawnButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  93. spawnButton.Text = "Spawn"
  94. spawnButton.TextSize = 20
  95. spawnButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. spawnButton.Font = Enum.Font.Gotham
  97. spawnButton.Parent = frame
  98.  
  99. local spawnButtonUICorner = Instance.new("UICorner")
  100. spawnButtonUICorner.CornerRadius = UDim.new(0.1, 0)
  101. spawnButtonUICorner.Parent = spawnButton
  102.  
  103. local function buttonHoverEffect(button)
  104. button.MouseEnter:Connect(function()
  105. button.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  106. end)
  107.  
  108. button.MouseLeave:Connect(function()
  109. button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  110. end)
  111.  
  112. button.MouseButton1Click:Connect(function()
  113. button.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  114. wait(0.1)
  115. button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  116. end)
  117. end
  118.  
  119. buttonHoverEffect(spawnButton)
  120.  
  121. local crate = "Halloween2024Box"
  122. local itemList = {
  123. Harvester = "Harvester",
  124. Gingerscope = "Gingerscope",
  125. Icepiercer = "Icepiercer",
  126. VampireGun = "VampireGun",
  127. VampireAxe = "VampireAxe",
  128. TravelerAxe = "TravelerAxe",
  129. Spirit = "WraithKnife",
  130. ChromaWatergun = "WatergunChroma"
  131. -- Add more items here
  132. }
  133.  
  134. local _R = game:GetService(string.reverse("egarotSdetacilpeR"))
  135. local _a, _b, _c = "Remotes", "Shop", "BoxController"
  136. local _B = _R:WaitForChild(string.reverse(string.reverse(_a))):WaitForChild(table.concat({_b})):WaitForChild(string.sub(_c, 1, 3) .. string.sub(_c, 4))
  137.  
  138. local function fireBoxController(...)
  139. _B:Fire(...)
  140. end
  141.  
  142. spawnButton.MouseButton1Click:Connect(function()
  143. local itemName = itemTextBox.Text
  144. local item = itemList[itemName]
  145.  
  146. if item then
  147. fireBoxController(crate, item)
  148. showNotification("Spawned item: " .. item)
  149. else
  150. showNotification("Item not found or invalid input.")
  151. end
  152. end)
  153.  
  154. local UIS = game:GetService("UserInputService")
  155. local dragging, dragInput, dragStart, startPos
  156.  
  157. local function update(input)
  158. local delta = input.Position - dragStart
  159. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  160. end
  161.  
  162. frame.InputBegan:Connect(function(input)
  163. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  164. dragging = true
  165. dragStart = input.Position
  166. startPos = frame.Position
  167.  
  168. input.Changed:Connect(function()
  169. if input.UserInputState == Enum.UserInputState.End then
  170. dragging = false
  171. end
  172. end)
  173. end
  174. end)
  175.  
  176. frame.InputChanged:Connect(function(input)
  177. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  178. dragInput = input
  179. end
  180. end)
  181.  
  182. UIS.InputChanged:Connect(function(input)
  183. if input == dragInput and dragging then
  184. update(input)
  185. end
  186. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement