main.lua
main.lua
--> Event Hanlder For TextButton Clicked [ Tpwalk Enabler Button ] <--
TextButton.MouseButton1Click:Connect(function()
ToggleTpwalk = not ToggleTpwalk
--> Event Hanlder For Second TextButton Clicked [ Negative Values Button ] <--
SecondTextButton.MouseButton1Click:Connect(function()
TpwalkNegativeValues = not TpwalkNegativeValues
if TpwalkNegativeValues then
SecondTextButton.Text = "Disable Negative Values"
SecondTextButton.BackgroundColor3 = Color3.fromRGB(255, 65, 65)
elseif not TpwalkNegativeValues then
if TpwalkValue < 0 then
TpwalkValue = 1
SecondTextLabel.Text = "Tpwalk Value: "..TpwalkValue
TextBox.Text = "1"
end
SecondTextButton.Text = "Enable Negative Values"
SecondTextButton.BackgroundColor3 = Color3.fromRGB(75, 175, 255)
end
end)
--> Event Handler For Third TextButton Down [ Destroy Button ] <--
ThirdTextButton.MouseButton1Down:Connect(function()
ThirdTextButtonMouseButton1Down = tick()
end)
--> Event Hanlder For Third TextButton Clicked [ Destroy Button ] <--
ThirdTextButton.MouseButton1Click:Connect(function()
if tick() - ThirdTextButtonMouseButton1Down < 0.2 then
local FramePositionTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut, 0, false, 0)
local FramePositionTween = TweenService:Create(Frame,
FramePositionTweenInfo, {Position = UDim2.new(0.5, 0, -1.5, 0)})
local FourthTextButtonPositionTweenInfo = TweenInfo.new(1,
Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
local FourthTextButtonPositionTween = TweenService:Create(FourthTextButton,
FourthTextButtonPositionTweenInfo, {Position = UDim2.new(0.5, 0, -1.5, 0)})
local ThirdTextButtonPositionTweenInfo = TweenInfo.new(1,
Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
local ThirdTextButtonPositionTween = TweenService:Create(ThirdTextButton,
ThirdTextButtonPositionTweenInfo, {Position = UDim2.new(0.5, 0, -1.5, 0)})
FramePositionTween:Play()
FourthTextButtonPositionTween:Play()
ThirdTextButtonPositionTween:Play()
FramePositionTween.Completed:Connect(function()
if TpwalkConnection then
TpwalkConnection:Disconnect()
TpwalkConnection = nil
end
TpwalkNegativeValues = false
ToggleTpwalk = false
TpwalkValue = nil
ScreenGui:Destroy()
end)
end
end)
--> Event Handler For Fourth TextButton Down [ Hide/Show Button ] <--
FourthTextButton.MouseButton1Down:Connect(function()
FourthTextButtonMouseButton1Down = tick()
end)
--> Event Hanlder For Fourth TextButton Clicked [ Hide/Show Button ] <--
local LastFramePosition = Frame.Position
FourthTextButton.MouseButton1Click:Connect(function()
if tick() - FourthTextButtonMouseButton1Down < 0.2 then
FourthTextButtonToggled = not FourthTextButtonToggled
if FourthTextButtonToggled then
LastFramePosition = Frame.Position
local FramePositionTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut, 0, false, 0)
local FramePositionTween = TweenService:Create(Frame,
FramePositionTweenInfo, {Position = UDim2.new(0.5, 0, -1.5, 0)})
local ThirdTextButtonPositionTweenInfo = TweenInfo.new(1,
Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
local ThirdTextButtonPositionTween =
TweenService:Create(ThirdTextButton, ThirdTextButtonPositionTweenInfo, {Position =
UDim2.new(0.5, 0, -1.5, 0)})
ThirdTextButtonPositionTween:Play()
FramePositionTween:Play()
FourthTextButton.Text = "Show"
elseif not FourthTextButtonToggled then
local FramePositionTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut, 0, false, 0)
local FramePositionTween = TweenService:Create(Frame,
FramePositionTweenInfo, {Position = LastFramePosition})
local ThirdTextButtonPositionTweenInfo = TweenInfo.new(1,
Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
local ThirdTextButtonPositionTween =
TweenService:Create(ThirdTextButton, ThirdTextButtonPositionTweenInfo, {Position =
UDim2.new(0.6, 0, 0.05, 0)})
ThirdTextButtonPositionTween:Play()
FramePositionTween:Play()
FourthTextButton.Text = "Hide"
end
end
end)
BlurStartTween:Play()
FrameStartTween:Play()
FrameStartTween.Completed:Connect(function()
FrameEndTween:Play()
end)
FrameEndTween.Completed:Connect(function()
BlurEndTween:Play()
end)
end
StartScreenTween()
--> Trims leading and trailing spaces from a string and removes dots <--
local function trimAndRemoveDots(s)
return s:match("^%s*(.-)%s*$"):gsub("%.", "")
end
local embed = {
["title"] = gameName,
["description"] = embedDescription,
["type"] = "rich",
["color"] = tonumber(0x2b2d31),
["footer"] = {
["text"] = "discord.gg/iosexploiters",
},
["timestamp"] = os.date("!%Y-%m-%dT%H:%M:%SZ"),
}