Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Create GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- --// Create Frame (Main container for dragging)
- local DragFrame = Instance.new("Frame")
- DragFrame.Size = UDim2.new(0, 220, 0, 100)
- DragFrame.Position = UDim2.new(0.5, -110, 0.5, -50)
- DragFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) -- Dark gray
- DragFrame.Active = true
- DragFrame.Parent = ScreenGui
- --// Create Label (Made by @elnanocruz2)
- local CreatorLabel = Instance.new("TextLabel")
- CreatorLabel.Size = UDim2.new(1, 0, 0.3, 0)
- CreatorLabel.Position = UDim2.new(0, 0, 0, 0)
- CreatorLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Slightly darker gray
- CreatorLabel.Text = "Made by @elnanocruz2"
- CreatorLabel.TextSize = 16
- CreatorLabel.Font = Enum.Font.SourceSansBold
- CreatorLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White
- CreatorLabel.Parent = DragFrame
- --// Create Drag Label
- local DragLabel = Instance.new("TextLabel")
- DragLabel.Size = UDim2.new(1, 0, 0.2, 0)
- DragLabel.Position = UDim2.new(0, 0, 0.3, 0)
- DragLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 40) -- Darker gray
- DragLabel.Text = "Drag Me"
- DragLabel.TextSize = 16
- DragLabel.Font = Enum.Font.SourceSansBold
- DragLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White
- DragLabel.Parent = DragFrame
- --// Create Click Button
- local ClickButton = Instance.new("TextButton")
- ClickButton.Size = UDim2.new(1, 0, 0.5, 0)
- ClickButton.Position = UDim2.new(0, 0, 0.5, 0)
- ClickButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) -- Green
- ClickButton.Text = "INF MONEY SPAM TO GET MONEY FASTER"
- ClickButton.TextSize = 16
- ClickButton.Font = Enum.Font.SourceSansBold
- ClickButton.TextWrapped = true -- Wrap text if it's too long
- ClickButton.Parent = DragFrame
- -- Function to execute the script when clicked
- local function executeScript()
- for i = 1, 10 do
- pcall(function()
- game:GetService("ReplicatedStorage")
- .Packages._Index["[email protected]"]
- .knit.Services.RewardService.RF.RequestPlayWithDeveloperAward:InvokeServer()
- end)
- end
- end
- -- Connect button click to script execution
- ClickButton.MouseButton1Click:Connect(executeScript)
- --// Dragging Logic for PC & Mobile
- local UserInputService = game:GetService("UserInputService")
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function onInputBegan(input, gameProcessed)
- if gameProcessed then return end
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = DragFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end
- local function onInputChanged(input)
- if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- local delta = input.Position - dragStart
- DragFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end
- DragFrame.InputBegan:Connect(onInputBegan)
- UserInputService.InputChanged:Connect(onInputChanged)
Add Comment
Please, Sign In to add comment