gold = game.Players.LocalPlayer.leaderstats.Gold
script.Parent.MouseButton1Click:connect(function()
if gold.Value >= 100 then
gold.Value = gold.Value - 100
local a = game.ReplicatedStorage.CharactersLevelOne:GetChildren()
local b = a[math.random(1,#a)]:Clone()
b.Parent = game.Workspace:WaitForChild("Monsters")
b.Monster.Value = b.Monster.Value + 1
b.Parent = game.Workspace:WaitForChild("Monsters")
script.Parent.Parent.MonsterCount.Value = script.Parent.Parent.MonsterCount.Value + 1
script.Parent.Parent.FirstSummon.Text = "Summoned monster"
local x = game.Players.LocalPlayer.SaveMonsters:WaitForChild(b.Name)
x.Value = x.Value + 1
wait(3)
script.Parent.Parent.FirstSummon.Text = "1 ~ 3 100 gold"
end
if gold.Value < 99 then
script.Parent.Parent.FirstSummon.Text = "Not enough money"
wait(3)
script.Parent.Parent.FirstSummon.Text = "1 ~ 3 powered 100 gold"
end
end)
So where is says a[math.random(1,#a)]:Clone() I want it to be a randomseed and I am not sure how so when I play the game, the item changes everytime you start the game..

1 comment
Well, just as I said in the website chat, you'd put
math.randomseedat the start of your script, then as I've seen before, call uponmath.random(no arguments) and it should work.