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

Why are my scripts turning into print("Hello, World!")?

Ok, so to start this off I have been having a problem. The problem is, is when I write script I can see it, but when my friend views it it just says print("Hello, World"), also when I go in a normal roblox game to test it out and go on the Developer Console all I see is just print("Hello, World!"). This only effected the script I currently made or currently edited. Please help. I will include the code also:

local points = 3000
local d = true

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local p = game.Players:GetPlayerFromCharacter(hit.Parent)
		if p.leaderstats.Coins.Value >= points then
			if d then
				d = false
				script.Parent.Transparency = 1
				script.Parent.CanCollide = false
				wait(3)
				script.Parent.Transparency = 0.5
				script.Parent.CanCollide = true
				d = true
			end
		else
			print("NO.")
		end
	end
end)



But instead of that it will just show:

Print("Hello, World!"), in the developer console.

3 answers

✓ Accepted answer

I am assuming that you are using team create with you your friend?

If that is the case, there is a new feature that Roblox has added, which makes the scripts go into a window called "Drafts" which you can open from the top ribbon under "View".

You will see the script names inside that window, right-click the script you want and press "commit", this should update the scripts for your friend and on the actual servers too.

Hope this helped.

The Hello World thing is nothing got to do with this script. It is the starting line of every normal and local script. You probably have some random unedited script lying around somewhere.

You and your friend Does not have the same Coins/Points that's why it only display's for you and not him

2 comments

0

It works, its just the thing I said about the Hello World thing.

0

oh okayy

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