I have already tried a script but it doesn't work and the output doesn't give me an error:
local IntermissionValue = game.ReplicatedStorage.Intermission
local map1 = game.Workspace.map1 or game.ReplicatedStorage.Maps.map1
local Clown = game.ReplicatedStorage.Clown or map1.Clown
local PlayerValue = game.ReplicatedStorage.PlayerValue
local DiedValue = game.ReplicatedStorage.DiedValue
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
if PlayerValue == 1 then
IntermissionValue.Value = 30
map1.Parent = game.ReplicatedStorage.Maps
Clown.Parent = game.ReplicatedStorage
else
if DiedValue == PlayerValue then
IntermissionValue.Value = 30
map1.Parent = game.ReplicatedStorage.Maps
Clown.Parent = game.ReplicatedStorage
end
end
end)
end)
end)

1 comment
Im here waiting