
Keyless

-- made by qpge on dsc
local p=game:GetService("Players").LocalPlayer
local ts=game:GetService("TweenService")
local uis=game:GetService("UserInputService")
local pos=Vector3.new(-140,360,-400)
local function hrp()
return (p.Character or p.CharacterAdded:Wait()):WaitForChild("HumanoidRootPart")
end
local g=Instance.new("ScreenGui",p.PlayerGui)
g.ResetOnSpawn=false
g.Name="duckystp"
local f=Instance.new("Frame",g)
f.Size=UDim2.fromOffset(220,140)
f.Position=UDim2.new(.5,-110,.5,-70)
f.BackgroundColor3=Color3.fromRGB(40,40,40)
f.BorderSizePixel=0
Instance.new("UICorner",f).CornerRadius=UDim.new(0,8)
local t=Instance.new("TextLabel",f)
t.Size=UDim2.new(1,-30,0,30)
t.BackgroundTransparency=1
t.Text="ducky's tp"
t.Font=Enum.Font.GothamBold
t.TextSize=18
t.TextColor3=Color3.new(1,1,1)
local x=Instance.new("TextButton",f)
x.Size=UDim2.fromOffset(25,25)
x.Position=UDim2.new(1,-28,0,3)
x.Text="X"
x.Font=Enum.Font.GothamBold
x.TextSize=16
x.BackgroundColor3=Color3.fromRGB(180,60,60)
x.TextColor3=Color3.new(1,1,1)
Instance.new("UICorner",x)
local function btn(txt,y)
local b=Instance.new("TextButton",f)
b.Size=UDim2.new(.9,0,0,35)
b.Position=UDim2.new(.05,0,0,y)
b.BackgroundColor3=Color3.fromRGB(70,70,70)
b.TextColor3=Color3.new(1,1,1)
b.Font=Enum.Font.Gotham
b.TextSize=16
b.Text=txt
Instance.new("UICorner",b)
return b
end
local risky=btn("Risky TP",45)
local safe=btn("Safe TP",90)
x.MouseButton1Click:Connect(function() g:Destroy() end)
local d,s,i
f.InputBegan:Connect(function(v)
if v.UserInputType==Enum.UserInputType.MouseButton1 then
d=true
i=v.Position
s=f.Position
v.Changed:Connect(function()
if v.UserInputState==Enum.UserInputState.End then
d=false
end
end)
end
end)
uis.InputChanged:Connect(function(v)
if d and v.UserInputType==Enum.UserInputType.MouseMovement then
local o=v.Position-i
ts:Create(f,TweenInfo.new(.08,Enum.EasingStyle.Quad),{
Position=UDim2.new(s.X.Scale,s.X.Offset+o.X,s.Y.Scale,s.Y.Offset+o.Y)
}):Play()
end
end)
risky.MouseButton1Click:Connect(function()
hrp().CFrame=CFrame.new(pos)
end)
safe.MouseButton1Click:Connect(function()
local r=hrp()
ts:Create(r,TweenInfo.new((r.Position-pos).Magnitude/100,Enum.EasingStyle.Linear),{
CFrame=CFrame.new(pos)
}):Play()
end)No comments yet for this script.