Why won't this line of code work in a localscript in a ScreenGui

Context: I am trying to get a tool from a folder in ServerStorage. This code is in a local script under a ScreenGui.
All variables work accordingly with no yields but this line of code keeps on giving the same error.

local dagger1 = cmntools:FindFirstChild("1Dagger1")

1 Like

Based on your title, you are using a LocalScript, A LocalScript can’t access server services like ServerStorage. You can try using RemoteEvents to replicate the Object or put it in ReplicatedStorage

4 Likes

Such a tiny error but it stopped everything from functioning! Thanks #100

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.