Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My scripts aren't saving or publishing Help?

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

0

Try turning off collaborative editing in the settings

0

Home Tab -> Game Settings -> Options -> Enable Collaborative editing. (then turn it off)

0

ok

0

I tryed that and it did nothing, could it be that the people who own it are not on?

0

Maybe?

0

Is anyone else editing it with you at the same time?

0

No. I'm the only one on i think

0

Close the script from the top bar. It should show that you applied edits to the script

0

Ok i'll try that

4 answers

✓ Accepted answer

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.

  1. Uninstall And Reisntall Roblox Studio

  2. Stop And Remake The Team Create

If these dont help, then, idk what else to do then.

This discussion is preserved as it was. New answers, comments, and votes are closed.