clone = Workspace.Ships.Ship1:Clone()
clone.Parent = game.Lighting

function cl()
c = game.Lighting.Ship1:Clone()
c.Parent = Workspace
children = c:GetChildren()
c.Anchored = true
wait(1)
c.Anchored = false
end


script.Parent.Touched:connect(function(hit)
	hum = hit.Parent:FindFirstChild("Humanoid")
		if hum ~= nil then
		player = game.Players:GetPlayerFromCharacter(hit.Parent)
		treasure = player.leaderstats.Treasure
		if treasure.Value == 0 or treasure.Value > 0 then
			treasure.Value = treasure.Value - 0
			cl()
		end
	end
end)

This is the script. I have tried multiple different methods including anchoring the parts but the ships that spawn just fall apart even though if they are in the workspace they do not break apart. Is there any way to keep models together when moving to workspace? - Thanks

4 comments

0

Thanks

0

Np. :)

0

surface joints can only exist in the Workspace. SOLUTION: (now this will work for parts too) Model:MakeJoints() right after moving it from ServerStorage or Lighting (and please for god sake use ReplicatedStorage instead of Lighting for replicated storage)