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

Can not find (p) in workspace?

local p = workspace.HintValue
hint.Text = (game.Workspace(p).Value)

These are 2 parts of a large script that i have created however the script can't find p (HintValue) in the Workspace and i do not understand why i mnot sure if it should be hint.Text = (game.Workspace(p).Value), hint.Text = (game.Workspace.(p).Value) or somthing completely different.

Hope i can get some help. Thanks!

1 answer

✓ Accepted answer

'p' is already pointing to the object in Workspace. All you need to do is change

hint.Text =  (game.Workspace(p).Value)

To

hint.Text = p.Value

1 comment

0

As you can see i have not been scripting long :3

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