Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

THE MAP IS NOT LOADING FOR SOME REASON EVEN THOUGH I SCRIPTED EVERYTHING AND NO ERRORS IN OUTPUT?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
screenGui = script.Parent

Background = screenGui.Background

Map1 = Background.map1
Map2 = Background.map2
Map3 = Background.map3

Vote1 = Background.Vote1
Vote2 = Background.Vote2
Vote3 = Background.Vote3

Votenum1 = Vote1.TextLabel
Votenum2 = Vote2.TextLabel
Votenum3 = Vote3.TextLabel

Int1 = Background.Int1
Int2 = Background.Int2
Int3 = Background.Int3
Voted = false
Map1.MouseButton1Click:connect(function(player)
    if  Voted == false then
    Votenum1.Text = Int1.Value + 1
    Int1.Value = Votenum1.Text
    end
    Voted = true
end)

Map2.MouseButton1Click:connect(function (player)
    if Voted == false then
        Votenum2.Text = Int2.Value + 1
    Int2.Value = Votenum2.Text
    end
    Voted = true
end)

Map3.MouseButton1Click:connect(function (player)
    if Voted == false then
        Votenum3.Text = Int3.Value + 1
    Int3.Value = Votenum3.Text
    end
    Voted = true
end)

wait(5)

if Int1.Value > Int2.Value and Int3.Value then
    crossroads = game.Workspace.ServerStorage.crossroads:Clone( )
    crossroads.Parent = game.Workspace
end

Map does not clone into workspace after the votes on it are higher than any others

1
At least his title grabbed our attention... yougottols1 420 — 8y
0
Lol it kept saying 'describe your question' more so I got pissed of and wrote a whole paragraph ComplexitiesLife 10 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago

I see the issue. On line 48 you say "game.Workspace.ServerStorage", perhaps you mean "game.ServerStorage" instead?

0
Yes, that would cause a problem. GoldenPhysics 474 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

crossroads = game.ServerStorage -- you cant include cross roads because it hasnt been notified a s a variable

Answer this question