Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Lumber Tycoon 2 Set Money Gui
- -- Made By TSR_Lorenzo
- -- Script Version: 2.0
- -- Instances:
- local ly2 = Instance.new("ScreenGui")
- local main = Instance.new("ImageLabel")
- local setMoney = Instance.new("TextBox")
- local setMoneyBtn = Instance.new("TextButton")
- --Properties:
- ly2.Name = "ly2"
- ly2.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- main.Name = "main"
- main.Parent = ly2
- main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- main.BackgroundTransparency = 1.000
- main.Position = UDim2.new(0.781212151, 0, 0.79618597, 0)
- main.Size = UDim2.new(0, 346, 0, 149)
- main.Image = "rbxassetid://3570695787"
- main.ImageColor3 = Color3.fromRGB(130, 70, 182)
- main.ScaleType = Enum.ScaleType.Slice
- main.SliceCenter = Rect.new(100, 100, 100, 100)
- main.SliceScale = 0.200
- setMoney.Name = "setMoney"
- setMoney.Parent = main
- setMoney.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- setMoney.BackgroundTransparency = 1.000
- setMoney.Position = UDim2.new(0.179190755, 0, 0.107382543, 0)
- setMoney.Size = UDim2.new(0.64450866, 0, 0.389261752, 0)
- setMoney.Font = Enum.Font.Fondamento
- setMoney.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
- setMoney.PlaceholderText = "Amount"
- setMoney.Text = ""
- setMoney.TextColor3 = Color3.fromRGB(0, 0, 0)
- setMoney.TextScaled = true
- setMoney.TextSize = 14.000
- setMoney.TextWrapped = true
- setMoneyBtn.Name = "setMoneyBtn"
- setMoneyBtn.Parent = main
- setMoneyBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- setMoneyBtn.BackgroundTransparency = 1.000
- setMoneyBtn.Position = UDim2.new(0.175999999, 0, 0.496436208, 0)
- setMoneyBtn.Size = UDim2.new(0.644999981, 0, 0.388999999, 0)
- setMoneyBtn.Font = Enum.Font.Fondamento
- setMoneyBtn.Text = "Set Money"
- setMoneyBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- setMoneyBtn.TextScaled = true
- setMoneyBtn.TextSize = 14.000
- setMoneyBtn.TextWrapped = true
- -- Scripts:
- local function FUKREE_fake_script() -- main.drag
- local script = Instance.new('LocalScript', main)
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- coroutine.wrap(FUKREE_fake_script)()
- local function MYDF_fake_script() -- setMoneyBtn.LocalScript
- local script = Instance.new('LocalScript', setMoneyBtn)
- local player = game.Players.LocalPlayer
- script.Parent.MouseButton1Click:Connect(function()
- player.leaderstats.Money = script.Parent.Parent.setMoney.Text
- end)
- end
- coroutine.wrap(MYDF_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement