DyktailJunior

Untitled

Jun 21st, 2025
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. --[[
  2. ⚡ KODA TELEPORT PAD SCRIPT
  3. Made by Koda – dev anywhere. No PC needed.
  4. ]]
  5.  
  6. local pad = script.Parent -- the part this script sits in
  7. local destination = workspace:WaitForChild("TeleportTarget") -- change if you rename the target part
  8. local TweenService = game:GetService("TweenService")
  9. local debounce = {} -- stop double‑fires
  10.  
  11. pad.Touched:Connect(function(hit)
  12. local char = hit.Parent
  13. local hum = char:FindFirstChild("Humanoid")
  14. if not hum or debounce[char] then return end -- no humanoid = NPC or prop
  15.  
  16. debounce[char] = true -- lock for this character
  17. local plr = game.Players:GetPlayerFromCharacter(char)
  18. if plr then
  19. ----------------------------------------------------------------
  20. -- 📱 QUICK ANIMATED GUI (shows 3‑6 s with “by Koda” credits)
  21. ----------------------------------------------------------------
  22. local gui = Instance.new("ScreenGui")
  23. gui.Name, gui.ResetOnSpawn = "KodaTeleportGui", false
  24. gui.Parent = plr:WaitForChild("PlayerGui")
  25.  
  26. local frame = Instance.new("Frame")
  27. frame.Size = UDim2.fromOffset(0,0)
  28. frame.Position = UDim2.fromScale(0.5,0.5)
  29. frame.AnchorPoint = Vector2.new(0.5,0.5)
  30. frame.BackgroundColor3= Color3.fromRGB(0,170,255)
  31. frame.BackgroundTransparency = 0.2
  32. frame.Parent = gui
  33.  
  34. -- helper to stamp “by Koda” in all 4 corners
  35. local function cornerCredit(ax, ay)
  36. local lbl = Instance.new("TextLabel")
  37. lbl.Size = UDim2.fromOffset(110,24)
  38. lbl.AnchorPoint = Vector2.new(ax,ay)
  39. lbl.Position = UDim2.new(ax,0, ay,0)
  40. lbl.BackgroundTransparency = 1
  41. lbl.Font = Enum.Font.GothamBold
  42. lbl.TextColor3 = Color3.new(1,1,1)
  43. lbl.TextScaled = true
  44. lbl.Text = "by Koda"
  45. lbl.Parent = gui
  46. end
  47. cornerCredit(0,0); cornerCredit(1,0); cornerCredit(0,1); cornerCredit(1,1)
  48.  
  49. -- tween “pop” animation (yoyo = out + back)
  50. TweenService:Create(
  51. frame,
  52. TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, true),
  53. {Size = UDim2.fromScale(1,1)}
  54. ):Play()
  55.  
  56. wait(math.random(3,6)) -- keep GUI 3‑6 s
  57. gui:Destroy()
  58. end
  59.  
  60. ----------------------------------------------------------------
  61. -- ⚡ TELEPORT the character 3 studs above the target part
  62. ----------------------------------------------------------------
  63. if destination then
  64. char:MoveTo(destination.Position + Vector3.new(0,3,0))
  65. end
  66.  
  67. wait(1) -- slight cooldown
  68. debounce[char] = nil
  69. end)
  70.  
Advertisement
Add Comment
Please, Sign In to add comment