Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What do i need to do to create a "x rebirth amount = teleport" script?

Asked by 5 years ago
Edited 5 years ago

I want my Portal to only teleport Players with 5 Rebirths, but i cant find out how. Which is why im asking here.

1 answer

Log in to vote
0
Answered by 5 years ago

Make a if statement like (May have to tween for FE but it cant be that hard for you to make it FE)

local player = game.Players.LocalPlayer
local rebirths = player:WaitForChild("leaderstats").Rebirths

if rebirths.Value >= 5 then
    --Teleport Script Here
end
0
Make sure you put a on touch script first i forgot about that but that should solve part of the problem iiDev_Hunt3r 64 — 5y
0
Thank you alot Stuffy_flowerx3 19 — 5y
Ad

Answer this question