Like this.
[lua]
local players = game.Players:getChildren() --finds all players, which is kinda useless
--right now since there can only be one.
--BTW you need to make a Word Wrap for this, Jacob.
for q = 1, #players do --I could just say players[1], but I'll stick to multiplayer format
local e = create("Explosion")
local body = players[q]:getChild("Body") --in case it's been removed already somehow
e.Radius = 5
e.Parent = game.World
e.Position = body.Position
body.Velocity = Vec2D(0,100) --Fun to watch
sleep(1)
game:chat("You've been BEWMed", Color(0,0,0)) -- I might have that in wrong order
end
[/lua]
[lua]
local players = game.Players:getChildren() --finds all players, which is kinda useless
--right now since there can only be one.
--BTW you need to make a Word Wrap for this, Jacob.
for q = 1, #players do --I could just say players[1], but I'll stick to multiplayer format
local e = create("Explosion")
local body = players[q]:getChild("Body") --in case it's been removed already somehow
e.Radius = 5
e.Parent = game.World
e.Position = body.Position
body.Velocity = Vec2D(0,100) --Fun to watch
sleep(1)
game:chat("You've been BEWMed", Color(0,0,0)) -- I might have that in wrong order
end
[/lua]