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

Help, Value is not a valid member of Position?

local Pos = script.Parent.Position.Value 
wait(2) 
E = Instance.new("Explosion", script.Parent) 
E.BlastRadius = 190 
E.BlastPressure = 50000 
E.DestroyJointRadiusPercent = 100 
E.Position = Vector3.new(Pos)

This makes perfect sense to me. :( Help please?

1 answer

✓ Accepted answer
local Pos = script.Parent.Position.Value 

If script.Parent is some brick, then script.Parent.Position is the Brick's position -- a Vector3. Vector3's don't have a Value property (member) so you're getting this error.

Most likely you just want

local Pos = script.Parent.Position

If, however, Position is actually a Vector3Value that you are using -- the reason for the error is stil the above. It will prefer the Position property over the child named "Position". You could fix this by using :FindFirstChild("Position").Value or, better, by renaming the Vector3Value.

1 comment

0

Thanks alot! :)

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