Hello, sorry if the question is obvious but i can’t script at all.
I try to make a script that when you join the game it directly put you in a random place alone, that’s all.
I searched on youtube and devforum and I tried to put several scripts together by modifying them but it does not work
local TeleportService = game:GetService("TeleportService")
local player = game.Players.LocalPlayer
local s=math.random(1,3)
if s == 1 then
PlaceId = 10434564161
elseif s == 2 then
PlaceId = 10434565531
elseif s == 3 then
PlaceId = 10434566876
end
TeleportService:Teleport(PlaceId, player)
i tried with LocalScript and normal one
