I have the issue that when i go into Roblox Player my script just suddenly stops working.
When i go into Roblox Studio, everything works just fine.
So everytime i go into the game in normal Roblox Player, it just doesnt work.
The only thing that it does on both sides, is playing the audio but nothing else works.
local TweenService = game:GetService("TweenService")
local EventAudio = game.SoundService:WaitForChild("EventAudio")
task.wait(5)
EventAudio:Play()
local checkpoints = {
[0.1] = function()
for _, descendant in ipairs(game.Workspace:GetDescendants()) do
if descendant:IsA("Script") and descendant.Name == "RGB" then
descendant.Disabled = false
print("Enabled script:", descendant:GetFullName())
end
end
game.Workspace.Jerky_Stage.Folder.Fog.ParticleEmitter.Enabled = true
end,
[25.5] = function()
-- Screen Dissapear Logic
local Jerky_Screen = TweenService:Create(
game.Workspace.Jerky_Stage.Folder.Jerky_Screen,
TweenInfo.new(6, Enum.EasingStyle.Sine, Enum.EasingDirection.Out),
{Transparency = 1}
)
local Jerky_ScreenBack = TweenService:Create(
game.Workspace.Jerky_Stage.Folder.Jerky_ScreenBack,
TweenInfo.new(6, Enum.EasingStyle.Sine, Enum.EasingDirection.Out),
{Transparency = 1}
)
local T_Jerky_GlitchedCard = TweenService:Create(
game.Workspace.Jerky_Stage.Folder.Jerky_Screen.T_Jerky_GlitchedCard,
TweenInfo.new(6, Enum.EasingStyle.Sine, Enum.EasingDirection.Out),
{Transparency = 1}
)
T_Jerky_GlitchedCard:Play()
Jerky_Screen:Play()
Jerky_ScreenBack:Play()
end,
[69.3] = function()
local ColorCorrectionFadeDark = TweenService:Create(
game.Lighting.ColorCorrection,
TweenInfo.new(6.7, Enum.EasingStyle.Quint, Enum.EasingDirection.In),
{Brightness = -0.5}
)
ColorCorrectionFadeDark:Play()
end,
[76.3] = function()
game.Lighting.ColorCorrection.Brightness = 0
end,
}
local connection
connection = game:GetService("RunService").Stepped:Connect(function()
for time, action in pairs(checkpoints) do
if EventAudio.TimePosition >= time then
-- Execute the corresponding action
action()
checkpoints[time] = nil -- Remove the checkpoint to avoid duplicate triggers
end
end
if next(checkpoints) == nil then
connection:Disconnect()
end
end)
Have you checked console logs in the roblox game for errors
if descendant:IsA("Script") and descendant.Name == "RGB" then
descendant.Disabled = false
print("Enabled script:", descendant:GetFullName())
end
this can be finnicky in game aswell
make sure your game is published and saved to roblox aswell
If you are using collaborative editing, draft scripts may only be saved locally and not updated on the server. This means that changes made in Studio might not be reflected in the live game
i tried removing those lines compelty, published it and went into roblox player. still no sucesss.
i have collaborative editing but draft scripts turned off.
check workspace properties and your game settings and those things like HTTP requests and enable all those things in that i forgot if its called privacy or what