He's trolling, that's python code.
If you want a random number:
local diceRoll = math.random(1,6)
To make it more "random" add math.randomseed(tick()) at the top of your code.
To force the player to go somewhere, you simply move their player model.
local player = game.Players.Player1 (bad way to define it)
function movePlayer(p, position)
p.Character:MoveTo(position)
end
movePlayer(player, Vector3.new(0, 100, 0)) -- Moves the player into the sky
if you want them to stay where they are, set the character's Humanoid.WalkSpeed property to 0
|