Is it possible to use return to call a set of numbers? I'm sorry if this doesn't make much sense, I'm still kind of new to this and I'm not really sure how to word it right. Here is a section of my script so you can get a better idea of what I'm asking.
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,passId) then
Val = DataStore:GetAsync("Pos")
if Pos then
return Pos
else
return -151.4, 36.5, -138
end
plr.CharacterAdded:connect(function(Character)
Hum = Character:FindFirstChild("HumanoidRootPart")
HumPos = Hum.Position
local Humanoid = Character:FindFirstChild("Humanoid") -- find the humanoid, and detect when it dies
if Humanoid then
Humanoid.Died:connect(function()
wait(respawnTime) -- delay, then respawn the character
plr:LoadCharacter()
end)
end
end)
plr:LoadCharacter()
local HumPos = Val
On line 6 I am returning a set of numbers, is this possible or do I need to use a different approach? Thanks!

1 comment
This is new to me, thanks for the help! :D