How do you set a script's source to a pre-existing table

Im 100℅ sure it will work, sadly i gtg sleep could have done it now… :frowning: all good tho, its a bit hard aswell so ya.

1 Like

Roblox sent me a warning for telling u im going to sleep like bruh

I think you are asleep now but Anyways i just woke up and here is the code, this is kind of weird cus i might have understood the error wrongly so if this doesn’t work ik what will

local mod = Instance.new("ModuleScript")
   mod.Parent = workspace
   mod.Source = {HttpService:JSONEncode(keyframe)} --adding brackets so it becomes a table
   mod.Source = HttpService:JSONDecode(string.sub(mod.Source , 1 , #mod.Source - 1) --removing the brackets we made earlier.
1 Like

Thank you so much dude this actually worked!

Your welcome, i told you it is supposed for work : p

1 Like