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

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

Asked by 2 years ago
Edited by Xapelize 2 years 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 — 2y

1 answer

Log in to vote
0
Answered by
Gigaset39 111
2 years ago
Edited 2 years 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 
    screen.Text = "Get ready"

      ---I call that part screen,cause you didnt provide the name of it.
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. Gigaset39 111 — 2y
0
script.Parent.Text is the script? Gigaset39 111 — 2y
Ad

Answer this question