Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ⚡ KODA TELEPORT PAD SCRIPT
- Made by Koda – dev anywhere. No PC needed.
- ]]
- local pad = script.Parent -- the part this script sits in
- local destination = workspace:WaitForChild("TeleportTarget") -- change if you rename the target part
- local TweenService = game:GetService("TweenService")
- local debounce = {} -- stop double‑fires
- pad.Touched:Connect(function(hit)
- local char = hit.Parent
- local hum = char:FindFirstChild("Humanoid")
- if not hum or debounce[char] then return end -- no humanoid = NPC or prop
- debounce[char] = true -- lock for this character
- local plr = game.Players:GetPlayerFromCharacter(char)
- if plr then
- ----------------------------------------------------------------
- -- 📱 QUICK ANIMATED GUI (shows 3‑6 s with “by Koda” credits)
- ----------------------------------------------------------------
- local gui = Instance.new("ScreenGui")
- gui.Name, gui.ResetOnSpawn = "KodaTeleportGui", false
- gui.Parent = plr:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.fromOffset(0,0)
- frame.Position = UDim2.fromScale(0.5,0.5)
- frame.AnchorPoint = Vector2.new(0.5,0.5)
- frame.BackgroundColor3= Color3.fromRGB(0,170,255)
- frame.BackgroundTransparency = 0.2
- frame.Parent = gui
- -- helper to stamp “by Koda” in all 4 corners
- local function cornerCredit(ax, ay)
- local lbl = Instance.new("TextLabel")
- lbl.Size = UDim2.fromOffset(110,24)
- lbl.AnchorPoint = Vector2.new(ax,ay)
- lbl.Position = UDim2.new(ax,0, ay,0)
- lbl.BackgroundTransparency = 1
- lbl.Font = Enum.Font.GothamBold
- lbl.TextColor3 = Color3.new(1,1,1)
- lbl.TextScaled = true
- lbl.Text = "by Koda"
- lbl.Parent = gui
- end
- cornerCredit(0,0); cornerCredit(1,0); cornerCredit(0,1); cornerCredit(1,1)
- -- tween “pop” animation (yoyo = out + back)
- TweenService:Create(
- frame,
- TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, true),
- {Size = UDim2.fromScale(1,1)}
- ):Play()
- wait(math.random(3,6)) -- keep GUI 3‑6 s
- gui:Destroy()
- end
- ----------------------------------------------------------------
- -- ⚡ TELEPORT the character 3 studs above the target part
- ----------------------------------------------------------------
- if destination then
- char:MoveTo(destination.Position + Vector3.new(0,3,0))
- end
- wait(1) -- slight cooldown
- debounce[char] = nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment