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

Text is not a valid member of Model "Workspace.GameScripts" ? server script

while true do
	wait(0.1)
	if script.Parent.Running.Value == 2 then
	if script.Parent.Text == "Time Left: 225" or script.Parent.Text == "Time Left: 224" then
		game.Lighting.NTFTP:Clone().Parent = game.Workspace
		game.Workspace.Audio.NTF:Play()
		game.Lighting.AntiAFKBrick:Clone().Parent = game.Workspace
		wait(5)
		game.Workspace.NTFTP.tele1:remove()
		wait(3)
		game.Workspace.NTFTP:remove()
		game.Workspace.AntiAFKBrick:remove()
	end
	end
	end

1 comment

1

By what I understand you have there a value called "Text" inside of the script, right?

1 answer

you didnt give us enough informations, soo. you are tring to modify the text proprety of something called ”GameScripts” ? im i right?? if soo, i supose GameScript its a ”normal” script placed in ServerScriptService , and a script doesent have a text proprety, please provide us more information, if im wrong.î

EDIT: soo i think i got it, soo: script.Parent.Text its a part, right? a part doesent have a text propriety. soo you need to insert a SurfaceGui into that part ( you didnt say how taht part is called, but its: script.Parent) and a TextLabel into the SurfaceGUI, and now you can say in the script:

local screen = workspace.Screen.SurfaceGui.TextLabel 
    screen.Text = "Get ready"

      ---I call that part screen,cause you didnt provide the name of it.

2 comments

0

soo. Text is not a valid member of Model "Workspace.GameScripts" , basicaly means that, GameScript doesent have a text propreti, soo you cant change it.

0

script.Parent.Text is the script?

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