local workspace = game:GetService("Workspace")
local gate = workspace:WaitForChild("GateWorld1")
local Player = game.Players.LocalPlayer
local hiddenData = Player:WaitForChild("hiddenData")
local unlockedWorld = hiddenData:WaitForChild("unlockedWorld")
game.Players.PlayerAdded:Connect(function()
if unlockedWorld.Value > 1 then
gate.CanCollide = false
gate.Transparency = 1
end
end)
this script is in StarterPlayer > StarterPlayerScripts, and it's supposed to "open" the Gate to the next world for the player, if he has unlocked it. The "Gate" stays the same tho, even if unLockedWorld is more than 1