#script works in studio but not in the actual game?

1 messages · Page 1 of 1 (latest)

dusty kraken
#
local barrierfolder = workspace:WaitForChild("Barriers")
local Secretary = barrierfolder.Secretary:WaitForChild("Barrier")
local InternBarrier = barrierfolder:WaitForChild("InternBarrier")
local SecondInternBarrier = barrierfolder:WaitForChild("SecurityInternBarrier")
local SecurityStations = barrierfolder:WaitForChild("SecurityStations")
local player = game.Players.LocalPlayer
local rank =  player:GetRankInGroup(35855841)

if rank >= 4 then
    Secretary.CanCollide = false

else
    Secretary.CanCollide = true
end

if rank >= 2 then
    InternBarrier.CanCollide = false
    SecondInternBarrier.CanCollide = false
else
    InternBarrier.CanCollide = true
    SecondInternBarrier.CanCollide = true
end

if rank >= 6 then
    SecurityStations.CanCollide = false
else 
    SecurityStations.CanCollide = false
end
chilly meteor
#

hmmmmmm

#

try turn your computer off and on