Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
4
Answered by
Nanomatics 1160 Moderation Voter
4 years ago

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.

Ad
Log in to vote
2
Answered by 4 years ago

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.

Log in to vote
0
Answered by
Zero_Tsou 175
4 years ago

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

0
It works, its just the thing I said about the Hello World thing. AronIZCool 11 — 4y
0
oh okayy Zero_Tsou 175 — 4y

Answer this question