Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 comments

1

At least his title grabbed our attention...

0

Lol it kept saying 'describe your question' more so I got pissed of and wrote a whole paragraph

2 answers

✓ Accepted answer

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

1 comment

0

Yes, that would cause a problem.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.