Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Workspace = game:GetService("Workspace")
- local Player = Players.LocalPlayer
- local Portals = Workspace.Portals
- local Leaderstats = Player:WaitForChild("leaderstats")
- local RebirthValue = Leaderstats:WaitForChild("Rebirth")
- while task.wait(0.05) do
- for _, Portal in Portals:GetChildren() do
- if Portal:IsA("Part") then
- if RebirthValue.Value >= Portal:WaitForChild("RebirthsRequired").Value then
- Portal.FrontSide.Frame.LockIcon.Visible = false
- Portal.FrontSide.Frame.Amount.Visible = false
- Portal.FrontSide.Frame.WorldName.Visible = true
- Portal.BackSide.Frame.LockIcon.Visible = false
- Portal.BackSide.Frame.Amount.Visible = false
- Portal.BackSide.Frame.WorldName.Visible = true
- else
- Portal.FrontSide.Frame.LockIcon.Visible = true
- Portal.FrontSide.Frame.Amount.Visible = true
- Portal.FrontSide.Frame.WorldName.Visible = false
- Portal.BackSide.Frame.LockIcon.Visible = true
- Portal.BackSide.Frame.Amount.Visible = true
- Portal.BackSide.Frame.WorldName.Visible = false
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement