Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you teleport a player based on their level?

Basically I'm looking for a script that teleports you based on an in-game level system. If the player's level is the minimum required or higher, when they click the GUI button (not a part) it will teleport them to xyz.

2 comments

0

dam simulators...

0

This question is very broad. Please refrain from asking these sorts of questions in the future.

1 answer

There are a lot of different ways. And it also greatly depends on how you chose to create your level system. Therefore I can't really know what exactly you need help with. But let's say that you're using an integer value as a way to represent the players level ( integer value as in "Instance.new("IntValue")). What you could do is: '

local minimumRequirement = 5
local intvalue = Instance.new("IntValue")
intvalue.Parent = = game.Players.LocalPlayer.Character --Parent can be wherever you want. Just make it convinient.
if intvalue.Value <=  minimumRequirement then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(X,Y,Z)
end

This script won't work but I hope you get a general idea of how you can go about it.

This discussion is preserved as it was. New answers, comments, and votes are closed.