im making a game based of the japanese game show the death pit and im making it so when a player says "ready" it will start. The first script is in ServerScriptService. Can someone help? Also the first script is a local script
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message == "ready" or "Ready" then
game.ReplicatedStorage["Start Game"]:FireServer()
end
end)
local TweenService = game:GetService("TweenService")
local PlatForm = script.Parent.Parent:WaitForChild("DisapearPart")
local tweeningInformation = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local Move = {CFrame = CFrame.new(99.125, 177.707, -262.83)}
local ComeBack = {CFrame = CFrame.new(99.125, 177.707, -215.915)}
local tween1move = TweenService:Create(PlatForm,tweeningInformation,Move)
local tween1comeback = TweenService:Create(PlatForm,tweeningInformation,ComeBack)
game.ReplicatedStorage["Start Game"].OnServerEvent:Connect(function(player)
tween1move:Play()
wait(70)
tween1comeback:Play()
end)

1 comment
Which one is server/local and where are they? You confused me a bit