if chosenChapter.Name == "Chapter One" then
game.ReplicatedStorage.Events.CloneCutscene.OnServerEvent()
end
The second script :
game.ReplicatedStorage.Events.CloneCutscene.OnServerEvent:Connect(function(player)
if player.PlayerGui:FindFirstChild("Cutscene") == nil then
local Clones = game.ReplicatedStorage.Cutscenes.Chapter1:Clone()
Clones.Parent = player.PlayerGui
end
end)
You shouldn’t be editing PlayerGui on the server. Use :FireAllClients() or :FireClient(player) on the server, then use .OnClientEvent() on your client to pick up the call.
What @Tom_atoes said is true and you should be editing GUIs on the client. It is much easier to manage. The issue is your syntax is not correct with RemoteEvents since you’re trying to use them like a BindableEvent.
However through reading your trying to fire the server locally (should be in a local script)
-- so instead do this
if chosenChapter.Name == "Chapter One" then
game.ReplicatedStorage.Events.CloneCutscene:FireServer(1)
end
New second script then to handle this:
game.ReplicatedStorage.Events.CloneCutscene.OnServerEvent:Connect(function(player, scene)
if scene == 1 then
local Clones = game.ReplicatedStorage.Cutscenes.Chapter1:Clone()
Clones.Parent = player.PlayerGui
end
end)