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 5 years ago
Edited 5 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:

01local points = 3000
02local d = true
03 
04script.Parent.Touched:Connect(function(hit)
05    if hit.Parent:FindFirstChild("Humanoid") then
06        local p = game.Players:GetPlayerFromCharacter(hit.Parent)
07        if p.leaderstats.Coins.Value >= points then
08            if d then
09                d = false
10                script.Parent.Transparency = 1
11                script.Parent.CanCollide = false
12                wait(3)
13                script.Parent.Transparency = 0.5
14                script.Parent.CanCollide = true
15                d = true
View all 21 lines...

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
5 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 5 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
5 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 — 5y
0
oh okayy Zero_Tsou 175 — 5y

Answer this question