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

Submit to RS Value not functioning?

Asked by
unmiss 337 Moderation Voter
9 years ago

I don't understand why this isn't submitting to the StringValue in ReplicatedStorage:

local DefenderProof = game.ReplicatedStorage.UADefenderProof
--local hint = script.Parent.Parent.Parent.Parent.NewsGui.News.Text

local CourtR = script.Parent.Parent.Parent.Parent.Parent:WaitForChild("CourtGui").CourtBase


local function SubmitProofD()
    print("submitted")
    DefenderProof.Value = script.Parent.Parent.URL.Text
end

script.Parent.MouseButton1Click:connect(SubmitProofD)

Prosecutor one doesn't submit either-but it's exactly the same except some strings of text are different.

Very strange :|

0
and no-it doesn't print submitted unmiss 337 — 9y
0
Is this a LocalScript/Script? Where is this script? BlueTaslem 18071 — 9y
0
Script. I originally used a LocalScript and it didn't function. Hierarchy: http://prntscr.com/7bps2p unmiss 337 — 9y
0
i need an answer unmiss 337 — 9y
0
Any errors? Might be because of the WaitForChild again on line 4. Spongocardo 1991 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

By looking at your hierarchy (thanks for posting that), you've accidentally stuck in one too many .Parents on Line 4, so your WaitForChild is waiting indefinitely for something that is not and will not be there :P

0
Thanks for the eye, man. I thought I counted it a million times! unmiss 337 — 9y
0
No problem! :) FlyScript 35 — 9y
Ad

Answer this question