Value checker dont work on server script

Hello

I have a big problem!I make jojo game and i have a knife throw script and I need to check the time stop value in lighting

SCRIPT:
> 1. if game.Lighting.IsTimeStop.Value == true then

  1.    	local fakebullet = game:GetService("Lighting").props.knife:Clone();
    
  2.    	fakebullet.Parent = workspace.effects;
    
  3.    	fakebullet.Name = "fakeknife";
    
  4.    	fakebullet.CFrame = char.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0.5,0,-3) * CFrame.Angles(math.rad(-90),0,0));
    
  5.    	game.TweenService:Create(fakebullet, TweenInfo.new(1),{CFrame = bullet.CFrame + char.HumanoidRootPart.CFrame.lookVector*5}):Play();
    
  6.    	repeat
    
  7.    		wait();
    
  8.    	until game.Lighting.IsTimeStop.Value == false;
    
  9.   	caster:Fire(origin, direction, 150, behaviour);
    
  10.   	fakebullet:Destroy();
    
  11.   else
    
  12.   	caster:Fire(origin, direction, 150, behaviour);
    
  13.   end
    

the script just seems to skip these lines.

There doesn’t seem to be any improper syntax, I would recommend putting prints on each line to see where the code is stopping.

after these lines the code works

Is caster firing? You should print to see what the IsTimeStop value is.