Also, there are other thing included with it so don't worry about that.
20:42:37.636 - stuntbros is not a valid member of Smoke
20:42:37.637 - Stack Begin
20:42:37.639 - Script 'Players.stuntbros.PlayerGui.LoadFrame.LoadFrame.Script', Line 25
20:42:37.640 - Stack End
Smoke is just my Data Holder
Here is my script
local PlayerData = game:GetService("DataStoreService"):GetDataStore(script.Parent.Parent.Parent.Parent.UserId)
local PlayerDataHolder = game.ServerStorage.DataHolder:WaitForChild(script.Parent.Parent.Parent.Parent.Name)
script.Parent.Load.MouseButton1Click:connect(function()
if PlayerData:GetAsync("Stage") then
game.ServerStorage.DataHolder(script.Parent.Parent.Parent.Parent.Name).Stage.Value = PlayerData:GetAsync("Stage")
if PlayerDataHolder.Stage.Value == 1 then
script.Parent.Parent.Parent.Parent.Character.Humanoid.Torso.CFrame = CFrame.new(workspace.MainSpawn.Position + Vector3.new(0,6,0))
else
for i, Part in ipairs(workspace:GetChildren()) do
if Part.ClassName == "Part" then
if Part:FindFirstChildOfClass("NumberValue") then
if Part.StageValue.Value == PlayerData:GetAsync ("Stage")then
script.Parent.Parent.Parent.Parent.Character.Humanoid.Torso.CFrame = CFrame.new(Part.Position) + Vector3.new(0,6,0)
PlayerDataHolder.StageObject.Value = Part
end
end
end
end
end
else
warn("PlayerData does not contain Stage Values")
end
end)
script.Parent.Save.MouseButton1Click:connect(function()
if game.ServerStorage.DataHolder(script.Parent.Parent.Parent.Parent.Name) then
PlayerData:GetAsync("Stage",game.ServerStorage.DataHolder(script.Parent.Parent.Parent.Parent.Name).Stage.Value)
end
end)
Thanks in advance
