Hello, I’m trying to make a story game similar to that of “Break in” and I wanted to make a intro cutscene that depending on how many players there are in the server, could skip and continue on with the game if every player in the server clicked the vote to skip button. I would like some ideas or help on how I should go about approaching this, maybe even what resources I should be looking at. As well as how to effectively skip the cutscene itself. Thank you.
Just have it when a client votes to skip, fire an event to the server. Once, let’s say 1/2 of the server fires the event skip the cutscene.
How would I go about having the cutscene itself skip? Like should I set the entire cutscene in it’s own script and just have it get disabled if the votes pass? Or within a function in the same script? If in the same script, how do I make the function stop running?
local TopFrame = script.Parent.TopFrame
local BottomFrame = script.Parent.BottomFrame
local players = game:GetService(“Players”):GetPlayers()
local PlayersAmount = script.PlayersAmount
TopFrame.SkipFrame.SkipButton.MouseButton1Click:Connect(function()
PlayersAmount.Value += 1
end)
PlayersAmount:GetPropertyChangedSignal(“Value”):Connect(function()
TopFrame.SkipFrame.SkipButton.TextLabel.Text = “Skip (”…PlayersAmount.Value…“/”…#players…“)”
if PlayersAmount.Value >= #players then
wait(3)
TopFrame:TweenPosition(UDim2.new(0,0,-1,0),.1)
BottomFrame:TweenPosition(UDim2.new(0,0,1,0),.1)
end
end)
TopFrame.SkipFrame.SkipButton.TextLabel.Text = “Skip (”…PlayersAmount.Value…“/”…#players…“)”