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
local fakebullet = game:GetService("Lighting").props.knife:Clone();fakebullet.Parent = workspace.effects;fakebullet.Name = "fakeknife";fakebullet.CFrame = char.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0.5,0,-3) * CFrame.Angles(math.rad(-90),0,0));game.TweenService:Create(fakebullet, TweenInfo.new(1),{CFrame = bullet.CFrame + char.HumanoidRootPart.CFrame.lookVector*5}):Play();repeatwait();until game.Lighting.IsTimeStop.Value == false;caster:Fire(origin, direction, 150, behaviour);fakebullet:Destroy();elsecaster:Fire(origin, direction, 150, behaviour);end
the script just seems to skip these lines.