function module:CreateStatue(Player, Size, Place)
warn("got...")
if Place == nil then return end
if Place > 3 then return end
warn("!")
local Statue = game.ServerStorage.Statue:Clone()
Statue.Parent = game.Workspace
warn(Size,Place,Player)
for i, v in pairs(Statue.Humanoid:GetChildren()) do
warn("c1")
if v.ClassName == "NumberValue" then
warn("c2")
v.Value = Size
end
end
warn("d1")
Statue.Head.NameTagStatue.OneLine.Text = Player.Name
warn("c3")
Statue.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(Player.UserId))
warn("c5")
if Place == 1 then
warn("got 1")
Statue:SetPrimaryPartCFrame(CFrame.new(2.03213573, 15.3845253, 106.683434, 0, 0, 1, 0, 1, 0, -1, 0, 0))
elseif Place == 2 then
warn("got 2")
Statue.Head.NameTagStatue.OneLine.TextColor3 = Color3.fromRGB(163, 162, 165)
Statue:SetPrimaryPartCFrame(CFrame.new(1.09898961, 13.0107317, 116.444778, 0.34201926, 0, 0.939693391, 0, 1, 0, -0.939693391, 0, 0.34201926))
elseif Place == 3 then
warn(" got 3 ")
Statue.Head.NameTagStatue.OneLine.TextColor3 = Color3.fromRGB(255, 134, 97)
Statue:SetPrimaryPartCFrame(CFrame.new(-0.15993011, 13.9696808, 97.0765839, -0.499999315, 0, 0.866025805, 0, 1, 0, -0.866025805, 0, -0.499999315))
end
warn("RETURNED")
return Statue
end
When I call this function, it stops at c3. Sometimes it goes through and other times not. What is causing this??
