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

Why isn't this working?

I'm trying to practice scripting, in this case my returning, and when I try to run the script, it says there is an error in line 16. Something about a string value. Whats wrong?


pie=65

function problem()
	print="hi"
	print="hi"
	print="hi"
	print="hi"
     return 100
end

print (pie)

pie= problem()

print (pie)


	

1 answer

It's always print(text), not print=text.

pie=65

function problem()
    print("hi")
    print("hi")
    print("hi")
    print("hi")
     return 100
end

print (pie)

pie= problem()

print (pie)

1 comment

0

OH

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