local a=game:GetService("Players")local b=game:GetService("TweenService")local c=game:GetService("UserInputService")local d=a.LocalPlayer;local e=d.Character or d.CharacterAdded:Wait()local f=e:WaitForChild("Humanoid")local g=e:WaitForChild("HumanoidRootPart")local h=workspace:FindFirstChild("Slap")if not h then warn("Slap not found!")return end;local i=Instance.new("ScreenGui")i.Name="SlapTeleportGUI"i.ResetOnSpawn=false;i.Parent=d:WaitForChild("PlayerGui")local j=Instance.new("Frame")j.Name="MainFrame"j.Size=UDim2.new(0,200,0,50)j.Position=UDim2.new(0.5,-100,0.5,-25)j.BackgroundColor3=Color3.fromRGB(40,40,40)j.BackgroundTransparency=0.3;j.BorderSizePixel=0;j.Active=true;j.Draggable=true;j.Parent=i;local k=Instance.new("UICorner")k.CornerRadius=UDim.new(0,8)k.Parent=j;local l=Instance.new("TextLabel")l.Name="Title"l.Size=UDim2.new(1,0,0.6,0)l.Position=UDim2.new(0,0,0,0)l.BackgroundTransparency=1;l.Text="Slap Teleporter"l.TextColor3=Color3.fromRGB(255,255,255)l.Font=Enum.Font.GothamBold;l.TextSize=16;l.Parent=j;local m=Instance.new("TextButton")m.Name="TeleportButton"m.Size=UDim2.new(0.8,0,0.8,0)m.Position=UDim2.new(0.1,0,1.2,0)m.BackgroundColor3=Color3.fromRGB(70,70,70)m.BackgroundTransparency=0.2;m.Text="Teleport to Slap"m.TextColor3=Color3.fromRGB(255,255,255)m.Font=Enum.Font.Gotham;m.TextSize=14;m.Parent=j;local n=Instance.new("UICorner")n.CornerRadius=UDim.new(0,6)n.Parent=m;local function o(p)if not g or not p then return end;local q=g.CFrame;f:ChangeState(Enum.HumanoidStateType.Physics)local r=b:Create(g,TweenInfo.new(1.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{CFrame=p.CFrame*CFrame.new(0,3,0)})r:Play()r.Completed:Wait()local s=false;local t;t=g.Touched:Connect(function(u)if u:IsDescendantOf(h)then s=true;if t then t:Disconnect()end end end)local v=os.time()while not s and os.time()-v<5 do wait(0.1)end;if s then local w=b:Create(g,TweenInfo.new(1.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{CFrame=q})w:Play()w.Completed:Wait()end;f:ChangeState(Enum.HumanoidStateType.GettingUp)end;m.MouseButton1Click:Connect(function()o(h)end)local x;local y;local z;local A;local function B(C)local D=C.Position-z;j.Position=UDim2.new(A.X.Scale,A.X.Offset+D.X,A.Y.Scale,A.Y.Offset+D.Y)end;j.InputBegan:Connect(function(C)if C.UserInputType==Enum.UserInputType.MouseButton1 or C.UserInputType==Enum.UserInputType.Touch then x=true;z=C.Position;A=j.Position;C.Changed:Connect(function()if C.UserInputState==Enum.UserInputState.End then x=false end end)end end)j.InputChanged:Connect(function(C)if C.UserInputType==Enum.UserInputType.MouseMovement or C.UserInputType==Enum.UserInputType.Touch then y=C end end)c.InputChanged:Connect(function(C)if C==y and x then B(C)end end)