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

Is not a valid member of KeyframeSequenceProvider?!

Asked by 5 years ago
Edited by User#24403 5 years ago

i was sorta doing simple scripting since i am a starter student, i tried making blinking light using instance.new to test it, so i made this script and put inside the part i want it in:

while true do
    light = game.Instance("PointLight", script.Parent)
    light.Range = 15
    wait(2)
    light:Destroy()
    wait(3)
end

it does not work , i tried deleting light:destroy() but it still didn't work, and i was confused until i opened my output , there i was even buffled because it said: "PointLight is not a valid member of KeyframeSequenceProvider" i did some research and correct me if i'm wrong but... this error only happens when editing the animation editor or something...

there's nothing in the world btw , theres only 1 Baseplate and a part that i'm editing which is empty only having this script.

now i'm stunned with confusing questions...

0
Where is this error coming from? starmaq 1290 — 5y
0
The problem here is that you are using `game.Instance` rather than `Instance.new()` farizarps 132 — 5y
0
i realized this before now, thanks for the help anyways. PicoTheRiko 34 — 5y

Answer this question