local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "InfCashGui"
screenGui.Parent = playerGui
screenGui.ResetOnSpawn = false
local frame = Instance.new("Frame")
frame.Name = "MainFrame"
frame.Size = UDim2.new(0, 300, 0, 200)
frame.Position = UDim2.new(0.5, -100, 0.5, -50)
frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
frame.BackgroundTransparency = 0.2
frame.BorderSizePixel = 0
frame.AnchorPoint = Vector2.new(0.5, 0.5)
frame.Parent = screenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 15)
UICorner.Parent = frame
local infCashButton = Instance.new("TextButton")
infCashButton.Name = "InfCashButton"
infCashButton.Size = UDim2.new(0, 180, 0, 40)
infCashButton.Position = UDim2.new(0.5, -90, 0.5, -10)
infCashButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
infCashButton.Text = "Inf Cash"
infCashButton.TextColor3 = Color3.fromRGB(255, 255, 255)
infCashButton.TextSize = 18
infCashButton.Font = Enum.Font.GothamBold
infCashButton.Parent = frame
local claimLikeRewardButton = Instance.new("TextButton")
claimLikeRewardButton.Name = "claimLikeRewardButton"
claimLikeRewardButton.Size = UDim2.new(0, 180, 0, 40)
claimLikeRewardButton.Position = UDim2.new(0.5, -90, 0.5, -80)
claimLikeRewardButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
claimLikeRewardButton.Text = "Claim Like Reward"
claimLikeRewardButton.TextColor3 = Color3.fromRGB(255, 255, 255)
claimLikeRewardButton.TextSize = 18
claimLikeRewardButton.Font = Enum.Font.GothamBold
claimLikeRewardButton.Parent = frame
local buttonCorner1 = Instance.new("UICorner")
local buttonCorner2 = Instance.new("UICorner")
buttonCorner1.CornerRadius = UDim.new(0, 12)
buttonCorner2.CornerRadius = UDim.new(0, 12)
buttonCorner1.Parent = infCashButton
buttonCorner2.Parent = claimLikeRewardButton
infCashButton.MouseButton1Click:Connect(function()
workspace:WaitForChild("__THINGS"):WaitForChild("__REMOTES"):WaitForChild("vehicle_spawn"):InvokeServer()
task.wait(1)
local plr = game:GetService("Players").LocalPlayer
local vehiclesFolder = workspace:WaitForChild("__THINGS"):WaitForChild("Vehicles")
local targetPos = Vector3.new(9999999999999999999999999999999999999, 3648, -65996)
for _, car in ipairs(vehiclesFolder:GetChildren()) do
if car.Name == "Model" and car:IsA("Model") then
local ownerId = car:GetAttribute("OwnerId")
if ownerId == plr.UserId then
task.wait(1)
if not car.PrimaryPart then
for _, part in ipairs(car:GetDescendants()) do
if part:IsA("BasePart") then
car.PrimaryPart = part
break
end
end
end
if car.PrimaryPart then
print("[TEST] Teleporting car to", targetPos)
car:SetPrimaryPartCFrame(CFrame.new(targetPos))
end
end
end
end
task.wait(1)
workspace:WaitForChild("__THINGS"):WaitForChild("__REMOTES"):WaitForChild("vehicle_stop"):InvokeServer()
end)
claimLikeRewardButton.MouseButton1Click:Connect(function()
workspace:WaitForChild("__THINGS"):WaitForChild("__REMOTES"):WaitForChild("likerewardclaim"):InvokeServer()
end)
local dragToggle = nil
local dragInput = nil
local dragStart = nil
local startPos = nil
frame.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragToggle = true
dragStart = input.Position
startPos = frame.Position
end
end)
frame.InputChanged:Connect(function(input)
if dragToggle and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = input.Position - dragStart
frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
frame.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragToggle = false
end
end)
Comments
Can someone tell me how to rotate the wheel on mobile?