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

Submit to RS Value not functioning?

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 :|

5 comments

0

and no-it doesn't print submitted

0

Is this a LocalScript/Script? Where is this script?

0

Script. I originally used a LocalScript and it didn't function. Hierarchy: http://prntscr.com/7bps2p

0

i need an answer

0

Any errors? Might be because of the WaitForChild again on line 4.

1 answer

✓ Accepted answer

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

2 comments

0

Thanks for the eye, man. I thought I counted it a million times!

0

No problem! :)

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