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

ROBLOX Broke this script, how can I fix it? {HELP}

Asked by 10 years ago

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)
0
What's the problem? TurboFusion 1821 — 10y
0
It's not working.. "Roblox broke this script" SprocketSoldier 0 — 10y

Answer this question