It spawns models from lightning into Workspace...and their updates broke it. How can I fix it?

player = game.Players.LocalPlayer
DragonCreate = {"/i Dragon"} --What the player types (Command)

function processCommand(speaker, message)
for i, v in pairs (DragonCreate) do
if message == v then
local DragonClone = game.Lighting.Dragon:Clone() --game.Lightning.(modelname):Clone()
DragonClone.Parent = game.Workspace 
DragonClone:MoveTo(Vector3.new(79.9, 1.8, 135.156)) --Where you want the model to spawn (POSITION)
end
end
end
--Nothing :))))))
player.Chatted:connect(function(message)
processCommand(player, message)
end)

2 comments

0

What's the problem?

0

It's not working.. "Roblox broke this script"