So I finished my DataStoreService script, but I got a couple errors, and I want to see what was/were the errors that I commited, and that with your help . I tried so far searching on Youtube, and google.I did not found something, so heres my code:
If you can tell me whats wrong here I will be so grateful to you
You have a typo!!
Line 18 you have a capital S.
GetASync
should be GetAsync
Tiny, I know. But enough to yell at you and break code!
Same with your SetAsync
on line 36.
2 Likes
D0RYU
(nici)
August 12, 2021, 10:25pm
#4
no don’t do this, this causes memory leaks and shouldn’t be encouraged
I’ve discovered a pretty bad performance issue in one of top games that has to do with Instance.new and wanted to write about this, since this is not obvious unless you know the system inside out.
Tthere are several ways to create a ROBLOX object in Lua:
local obj = Instance.new(‘type’); fill obj fields
local obj = Instance.new(‘type’, parent); fill obj fields
local obj = util.Create(‘type’, { field1 = value1, … })
If you care at all about performance, please only use the first option - I wi…
1 Like
That’s my bad I was not aware, usually all my parts are just cloned from replicated storage