Advertisement
Cakey3101

Portal Unlocker Local Script

May 2nd, 2025
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | Source Code | 0 0
  1. local Players = game:GetService("Players")
  2. local Workspace = game:GetService("Workspace")
  3.  
  4. local Player = Players.LocalPlayer
  5.  
  6. local Portals = Workspace.Portals
  7.  
  8. local Leaderstats = Player:WaitForChild("leaderstats")
  9. local RebirthValue = Leaderstats:WaitForChild("Rebirth")
  10.  
  11. while task.wait(0.05) do
  12.     for _, Portal in Portals:GetChildren() do
  13.         if Portal:IsA("Part") then
  14.             if RebirthValue.Value >= Portal:WaitForChild("RebirthsRequired").Value then
  15.                 Portal.FrontSide.Frame.LockIcon.Visible = false
  16.                 Portal.FrontSide.Frame.Amount.Visible = false
  17.                 Portal.FrontSide.Frame.WorldName.Visible = true
  18.                 Portal.BackSide.Frame.LockIcon.Visible = false
  19.                 Portal.BackSide.Frame.Amount.Visible = false
  20.                 Portal.BackSide.Frame.WorldName.Visible = true
  21.             else
  22.                 Portal.FrontSide.Frame.LockIcon.Visible = true
  23.                 Portal.FrontSide.Frame.Amount.Visible = true
  24.                 Portal.FrontSide.Frame.WorldName.Visible = false
  25.                 Portal.BackSide.Frame.LockIcon.Visible = true
  26.                 Portal.BackSide.Frame.Amount.Visible = true
  27.                 Portal.BackSide.Frame.WorldName.Visible = false
  28.             end
  29.         end
  30.     end
  31. end
Tags: robloxstudio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement