#plzz help

1 messages · Page 1 of 1 (latest)

stone basin
#

can anyone fix this script so when the duplicated one spawns he doesnt face a other direction?

#

local Workspace = game:GetService("Workspace")
local ServerScriptService = game:GetService("ServerScriptService")

local moveLeft = require(ServerScriptService:FindFirstChild("NoobMoveLeft"))

local function getNoobAndSpawn()
local noob = Workspace:FindFirstChild("Noob")
local spawnnoob = Workspace:FindFirstChild("spawnnoob")
return noob, spawnnoob
end

while true do
local noob, spawnnoob = getNoobAndSpawn()
if noob and spawnnoob and noob:IsA("Model") and spawnnoob:IsA("BasePart") then
local clone = noob:Clone()
clone.Parent = Workspace
-- Set CFrame to spawnnoob's position, but with no rotation
local spawnPosition = spawnnoob.Position
clone:PivotTo(CFrame.new(spawnPosition))
-- Make the clone walk to its left
moveLeft(clone, 13) -- 13 studs per second as in your example
end
task.wait(5)
end

little dust