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

Local Script works solo, but not on server. Doesn't find member. What's broken?

Asked by 8 years ago

I have a weapon local script that finds weapon configuration values by finding the IntValues in the tool. This way I can create different weapons on the fly without having to dive into the script itself. The script works fine in solo, but breaks down in the test server. Here's the code I use to find the configurations.

local VELOCITY = script.Parent.Configuration.Velocity.Value

Weapon

Local Script

Configuration

    Velocity (Int Value)

While this works just fine solo, I get an error as soon as I load the server:

Configuration is not a valid member of Tool

Configuration is clearly there when I go to check.

Is something with it being a server causing the Local Script to break down?

2
Try :WaitForChild theCJarmy7 1293 — 8y
1
Hey, that worked. I guess it was looking for the child before it was loaded? Thanks! Phantom1996 45 — 8y

Answer this question