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

Can not find (p) in workspace?

Asked by 9 years ago
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

Log in to vote
0
Answered by
DataStore 530 Moderation Voter
9 years ago

'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
0
As you can see i have not been scripting long :3 SamTheDeveloper 85 — 9y
Ad

Answer this question