- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Teleport Anywhere in Roblox Studio!🚀#roblox #robloxstudio #robloxshorts #shorts #scripting
below are the scripts needed! make sure to send your own suggestions and subscribe!
local script:
-- LocalScript inside the TextButton
local button = script.Parent
local remoteEvent = game.ReplicatedStorage:WaitForChild("RequestTeleport")
button.MouseButton1Click:Connect(function()
-- Fire the server, asking to teleport
remoteEvent:FireServer()
end)
server script:
-- Server Script in ServerScriptService
local remoteEvent = game.ReplicatedStorage:WaitForChild("RequestTeleport")
local teleportTarget = workspace:WaitForChild("TeleportTarget")
remoteEvent.OnServerEvent:Connect(function(player)
local char = player.Character
if not char then return end
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
-- Teleport by setting CFrame
hrp.CFrame = teleportTarget.CFrame
end)
#roblox #robloxstudio #shorts
Видео Teleport Anywhere in Roblox Studio!🚀#roblox #robloxstudio #robloxshorts #shorts #scripting канала Lua Script in 15 Seconds
local script:
-- LocalScript inside the TextButton
local button = script.Parent
local remoteEvent = game.ReplicatedStorage:WaitForChild("RequestTeleport")
button.MouseButton1Click:Connect(function()
-- Fire the server, asking to teleport
remoteEvent:FireServer()
end)
server script:
-- Server Script in ServerScriptService
local remoteEvent = game.ReplicatedStorage:WaitForChild("RequestTeleport")
local teleportTarget = workspace:WaitForChild("TeleportTarget")
remoteEvent.OnServerEvent:Connect(function(player)
local char = player.Character
if not char then return end
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
-- Teleport by setting CFrame
hrp.CFrame = teleportTarget.CFrame
end)
#roblox #robloxstudio #shorts
Видео Teleport Anywhere in Roblox Studio!🚀#roblox #robloxstudio #robloxshorts #shorts #scripting канала Lua Script in 15 Seconds
Комментарии отсутствуют
Информация о видео
3 мая 2025 г. 19:04:07
00:00:41
Другие видео канала





















