Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local UICorner_3 = Instance.new("UICorner")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(88, 88, 88)
- Frame.Position = UDim2.new(0.72256726, 0, 0.110484786, 0)
- Frame.Size = UDim2.new(0, 194, 0, 184)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(120, 120, 120)
- TextLabel.Size = UDim2.new(0, 194, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Fling Yourself!"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 48.000
- TextLabel.TextWrapped = true
- UICorner.Parent = TextLabel
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- TextButton.Position = UDim2.new(0.201030925, 0, 0.385869563, 0)
- TextButton.Size = UDim2.new(0, 115, 0, 84)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Fling!"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextSize = 57.000
- TextButton.TextWrapped = true
- UICorner_2.Parent = TextButton
- UICorner_3.Parent = Frame
- -- Scripts:
- local function WYDX_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- script.Parent.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(556, 529, -3916)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1230, 363, -4281)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1651, 973, -4613)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-3350, 646, -112733)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-3350, 646, -11273)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-56199, 1406, -121389)
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1091660, -759, 1951072)
- wait(.1)
- end)
- end
- coroutine.wrap(WYDX_fake_script)()
- local function ICEMIGP_fake_script() -- Frame.Make GUI Draggable
- local script = Instance.new('LocalScript', Frame)
- 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(ICEMIGP_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement