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

My minigame script is breaking?

Asked by 11 years ago

I used this script for my minigames -

001AutomaticTimer = false
002CashValue = "Points"
003WinnerCash = 20
004SurvivorCash = 12
005FinishCash = 5
006Time = 60
007Intermission = 10
008 
009hint = Instance.new('Hint',Workspace)
010 
011while true do
012    WinnerName = nil
013    value = Intermission
014    while value > 0 do
015        hint.Text = "Intermission ("..value..")"
View all 139 lines...

I picked up an error on line 77 about SurvivalCheck. The problem is, whenever it teleports players to the map, the whole script breaks. In output, I get - SurvivalCheck is not a valid member of Script

Here's the SurvivalCheck script -

1script.Parent.Humanoid.Died:connect(function()
2    script.Parent.Survived.Value = false
3end)

Any help?

0
Where is the "SurvivalCheck" script located? Is it a child of the script or a parent? Or is it somewhere else? If it's not located as a child of the script, put it as a child.  lomo0987 250 — 11y
0
Located on line 77, and the script for survial check is below the minigame script. FamousDoge 0 — 11y

1 answer

Log in to vote
0
Answered by
traigla 75
11 years ago

You've written it saying that the SurvivalCheck script is inside that main script. is this true, where is the Survival Check script?

The way you have it set up is that the SurvivalCheck script's parent is the main script.

Ad

Answer this question