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

Position is not a valid member of Fire?

I've been sitting here for about 2 hours, trying to figure out what I did wrong... it's giving me the error message "Position is not a valid member of Fire". I just got back into ROBLOX scripting, took a very long break (2 years) so please don't tell me I'm stupid for not knowing something this simple.

Script:

--Coded by Gridant

local log = script.Parent

local detector = log.ClickDetector

function click() local fire = Instance.new("Fire") fire.Parent = log fire.Position = log.Position local light = Instance.new("SurfaceLight") light.Parent = log

end

detector.MouseClick:connect(click)

(THIS SCRIPT IS NOT DONE YET, THIS ERROR IS JUST BUGGING ME AT THE MOMENT)

1 answer

Figured it out myself, sorry guys! Fix: Fire doesn't have a position (lol) I removed the line completely and now it works fine! Keeping it up in case anyone else has this problem.

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