Also, math.Random(0,4) WONT WORK
So, i am making something so this briefcase will teleport to 1 of 4 positions. The script works fine, but its always picking position one. Can someone help me?
local map = "hub"
local pick = 0
local CSPAWN = 0
pick = math.random(1)
if pick == 1 then
map = "concept"
print(map)
end
if map == "concept" then
CSPAWN = math.random(4)
if CSPAWN == 1 then
game.Workspace.Maps.Concept["The concept suitcase!"].Handle.Position = Vector3.new(-422.5, 1.5, -98.7)
end
if CSPAWN == 2 then
game.Workspace.Maps.Concept["The concept suitcase!"].Handle.Position = Vector3.new(-355.5, 1.5, -184.55)
end
if CSPAWN == 3 then
game.Workspace.Maps.Concept["The concept suitcase!"].Handle.Position = Vector3.new(-239.95, 1.5, -110.95)
end
if CSPAWN == 4 then
game.Workspace.Maps.Concept["The concept suitcase!"].Handle.Position = Vector3.new(-335.3, 1.5, -60.8)
end
print(CSPAWN)
end

2 comments
._. i don't think this is even the right topic m9, but your right :3
No it's right what are you saying. His number isn't randomizing and this is how you do it.