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

How would I make this be able to save Color3 values as well?

Asked by
oSyM8V3N 429 Moderation Voter
5 years ago
01local DSService = game:GetService('DataStoreService'):GetDataStore('DBSRClosedTestv9')
02game.Players.PlayerAdded:connect(function(p)
03    wait(game.Lighting.TimeToLoad.Value)
04    -- Define variables
05    local stats = game.ServerStorage.PlayerData:Clone()
06    stats.Parent = p
07    stats.Level.Value = 1
08    stats.StrengthValue.Value = 0
09    stats.speedValue.Value = 1
10    stats.maxKi.Value = 100
11    stats.MaxStaminaValue.Value = 100
12    stats.kiDamage.Value = 0
13    stats.kiControl.Value = 0
14    stats.kiValue.Value = 100
15    stats.AgilityValue.Value = 0
View all 61 lines...

1 answer

Log in to vote
0
Answered by 5 years ago

You can create a Color3Value and just save the Value

0
it pops up an error when I do so oSyM8V3N 429 — 5y
Ad

Answer this question