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.
COMMUNITY QUESTION
How do you teleport a player based on their level?
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.

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