Heres the script:
local de = true
local Camera = workspace.CurrentCamera
local players = game.Players:GetPlayers() -- getting players
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEventstar = ReplicatedStorage:WaitForChild("start")
local remoteEventwerewaiting = ReplicatedStorage:WaitForChild("waiting")
local function wearewaiting(value)
remoteEventwerewaiting:FireServer()
end
script.Parent.MouseButton1Click:Connect(function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("waiting")
print("working up to here")
print("2")
local RemoteFunction = game.ReplicatedStorage:WaitForChild("requestnew")
print("3")
local PassedValue = RemoteFunction:InvokeServer()
print("4")
local remoteFunctionrn = ReplicatedStorage:WaitForChild("requestvalue")
print("1")
if de == true then
print("able to click")
if #players >=3 then
print("enough ppl")
if PassedValue then
if PassedValue == true then
print("round is not")
local requestval = remoteFunctionrn:InvokeServer()
if requestval == true then
print("server isnt new")
remoteEvent:FireServer()
print("hi")
wearewaiting()
print("yay")
else
remoteEvent:FireServer()
script.Parent.Text = "Loading"
de = false
wait(1)
local plr = game.Players.LocalPlayer
local character = plr.Character or plr.Character:Wait()
Camera.CameraSubject = character.Humanoid
for i = 1, 0, -.02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 0
local children =script.Parent.Parent.Parent.mainrun:GetChildren()
for i = 1, #children do
children[i].Visible = false
end
wait(.5)
Camera.CameraType = Enum.CameraType.Custom
script.Parent.Parent.Parent.dead.Visible = true
script.Parent.Parent.Parent.dead.LocalScript.Disabled = true
script.Parent.Parent.Parent.dead.LocalScript.Disabled = false
script.Parent.Parent.Visible = false
wait(.5)
for i = 0, 1, .02 do
script.Parent.Parent.Parent.darkness.BackgroundTransparency = i
wait()
end
script.Parent.Parent.Parent.darkness.BackgroundTransparency = 1
script.Disabled = true
wait(10)
de = true
script.Parent.Text = "Play"
end
end
else
script.Parent.Parent.Parent.noppl.Visible = true
end
else
end
end
end)
remoteEventwerewaiting.OnClientEvent:Connect(wearewaiting)
Line 19 or
local PassedValue = RemoteFunction:InvokeServer()
stops the script, no errors. Don’t know if 21 or
local remoteFunctionrn = ReplicatedStorage:WaitForChild(“requestvalue”)
also stops the script, but i haven’t gotten there.
I made sure that the right remote function is firing, server has a print, and it prints, i can provide the server script if you want but i don’t think that it is important
I have posted a simular situation before, right here