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

Is this the right script to pick somewone randomly from Players to be a monster?

Asked by 10 years ago

Heres my script:

local Dominator = script.Parent.Parent
local DominatorChance = Players[math.random(1,10)]
local Name = "Your The Dominator!"..player.Name..""



if player == "Dominator" then
    script.Parent.Health = 1000
    script.Parent.MaxHealth = 1000
    script.Parent.WalkSpeed = 60
and
    script.Parent:GetChildren()

end

2 answers

Log in to vote
-3
Answered by 10 years ago

yes, its correct.

Ad
Log in to vote
0
Answered by 10 years ago
local Fighter = script.Parent.Parent
local playerin = Game:GetService("Players")
local chance = Players[math.random(1,10)]


if Player == "Fighter" then
    script.Parent:GetChildren()
    script.Parent.Parent.Name = "The Fighter is"..player.Name..""



end

is this also right?

0
Hello digital, please do not post answers to your own question. If you wish to ask more questions, either ask a new one, or edit your current one if they relate. Thank you! AmericanStripes 610 — 10y
0
Oh Im sorry Creative. digitalzer3 123 — 10y

Answer this question