So i created a time stop but when i stop time the player stops moving too. Is there a way i can allow the player to keep moving during the time stop and also how do i make the time stop to only happen for the player.
https://gyazo.com/200a7973f049f6d44d75d9839dfdae6a
Server script :
local InUse = game.ReplicatedStorage.BaconEvent.InUse
local sound = workspace.BaconTimeStop
local bacon = {}
model.BaconTimeStop.OnServerEvent:Connect(function(player)
local find = workspace:GetDescendants()
if model.InUse.Value == false then
model.InUse.Value = true
game.Lighting.BaconTime.Enabled = true
sound:Play()
for i=1, #find do
local That = find[i]
if That:IsA("Part") or That:IsA("MeshPart") then
if That.Anchored == false and That.Parent.Name ~= player.Name and That.Name ~= "Baseplate" and not That.Parent:IsA("Accessory") then
That.Anchored = true
table.insert(bacon, That)
end
end
end
elseif model.InUse.Value == true then
model.InUse.Value = false
game.Lighting.BaconTime.Enabled = false
for i=1, #bacon do
bacon[i].Anchored = false
end
table.clear(bacon)
end
end)