Version / Update: v1.0.0
- Download / Script Link
- --Astri Teleport Script
--Created by Astri (16 y/o developer)
-- EN: Teleport activates on Z
-- RU: Телепортация на кнопку Z
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
-- Teleport key (default Z)
local teleportKey = Enum.KeyCode.Z -- Change the key for teleport here
-- Function to show text (script activation message)
local function showTextMessage(message)
-- Create ScreenGui if it doesn't exist
local screenGui = player:FindFirstChildOfClass("PlayerGui"):FindFirstChild("TeleportMessageGui")
if not screenGui then
screenGui = Instance.new("ScreenGui")
screenGui.Name = "TeleportMessageGui"
screenGui.Parent = player:FindFirstChildOfClass("PlayerGui")
end
-- Create TextLabel
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screenGui
textLabel.Size = UDim2.new(0, 300, 0, 50)
textLabel.Position = UDim2.new(1, -400, 1, -60) -- Bottom-right corner
textLabel.Text = message
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- White text
textLabel.BackgroundTransparency = 1 -- No background
textLabel.TextSize = 20 -- Text size
textLabel.TextStrokeTransparency = 0.8 -- Text outline effect
-- Fade out text after 2 seconds
game:GetService("TweenService"):Create(textLabel, TweenInfo.new(2), {TextTransparency = 1}):Play()
wait(7)
textLabel:Destroy() -- Remove text after delay
end
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
-- Single key teleport (default Z)
if input.KeyCode == teleportKey then
local character = player.Character
if character then
local root = character:FindFirstChild("HumanoidRootPart")
if root then
local rayOrigin = mouse.Hit.p + Vector3.new(0, 5, 0) -- Start slightly above ground
local rayDirection = Vector3.new(0, -100, 0) -- Downward ray with large range
-- Raycast for teleport
local ray = workspace:Raycast(rayOrigin, rayDirection)
if ray then
local targetPosition = ray.Position
-- Teleport player to hit position
root.CFrame = CFrame.new(targetPosition + Vector3.new(0, 3, 0)) -- Slightly above surface
-- Show message on screen
showTextMessage("Astri-TP activated! Teleport")
end
end
end
end
end)
-- Function to change activation key
local function setTeleportKey(newKey)
teleportKey = newKey
end[ View More ]
Teleports your character to your mouse cursor location✔ Tested on: Xeno, Solara, JJS