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

how come this doesn't work!?

Asked by 10 years ago
wait(10)
game.Workspace.PlayersVeneus:Destroy()

Why does this not work?

4 answers

Log in to vote
0
Answered by
Marolex 45
10 years ago

You forgot to put '.' between Players and Veneus

wait(10)
game.Workspace.Players.Veneus:Destroy()

Ad
Log in to vote
-1
Answered by 10 years ago

You forgot the period between Players and Venus.

Log in to vote
-1
Answered by
Dom2d2 35
10 years ago

The others are correct.

wait(10)
game.Workspace.PlayersVeneus:Destroy() --Incorrect

Is incorrect because you left out the "." which seperated Players from Veneus. The following code would work:

wait(10)
game.Workspace.Players.Veneus:Destroy() --Correct :)

Here's a tip though, let's say you want the player that you specify eariler in the script to be destroyed. You could say this.

Player = Veneus
wait(10)
game.Workspace.Players[Player]:Destroy() --Also correct.

The above example does exactly the same thing, just utilizing a new concept. You can see that the "." doesn't have to be used in this example because "Players" and "Player" are separated by brackets.

0
No. This is completely incorrect. User#11893 186 — 10y
Log in to vote
-2
Answered by 10 years ago

Did you wait 10 seconds before destroying that object?

Answer this question