0

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

Edited by Xapelize 4 months ago
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
By what I understand you have there a value called "Text" inside of the script, right? SuperPuiu 497 — 4mo

0
Gigaset39 103
4 months ago
Edited 4 months ago

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