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

math.Random~I know I asked a question similar but Ive made some changes please help?

Asked by 9 years ago

I know I asked a question similar but Ive made some changes and its still not working Please help?

arm =  zombie:FindFirstChild("Left Arm")
local players = game.Players:GetPlayers()
zombie = players[ math.random(1, #players) ]
playerChosen = players [zombie]
zombie.Character.arm:remove()


0
Still not working dscpcheatsis10123 0 — 9y

1 answer

Log in to vote
0
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

playerChosen is unnecessary and incorrect; just remove it.


The arms are called "Left Arm" and "Right Arm":

zombie.Character["Left Arm"]:Remove()

While lowercase remove works, the uppercase Remove is preferred.

Ad

Answer this question