So i'm using team create, and usually it say "script(Marine5575 editing)" and i can apply edits, but now, i can't save or publish it and its scaring me. Help? Here's my script Maybe its a problem with my script
local players = game.Players:GetPlayers()
local count = 0
script.Parent.Touched:Connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.parent)
if Player then
if Player:FindFirstChild("InElevator") == nil then
local boolValue = Instance.new("BoolValue",Player)
boolValue.Name = "InElevator"
boolValue.Value = true
CheckPlayers()
print("Checked Players!")
end
end
end)
function CheckPlayers()
print("CheckingPlayers!")
for i,v in pairs(players) do
print(i,v)
if v:FindFirstChild("InElevator").Value then
count = count + 1
print(count)
end
end
end

9 comments
Try turning off collaborative editing in the settings
Home Tab -> Game Settings -> Options -> Enable Collaborative editing. (then turn it off)
ok
I tryed that and it did nothing, could it be that the people who own it are not on?
Maybe?
Is anyone else editing it with you at the same time?
No. I'm the only one on i think
Close the script from the top bar. It should show that you applied edits to the script
Ok i'll try that