Hey, I am encountering a weird problem here. As you can see in the script, the RemoteEvent Dialog1 should be ran after all the other things. Now, weird is, the camera RemoteEvent is not getting ran after Dialog1. How is this happening?
-- Script
local Players = game:GetService("Players")
local RemoteEvent = game.ReplicatedStorage.RemoteFunction
local NumberRR = 1
local FName
local PName
local GetPlayer
local GetMat
local RealMat
local FullPath
local GetUser2
local isnil241
local RandomInteger
UserCount6 = game.Workspace.GameD:GetChildren()
UserCount5 = #UserCount6;
local NewCountUser = workspace.GameD:GetChildren()
for i, user in ipairs(NewCountUser) do
print(user.Name)
FName = "User" .. NumberRR
local PlayerFile = Instance.new("StringValue")
PlayerFile.Name = "User" .. NumberRR
PlayerFile.Parent = workspace.AllPlayer
PlayerFile.Value = user.Name
char.Humanoid.WalkSpeed = 0
repeat wait()
char = game.Players:FindFirstChild(PName).Character
until char ~= nil
char.Humanoid.Sit = false
wait(0.2)
char:SetPrimaryPartCFrame(FullPath.CFrame)
char.Humanoid.AutoJumpEnabled = false
char.Humanoid.JumpPower = 0
game.ReplicatedStorage.Camera:FireClient(game.Players:FindFirstChild(PName))
game.ReplicatedStorage.Dialog1:FireClient(game.Players:FindFirstChild(PName))
UserCount4 = game.Workspace.AllPlayer:GetChildren()
UserCount3 = #UserCount4;
print("First")
end
Edit: Accidently put something else in here that wasnt part of the problem. Edit #2: Reduced the code to that what I believe is the source of the problem.

3 comments
Can you reduce the code as much as possible to provide a more concise example of your problem? Take out the unnecessary bits so its easier for us to help
Ill try.
Okay, reduced the code as much as I could.