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
I'm pretty sure this is to do with the new update that came out recently.
1- At the top, go to view. 2- Navigate to drafts. 3- Right click each script. 4- Ensure you are sure that this is the correct version of the script, there should be a button called "view script" or something like that, press that and just skim over your script 5- Press commit.
I believe you can turn off scripts by navigating to File -> Settings -> Studio -> Always Save Script Changes, then check it to true. If this doesn't work or you don't want to do it for some reason, you're going to have to commit each script individually.
That should do it.
So sometimes this happens. The best thing I've found to do is either
1] Turn off collaborative editing
2] If that doesn't work, close your script and it should say in the console [Your Name] applied changes to [Script name].
3] If that still doesn't work, back the game up and save it locally. Then, import it and publish it to the pre-existing place.
This is a bug with collaborative editing, You can turn it off and it will still put scripts into drafts. Best thing i have found to do is opening a new place, turning off collab editing before you even do anything else then go back to the game and publish it to the place you just made, then work on it in the copy. When you're ready to update just publish to the normal place
Im 90% sure that this is a bug with your roblox studio, or the team create. so, do one of the following.
Uninstall And Reisntall Roblox Studio
Stop And Remake The Team Create
If these dont help, then, idk what else to do then.