Hi c: I recently made a Fairy Tail game (anime) I have made a script so that when the player enters the game for the first time, they are given a random tool from lighting, and then I made a separate script that saves it. Every few months I want to reset the data so that they spawn with a new tool :o I have tried everything I know, and I just can't seem to reset it. If there a way to reset it? If anyone can tell me what to do, that would be great :)
[The Distribution Script]
001 me = script.Parent.Parent 002 owner = "EternityOfMagic" 003 wait(1) 004 005 if me.PlayerGui:findFirstChild("HealthGUI") ~= nil then 006 me.PlayerGui:findFirstChild("HealthGUI"):remove() 007 end 008 009 while true do 010 wait(.1) 011 012 013 if me:findFirstChild("Data") ~= nil then 014 015 if me:findFirstChild("Data") ~= nil then 016 if me.Data.Magic1.Value ~= "" then 017 if me.Backpack:findFirstChild("opened") == nil then 018 019 if me.Name == "EternityOfMagic" then 020 game.Lighting.SatanSoul:clone().Parent = me.Backpack 021 o = Instance.new("StringValue", me.Backpack) 022 o.Name = "opened" 023 end 024 if me.Data.Magic1.Value == "Water" then 025 game.Lighting.Water:clone().Parent = me.Backpack 026 o = Instance.new("StringValue", me.Backpack) 027 o.Name = "opened" 028 end 029 if me.Data.Magic1.Value == "Earth" then 030 game.Lighting.Earth:clone().Parent = me.Backpack 031 o = Instance.new("StringValue", me.Backpack) 032 o.Name = "opened" 033 end 034 if me.Data.Magic1.Value == "Wind" then 035 game.Lighting.Wind:clone().Parent = me.Backpack 036 o = Instance.new("StringValue", me.Backpack) 037 o.Name = "opened" 038 end 039 if me.Data.Magic1.Value == "IceMake" then 040 game.Lighting.IceMake:clone().Parent = me.Backpack 041 o = Instance.new("StringValue", me.Backpack) 042 o.Name = "opened" 043 end 044 if me.Data.Magic1.Value == "Gravity" then 045 game.Lighting.Gravity:clone().Parent = me.Backpack 046 o = Instance.new("StringValue", me.Backpack) 047 o.Name = "opened" 048 end 049 if me.Data.Magic1.Value == "Crash" then 050 game.Lighting.Crash:clone().Parent = me.Backpack 051 o = Instance.new("StringValue", me.Backpack) 052 o.Name = "opened" 053 end 054 if me.Data.Magic1.Value == "Light" then 055 game.Lighting.Light:clone().Parent = me.Backpack 056 o = Instance.new("StringValue", me.Backpack) 057 o.Name = "opened" 058 end 059 if me.Data.Magic1.Value == "Snow" then 060 game.Lighting.Snow:clone().Parent = me.Backpack 061 o = Instance.new("StringValue", me.Backpack) 062 o.Name = "opened" 063 end 064 if me.Data.Magic1.Value == "Sand" then 065 game.Lighting.Sand:clone().Parent = me.Backpack 066 o = Instance.new("StringValue", me.Backpack) 067 o.Name = "opened" 068 end 069 if me.Data.Magic1.Value == "Gun" then 070 game.Lighting.Gun:clone().Parent = me.Backpack 071 o = Instance.new("StringValue", me.Backpack) 072 o.Name = "opened" 073 end 074 if me.Data.Magic1.Value == "SolidScript" then 075 game.Lighting.SolidScript:clone().Parent = me.Backpack 076 o = Instance.new("StringValue", me.Backpack) 077 o.Name = "FairyTail" 078 end 079 080 081 end 082 end 083 if me.Data.Magic1.Value ~= "" and me.PlayerGui.GameGui:findFirstChild("MagicCast") == nil and me.PlayerGui.GameGui:findFirstChild("GuiSkill") == nil then 084 game.Lighting["MagicCast"]:clone().Parent = me.PlayerGui.GameGui 085 game.Lighting["GuiSkill"]:clone().Parent = me.PlayerGui.GameGui 086 end 087 if me.Data.Magic1.Value == "" then 088 jan = math.random(1,11) 089 if jan == 1 then 090 me.Data.Magic1.Value = "Light" 091 elseif jan == 2 then 092 me.Data.Magic1.Value = "Water" 093 elseif jan == 3 then 094 me.Data.Magic1.Value = "Earth" 095 elseif jan == 4 then 096 me.Data.Magic1.Value = "Wind" 097 elseif jan == 5 then 098 me.Data.Magic1.Value = "IceMake" 099 elseif jan == 6 then 100 me.Data.Magic1.Value = "Gravity" 101 elseif jan == 7 then 102 me.Data.Magic1.Value = "Crash" 103 elseif jan == 8 then 104 me.Data.Magic1.Value = "Sand" 105 elseif jan == 9 then 106 me.Data.Magic1.Value = "Snow" 107 elseif jan == 10 then 108 me.Data.Magic1.Value = "Gun" 109 elseif jan == 11 then 110 me.Data.Magic1.Value = "SolidScript" 111 112 end 113 end 114 115 end 116 117 end 118 119 end